/* ZYLOF — Phase B "Modern Monograph". Tokens from ZYLOF_BRAND_MAIN.md §02–§07:
   ink and paper only, 0px radius, no shadows or gradients, uppercase tracked labels,
   left-aligned grid, whitespace as the primary device. */

:root {
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --surface: #F9F9F7;
  --subsurface: #F2F2F0;
  --text: #000000;
  --muted: #5F5E5E;
  --divider: rgba(0, 0, 0, 0.08);

  --gutter: 64px;
  --void: 192px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #121212;
    --subsurface: #1A1A1A;
    --text: #F9F9F7;
    --muted: #A1A1A1;
    --divider: rgba(255, 255, 255, 0.08);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px var(--gutter) 64px;
}

/* Labels, kickers, metadata — uppercase Space Grotesk, wide tracking */
.kicker, .meta, .label, dt, .button, .colophon {
  font-family: var(--font-display);
  text-transform: uppercase;
}

/* Masthead */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
}
.kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--muted);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.8;
}
.meta {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.15em;
  line-height: 1;
  color: var(--muted);
}

/* Type */
.label {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.2;
  color: var(--muted);
}
h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(44px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.deck {
  margin: 32px 0 0;
  max-width: 30em;
  font-style: italic;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.prose p { margin: 0 0 1em; max-width: 38em; }
.prose p:last-child { margin-bottom: 0; }

/* 12-column grid, asymmetric placement */
.hero, .house, .collection {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: var(--void);
}
.hero { margin-top: 160px; }
.hero > * { grid-column: 1 / span 9; }
.hero .deck { grid-column: 2 / span 8; }

.house .label { grid-column: 1 / span 4; }
.house .prose { grid-column: 5 / span 7; }

.collection {
  border-top: 1px solid var(--text);
  padding-top: 32px;
}
.collection-head { grid-column: 1 / span 8; }
.collection .prose { grid-column: 5 / span 7; margin-top: 64px; }

.figures {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 96px 0 0;
}
.figures div {
  border-top: 1px solid var(--divider);
  padding-top: 16px;
}
dt {
  font-size: 11px;
  letter-spacing: 0.15em;
  line-height: 1;
  color: var(--muted);
}
dd {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Primary CTA — hover is an instant invert, no transition */
.button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 64px;
  padding: 18px 32px;
  background: var(--text);
  color: var(--surface);
  border: 1px solid var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1;
  text-decoration: none;
}
.button:hover { background: transparent; color: var(--text); }
.button:focus-visible, .brand:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* Colophon */
.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: var(--void);
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.colophon p { margin: 0; }

/* Mobile: 4-column feel collapses to a single column, 24px gutters */
@media (max-width: 640px) {
  :root { --gutter: 24px; --void: 112px; }
  .page { padding-top: 32px; }
  .wordmark { font-size: 36px; }
  .hero { margin-top: 112px; }
  .hero > *, .hero .deck,
  .house .label, .house .prose,
  .collection-head, .collection .prose { grid-column: 1 / -1; }
  .collection .prose { margin-top: 48px; }
  .figures { margin-top: 64px; gap: 16px; }
  .button { margin-top: 48px; }
}
