/* Scent Studio — the studio app look (label maker + shop maker).
   A web app first: moss app bar with tabs, cream workspace, white rounded cards, boxed inputs, clear buttons.
   The editorial flavour from the reference boards lives in the palette and type: moss, olive, mustard,
   light Cormorant headings, an italic issue number per step and one handwritten line.
   Loaded after each page's own styles; it only re-dresses the studio, never the kids' shops. */

:root {
  --moss: #1E2A1F;
  --cream: #F3EEE3;
  --card: #FFFDF8;
  --olive: #5F6E3A;
  --olive-soft: #EEF0E4;
  --mustard: #F3CB6B;
  --mustard-hover: #EBBE4F;
  --clay: #9A5B43;
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-num: 'Bodoni Moda', Georgia, serif;
  --f-script: 'Homemade Apple', cursive;
  --f-ui: 'Jost', 'Segoe UI', system-ui, sans-serif;

  /* re-point the page tokens */
  --bg: var(--cream);
  --surface: var(--card);
  --ink: #2A2B24;
  --muted: #6F6C5E;
  --line: #E2D9C8;
  --accent: var(--clay);
  --accent-ink: #fff;
  --sage: var(--olive);
  --focus: var(--olive);
  --soft: #F6F1E6;
  --display: var(--f-display);
  --body: var(--f-ui);
}

@media screen {
  body { font-family: var(--f-ui); font-size: 15px; line-height: 1.5; background: var(--cream); }
}

/* ---------- app bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 50; background: var(--moss); color: #F3EEE3;
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.appbar-in { max-width: 1280px; margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 22px; }
.logo { font-family: var(--f-display); font-size: 25px; font-weight: 500; color: #F3EEE3; text-decoration: none; white-space: nowrap; letter-spacing: .01em; }
.logo i { color: var(--mustard); }
.tabs { display: flex; gap: 4px; height: 100%; }
.tabs a { display: flex; align-items: center; gap: 7px; padding: 0 12px; color: rgba(243,238,227,.7); text-decoration: none; font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; }
.tabs a b { font-family: var(--f-num); font-style: italic; font-weight: 400; font-size: 15px; color: rgba(243,238,227,.55); }
.tabs a:hover { color: #fff; }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--mustard); }
.tabs a[aria-current="page"] b { color: var(--mustard); }
.appbar-note { margin-left: auto; font-family: var(--f-display); font-style: italic; font-size: 15px; color: rgba(243,238,227,.6); white-space: nowrap; }
@media (max-width: 640px) { .appbar-note { display: none; } .appbar-in { gap: 10px; } .logo { font-size: 21px; } .tabs a { padding: 0 8px; font-size: 13px; } }

/* ---------- page title ---------- */
.top { display: none !important; }
.intro { padding-block: 26px 22px; display: flex; flex-direction: column; gap: 6px; }
.script { margin: 0; font-family: var(--f-script); color: var(--olive); font-size: 15px; line-height: 1.7; }
.intro-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; color: var(--ink); text-wrap: balance; }
.intro-lede { margin: 0; color: var(--muted); max-width: 62ch; }

/* ---------- step headings ---------- */
.step { background: none !important; color: var(--olive) !important; width: auto !important; height: auto !important; display: inline-block !important; border-radius: 0 !important;
  font-family: var(--f-num) !important; font-style: italic; font-weight: 400 !important; font-size: 22px !important; margin-right: 10px !important; vertical-align: -1px !important; }
.pick > h2, .make > h2, .sheet h2, .card > h2 { font-family: var(--f-display); font-weight: 600; font-size: 23px; letter-spacing: .005em; }
.hint { color: var(--muted); font-size: 14px; }
.group-title, h3.sub { font-family: var(--f-ui) !important; font-weight: 600 !important; font-size: 11.5px !important; letter-spacing: .14em !important; color: var(--muted) !important; }

/* ---------- cards ---------- */
.make, .sheet, .card { background: var(--card) !important; border: 1px solid var(--line); border-radius: 16px !important; box-shadow: 0 1px 2px rgba(42,43,36,.04), 0 10px 28px -20px rgba(42,43,36,.35) !important; }
.form-box { background: var(--soft) !important; border: 1px solid var(--line) !important; border-radius: 14px !important; }
.form-box.editing { border-color: var(--clay) !important; }
.stage { border-radius: 12px !important; background: #EDE6D6 !important; }
.tips, .safety { background: var(--olive-soft) !important; border-radius: 10px !important; color: #4C5236 !important; }
.empty { border-radius: 12px !important; }
.pick-btn { border-radius: 12px !important; background: var(--card) !important; border: 1px solid var(--line) !important; }
.pick-btn[aria-pressed="true"] { border: 2px solid var(--olive) !important; }
.pick-btn span { font-weight: 500 !important; }
.theme-btn { border-radius: 12px !important; }
.theme-btn[aria-pressed="true"] { border-color: var(--olive) !important; }
.theme-btn .cap { font-family: var(--f-ui); font-weight: 600 !important; background: var(--card); }
.item, .pitem { border-radius: 12px !important; background: var(--card) !important; border-color: var(--line) !important; }
.item .nm, .pitem .nm { font-weight: 600; }

/* ---------- form controls ---------- */
.field > label, .field > .lab { font-family: var(--f-ui); font-weight: 600 !important; font-size: 13px !important; color: var(--ink); }
.field input[type=text], .field select, .field textarea { font-family: var(--f-ui) !important; font-size: 16px !important; background: #fff !important; border: 1px solid #D7CDB9 !important; border-radius: 10px !important; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--olive) !important; box-shadow: 0 0 0 3px rgba(95,110,58,.18) !important; }
.chips button, .seg button { font-family: var(--f-ui) !important; }
.chips button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--olive) !important; border-color: var(--olive) !important; color: #fff !important; }
.seg .f-fancy { font-family: 'Parisienne', cursive !important; }
.seg .f-story { font-family: 'Fraunces', serif !important; }
.seg .f-hand { font-family: 'Gaegu', cursive !important; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--olive) !important; }

/* ---------- buttons ---------- */
.btn { border-radius: 10px !important; font-family: var(--f-ui) !important; font-weight: 600 !important; font-size: 14.5px !important; }
.btn.primary { background: var(--mustard) !important; color: var(--ink) !important; }
.btn.primary:hover { background: var(--mustard-hover) !important; filter: none !important; }
.btn.ink { background: var(--olive) !important; color: #fff !important; }
.btn.ink:hover { background: #4F5C2F !important; }
.btn.ghost { border: 1px solid #CFC4AE !important; color: var(--ink) !important; background: #fff !important; }
.linkish { font-family: var(--f-ui) !important; color: var(--clay) !important; }
.toast, .note { font-family: var(--f-ui); color: var(--olive) !important; }
.note.warn { color: var(--clay) !important; }

/* ---------- live preview (shop maker) ---------- */
.phone { border-color: var(--moss) !important; background: var(--moss) !important; }

/* label gallery: six tall labels in one row on wide screens */
.grid.tall { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important; }

/* sticky panels sit below the app bar */
.make, .preview-col { top: 76px !important; }
.phone { height: min(780px, calc(100vh - 150px)) !important; }

/* app bar links: home + log out */
.appbar-link { color: rgba(243,238,227,.75); text-decoration: none; font-size: 13.5px; font-weight: 500; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.appbar-link:hover { background: rgba(243,238,227,.1); color: #fff; }
.appbar-note + .appbar-link { margin-left: 8px; }
@media (max-width: 640px) { .appbar-link[href="/"] { display: none; } .appbar-link { margin-left: auto; padding: 6px 4px; font-size: 12.5px; } }
