/* swens.net — site.css — vector owns this file */
/* Design DNA: design/DNA.md — copied from re-birth.framer.website (Josh, 2026-07-09). */
/* Cinematic monochrome: stage black + gallery white, Plus Jakarta Sans 800 display,
   Fragment Mono chrome. Webfonts load via Google Fonts <link> in layouts/site.php
   (supersedes the old session-1 "no webfont" note). Mobile-first; 900px breakpoint. */

/* ─── 1. TOKENS (dark scope — stage black) ──────────────────────────────── */
:root {
  --bg:      #000000;   /* stage black */
  --panel:   #111112;
  --panel-2: #1a1a1a;
  --text:    #f5f5f5;
  --muted:   #999999;
  --line:    #333336;   /* hairline, dark twin of #e6e6e6 */
  --gold:    #f5f5f5;   /* accent slot — monochrome: accent on dark is white */
  --green:   #b3b3b3;   /* legacy slot, grayscaled */
  --clay:    #ff4400;   /* functional signal ONLY: errors, live/REC dots */
  --radius:  0px;       /* square media; buttons pill via border-radius:999px */
  --shadow:  none;
  --accent:  var(--gold);
  --on-accent: #101114;  /* text/icon color for anything painted --accent */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* ─── 2. RESET / BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* prevent iOS font-size bump on orientation change */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  /* DNA §6: flat — photography is the only texture (topography backdrop retired) */
  background: var(--bg);
  /* belt + suspenders: no horizontal bleed */
  overflow-x: hidden;
}

/* Prevent topography from causing horizontal scroll on iOS */
html, body { max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;          /* DNA §2: display = Plus Jakarta 800, −5% tracking, lh 1.0 */
  letter-spacing: -.05em;
  line-height: 1.0;
}

h1 { font-size: clamp(48px, 8vw, 104px); }
h2 { font-size: clamp(36px, 5.2vw, 72px); }
h3 { font-size: clamp(22px, 3vw, 28px); }

p { margin: 0; }

/* ─── 3. LAYOUT UTILITIES ───────────────────────────────────────────────── */
.section-pad {
  padding-top:    clamp(56px, 9vw, 118px);
  padding-bottom: clamp(56px, 9vw, 118px);
  padding-left:   clamp(20px, 5vw, 70px);
  padding-right:  clamp(20px, 5vw, 70px);
}

.narrow {
  max-width: 980px;
  margin-left:  auto;
  margin-right: auto;
}

/* ─── 4. TYPE UTILITIES ─────────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--font-mono);   /* DNA §2: chrome face — mono, uppercase, spaced */
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 400;
  margin: 0 0 18px;
}

/* Interior: same mono chrome, hairline rule below */
body.interior .eyebrow {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 20px;
}

/* Interior headings: same ExtraBold display voice as the dark scope (DNA §2) */
body.interior h1,
body.interior h2,
body.interior h3,
body.interior h4 {
  font-family: var(--font-sans);
  letter-spacing: -.05em;
  line-height: 1.05;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  max-width: 820px;
  margin-top: 24px;
}

body.interior .lead {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--muted);
}

/* ─── 5. BUTTONS ────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;          /* tap target */
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(244,240,232,.16);
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, background .15s, border-color .15s;
}
.button:hover { opacity: .85; }
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.button.primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.button.primary:hover { opacity: .9; }

.button.ghost {
  color: var(--text);
  background: rgba(245,245,245,.05);
}

/* Generic pill (status tags, non-interactive) */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
}

/* ─── 6. INTERIOR LIGHT SCOPE (DNA: gallery white) ──────────────────────── */
/* Applied via <body class="interior"> on every non-map page.
   Re-points token values so all downstream rules (§9 cards, §10 form, §11 error)
   pick up light-mode values automatically — no token names changed.       */
body.interior {
  --bg:      #fafafa;   /* gallery white */
  --panel:   #ffffff;
  --panel-2: #f5f5f5;
  --text:    #1a1a1a;   /* ink */
  --muted:   #666666;   /* gray voice */
  --line:    #e6e6e6;   /* hairline */
  --gold:    #1a1a1a;   /* accent slot — monochrome: accent on light is ink */
  --green:   #666666;   /* legacy slot, grayscaled */
  --clay:    #d63a00;   /* functional signal ONLY (field errors) — darker for contrast */
  --radius:  0px;       /* square media/cards */
  --shadow:  0 2px 16px rgba(0,0,0,.06);
  --accent:  #1a1a1a;
  --on-accent: #fafafa;  /* accent flips to near-black on light scope; text must flip too */

  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
}

/* ─── 6b. WALK-BACK BAR (interior pages only — RT#3: no menu, ever) ─────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px clamp(16px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  background: #fafafa;
  /* No backdrop blur — a flat strip, not app glass */
}

/* When rendered inside interior body, the header inherits from the body override;
   keep explicit values so the bar is always gallery-white on interior pages. */
body.interior .site-header {
  border-bottom-color: var(--line);
  background: #fafafa;
}

.walk-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;  /* tap target */
  font-size: 13px;
  font-weight: 400;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  transition: color .15s;
}
body.interior .walk-back { color: var(--text); }
.walk-back:hover { color: var(--accent); }

.site-here {
  font-size: 11px;
  font-weight: 400;
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ─── 9. THE OFFICE — cards, shelf, timeline ───────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 2px solid var(--text);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-bottom: 8px;
  font-family: var(--font-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 16px;
}
.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 8px;
}
.card a {
  display: inline-block;
  margin-top: 16px;
  color: var(--text);
  font-weight: 400;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card a:hover { color: var(--accent); }

/* Stamp-style status label (replaces pill on interior/paper scope) */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 0;       /* stamp = square */
  font-size: 10px;
  font-weight: 400;
  font-family: var(--font-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  vertical-align: middle;
  margin-left: 8px;
}

/* Shelf */
.shelf {
  display: grid;
  gap: 8px;
}

.shelf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
}
.shelf-name {
  font-weight: 700;
  color: var(--text);
}
.shelf-desc {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 28px;
}
/* Vertical spine */
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 32px 20px;
}
.timeline-item:last-child { padding-bottom: 0; }

/* Dot on spine */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
}

.timeline-item-year {
  font-size: 11px;
  font-weight: 400;
  font-family: var(--font-sans);
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.timeline-item-name {
  font-weight: 400;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}
.timeline-item-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ─── 10. THE GATE — form, honeypot, flash, errors ─────────────────────── */
.gate-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
}

.gate-form {
  display: grid;
  gap: 16px;
  background: var(--panel);
  border: 2px solid var(--text);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
}

/* Accessible label + input grouping */
.gate-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.gate-form input,
.gate-form textarea {
  width: 100%;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--text);
  border-radius: 0;           /* document inputs are square */
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  min-height: 44px;           /* tap target */
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s;
}
.gate-form input:focus,
.gate-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.gate-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Placeholder text */
.gate-form input::placeholder,
.gate-form textarea::placeholder { color: var(--muted); opacity: .55; }

/* Submit button: red ink stamp style */
.gate-form button[type="submit"],
.gate-form .btn-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 2px solid var(--accent);
  border-radius: 0;           /* stamp = square */
  background: transparent;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.gate-form button[type="submit"]:hover,
.gate-form .btn-stamp:hover {
  background: var(--accent);
  color: var(--bg);
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 0;
}

/* Honeypot — off-canvas, accessible-invisible, never display:none */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-size: initial;
}

/* Flash messages */
.flash {
  display: grid;
  gap: 8px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.flash.success {
  border-color: var(--line);
  background: var(--panel);
}
.flash.error {
  border-color: var(--accent);
  background: var(--panel);
  color: var(--accent);
}

/* Field errors */
.field-error {
  display: block;
  color: var(--clay);
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}
/* Highlight the input above a field error */
.gate-form label:has(+ .field-error) input,
.gate-form label:has(+ .field-error) textarea {
  border-color: var(--clay);
}

/* ─── 11. ERROR PAGE ────────────────────────────────────────────────────── */
.error-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  text-align: center;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 60px);
}
/* Red-ink stamp label above the code */
.error-stamp {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 10px;
  margin-bottom: 20px;
}
.error-wrap h1 {
  font-family: var(--font-sans);
  font-size: clamp(80px, 18vw, 160px);
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text);
  opacity: .18;
  margin-bottom: 16px;
}
.error-wrap p {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 480px;
  margin-bottom: 32px;
}
/* Ghost button in paper scope */
body.interior .button.ghost {
  border-color: var(--text);
  color: var(--text);
  background: transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 12px;
}
body.interior .button.ghost:hover {
  background: var(--text);
  color: var(--bg);
  opacity: 1;
}

/* ─── 12. 900px BREAKPOINT ──────────────────────────────────────────────── */
@media (min-width: 900px) {
  /* Office: 3-col cards */
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Gate panel: 2-col */
  .gate-panel {
    grid-template-columns: .85fr 1fr;
    align-items: start;
  }

  /* Building row: keep status pill inline, not stacked */
  .building-row {
    align-items: center;
  }

  /* Footer: row layout */
  .site-footer {
    flex-direction: row;
    align-items: center;
  }

  /* Nav: larger gap at desktop */
  .site-nav { gap: 28px; }

  /* Header nav at 13px on mobile — already readable at 14px; no change needed */
}

/* Tight mobile pass — 375px hard limit */
@media (max-width: 520px) {
  /* Building row: stack status pill below plaque */
  .building-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .building-status {
    margin-top: 8px;
  }

  /* Nav labels tighten */
  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  /* Cards fully single column (already 1fr, belt+suspenders) */
  .cards { grid-template-columns: 1fr; }

  /* Gate panel stacked (already 1fr, defensive) */
  .gate-panel { grid-template-columns: 1fr; }

  /* Shelf items: stack on very small screens */
  .shelf-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ─── 15. HOME — public hub (v3, 2026-07-10) ────────────────────────────── */
/* One static screen: identity, one line, contact, two exits. No scroll narrative —
   round-table 2026-07-10 chose restraint over the earlier multi-station "ride" (retired,
   see memory/state.md). Still supersedes §9 CAST / §13 STORY / §14 TEAM (dead — slated
   for removal, unverified, tracked separately in memory/state.md). */
.ride {
  position: relative;
  /* DNA §3: monochrome — stage black lifting almost imperceptibly toward the end */
  background: linear-gradient(180deg,
    #000000 0%, #050505 45%, #0d0d0e 80%, #111112 100%);
}

.station {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;          /* mobile: stacked */
  align-content: center;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  max-width: 64rem;
  margin: 0 auto;
  padding: 12vh 1.5rem;
}
.station-text { display: grid; gap: 1rem; }
.station h1, .station h2 { color: var(--text); }
.station .eyebrow { color: var(--accent); }
.station p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; max-width: 40ch; }

@media (min-width: 880px) {
  .station--intro { grid-template-columns: 1fr; max-width: 46rem; }
}

.station--intro { --accent: #b3b3b3; }

.ride-reach { margin-top: 2.5rem; }
.ride-reach a, .ride-elsewhere a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ride-elsewhere { margin-top: .6rem; font-size: 15px !important; }
