/* Wild7s site: tokens straight from design.md. */

:root {
  /* type */
  --font-sans: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace; /* taste-skill-ignore: design.md mono labels */
  --font-display: "Archivo", "Geist", sans-serif; /* the one display moment: the hero name */
  --t-xs: 12px; --t-sm: 14px; --t-base: 16px; --t-md: 20px;
  --t-lg: 32px; --t-xl: 56px; --t-2xl: 96px; --t-hero: clamp(96px, 11vw, 160px);
  --w-regular: 400; --w-strong: 500;

  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px;
  --s-8: 32px; --s-16: 64px; --s-24: 96px; --s-32: 128px;
  --gutter: 32px;

  /* colour: Letterman, the krew's own (design.md §3). Cream sleeves, maroon jacket. */
  --bg: #EFE6D4; --surface: #E5D9C3; --fg: #2A1215; --muted: #6F5B53;
  --line: rgb(42 18 21 / 0.12); --accent: #7A1F2B; --on-accent: #EFE6D4;

  /* shape */
  --r-pill: 9999px; --border: 1px solid var(--line); /* taste-skill-ignore: design.md 1px lines */

  /* motion */
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --m-ui: 180ms; --m-reveal: 400ms; --m-hero: 1.1s;
}

/* the contrast break: the jacket in shadow. Maroon disappears on it, so its accent is the cream. */
[data-theme="dark"] {
  --bg: #2A1215; --surface: #351A1D; --fg: #EFE6D4; --muted: #A8968A;
  --line: rgb(239 230 212 / 0.14); --accent: #EFE6D4; --on-accent: #2A1215;
}

@media (max-width: 767px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: var(--w-regular) var(--t-base)/1.4 var(--font-sans); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; } /* site.js hides lines that no longer apply */
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* labels and metadata: 12px uppercase mono (design.md §1) */
.label {
  font: var(--w-regular) var(--t-xs)/1.2 var(--font-mono); /* taste-skill-ignore: design.md mono labels */
  letter-spacing: 0; text-transform: uppercase; color: var(--muted);
}

/* photographs: square corners, one black-and-white grade (design.md §3) */
.photo { overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }

/* the one button: a flat pill, maroon fill, cream ink */
.button {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-6); border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent); text-decoration: none;
  font: var(--w-strong) var(--t-sm)/1 var(--font-sans); letter-spacing: -0.01em;
  transition: background-color var(--m-ui) var(--ease-ui), transform var(--m-ui) var(--ease-ui);
}
.button:hover { background: var(--fg); color: var(--bg); }
.button:active { transform: scale(0.97); }
.link {
  font: var(--w-strong) var(--t-sm)/1 var(--font-sans); text-decoration: none;
  transition: color var(--m-ui) var(--ease-ui);
}
.link:hover { color: var(--accent); }

.credits {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-8);
  padding: var(--s-6) var(--gutter); background: var(--bg); color: var(--muted);
  font-size: var(--t-sm); line-height: 1.4;
}
.credits p:first-child { max-width: 72ch; }
.credits .label { flex: none; }
@media (max-width: 767px) { .credits { flex-direction: column; gap: var(--s-3); } }
.credits a { text-underline-offset: 2px; }

/* motion: entrances only, gated on .js so nothing stays hidden without script.
   --d sets each part's delay; parts run at --m-reveal, the hero's lead at --m-hero. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lift { from { transform: translateY(105%); } to { transform: none; } }
@keyframes open { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.js [data-rise] { opacity: 0; animation: rise var(--m-reveal) var(--ease-out) var(--d, 0ms) forwards; }
.js [data-lift] { display: block; transform: translateY(105%); animation: lift var(--m-hero) var(--ease-out) var(--d, 0ms) forwards; }
.js [data-open] { clip-path: inset(0 0 100% 0); animation: open var(--m-hero) var(--ease-out) var(--d, 0ms) forwards; }
.js [data-open] :is(img, video) { animation: settle var(--m-hero) var(--ease-out) var(--d, 0ms) both; }
.mask { display: block; overflow: hidden; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s linear infinite; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-rise], .js [data-lift], .js [data-open] {
    transform: none; clip-path: none; animation: fade var(--m-ui) linear both;
  }
  .js [data-open] :is(img, video), .dot, .drift img { animation: none; }
}
