/* The Lucky Aroma companion site. Champagne Glass tokens from lib/design_system, web scale. */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Medium.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-SemiBold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #FBFAF8;
  --surface: #FFFFFF;
  --sunk: #F3EEE6;
  --ink: #1A1A1A;
  --muted: #6E6862;
  --line: #E7E1D8;
  --brass: #7A5A20;
  --champagne: #E9C987;
  --honey: #C9973F;
  --ink-lifted: #34322F;
  --on-ink: #FFFFFF;
  --stage: radial-gradient(90% 70% at 50% 92%, #FFFFFF 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, #F5F0E8 0%, #EDE4D6 100%);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1A1D; --surface: #222225; --sunk: #2D2D31; --ink: #ECE7DF; --muted: #A8A29A;
    --line: #34343A; --brass: #D9B26A; --ink-lifted: #F4EFE7; --on-ink: #1A1A1A;
    --stage: radial-gradient(90% 70% at 50% 92%, rgba(233,201,135,.10) 0%, rgba(0,0,0,0) 60%), linear-gradient(180deg, #232326 0%, #2B2925 100%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 20; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.wordmark { font: 600 26px/1 var(--serif); text-decoration: none; letter-spacing: .005em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font: 600 15px/1 var(--sans); text-decoration: none; color: var(--muted); padding-block: 14px; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--champagne), var(--honey)); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .nav { gap: 18px; } .wordmark { font-size: 23px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { color: var(--on-ink); background: linear-gradient(180deg, var(--ink-lifted), var(--ink) 55%); box-shadow: 0 8px 22px rgba(26,26,26,.16), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-primary .arrow { color: var(--champagne); }
.btn-secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.btn-secondary[aria-disabled="true"] { color: var(--muted); cursor: default; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.link { color: var(--brass); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Type */
.kicker { font: 700 13px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(46px, 7vw, 88px); line-height: .98; }
h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; }
h3 { font-size: 26px; line-height: 1.15; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 34ch; margin: 0; }
p { margin: 0; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta-note { font-size: 14px; color: var(--muted); }
.shelf { position: relative; background: var(--stage); border-radius: 28px; aspect-ratio: 5 / 4; display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 1.2vw, 14px); padding: 0 5% 16%; overflow: hidden; }
.shelf::after { content: ""; position: absolute; left: 7%; right: 7%; bottom: 16%; height: 1px; background: linear-gradient(90deg, transparent, rgba(122,90,32,.35), transparent); }
.shelf img { width: auto; flex: 0 1 auto; min-width: 0; filter: drop-shadow(0 14px 14px rgba(40,30,15,.16)); }
.shelf .b-sm { height: 50%; } .shelf .b-md { height: 60%; } .shelf .b-lg { height: 70%; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .lede { max-width: 40ch; } }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 46ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); }

.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.screen { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.phone { border-radius: 38px; padding: 9px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 48px rgba(40,30,15,.10); max-width: 300px; }
.phone img { border-radius: 30px; aspect-ratio: 1206 / 2622; object-fit: cover; width: 100%; }
.screen figcaption { display: flex; flex-direction: column; gap: 6px; max-width: 30ch; }
.screen figcaption strong { font: 600 24px/1.15 var(--serif); }
.screen figcaption span { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) {
  .screens { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .screen { scroll-snap-align: start; }
}

.notes { display: flex; flex-wrap: wrap; gap: 6px 28px; font: 500 clamp(30px, 4.6vw, 56px)/1.25 var(--serif); }
.notes span:nth-child(3n+2) { font-style: italic; font-weight: 400; color: var(--brass); }
.notes-foot { margin-top: 32px; color: var(--muted); max-width: 52ch; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.pillar { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.pillar p { color: var(--muted); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

.closing { text-align: left; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 56px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer h4 { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .fine { grid-column: 1 / -1; font-size: 13px; border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .brand { grid-column: 1 / -1; } }

/* Document pages (privacy, terms, delete, support) */
.doc-hero { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.doc-hero .wrap { display: flex; flex-direction: column; gap: 16px; }
.doc-hero h1 { font-size: clamp(44px, 6vw, 72px); }
.doc-hero .meta { color: var(--muted); font-size: 15px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-bottom: 96px; }
.toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 4px; font-size: 14px; border-left: 1px solid var(--line); }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 18px; }
.prose section { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.prose section:first-child { border-top: 0; padding-top: 0; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); }
.prose h3 { font: 600 17px/1.4 var(--sans); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--brass); font-weight: 600; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { font: 700 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--sunk); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; gap: 14px !important; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.steps li::before { content: counter(s); font: 600 26px/1 var(--serif); color: var(--brass); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 14px 20px; }
.copy-row code { font: 600 17px/1.3 var(--sans); user-select: all; }
.copy-row .btn { margin-left: auto; }
.todo { background: #FFF1C9; color: #1A1A1A; padding: 0 4px; border-radius: 4px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .toc { display: none; } }

