:root {
  --bg: #f6f1e7;
  --bg-alt: #ece2cf;
  --paper: #fffdf8;
  --ink: #1f1a14;
  --ink-soft: #6b5d4d;
  --accent: #4B2E83;        /* MHS purple */
  --accent-soft: #e8c8a0;   /* sun-faded peach (warm hero wash) */
  --gold: #FDB827;          /* MHS gold */
  --vhs-teal: #2e7b7c;      /* 90s yearbook teal */
  --shadow: 0 6px 24px rgba(40, 25, 10, 0.10);
  --radius: 14px;
  --max: 880px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(160deg, var(--accent-soft) 0%, var(--bg) 70%);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* faint VHS scanlines */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.03) 0,
    rgba(0,0,0,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}
.hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}

.tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 1.4rem 0 2rem;
}
.tagline .aka {
  font-style: italic;
  white-space: nowrap;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease;
  border-bottom: 3px solid var(--gold);
}
.cta:hover { transform: translateY(-1px); background: #3a226a; }

.mhs-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.mhs-tag::before,
.mhs-tag::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--gold);
}

.carry-on {
  display: block;
  margin-top: 0.4rem;
  font-style: italic;
  color: var(--accent);
  font-size: 0.85rem;
}
.carry-on .who {
  color: var(--ink-soft);
  font-style: normal;
  font-size: 0.78rem;
}

/* ===== Sections ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section.alt {
  max-width: none;
  background: var(--bg-alt);
}
.section.alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section h2 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 1.5rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.intro {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}

/* ===== Story ===== */
.story-stack {
  font-size: 1.18rem;
  line-height: 1.75;
}
.story-stack p { margin: 0 0 1.2rem; }
.story-stack p em {
  font-style: italic;
  color: var(--vhs-teal);
}
.story-kicker {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  margin-top: 2rem !important;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--accent-soft);
}

/* ===== Channels ===== */
.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.channel {
  background: var(--paper);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.channel-primary {
  background: linear-gradient(180deg, var(--paper) 0%, #fff7e8 100%);
  border: 2px solid var(--accent-soft);
}
.channel h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.big-link {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  word-break: break-word;
}
.big-link a { text-decoration: none; }
.big-link a:hover { text-decoration: underline; }
.hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.tbd-note {
  display: block;
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--vhs-teal);
}
.reassurance {
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  margin: 0;
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
  background: var(--paper);
}
.gallery a:hover { transform: translateY(-3px); }
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.placeholder-tile {
  aspect-ratio: 1 / 1;
  border: 2px dashed var(--accent-soft);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 12px,
      rgba(122, 59, 46, 0.04) 12px 24px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-style: italic;
}
.placeholder-label {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.status-note {
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ===== Prompts list ===== */
.prompts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.prompts li {
  background: var(--paper);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.prompts strong { color: var(--accent); }

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid var(--bg-alt);
}
footer p { margin: 0.3rem 0; }
footer .quiet { opacity: 0.7; font-size: 0.82rem; }

/* ===== Easter eggs ===== */

/* VHS tracking */
@keyframes vhs-jitter {
  0%,100% { transform: translate(0,0); }
  20%     { transform: translate(-1px, 1px); }
  40%     { transform: translate(1px, -2px); }
  60%     { transform: translate(-2px, 1px); }
  80%     { transform: translate(2px, 0); }
}
body.vhs-mode { animation: vhs-jitter 0.18s linear infinite; }
body.vhs-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.04) 0,
      rgba(255,255,255,0.04) 2px,
      rgba(0,0,0,0.10) 2px,
      rgba(0,0,0,0.10) 4px
    );
  mix-blend-mode: overlay;
}
body.vhs-mode::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 22vh;
  top: 30%;
  z-index: 9991;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.18) 30%,
    rgba(0,0,0,0.22) 60%,
    transparent 100%
  );
  filter: blur(2px);
  animation: vhs-band 1.6s linear infinite;
}
@keyframes vhs-band {
  0%   { transform: translateY(-80vh); }
  100% { transform: translateY(80vh); }
}

@keyframes banner-slam {
  0%   { transform: translate(-50%, -200%) scale(0.7); opacity: 0; }
  20%  { transform: translate(-50%, 0) scale(1.15);    opacity: 1; }
  35%  { transform: translate(-50%, 0) scale(1); }
  85%  { transform: translate(-50%, 0) scale(1);       opacity: 1; }
  100% { transform: translate(-50%, -200%) scale(0.7); opacity: 0; }
}
.vhs-banner {
  position: fixed;
  top: 18%;
  left: 50%;
  transform: translate(-50%, 0);
  background: var(--vhs-teal);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
  animation: banner-slam 2.6s ease-in-out forwards;
}

/* Goodwill — thrift tag rain */
@keyframes tag-fall {
  0%   { transform: translateY(-15vh) rotate(-15deg); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0; }
}
.egg-tag {
  position: fixed;
  top: 0;
  font-size: 2rem;
  z-index: 9996;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
  animation: tag-fall 3.2s cubic-bezier(.4,.05,.6,1) forwards;
}

/* Lisa hearts at cursor */
@keyframes heart-fly {
  0%   { transform: translate(0,0) scale(0.4); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.4); opacity: 0; }
}
.egg-heart {
  position: fixed;
  font-size: 1.4rem;
  color: #d04a3b;
  z-index: 9997;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: heart-fly 1.3s ease-out forwards;
}

/* Late-night */
body.late-night { filter: brightness(0.82) saturate(0.92); }
.late-night-banner {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 14, 8, 0.78);
  color: #f3ece0;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.03em;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.85;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero { padding: 4rem 1.2rem 3rem; }
  .section { padding: 3rem 1.2rem; }
  .tagline .aka { white-space: normal; display: block; margin-top: 0.3rem; }
  .story-stack { font-size: 1.05rem; }
}
