/* Kawaii Charms Co — shared design tokens & primitives */
:root {
  /* Cream backdrop, kept */
  --cream: #FCF8F2;
  --ivory: #F8F0E4;
  --paper: #FFFDF9;
  --shell: #F2E7D6;

  /* Ink: warm chocolate brown to match logo outlines */
  --ink-900: #5A3E33;
  --ink-700: #876455;
  --ink-500: #B49483;
  --ink-300: #D8C2B3;
  --ink-100: #EFE0D2;

  /* Primary: bubblegum pink */
  --terracotta-700: oklch(0.66 0.13 5);    /* deeper rose for hover/emphasis */
  --terracotta-600: oklch(0.78 0.13 5);    /* primary pink */
  --terracotta-500: oklch(0.86 0.10 5);    /* light pink */
  --terracotta-200: oklch(0.94 0.045 5);   /* pink wash */
  --terracotta-100: oklch(0.97 0.022 5);   /* faintest pink */

  /* Lavender — secondary kawaii accent */
  --rose-500: oklch(0.80 0.075 305);       /* lavender */
  --rose-200: oklch(0.93 0.035 305);       /* lavender wash */

  /* Mint — soft success/sage accent */
  --sage-500: oklch(0.83 0.06 155);        /* mint */
  --sage-200: oklch(0.94 0.030 155);

  /* Butter yellow + sky blue (additional kawaii hues, used sparingly) */
  --butter-500: oklch(0.90 0.10 95);
  --butter-200: oklch(0.96 0.045 95);
  --sky-500:    oklch(0.86 0.065 230);
  --sky-200:    oklch(0.95 0.030 230);

  --warning: oklch(0.88 0.10 95);
  --error:   oklch(0.70 0.13 15);

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:  'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;

  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(58,43,35,.06), 0 1px 1px rgba(58,43,35,.04);
  --shadow-md: 0 4px 12px rgba(58,43,35,.08), 0 2px 4px rgba(58,43,35,.05);
  --shadow-lg: 0 16px 40px rgba(58,43,35,.10), 0 4px 12px rgba(58,43,35,.06);
  --shadow-fridge: 0 18px 28px -12px rgba(58,43,35,.35), 0 4px 8px rgba(58,43,35,.10);

  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px; --s-6:32px; --s-7:48px; --s-8:64px; --s-9:96px;
}

body[data-radius="soft"]    { --r-xs:4px; --r-sm:6px;  --r-md:8px;  --r-lg:12px; --r-xl:16px; }
body[data-radius="rounded"] { --r-xs:6px; --r-sm:10px; --r-md:14px; --r-lg:20px; --r-xl:28px; }
body[data-radius="pill"]    { --r-xs:999px; --r-sm:999px; --r-md:999px; --r-lg:999px; --r-xl:999px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream); color: var(--ink-900);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }

/* ---- Header ---- */
.site-header-banner {
  background: var(--ink-900); color: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  text-align: center; padding: 8px;
}
.site-header-banner em { font-family: var(--serif); font-style: italic; color: var(--rose-200); text-transform: none; letter-spacing: 0; font-size: 13px; margin: 0 6px; }
.site-header {
  display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-3) var(--s-6);
  background: var(--paper); border-bottom: 1px solid var(--ink-100);
  position: sticky; top: 0; z-index: 50;
}
.site-header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-900); }
.site-header-logo img { width: 40px; height: 40px; border-radius: var(--r-pill); }
.site-header-logo strong { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: -0.005em; white-space: nowrap; }
.site-header-nav { display: flex; gap: var(--s-2); margin-left: var(--s-4); }
.site-header-nav a { color: var(--ink-700); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: var(--r-sm); white-space: nowrap; }
.site-header-nav a:hover { background: var(--ivory); color: var(--ink-900); }
.site-header-nav a.active { color: var(--terracotta-700); }
.site-header-search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--cream); border: 1px solid var(--ink-100); border-radius: var(--r-pill); padding: 8px 14px; font-size: 14px; max-width: 320px; margin-left: auto; color: var(--ink-500); }
.site-header-actions { display: flex; gap: 4px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-md); background: transparent; border: none; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-700); cursor: pointer; position: relative; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--ivory); color: var(--ink-900); }
.icon-btn .pip { position: absolute; top: 6px; right: 6px; background: var(--terracotta-600); color: var(--paper); font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); }
.site-header-search-btn { display: none; }
@media (max-width: 1100px) {
  .site-header-search { display: none; }
  .site-header-search-btn { display: inline-flex; }
}
@media (max-width: 820px) {
  .site-header { gap: var(--s-3); padding: var(--s-3) var(--s-4); }
  .site-header-nav { display: none; }
  .site-header-actions { margin-left: auto; }
}

/* ---- Mobile bottom nav ---- */
.site-mnav { display: none; }
@media (max-width: 820px) {
  .site-mnav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 2px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: rgba(255, 253, 249, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--ink-100);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 20px -10px rgba(90, 62, 51, 0.18);
  }
  .site-mnav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--ink-500);
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 6px 4px 4px;
    border-radius: var(--r-sm);
    min-height: 52px;
    transition: color 120ms ease;
  }
  .site-mnav a:active { background: var(--ivory); }
  .site-mnav a.is-active { color: var(--terracotta-700); }
  .site-mnav a.is-active svg { stroke-width: 2; }

  .site-mnav-icon-wrap { position: relative; display: inline-flex; }
  .site-mnav-pip {
    position: absolute;
    top: -4px; right: -8px;
    background: var(--terracotta-600);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--paper);
    box-sizing: content-box;
  }

  /* Center "Make" CTA — elevated terracotta bubble */
  .site-mnav-cta {
    position: relative;
    color: var(--ink-700);
  }
  .site-mnav-cta-bubble {
    width: 48px; height: 48px;
    border-radius: 999px;
    background: var(--terracotta-600);
    color: var(--paper);
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: -22px;
    margin-bottom: 2px;
    box-shadow: 0 6px 14px -4px oklch(0.66 0.13 5 / 0.45), 0 2px 4px rgba(90, 62, 51, 0.12);
    border: 3px solid var(--paper);
    transition: transform 120ms ease;
  }
  .site-mnav-cta:active .site-mnav-cta-bubble { transform: translateY(1px) scale(0.97); }
  .site-mnav-cta.is-active { color: var(--terracotta-700); }
  .site-mnav-cta.is-active .site-mnav-cta-bubble { background: var(--terracotta-700); }

  /* Reserve space at the bottom of every page that mounts the chrome */
  body.has-mobile-nav { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  /* Pull the dark site footer up against the nav cleanly */
  body.has-mobile-nav .site-footer { margin-bottom: 0; }
}

/* ---- Footer ---- */
.site-footer { background: var(--ink-900); color: var(--shell); padding: var(--s-8) var(--s-6) var(--s-5); margin-top: var(--s-9); }
.site-footer-inner { max-width: 1280px; margin: 0 auto; }
.site-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); margin-bottom: var(--s-6); }
@media (max-width: 720px) { .site-footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer-brand img { width: 56px; height: 56px; border-radius: var(--r-pill); margin-bottom: var(--s-3); }
.site-footer-brand h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 var(--s-2); color: var(--paper); }
.site-footer-brand p { color: var(--ink-300); font-size: 14px; margin: 0 0 var(--s-4); max-width: 30ch; text-wrap: pretty; }
.site-footer-newsletter { display: flex; gap: 6px; max-width: 320px; }
.site-footer-newsletter input { flex: 1; background: rgba(255,253,248,.06); color: var(--paper); border: 1px solid rgba(255,253,248,.15); border-radius: var(--r-md); padding: 10px 12px; font-family: var(--sans); font-size: 14px; }
.site-footer-newsletter input::placeholder { color: var(--ink-300); }
.site-footer-newsletter button { background: var(--terracotta-500); color: var(--paper); border: none; padding: 0 16px; border-radius: var(--r-md); font-weight: 600; font-size: 14px; cursor: pointer; }
.site-footer h5 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-300); margin: 0 0 var(--s-3); font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { color: var(--shell); text-decoration: none; font-size: 14px; }
.site-footer ul a:hover { color: var(--rose-200); }
.site-footer-bottom { border-top: 1px solid rgba(255,253,248,.1); padding-top: var(--s-4); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-300); font-family: var(--mono); letter-spacing: .04em; }
.site-footer-bottom .socials { display: flex; gap: 4px; }
.site-footer-bottom .socials a { width: 32px; height: 32px; border-radius: 999px; background: rgba(255,253,248,.08); display: inline-flex; align-items: center; justify-content: center; color: var(--shell); transition: background .15s; }
.site-footer-bottom .socials a:hover { background: var(--terracotta-500); }

/* ---- Buttons ---- */
.btn { font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1; border: 1px solid transparent; border-radius: var(--r-md); padding: 12px 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform .08s, background .15s, border-color .15s, color .15s, box-shadow .15s; letter-spacing: -.005em; background: transparent; color: var(--ink-900); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--terracotta-500); outline-offset: 3px; }
.btn-primary { background: var(--terracotta-700); color: var(--paper); border-color: var(--terracotta-700); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: oklch(0.60 0.13 5); border-color: oklch(0.60 0.13 5); }
.btn-secondary { background: var(--paper); color: var(--ink-900); border-color: var(--ink-100); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink-300); background: var(--ivory); }
.btn-ghost { background: transparent; color: var(--ink-700); border-color: transparent; }
.btn-ghost:hover { background: var(--ivory); color: var(--ink-900); }
.btn-link { background: transparent; color: var(--terracotta-700); padding: 12px 0; border-radius: 0; }
.btn-link:hover { color: var(--terracotta-600); text-decoration: underline; text-underline-offset: 4px; }
.btn:disabled, .btn[disabled] { background: var(--ink-100); color: var(--ink-300); border-color: var(--ink-100); cursor: not-allowed; box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-900); }
.field .hint { font-size: 12px; color: var(--ink-500); }
.field .err { font-size: 12px; color: var(--error); display: flex; align-items: center; gap: 4px; }
.input, .textarea, .select { font-family: var(--sans); font-size: 15px; color: var(--ink-900); background: var(--cream); border: 1px solid var(--ink-100); border-radius: var(--r-md); padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-300); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--terracotta-500); background: var(--paper); box-shadow: 0 0 0 4px var(--terracotta-100); }
.input.is-error { border-color: var(--error); box-shadow: 0 0 0 4px oklch(0.94 0.04 25); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%235C4A40' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.check, .radio { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 6px 0; font-size: 14px; color: var(--ink-900); }
.check input, .radio input { position: absolute; opacity: 0; pointer-events: none; }
.check .box, .radio .dot { width: 20px; height: 20px; flex: 0 0 20px; background: var(--cream); border: 1.5px solid var(--ink-300); display: inline-flex; align-items: center; justify-content: center; transition: all .15s; margin-top: 1px; }
.check .box { border-radius: 6px; }
.radio .dot { border-radius: 999px; }
.check input:checked + .box { background: var(--terracotta-600); border-color: var(--terracotta-600); }
.check input:checked + .box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(-45deg) translate(1px, -1px); }
.radio input:checked + .dot { border-color: var(--terracotta-600); }
.radio input:checked + .dot::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--terracotta-600); }
.check:hover .box, .radio:hover .dot { border-color: var(--terracotta-500); }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-family: var(--sans); font-weight: 600; font-size: 11px; padding: 4px 10px; border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: .06em; }
.badge-rose { background: var(--rose-200); color: var(--terracotta-700); }
.badge-sage { background: var(--sage-200); color: oklch(0.4 0.05 140); }
.badge-cream { background: var(--ivory); color: var(--ink-700); }
.badge-terra { background: var(--terracotta-100); color: var(--terracotta-700); }

/* ---- Layout helpers ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--s-6); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta-700); }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.05; letter-spacing: -.018em; margin: 0 0 var(--s-3); }
.section-title em { font-style: italic; color: var(--terracotta-600); font-weight: 400; }
.section-lede { color: var(--ink-700); max-width: 56ch; font-size: 17px; margin: 0 0 var(--s-6); text-wrap: pretty; }

/* ---- Photo placeholder (monochrome with mono label) ---- */
.photo-ph {
  position: relative;
  background: var(--ivory);
  background-image:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(58,43,35,0.05) 10px 11px);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500);
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
  padding: var(--s-4); text-align: center;
}
.photo-ph::before { content: ""; position: absolute; inset: 8px; border: 1px dashed var(--ink-300); border-radius: 4px; }
.photo-ph.has-photo::before { display: none; }
.photo-ph .photo-ph-label { position: relative; background: var(--cream); padding: 4px 10px; }

/* ---- Magnet primitive ---- */
.magnet-card {
  border-radius: 4px;
  box-shadow: var(--shadow-fridge);
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.magnet-card .magnet-photo { aspect-ratio: 4/5; display: block; }
.magnet-card .magnet-caption {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  text-align: center; color: var(--paper);
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 8px 6px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
}

/* ---- Fridge surface ---- */
.fridge-surface {
  background: linear-gradient(180deg, #EFE7DA, #DFD2BD);
  border-radius: var(--r-xl);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(58,43,35,.06), inset 0 -40px 60px -40px rgba(58,43,35,.15);
  overflow: hidden;
}
.fridge-surface::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255,255,255,.25) 3px 4px); opacity: .4; pointer-events: none; }

/* ---- Card ---- */
.card { background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--r-lg); }
