:root {
  --ink: #241928;
  --paper: #fffaf0;
  --paper-deep: #f1e7d4;
  --violet: #682d86;
  --pink: #d72f75;
  --orange: #ed6a3a;
  --gold: #f2c94c;
  --green: #31966a;
  --blue: #3574a8;
  --line: 3px solid var(--ink);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(36,25,40,.075) .7px, transparent .7px);
  background-size: 6px 6px;
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a { color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink); }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 99; padding: .5rem .8rem; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.status-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  padding: .45rem 1rem;
  color: white;
  background: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-header { background: var(--paper); border-bottom: var(--line); }
.header-ribbons { display: grid; grid-template-columns: repeat(6, 1fr); height: 12px; }
.header-ribbons i:nth-child(1) { background: var(--pink); }
.header-ribbons i:nth-child(2) { background: var(--orange); }
.header-ribbons i:nth-child(3) { background: var(--gold); }
.header-ribbons i:nth-child(4) { background: var(--green); }
.header-ribbons i:nth-child(5) { background: var(--blue); }
.header-ribbons i:nth-child(6) { background: var(--violet); }

.masthead {
  width: min(var(--content), calc(100% - 2rem));
  min-width: 0;
  margin: 0 auto;
  padding: 1.8rem 0 1.4rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark { display: inline-flex; min-width: 0; color: var(--ink); flex-direction: column; text-decoration: none; transform: rotate(-1deg); }
.wordmark:hover { color: var(--ink); }
.wordmark-small { margin: 0 0 -.55rem .28rem; color: var(--pink); font-weight: 700; font-size: clamp(1.05rem, 3vw, 1.75rem); letter-spacing: .08em; text-transform: uppercase; }
.wordmark-large { font-family: "Fugaz One", Impact, sans-serif; font-size: clamp(3.2rem, 11vw, 7.4rem); line-height: .95; letter-spacing: -.055em; text-shadow: 4px 4px 0 var(--gold); }
.wordmark-year { align-self: end; padding: .12rem .45rem; color: white; background: var(--violet); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.masthead-note { margin: 0 0 .3rem; max-width: 260px; padding: .8rem 1rem; border: 2px solid var(--ink); background: var(--gold); font-weight: 700; line-height: 1.25; transform: rotate(2deg); box-shadow: 5px 5px 0 var(--pink); }

.primary-nav {
  width: min(var(--content), calc(100% - 2rem));
  min-width: 0;
  margin: 0 auto -3px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .35rem;
}
.nav-chip { flex: 1 1 auto; min-width: 0; padding: .72rem .85rem; border: var(--line); color: var(--ink); font-weight: 700; line-height: 1.1; text-align: center; text-decoration: none; text-transform: uppercase; }
.nav-chip:hover, .nav-chip[aria-current="page"] { color: white; background: var(--ink); }
.chip-1 { background: #f5a7c7; } .chip-2 { background: #f7a076; } .chip-3 { background: #f6d96d; } .chip-4 { background: #82c8a8; } .chip-5 { background: #94bddc; }

main { overflow: hidden; }
.page-intro { position: relative; width: min(var(--content), calc(100% - 2rem)); min-width: 0; margin: 2.5rem auto 0; }
.page-intro:has(.story-image)::before { content: ""; position: absolute; inset: -1.2rem -100vw 35% 55%; z-index: 0; background: var(--pink); transform: rotate(-2deg); }
.intro-stamp { position: relative; z-index: 3; width: max-content; max-width: 90%; display: flex; align-items: stretch; margin: 0 0 -1rem 3%; border: var(--line); background: var(--ink); color: white; transform: rotate(-2deg); }
.intro-stamp span { padding: .45rem .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.intro-stamp b { padding: .35rem .65rem; color: var(--ink); background: var(--gold); font-family: "Fugaz One", Impact, sans-serif; font-size: 1.15rem; }
.story-image { position: relative; z-index: 1; margin: 0; border: var(--line); background: var(--ink); box-shadow: 12px 12px 0 var(--violet); transform: rotate(.35deg); }
.story-image img { display: block; width: 100%; height: auto; max-height: 650px; object-fit: cover; }
.story-image figcaption { padding: .55rem .8rem; color: white; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.image-tape { position: absolute; top: -14px; right: 7%; z-index: 4; width: 125px; height: 30px; background: rgba(242,201,76,.88); transform: rotate(3deg); }

.article-shell { width: min(1040px, calc(100% - 2rem)); min-width: 0; margin: 3.2rem auto 4rem; display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.margin-note { position: sticky; top: 1rem; padding: 1.1rem; border: var(--line); background: #f5a7c7; box-shadow: 6px 6px 0 var(--ink); transform: rotate(-1.5deg); font-size: .9rem; line-height: 1.35; }
.margin-note-label { display: block; margin-bottom: .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.margin-note strong { display: block; margin-bottom: .5rem; font-family: "Fugaz One", Impact, sans-serif; font-size: 1.1rem; }
.margin-note p { margin: 0; }
.story-content { min-width: 0; }
.story-content h1, .story-content h2, .error-page h1 { font-family: "Fugaz One", Impact, sans-serif; color: var(--ink); letter-spacing: -.035em; }
.story-content h1 { position: relative; margin: 0 0 1.8rem; font-size: clamp(2.55rem, 7vw, 5.6rem); line-height: .98; }
.story-content h1::after { content: ""; display: block; width: min(260px, 70%); height: 9px; margin-top: .65rem; background: linear-gradient(90deg, var(--pink) 0 20%, var(--orange) 20% 40%, var(--gold) 40% 60%, var(--green) 60% 80%, var(--violet) 80%); transform: rotate(-1deg); }
.story-content h2 { margin: 2.5rem 0 .7rem; font-size: clamp(1.5rem, 4vw, 2.35rem); line-height: 1.15; }
.story-content p { margin: 0 0 1.15rem; }
.story-content p:first-of-type { font-size: 1.22rem; line-height: 1.55; }
.story-content em { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 5px; text-underline-offset: 1px; }
.story-content a { font-weight: 700; }

.next-poster { padding: 3.5rem max(1rem, calc((100% - var(--content)) / 2)); border-block: var(--line); background: var(--violet); color: white; transform: rotate(-.5deg); }
.next-poster > p { margin: 0 0 1.1rem; font-family: "Fugaz One", Impact, sans-serif; font-size: clamp(1.5rem, 4vw, 2.5rem); }
.next-links { display: flex; min-width: 0; flex-wrap: wrap; gap: .8rem; }
.next-links a { flex: 1 1 230px; min-width: 0; padding: 1rem; border: var(--line); color: var(--ink); background: var(--gold); font-weight: 700; text-decoration: none; box-shadow: 5px 5px 0 var(--ink); }
.next-links a:nth-child(2) { background: #82c8a8; }
.next-links a:nth-child(3) { background: #f5a7c7; }
.next-links a:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

.site-footer { display: grid; grid-template-columns: .85fr 1.5fr 1fr; gap: 2.5rem; padding: 3.5rem max(1rem, calc((100% - var(--content)) / 2)); color: white; background: var(--ink); }
.footer-mark { color: var(--pink); font-weight: 700; letter-spacing: .08em; line-height: 1; }
.footer-mark strong { color: white; font-family: "Fugaz One", Impact, sans-serif; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.04em; }
.footer-heading { margin: 0 0 .7rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.footer-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: white; }
.footer-note p { margin: 0 0 .75rem; }

.error-page { width: min(800px, calc(100% - 2rem)); margin: 4rem auto; }
.error-number { margin: 0; color: var(--pink); font-family: "Fugaz One", Impact, sans-serif; font-size: clamp(6rem, 28vw, 14rem); line-height: .75; text-shadow: 8px 8px 0 var(--gold); }
.error-page h1 { margin: 2rem 0 1rem; font-size: clamp(2rem, 7vw, 4rem); }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .masthead { align-items: start; flex-direction: column; gap: .7rem; }
  .masthead-note { align-self: end; }
  .nav-chip { flex-basis: calc(50% - .35rem); }
  .article-shell { grid-template-columns: 1fr; gap: 1.5rem; }
  .margin-note { position: static; width: min(360px, 92%); }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .status-strip { justify-content: start; font-size: .68rem; }
  .masthead { width: min(100% - 1rem, var(--content)); }
  .wordmark-large { font-size: clamp(3rem, 22vw, 5rem); }
  .primary-nav { width: calc(100% - 1rem); gap: .25rem; }
  .nav-chip { flex-basis: 100%; text-align: left; }
  .page-intro, .article-shell { width: calc(100% - 1rem); }
  .story-image { box-shadow: 6px 7px 0 var(--violet); }
  .footer-map { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
