/* ==========================================================================
   site.css — Paul Nothaft / field journal
   The one stylesheet for all pages. Build new pages with these classes.
   See NOTES-README.md ("Building new pages") for a starter template.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --bg: #0a0d11;            /* page background */
  --bg-raise: #0d1116;      /* hover / image fallback surface */
  --ink: #ece5d8;           /* primary text */
  --ink-bright: #f4efe4;    /* headlines */
  --ink-soft: #b8b4a8;      /* body text */
  --ink-mid: #b8bdb9;       /* nav links */
  --muted: #8b9299;         /* secondary text */
  --faint: #6b7280;         /* timestamps, hints */
  --amber: #e8a33d;         /* primary accent */
  --cyan: #3ddad7;          /* secondary accent */
  --red: #ff5c5c;           /* tertiary accent */
  --line: rgba(236, 229, 216, 0.12);
  --line-soft: rgba(236, 229, 216, 0.08);
  --line-strong: rgba(236, 229, 216, 0.3);
  --card-bg: rgba(236, 229, 216, 0.02);
  --amber-line: rgba(232, 163, 61, 0.4);
  --amber-glow: 0 0 18px rgba(232, 163, 61, 0.25);
  --amber-glow-big: 0 0 24px rgba(232, 163, 61, 0.5);
  --card-glow: 0 0 30px rgba(232, 163, 61, 0.08);
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---- Layout ---- */
.page { background: var(--bg); color: var(--ink); font-family: var(--font-sans); min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.container { max-width: 1200px; margin: 0 auto; width: 100%; padding-left: 48px; padding-right: 48px; box-sizing: border-box; }
.container-narrow { max-width: 1100px; margin: 0 auto; width: 100%; padding-left: 48px; padding-right: 48px; box-sizing: border-box; }
.container-prose { max-width: 780px; margin: 0 auto; width: 100%; padding-left: 48px; padding-right: 48px; box-sizing: border-box; }
.section { padding: 96px 0 0 0; }
.stack { display: flex; flex-direction: column; }
.grow { flex: 1; }

/* ---- Type ---- */
.mono { font-family: var(--font-mono); }
.h1 { margin: 0; font-size: 48px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-bright); }
.h1-hero { margin: 0; font-size: clamp(56px, 7vw, 92px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink-bright); }
.h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-bright); }
.h3 { margin: 0; font-size: 24px; font-weight: 600; color: var(--ink-bright); }
.body-text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.body-lg { margin: 0; font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: #c4c0b4; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* Kicker: small uppercase mono label above headings */
.kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; }
.kicker-lg { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; }
.amber { color: var(--amber); }
.cyan { color: var(--cyan); }
.red { color: var(--red); }

/* ---- Masthead (top bar on subpages) ---- */
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; font-family: var(--font-mono); font-size: 13px; }
.masthead-brand { color: var(--ink); text-decoration: none; letter-spacing: 0.08em; }
a.masthead-brand:hover { color: var(--amber); }
.masthead-title { color: var(--faint); letter-spacing: 0.1em; }

/* ---- Nav links ---- */
.navlink { color: var(--ink-mid); text-decoration: none; font-family: var(--font-mono); font-size: 13px; }
.navlink:hover { color: var(--amber); }
.navlink-active { color: var(--amber); }

/* ---- Section header (numbered) ---- */
.section-head { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid rgba(236,229,216,0.1); padding-bottom: 14px; }
.section-num { font-family: var(--font-mono); font-size: 13px; color: var(--amber); }
.section-hint { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-left: auto; }

/* ---- Cards ---- */
.card { border: 1px solid var(--line); padding: 32px; background: var(--card-bg); display: flex; flex-direction: column; gap: 12px; }
.card:hover, .card-hover:hover { border-color: var(--amber-line); box-shadow: var(--card-glow); }
.card-dashed { border: 1px dashed rgba(236,229,216,0.2); padding: 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.card-title { margin: 0; font-size: 24px; font-weight: 600; color: var(--ink-bright); }
.card-title-lg { margin: 0; font-size: 28px; font-weight: 600; color: var(--ink-bright); }

/* ---- Status (pulsing dot + label) ---- */
.status { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulseDot 2s infinite; }
.status-label { color: var(--cyan); letter-spacing: 0.12em; }

/* ---- Chips / tags ---- */
.chip { font-family: var(--font-mono); font-size: 12px; color: var(--muted); border: 1px solid rgba(236,229,216,0.15); padding: 4px 10px; border-radius: 3px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn { font-family: var(--font-mono); font-size: 13px; color: var(--ink); text-decoration: none; border: 1px solid var(--line-strong); padding: 9px 18px; border-radius: 3px; background: transparent; cursor: pointer; display: inline-block; }
.btn:hover { border-color: var(--amber); color: var(--amber); box-shadow: var(--amber-glow); }
.btn-amber { font-family: var(--font-mono); font-size: 13px; color: var(--amber); text-decoration: none; border: 1px solid var(--amber-line); padding: 9px 18px; border-radius: 3px; background: transparent; cursor: pointer; display: inline-block; }
.btn-amber:hover { box-shadow: var(--amber-glow); }
.btn-solid { font-family: var(--font-mono); font-size: 13px; color: #07090c; background: var(--amber); text-decoration: none; padding: 11px 22px; border-radius: 3px; font-weight: 500; border: none; cursor: pointer; display: inline-block; }
.btn-solid:hover { box-shadow: var(--amber-glow-big); }
.btn-ghost { font-family: var(--font-mono); font-size: 13px; color: var(--muted); background: transparent; border: none; padding: 0; cursor: pointer; }
.btn-ghost:hover { color: var(--amber); }

/* ---- Text links ---- */
.link-cyan { font-family: var(--font-mono); font-size: 13px; color: var(--cyan); text-decoration: none; }
.link-cyan:hover { color: var(--amber); }
.link-quiet { color: var(--muted); text-decoration: none; }
.link-quiet:hover { color: var(--amber); }

/* ---- List rows (field notes index) ---- */
.row { display: grid; gap: 24px; align-items: baseline; padding: 22px 8px; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.row:hover { background: rgba(236,229,216,0.03); }
.row-date { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.row-cat { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); letter-spacing: 0.1em; }
.row-title { font-size: 17px; font-weight: 500; color: var(--ink); }
.row-arrow { font-family: var(--font-mono); font-size: 14px; color: var(--amber); }

/* ---- Images & cinematic heroes ---- */
.img-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-frame { position: relative; overflow: hidden; border: 1px solid var(--line); }
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,12,0.55) 0%, rgba(7,9,12,0.25) 40%, rgba(7,9,12,0.92) 100%); }
.hero-veil-deep { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,17,0.55) 0%, rgba(10,13,17,0.15) 45%, rgba(10,13,17,1) 100%); }
.hero-veil-top { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,12,0.95) 0%, rgba(7,9,12,0.6) 100%); }
.grain { position: absolute; inset: 0; opacity: 0.07; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); margin-top: 96px; }
.footer-inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-family: var(--font-mono); font-size: 13px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 20px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.footer-legal-links { display: flex; gap: 18px; }

@media (max-width: 720px) {
  .masthead-inner { gap: 16px; }
}
