:root {
  --sky: #a6dedc;
  --ink: #27557a;
  --cream: #fff8e8;
  --paper: #f3e7cf;
  --red: #ef3e4d;
  --green: #68b72d;
  --yellow: #ffd326;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: #172b35; font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 120px 24px 80px;
  text-align: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 78%, rgba(255,255,255,.45) 0 4px, transparent 5px),
    radial-gradient(circle at 88% 28%, rgba(255,255,255,.35) 0 5px, transparent 6px),
    linear-gradient(150deg, #bde8e1 0%, var(--sky) 56%, #8fd4dc 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 34px;
  background: var(--cream);
  clip-path: polygon(0 55%, 4% 34%, 8% 68%, 13% 42%, 18% 65%, 24% 30%, 31% 60%, 37% 40%, 43% 72%, 49% 35%, 56% 60%, 63% 28%, 71% 62%, 78% 40%, 85% 70%, 92% 35%, 100% 58%, 100% 100%, 0 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 920px; }
.eyebrow, .kicker { font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: inline-block; margin: 0 0 28px; padding: 10px 16px; background: rgba(255,255,255,.72); border: 2px solid var(--ink); border-radius: 99px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(4rem, 11vw, 8.5rem); line-height: .84; letter-spacing: -.07em; text-shadow: 4px 5px 0 rgba(255,255,255,.72); }
h1 span { display: block; color: var(--red); font-family: Arial, Helvetica, sans-serif; font-size: .55em; letter-spacing: .12em; line-height: 1.1; text-transform: uppercase; text-shadow: 3px 3px 0 #fff; }
.hero-copy { margin: 0 auto 30px; max-width: 650px; font-size: clamp(1.05rem, 2.5vw, 1.35rem); font-weight: 700; line-height: 1.5; }
.hero-link { display: inline-flex; gap: 12px; align-items: center; padding: 15px 22px; color: white; background: var(--ink); border-radius: 8px; font-weight: 900; text-decoration: none; box-shadow: 5px 5px 0 rgba(255,255,255,.85); }

.bunting { position: absolute; z-index: 2; top: 0; left: -1%; width: 102%; display: flex; filter: drop-shadow(0 9px 0 rgba(39,85,122,.12)); }
.bunting::before { content: ""; position: absolute; top: 25px; left: 0; right: 0; height: 4px; background: var(--ink); transform: rotate(-.3deg); }
.bunting span { flex: 1; min-width: 70px; height: 110px; clip-path: polygon(7% 20%, 93% 20%, 50% 100%); }
.bunting span:nth-child(3n + 1) { background: var(--red); }
.bunting span:nth-child(3n + 2) { background: var(--yellow); }
.bunting span:nth-child(3n) { background: var(--green); }

.info-section, .history-section { padding: 90px max(24px, calc((100vw - 1240px) / 2)); }
.section-heading { max-width: 700px; margin-bottom: 44px; }
.kicker { margin-bottom: 12px; color: var(--red); }
h2 { margin-bottom: 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 4.1rem); line-height: 1.02; letter-spacing: -.04em; }
.section-heading > p:last-child, .history-heading > p:last-child { color: #5a645f; font-size: 1.08rem; line-height: 1.6; }

.document-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.document-card { overflow: hidden; background: white; border: 2px solid var(--ink); border-radius: 15px; box-shadow: 7px 8px 0 var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.document-card:hover { transform: translate(-2px, -3px); box-shadow: 10px 12px 0 var(--ink); }
.document-card > a { display: flex; height: 100%; flex-direction: column; text-decoration: none; }
.poster-frame { overflow: hidden; aspect-ratio: 3 / 4; background: var(--sky); border-bottom: 2px solid var(--ink); }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s ease; }
.document-card:hover .poster-frame img { transform: scale(1.025); }
.document-copy { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 20px; }
.document-copy h3 { margin-bottom: 7px; font-size: 1.18rem; color: var(--ink); }
.document-copy p { margin: 0; color: #647078; font-size: .91rem; line-height: 1.45; }
.open-pill { align-self: flex-start; padding: 8px 11px; background: #e7f5f3; border-radius: 99px; color: var(--ink); font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

.history-section { color: #332c23; background: var(--paper); border-top: 1px solid #d7c6aa; }
.history-heading { max-width: 920px; margin-bottom: 46px; }
.history-heading .kicker { color: #875a31; }
.archive-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.archive-image { position: relative; overflow: hidden; min-height: 300px; background: #d5c5a9; border: 8px solid white; box-shadow: 0 8px 22px rgba(62,44,24,.17); text-decoration: none; transform: rotate(-.5deg); }
.archive-image:nth-child(even) { transform: rotate(.6deg); }
.archive-image img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.14) contrast(1.03); transition: transform .35s ease, filter .35s ease; }
.archive-image:hover img { transform: scale(1.025); filter: sepia(0) contrast(1); }
.archive-image span { position: absolute; right: 11px; bottom: 11px; padding: 7px 10px; background: rgba(255,255,255,.9); font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; opacity: 0; transform: translateY(4px); transition: .2s ease; }
.archive-image:hover span { opacity: 1; transform: translateY(0); }
.archive-1 { grid-column: span 4; grid-row: span 2; }
.archive-2 { grid-column: span 8; }
.archive-3, .archive-4 { grid-column: span 4; }
.archive-5, .archive-6 { grid-column: span 6; }

footer { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 32px 20px; color: white; background: var(--ink); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
footer p { margin: 0; }
.footer-flower { color: var(--yellow); font-size: 1.4rem; }

@media (max-width: 920px) {
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-1, .archive-3, .archive-4 { grid-column: span 6; }
  .archive-2 { grid-column: span 12; }
}

@media (max-width: 620px) {
  .hero { min-height: 540px; padding-top: 110px; }
  .bunting { width: 160%; left: -30%; }
  h1 { font-size: clamp(4rem, 21vw, 6rem); }
  .info-section, .history-section { padding: 70px 20px; }
  .section-heading, .history-heading { margin-bottom: 30px; }
  .document-grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 8px 18px 2px; margin-right: -20px; scrollbar-width: thin; }
  .document-card { flex: 0 0 82vw; max-width: 340px; scroll-snap-align: start; box-shadow: 5px 6px 0 var(--ink); }
  .archive-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -20px; padding: 8px 8px 22px 2px; }
  .archive-image { flex: 0 0 84vw; height: 380px; min-height: 0; scroll-snap-align: start; }
  .archive-image span { opacity: 1; transform: none; }
}

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