@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --fg:     #1a1a18;
  --fg-2:   #555550;
  --fg-3:   #999990;
  --bg:     #fdfcf9;
  --bg-alt: #f5f4f0;
  --bg-dk:  #1c1c1a;
  --dk-fg:  #e0ddd6;
  --dk-fg2: #a09a90;
  --rule:   #ddd8d0;
  --accent: #2255cc;
  --burn:   #cc3311;
  --insp:   #2255cc;
  --hatch:  #cc8800;
  --green:  #1a8c4e;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Source Serif 4', Georgia, serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ---- header / footer ---- */

header, footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--fg-3);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  border-bottom: 1px solid var(--rule);
}

.header-back { display:inline-flex; align-items:center; text-decoration:none; color:#555; transition:color 0.15s; }
.header-back:hover { color:var(--fg); }
.header-back svg { width:18px; height:18px; }

footer {
  position: static;
  border-bottom: none;
  border-top: 1px solid var(--rule);
}

.mark { color: var(--accent); font-weight: 500; letter-spacing: 0.15em; }
.co   { letter-spacing: 0.05em; text-decoration: none; color: var(--fg-3); }
a.co:hover { color: var(--fg); }

/* ---- sections / bands ---- */

section {
  padding: 5rem 2rem;
}

.band.dark {
  background: var(--bg-dk);
  color: var(--dk-fg);
}

.band.dark p { color: var(--dk-fg2); }
.band.dark p b, .band.dark h2, .band.dark h3 { color: var(--dk-fg); }
.band.dark .punch { color: var(--dk-fg); }
.band.dark .callout { color: var(--dk-fg); }
.band.dark a.cta { color: var(--dk-fg); border-color: var(--dk-fg2); }
.band.dark a.cta:hover { border-color: var(--dk-fg); }

.band.alt {
  background: var(--bg-alt);
}

.narrow {
  max-width: 680px;
  margin: 0 auto;
}

.narrow.center { text-align: center; }
.narrow.center p { margin-left: auto; margin-right: auto; max-width: 52ch; }

.narrow > p {
  margin-bottom: 1.25rem;
  color: var(--fg-2);
}

.narrow > p b { color: var(--fg); font-weight: 600; }

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

/* ---- splash ---- */

.splash {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.splash-inner {
  text-align: center;
}

.splash-mark {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
}

.splash h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.splash-line {
  font-size: 0.95rem;
  color: var(--fg-3);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.splash-doors {
  display: flex;
  gap: 1.5rem;
}

.splash-door {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem 2.5rem;
  transition: border-color 0.2s;
  min-width: 200px;
}

.splash-door:hover {
  border-color: var(--accent);
}

.door-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
}

.door-sub {
  font-size: 0.75rem;
  color: var(--fg-3);
  margin-top: 0.3rem;
}

@media (max-width: 500px) {
  .splash-doors { flex-direction: column; }
}

/* ---- hero ---- */

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #f0f4ff 0%, var(--bg) 100%);
}

.big {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--fg);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.intro {
  font-size: 0.92rem;
  color: var(--fg-3);
  max-width: 42ch;
  line-height: 1.9;
}

.hero-pre {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--fg-2);
  max-width: 40ch;
  line-height: 1.85;
  margin: 0 auto;
}

.hero-nums {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  color: var(--fg-3);
}

.hero-nums b { color: var(--fg); font-weight: 500; font-size: 1.15em; }

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--fg-3);
}

.lead {
  font-size: 1.05rem;
  line-height: 1.9;
}

/* ---- CTA ---- */

a.cta {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  transition: border-color 0.2s;
}

a.cta:hover { border-color: var(--accent); }

/* ---- target row ---- */

.target-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

.target-row span {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--fg);
  font-weight: 500;
  background: var(--bg-alt);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

/* ---- aside note ---- */

.aside-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--fg-3);
  margin-top: 0.5rem;
}

/* ---- punch / callout ---- */

.punch {
  font-weight: 600;
  color: var(--fg) !important;
  font-size: 1.05em;
}

.callout {
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  padding: 1.5rem 0;
  font-style: italic;
}

/* ---- card row ---- */

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
}

.card h3 { font-size: 0.92rem; margin-bottom: 0.4rem; }

.card p {
  font-size: 0.85rem;
  color: var(--fg-2);
  line-height: 1.7;
}

/* ---- numbers strip ---- */

.nums {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 1.25rem 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  color: var(--fg-3);
}

.nums b {
  font-weight: 500;
  color: var(--fg);
  font-size: 1.15em;
}

/* ---- surfaces ---- */

.surfaces { margin: 1.5rem 0; }

.sf {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.sf-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.45rem;
}

.sf-dot.burn    { background: var(--burn); }
.sf-dot.inspect { background: var(--insp); }
.sf-dot.hatch   { background: var(--hatch); }

.sf h3 { margin-bottom: 0.15rem; }
.sf p { font-size: 0.88rem; color: var(--fg-2); margin: 0; }

/* ---- proof grid ---- */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.5rem 0;
  text-align: center;
}

.proof-cell {
  background: var(--bg);
  padding: 1.25rem 0.75rem;
  font-family: 'DM Mono', monospace;
}

.proof-cell b {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--fg);
}

.proof-cell.green b { color: var(--green); }

.proof-cell span {
  font-size: 0.65rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- diagrams ---- */

.diagram {
  display: block;
  width: 100%;
  max-width: 440px;
  margin: 1.5rem auto;
}

.diagram.wide {
  max-width: 560px;
}

/* ---- rant blocks ---- */

.rant-block {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.rant-block h3 {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--burn);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.rant-block p {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.rant-block p:last-of-type { margin-bottom: 0; }

/* ---- story grid ---- */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.story-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem;
}

.story-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 0.625rem);
}

/* ---- peer comment ---- */

.peer-comment {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.peer-attr {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.peer-comment p {
  font-size: 0.92rem;
  color: var(--fg-2);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.peer-comment p b {
  color: var(--fg);
  font-weight: 600;
}

.story-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.75rem;
}

.story-card h3 {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.story-card p {
  font-size: 0.85rem;
  color: var(--fg-2);
  line-height: 1.7;
}

/* ---- scroll reveal ---- */

.up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---- responsive ---- */

@media (max-width: 640px) {
  html { font-size: 15px; }
  section { padding: 3.5rem 1.25rem; }
  header { padding: 1rem 1.25rem; }
  .big { font-size: 1.6rem; }
  .card-row { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .story-card:last-child:nth-child(odd) { max-width: 100%; }
}
