:root {
  --ink: #1b0e09;
  --brown: #4b2112;
  --mustard: #f5b51b;
  --cream: #fff0c7;
  --red: #ef3e24;
  --orange: #f57c20;
  --paper: #f9d97b;
  --shadow: 8px 8px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--mustard) url('backgrounds/would-phil-background.png') center top / auto 110vh fixed;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .17;
  background-image: radial-gradient(var(--ink) .65px, transparent .65px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--cream);
  border: 3px solid var(--ink);
  padding: .65rem 1rem;
  font-weight: 900;
}
.skip-link:focus { top: 1rem; }

.nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 240, 199, .94);
  border-bottom: 4px solid var(--ink);
  backdrop-filter: blur(8px);
}
.brand {
  text-decoration: none;
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  letter-spacing: -.03em;
  transform: rotate(-1deg);
}
.nav-links { display: flex; align-items: center; gap: .5rem; }
.nav-link {
  padding: .45rem .75rem;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  border: 2px solid transparent;
}
.nav-link:hover, .nav-link:focus-visible { border-color: var(--ink); background: var(--mustard); outline: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7rem clamp(1rem, 5vw, 5rem) 3rem;
  isolation: isolate;
  border-bottom: 8px solid var(--ink);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('social/banner-1500x500.png') center / cover no-repeat;
  filter: saturate(1.05) contrast(1.04);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,240,199,.97) 0%, rgba(255,240,199,.84) 42%, rgba(255,240,199,.08) 72%);
}
.hero-inner { width: min(1200px, 100%); }
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .4rem .75rem;
  background: var(--red);
  color: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  transform: rotate(-2deg);
}
h1, h2, h3 {
  margin: 0;
  font-family: Impact, 'Arial Black', Arial, sans-serif;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.035em;
}
h1 { max-width: 8ch; font-size: clamp(5.5rem, 15vw, 13rem); }
.question-mark { color: var(--red); text-shadow: 5px 5px 0 var(--ink); }
.ticker {
  display: inline-block;
  margin-top: 1rem;
  padding: .2rem .8rem;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Courier New', monospace;
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: .09em;
  transform: rotate(1deg);
}
.hero-copy { max-width: 35rem; margin: 1.5rem 0; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 800; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.retro-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: .8rem 1.2rem;
  color: var(--ink);
  background: var(--mustard);
  border: 4px solid var(--ink);
  border-radius: 46% 54% 45% 55% / 56% 42% 58% 44%;
  box-shadow: 7px 7px 0 var(--ink);
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transform: rotate(-1deg);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.retro-button:nth-child(2) { background: var(--red); color: var(--cream); transform: rotate(1deg); }
.retro-button:nth-child(3) { background: var(--cream); }
.retro-button:hover, .retro-button:focus-visible { transform: translate(4px, 4px) rotate(0); box-shadow: 3px 3px 0 var(--ink); outline: none; }
.retro-button:active { transform: translate(7px, 7px); box-shadow: 0 0 0 var(--ink); }

.section { position: relative; padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 5vw, 5rem); border-bottom: 8px solid var(--ink); }
.section-inner { width: min(1200px, 100%); margin: 0 auto; }
.cream-panel { background: rgba(255, 240, 199, .95); }
.red-panel { background: var(--red); color: var(--cream); }
.ink-panel { background: var(--ink); color: var(--cream); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.section-number { display: block; font: 900 1rem/1 'Courier New', monospace; letter-spacing: .18em; margin-bottom: 1rem; }
h2 { font-size: clamp(3.5rem, 8vw, 7.5rem); max-width: 10ch; }
h3 { font-size: clamp(2rem, 4vw, 3.6rem); }
.lead { font-size: clamp(1.15rem, 2.1vw, 1.55rem); font-weight: 800; max-width: 44rem; }
.quote {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 3rem);
  color: var(--ink);
  background: var(--mustard);
  border: 5px solid var(--ink);
  box-shadow: var(--shadow);
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  transform: rotate(1deg);
}
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.method-card {
  min-height: 15rem;
  padding: 1.5rem;
  background: var(--cream);
  color: var(--ink);
  border: 5px solid var(--ink);
  box-shadow: var(--shadow);
}
.method-card:nth-child(2) { background: var(--mustard); transform: translateY(1.5rem) rotate(1deg); }
.method-card:nth-child(3) { background: var(--orange); transform: rotate(-1deg); }
.method-card b { display: block; margin-bottom: 1rem; font: 900 4rem/1 Impact, 'Arial Black', sans-serif; }

.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.decision {
  position: relative;
  min-height: 32rem;
  overflow: hidden;
  border: 5px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--mustard);
}
.decision img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.decision:hover img { transform: scale(1.035); }
.decision figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: rgba(27, 14, 9, .92);
  color: var(--cream);
  font-weight: 900;
  text-transform: uppercase;
}
.decision:nth-child(2) { transform: translateY(2rem); }

.finale { min-height: 78svh; display: grid; place-items: center; text-align: center; }
.finale h2 { margin-inline: auto; max-width: 12ch; }
.finale .actions { justify-content: center; margin-top: 2rem; }
footer {
  padding: 1.5rem clamp(1rem, 5vw, 5rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--cream);
  border-top: 4px solid var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}
.toast {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: 1rem;
  max-width: calc(100vw - 2rem);
  padding: 1rem 1.25rem;
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 900;
  transform: translateY(8rem) rotate(2deg);
  transition: transform .25s ease;
}
.toast.show { transform: translateY(0) rotate(2deg); }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].visible { opacity: 1; transform: translateY(0); }

.lore-hero { min-height: 72svh; }
.timeline { margin-top: 3rem; display: grid; gap: 1.25rem; }
.timeline article {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 4px solid var(--ink);
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--ink);
}
.timeline time { font: 900 2.2rem/1 Impact, 'Arial Black', sans-serif; color: var(--red); }
.code-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.code-list li { padding: 1rem 1.25rem; background: var(--cream); color: var(--ink); border: 4px solid var(--ink); font-weight: 900; font-size: 1.15rem; }

@media (max-width: 820px) {
  .nav-link.hide-mobile { display: none; }
  .hero { min-height: 92svh; align-items: end; }
  .hero::before { background-position: 63% center; }
  .hero::after { background: linear-gradient(0deg, rgba(255,240,199,.98) 0%, rgba(255,240,199,.8) 48%, rgba(255,240,199,.05) 80%); }
  h1 { font-size: clamp(4.5rem, 23vw, 8rem); }
  .split, .method, .decision-grid { grid-template-columns: 1fr; }
  .method-card:nth-child(2), .decision:nth-child(2) { transform: none; }
  .decision { min-height: 27rem; }
  .timeline article { grid-template-columns: 1fr; gap: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
