/* Big Cassette: design tokens and the parts every page shares (bar, header, footer, buttons, text pages).
   Page-specific styles live inline in each page. */
:root {
  --bg: #f4eee3;
  --surface: #fffbf4;
  --surface-2: #ebe3d4;
  --ink: #1c1a17;
  --ink-2: #5a544a;
  --ink-3: #8a8274;
  --line: #ddd2bf;
  --accent: #e2552a;
  --accent-ink: #ffffff;
  --accent-soft: #fbe3d7;
  --good: #2e7650;
  --bad: #b3261e;
  --tape: #151413;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font);   /* headings and the logo */
  --font-label: "Arimo", "Liberation Sans", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(28 26 23 / .06), 0 8px 24px rgb(28 26 23 / .08);
  --gutter: 16px;
  --max: 1160px;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .8em; }
.muted { color: var(--ink-2); }
.placeholder { background: #fff2a8; color: #5c4a00; padding: 0 .25em; border-radius: 4px; }

/* Announcement bar */
.bar { background: var(--tape); color: #f4eee3; font-size: .82rem; }
.bar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: .3em 1.4em; padding-top: .55em; padding-bottom: .55em; text-align: center; }
.bar strong { color: #ffb48f; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
@media (max-width: 420px) { .bar { font-size: .76rem; letter-spacing: -.01em; } }   /* Inter runs wider: keeps the countdown on one line on phones */

/* Header: logo + one button */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
/* Logo: the cassette, then BIG (Inter Black) and CASSETTE (Inter Regular) with no space between. The cassette is
   1.5 times the capitals' height, centred on them. --logo-c2 is CASSETTE's colour (lilac on the purple header). */
.logo { --s: 17px; font-size: var(--s); display: inline-flex; align-items: flex-start; gap: .42em; color: inherit; text-decoration: none; white-space: nowrap; line-height: 1; }
.logo .lk-ic { display: block; flex: none; width: auto; height: 1.66em; }
.logo .lk-words { display: flex; align-items: baseline; margin-top: .18em; }
.logo b { display: block; font: 900 1.5em/.86 "Inter", var(--font); letter-spacing: .03em; }
.logo b + b { font-weight: 400; letter-spacing: -.01em; color: var(--logo-c2, #8f1ccc); }
@media (max-width: 480px) { .logo { --s: 11px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; white-space: nowrap;
  min-height: 48px; padding: 0 1.4em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 700 1rem/1 var(--font); text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #c94620; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #f59b6f; outline-offset: 2px; }
.btn[disabled] { background: var(--ink-3); cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0 48px; font-size: .9rem; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }

/* Text pages (privacy, terms, ...) */
.doc { max-width: 720px; padding-top: 24px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.3rem; margin-top: 2em; }
.doc li { margin-bottom: .4em; }
.doc .updated { color: var(--ink-3); font-size: .9rem; }
.note-draft { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem; margin: 0 0 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* Cassette preview (image + label overlay); used by index and thanks */
.cassette { position: relative; }
.cassette > img { width: 100%; height: auto; border-radius: var(--radius-sm);
  /* fade the outer edges (the cassette sits inside them) so the shadow and backdrop melt into any background */
  --fade: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: var(--fade); -webkit-mask-composite: source-in; mask-image: var(--fade); mask-composite: intersect; }
.cassette-label { position: absolute; pointer-events: none; }
.cassette-label svg { width: 100%; height: 100%; }
