/* ShortcutWala · Lipi type system (docs/04): Castoro speaks, Schibsted Grotesk works.
   √φ scale from 16: 13 · 16 · 20 · 26 · 33 · 42 (17 for buttons). Line boxes on a 4 px rhythm.
   Two weights (400, 500). No italics, no caps, no tracking. Ink on white. */

@font-face { font-family: 'Castoro'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/assets/fonts/castoro-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Castoro'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/assets/fonts/castoro-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/assets/fonts/schibsted-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/assets/fonts/schibsted-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #111111;
  --ink-2: #595959;      /* secondary, 7:1 on white; labels only */
  --hair: #e5e5ea;
  --paper: #ffffff;
  --wash: #f2f3f5;       /* drawn-phone screen placeholder */
  --serif: 'Castoro', 'Iowan Old Style', Georgia, serif;
  --sans: 'Schibsted Grotesk', -apple-system, 'SF Pro Text', system-ui, sans-serif;
  --gutter: 24px;
  --measure: 21em;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); } /* focus never lands under the fixed buy button */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 24px; font-weight: 400;
  font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 500; }
em { font-style: normal; font-weight: 500; }

/* layout */
.page { max-width: 440px; margin: 0 auto; padding: 0 var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 12px; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.seal { flex: 0 0 auto; }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 28px; }
.kern-tw { letter-spacing: -0.02em; }
.nav-meta { font-size: 13px; line-height: 20px; }
.rule { border: 0; border-top: 1px solid var(--ink); margin: 16px 0; }
.rule-hair { border: 0; border-top: 1px solid var(--hair); margin: 12px 0; }
.stack > * + * { margin-top: 12px; }

/* type roles */
.display { font-family: var(--serif); font-weight: 400; font-size: 33px; line-height: 40px; letter-spacing: -0.005em; font-variant-numeric: lining-nums; margin: 24px 0 8px; text-wrap: balance; }
.title { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 32px; font-variant-numeric: lining-nums; margin: 0; }
.voice { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 28px; font-variant-numeric: lining-nums; margin: 0 0 8px; text-wrap: balance; }
.lede { font-size: 20px; line-height: 28px; margin: 4px 0 12px; max-width: var(--measure); }
.body { font-size: 16px; line-height: 24px; margin: 0 0 12px; max-width: var(--measure); }
.label { font-size: 13px; line-height: 20px; margin: 0; font-variant-numeric: lining-nums; }
.label-2 { color: var(--ink-2); }
.price { font-weight: 500; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.price-hero { font-size: 42px; line-height: 48px; letter-spacing: -0.01em; }
.price-card { font-size: 26px; line-height: 32px; }
.nowrap { white-space: nowrap; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 500; }
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; line-height: 20px; margin: 16px 0; }

@media (min-width: 600px) {
  .display { font-size: 42px; line-height: 48px; letter-spacing: -0.01em; }
}

/* museum label row: title left, price right */
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 12px; }

/* the one capsule button per screen */
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--ink); color: #ffffff; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: 17px; line-height: 20px; font-weight: 500; font-variant-numeric: lining-nums;
  -webkit-tap-highlight-color: transparent; transition: transform 120ms ease, opacity 120ms ease;
}
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.45; cursor: default; transform: none; }
.btn-dock { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255,255,255,0), #fff 28%); }
.btn-dock .btn { max-width: 392px; margin: 0 auto; }
.btn-small { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 500; white-space: nowrap; background: var(--paper); color: var(--ink); }

/* drawn demo frame (hairline art; the live clip plays inside the drawn phone) */
.frame { position: relative; border: 1px solid var(--hair); margin-top: 16px; }
.frame svg { width: 100%; height: auto; }
.frame-caption { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 20px; font-weight: 500; }
.demo-screen { position: absolute; background: var(--wash); border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.demo-screen video { width: 100%; height: 100%; object-fit: cover; }

/* lists: the five works, the shop's packs, the delivery items */
.works { list-style: none; margin: 0; padding: 0; }
.work { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--hair); text-decoration: none; color: var(--ink); }
.work:first-child { border-top: 0; }
.work-art { width: 96px; height: 96px; flex: 0 0 96px; border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; }
.items { list-style: none; margin: 0; padding: 0; }
.item { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--hair); }
.item:first-child { border-top: 0; }
.item-title { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 28px; margin: 0; }
.item-text .body { margin: 0; }
.steps { padding-left: 20px; margin: 8px 0 12px; }
.steps li + li { margin-top: 6px; }

/* status line under the button (payment messages) */
.pay-status { min-height: 20px; font-size: 13px; line-height: 20px; margin: 8px 0 0; }
.pay-status a { font-weight: 500; }

/* footer: Consumer Protection (E-Commerce) Rules 2020 disclosures */
.footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--ink); font-size: 13px; line-height: 20px; }
.footer p { margin: 0 0 8px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 12px; }
.footer .ft-c { margin-top: 12px; font-size: 12px; line-height: 18px; opacity: 0.75; }
.footer .ft-v { white-space: nowrap; }

/* legal pages: plain long-form reading */
.prose { max-width: 34em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 28px; margin: 24px 0 4px; }
.prose p, .prose li { font-size: 16px; line-height: 24px; }
.prose ul, .prose ol { padding-left: 20px; }

/* non-production only (injected by the Worker) */
.env-banner { background: var(--ink); color: #fff; font-size: 13px; line-height: 20px; text-align: center; padding: 6px 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* pages */
/* Public pages: home, the three pack pages, free, 404. Additive only: no rule above is edited.
   One override is site-wide on purpose: .label figures (see the note below). */

/* demo frame: the clip area sits on the drawn phone's screen, in the art's own units
   (viewBox 340 x 298; phone 118,18 118 x 252 rx 24; screen inset 6 = 124,24 106 x 240) */
.demo-frame { margin: 16px 0 0; }
.demo-frame .demo-screen { left: 36.4706%; top: 8.0537%; width: 31.1765%; height: 80.5369%; border-radius: 18px; }
.demo-note { margin: 0; padding: 0 8px; font-size: 13px; line-height: 20px; text-align: center; }
.frame-caption svg { width: 10px; height: 10px; flex: 0 0 10px; }

/* Schibsted's tnum also gives . , : figure width, which opens gaps in running text ("Edition : unlimited ."),
   so labels keep lining figures and only .price (its own rule above) stays tabular. */
.label { font-variant-numeric: lining-nums; }
ol > li::marker { font-variant-numeric: lining-nums; } /* the UA's tabular marker widens Schibsted's full stop ("1 .") */

/* pack page: label row, the five works, notes */
.offer-note { margin: 0; }
.sc-heading { margin: 24px 0 0; font-weight: 500; }
.sc-list { list-style: none; margin: 4px 0 0; padding: 0; }
.sc { padding: 16px 0; border-top: 1px solid var(--hair); }
.sc:first-child { border-top: 0; padding-top: 8px; }
.sc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sc-name { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 28px; font-variant-numeric: lining-nums; margin: 0; }
.sc-head .price { font-size: 16px; line-height: 24px; }
.sc .body { margin: 4px 0 0; }
.sc .label { margin: 4px 0 0; }
.pack-notes { margin: 24px 0 0; }
.pack-notes > * + * { margin-top: 8px; }

/* singles are text buttons, never capsules: strip the native button chrome */
button.link {
  -webkit-appearance: none; appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 24px; font-weight: 500;
  font-variant-numeric: lining-nums; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
button.link[aria-busy='true'] { opacity: 0.45; cursor: progress; }
.single, button.link.single { display: inline-block; padding: 10px 0; margin: 2px 0 -10px; } /* 44 px tap target, same visual rhythm (button.link alone would zero the padding) */
.single[disabled] { display: none; } /* a pack not on sale yet: the Worker disables its singles; the tier price still shows */

/* payment status: while it has something to say, it sits just above the docked button */
.pay-status:not(:empty) {
  position: fixed; left: 0; right: 0; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 1;
  max-width: 440px; margin: 0 auto; padding: 8px var(--gutter) 0; background: var(--paper);
}

/* home: three works on the wall */
.works > li + li > .work { border-top: 1px solid var(--hair); }
.work-art svg { width: 72px; height: 72px; }
.work-text { flex: 1 1 auto; min-width: 0; }
.work-title { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 32px; font-variant-numeric: lining-nums; margin: 0; }
.work-line, .work-meta { margin: 0; font-size: 16px; line-height: 24px; }
.work-offer { margin: 0; }
@media (hover: hover) { .work:hover .work-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }
.note { margin: 12px 0 0; }
.free-line { margin: 16px 0 0; }

/* free page */
.free-list { list-style: none; margin: 0; padding: 0; }
.free-item { padding: 16px 0; border-top: 1px solid var(--hair); scroll-margin-top: 16px; }
.free-item:first-child { border-top: 0; padding-top: 4px; }
.free-item .body { margin: 4px 0 0; }
.free-item .btn-small { margin-top: 12px; }
a.btn-small:not([href]) { min-height: 0; padding: 0; border-color: transparent; font-size: 13px; line-height: 20px; font-weight: 400; } /* "Link coming soon" reads as a label */
.next-up { margin-top: 24px; padding-top: 4px; border-top: 1px solid var(--ink); }

/* 404 */
.empty-art { width: 96px; margin-top: 24px; }
.empty-art svg { width: 96px; height: 96px; }

/* about, pricing */
.price-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 16px; line-height: 24px; }
.price-table th { font-size: 13px; line-height: 20px; font-weight: 500; text-align: left; border-bottom: 1px solid var(--ink); padding: 0 8px 6px 0; }
.price-table td { border-bottom: 1px solid var(--hair); padding: 10px 8px 10px 0; vertical-align: top; }
.price-table .num-col { text-align: right; white-space: nowrap; padding-right: 0; }
.price-table .num-col .label { display: block; }
