:root {
  --bg: #1c2419;
  --bg-elevated: #263021;
  --surface: #333d2b;
  --accent: #d4ff00;
  --accent2: #7cfc00;
  --mint: #49dd7f;
  --cta: #f9cc14;
  --text: #f5fbe8;
  --muted: #9caf88;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1000;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  border-bottom: 2px solid var(--accent);
}

.masthead__tag {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--bg);
  background: var(--accent);
  padding: 0.35rem 0.65rem;
  transform: rotate(-2deg);
}

.masthead__nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.masthead__nav a {
  color: var(--muted);
}

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

.hero-spread {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  padding: 3rem clamp(1rem, 4vw, 3rem) 2rem;
  align-items: center;
}

.hero-spread__icon {
  border-radius: 18px;
  margin-bottom: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.hero-spread__kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.5rem;
}

.hero-spread h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: var(--accent);
}

.hero-spread__tagline {
  font-size: 1.15rem;
  max-width: 28ch;
  margin: 0 0 1.25rem;
}

.hero-spread__coords {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mint);
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: var(--bg-elevated);
  display: inline-block;
  border-left: 3px solid var(--accent2);
}

.hero-spread__visual {
  margin: 0;
  position: relative;
}

.hero-spread__visual img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(212, 255, 0, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.hero-spread__caption {
  position: absolute;
  bottom: -0.75rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--surface);
  color: var(--text);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--muted);
}

.timeline-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2rem clamp(1rem, 3vw, 2rem) 3rem;
  flex-wrap: wrap;
}

.timeline-rail__node {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.timeline-rail__node--alive {
  background: var(--accent);
  color: var(--bg);
}

.timeline-rail__node--fade {
  background: var(--cta);
  color: var(--bg);
}

.timeline-rail__node--buff {
  background: var(--mint);
  color: var(--bg);
}

.timeline-rail__node--gone {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--muted);
}

.timeline-rail__line {
  width: clamp(2rem, 8vw, 4rem);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--muted));
  opacity: 0.6;
}

.field-notes {
  padding: 2rem clamp(1rem, 4vw, 3rem) 3rem;
  background: linear-gradient(180deg, transparent, rgba(38, 48, 33, 0.6));
}

.field-notes h2,
.polaroid-wall h2,
.legal-block h2 {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  color: var(--accent2);
}

.field-notes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.note-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(156, 175, 135, 0.25);
  padding: 1.25rem 1.35rem;
  transform: rotate(-0.6deg);
}

.note-card:nth-child(2) {
  transform: rotate(0.8deg);
  margin-top: 0.5rem;
}

.note-card:nth-child(3) {
  transform: rotate(-0.3deg);
}

.note-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent);
}

.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.polaroid-wall {
  padding: 2rem clamp(1rem, 4vw, 3rem) 4rem;
}

.polaroid-wall__intro {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

.polaroid-wall__strip {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.polaroid {
  margin: 0;
  background: #f5f0e0;
  padding: 0.65rem 0.65rem 2.2rem;
  width: min(220px, 42vw);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

.polaroid figcaption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #2a2a22;
  text-align: center;
  margin-top: 0.65rem;
}

.polaroid--a {
  transform: rotate(-4deg) translateY(12px);
}

.polaroid--b {
  transform: rotate(2deg) scale(1.05);
  z-index: 1;
}

.polaroid--c {
  transform: rotate(-1.5deg) translateY(20px);
}

.texture-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.texture-band img {
  border-radius: 6px;
  height: 160px;
  object-fit: cover;
  opacity: 0.85;
  border: 1px solid rgba(212, 255, 0, 0.15);
}

.legal-block {
  padding: 3rem clamp(1rem, 4vw, 3rem);
  max-width: 720px;
  border-top: 1px solid rgba(156, 175, 135, 0.2);
}

.legal-block p {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-block--support {
  padding-top: 1.5rem;
}

.support-link {
  font-family: var(--font-mono);
  font-size: 1rem;
}

.site-foot {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(156, 175, 135, 0.15);
}

@media (max-width: 820px) {
  .hero-spread {
    grid-template-columns: 1fr;
  }

  .hero-spread__visual {
    order: -1;
  }

  .masthead__nav {
    gap: 0.75rem;
    font-size: 0.8rem;
  }

  .timeline-rail__line {
    display: none;
  }

  .timeline-rail {
    gap: 0.5rem;
  }
}
