/*
  Studio design tokens and shared base styles.
  Palette and type roles mirror the Tanode app (src/app/globals.css, studioFonts.ts on pilot-batch-1)
  and the Claude Design Studio exports. This is a reconstruction from verified assets, not the
  canonical Claude Design system file. Each of the three sites keeps its own copy of this file.
*/
:root {
  --green: #0b2825;      /* primary text and dark surfaces */
  --paper: #f2f2ef;      /* page background */
  --blue: #3f5c7a;       /* secondary text, structural blue */
  --sage: #8fa192;       /* quiet structure, connectors */
  --gold: #e0b021;       /* accent only: the dot, focus */
  --deep: #14453f;       /* hover on dark surfaces */
  --mist: #c9d2cb;       /* body text on dark */
  --line: #7ba0c9;       /* drawing lines on dark */
  --paper-hover: #ebede9;
  --ink: #1b3a35;        /* body text on paper */
  --muted: #5e7168;      /* quiet text on paper */

  --ff-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --ff-body: "Newsreader", Georgia, serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 clamp(18px, 1.1vw + 13px, 21px)/1.55 var(--ff-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.display, h1, h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.005em;
  color: var(--green);
  margin: 0;
}
h1 { font-size: clamp(56px, 8.5vw, 124px); }
h2 { font-size: clamp(40px, 5.2vw, 72px); }
h3 { font: 500 13px/1.4 var(--ff-mono); letter-spacing: 0.22em; text-transform: uppercase; margin: 0; }
p { margin: 0; }
.dot { color: var(--gold); }
.lede { font-size: clamp(20px, 1.3vw + 14px, 26px); line-height: 1.45; max-width: 34ch; }
.mono { font-family: var(--ff-mono); font-weight: 400; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font: 400 12px/1 var(--ff-mono); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: currentColor; }

/* Surfaces */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.surface-dark { background: var(--green); color: var(--mist); }
.surface-dark h1, .surface-dark h2, .surface-dark .display { color: var(--paper); }
.surface-dark .eyebrow { color: var(--sage); }
.grid-lines {
  background-image: repeating-linear-gradient(90deg, rgba(143, 161, 146, 0.10) 0 1px, transparent 1px 66px);
}
.surface-light.grid-lines {
  background-image: repeating-linear-gradient(90deg, rgba(63, 92, 122, 0.07) 0 1px, transparent 1px 66px);
}
.rule { border: 0; border-top: 1px solid rgba(63, 92, 122, 0.25); margin: 0; }

/* Links and buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 13px/1 var(--ff-mono); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding: 17px 24px; border: 1px solid var(--green);
  background: var(--green); color: var(--paper); transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--deep); border-color: var(--deep); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--paper-hover); border-color: var(--green); }
.surface-dark .btn { background: var(--paper); color: var(--green); border-color: var(--paper); }
.surface-dark .btn:hover { background: var(--gold); border-color: var(--gold); }
.arrow::after { content: "\2192"; font-family: var(--ff-body); letter-spacing: 0; }

.textlink {
  font: 500 13px/1.4 var(--ff-mono); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.textlink:hover { color: var(--blue); }

/* Placeholders: every unresolved item is marked [PLACEHOLDER ...] and uses this class. */
.ph {
  display: inline-block; font: 400 12px/1.5 var(--ff-mono); letter-spacing: 0.06em;
  color: var(--blue); background: rgba(224, 176, 33, 0.12);
  border: 1px dashed var(--gold); padding: 3px 8px; border-radius: 2px;
}
.surface-dark .ph { color: var(--mist); }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; padding: 26px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); flex-wrap: wrap; justify-content: flex-end; }
.nav a { font: 400 12px/1 var(--ff-mono); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }

/* Footer */
.site-footer { padding: 40px 0 48px; font: 400 12px/1.6 var(--ff-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }

/* Marks */
.k-mark { font-family: var(--ff-display); font-size: 34px; line-height: 1; letter-spacing: 0.01em; }
.k-mark .k { color: currentColor; }
.k-mark .slash { color: var(--sage); }
.k-mark .stop { color: var(--gold); }
.path-mark { width: 54px; height: auto; }

/* Legal pages */
.legal { padding: 140px 0 80px; }
.legal h1 { font-size: clamp(48px, 7vw, 88px); margin-bottom: 28px; }
.legal h2 { font-size: clamp(28px, 3vw, 38px); margin: 44px 0 12px; }
.legal p, .legal li { max-width: 62ch; margin: 0 0 12px; }
.draft-banner { border: 1px dashed var(--gold); background: rgba(224, 176, 33, 0.10); padding: 16px 20px; font: 400 13px/1.6 var(--ff-mono); color: var(--ink); max-width: 72ch; }

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

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