@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Roboto+Slab:wght@400;600;700&family=Rye&family=Special+Elite&display=swap');

:root {
  --ink: #102f50;
  --red: #8f2d22;
  --red-dark: #541a17;
  --gold: #b8792e;
  --paper: #f2dda9;
  --paper-light: #fff0cc;
  --cream: #fff5dc;
  --line: #c99d59;
  --bulb: #fff4a6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #3b1211;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 17px;
  line-height: 1.62;
}

.site-frame {
  position: relative;
  width: min(100%, 1500px);
  min-height: 100vh;
  margin: 0 auto;
  padding-inline: 34px;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(108, 68, 33, .18) .7px, transparent .8px),
    linear-gradient(90deg, rgba(255,255,255,.16), transparent 28%, rgba(92,42,24,.04) 70%, transparent);
  background-size: 5px 5px, 100% 100%;
  box-shadow: 0 0 38px rgba(0, 0, 0, .65);
}

.site-frame::before,
.site-frame::after {
  content: "";
  position: absolute;
  z-index: 50;
  top: 0;
  bottom: 0;
  width: 34px;
  pointer-events: none;
  background-color: var(--red);
  background-image: radial-gradient(circle, #fffbd1 0 3px, #ffd44e 4px 6px, #b94420 7px 8px, transparent 9px);
  background-position: center 8px;
  background-repeat: repeat-y;
  background-size: 34px 48px;
  box-shadow: inset 0 0 0 4px var(--red-dark), inset 0 0 11px rgba(255, 197, 72, .45);
}

.site-frame::before { left: 0; }
.site-frame::after { right: 0; }
.container { width: min(1120px, calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 99; padding: 10px; background: var(--paper); color: var(--ink); }
.skip-link:focus { left: 42px; }

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 34%, rgba(255, 247, 213, .72), transparent 31%),
    linear-gradient(135deg, #f9e9bd 0%, var(--paper) 56%, #e9c881 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(#8f5e35 .75px, transparent .9px);
  background-size: 5px 5px;
}

.lights {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.lights-top {
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background-color: var(--red);
  background-image: radial-gradient(circle, #fffbd1 0 4px, #ffd44e 5px 7px, #b94420 8px 9px, transparent 10px);
  background-repeat: repeat-x;
  background-position: 8px center;
  background-size: 54px 38px;
  box-shadow: inset 0 -4px 0 var(--red-dark), inset 0 4px 0 var(--red-dark), 0 5px 12px rgba(89, 29, 18, .23);
}

.nav {
  position: relative;
  z-index: 4;
  min-height: 112px;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(143, 45, 34, .35);
}

.wordmark {
  color: var(--red);
  font-family: Rye, Georgia, serif;
  font-size: 1.65rem;
  letter-spacing: .045em;
  text-decoration: none;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  font-family: "DM Mono", monospace;
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 675px;
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  gap: clamp(44px, 7vw, 94px);
  align-items: center;
}

.hero-copy { padding: 52px 0 70px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font: 700 .72rem/1.4 "DM Mono", monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.circus-name {
  margin: 0 0 12px;
  color: var(--red);
  font: clamp(2.1rem, 3.5vw, 3.6rem)/1 Rye, Georgia, serif;
  letter-spacing: .04em;
  text-shadow: 2px 2px 0 #f4c662;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font: clamp(4.8rem, 7vw, 7.5rem)/.88 Rye, Georgia, serif;
  letter-spacing: -.025em;
  -webkit-text-stroke: 1px var(--gold);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--red), 5px 5px 0 var(--red-dark), 8px 8px 0 rgba(84, 26, 23, .14);
}

.hero-punchline {
  position: relative;
  z-index: 5;
  display: inline-block;
  margin: 4px 0 26px 34px;
  padding: 15px 24px 13px;
  color: var(--cream);
  background: linear-gradient(145deg, #a43829, var(--red));
  border: 2px solid var(--red-dark);
  box-shadow: 7px 8px 0 rgba(84, 26, 23, .22);
  font: clamp(2rem, 3.25vw, 3.55rem)/.96 Rye, Georgia, serif;
  letter-spacing: .015em;
  text-shadow: none;
  transform: rotate(-2.2deg);
}

.hero-punchline::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 78px;
  height: 19px;
  background: rgba(230, 197, 130, .78);
  box-shadow: 0 1px 2px rgba(58, 28, 18, .18);
  transform: translateX(-50%) rotate(1.5deg);
}

.hero-punchline strong { display: block; color: #ffd77a; font-weight: inherit; }
.hero-text { max-width: 440px; margin: 0 0 22px; font-size: 1.05rem; }
.date-card {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin-bottom: 28px;
  color: var(--ink);
  font: 500 .75rem "DM Mono", monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.date-card strong { color: var(--red); font-size: 1.35rem; }
.button {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border: 2px solid var(--red-dark);
  color: var(--cream);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--gold);
  font: 500 .73rem "DM Mono", monospace;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.button:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--gold); background: #1d4c75; }
.button span { font-size: 1.2rem; }

.headless-poster {
  position: relative;
  width: min(100%, 570px);
  margin: 50px 0 46px auto;
  transform: rotate(1.1deg);
}

.poster-window {
  position: relative;
  aspect-ratio: 1.42;
  overflow: hidden;
  border: 13px solid var(--red-dark);
  outline: 3px solid var(--gold);
  outline-offset: 7px;
  background: var(--cream);
  box-shadow: 14px 16px 0 rgba(84, 26, 23, .18);
}

.poster-window img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-55%);
}

.headless-photo .poster-window {
  aspect-ratio: 1447 / 1087;
}

.headless-photo .poster-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.headless-poster figcaption {
  position: relative;
  width: 86%;
  margin: -2px auto 0;
  padding: 13px 18px 11px;
  color: var(--cream);
  background: var(--red);
  border: 3px solid var(--red-dark);
  box-shadow: 0 5px 0 var(--gold);
  text-align: center;
  font-family: "Special Elite", Georgia, serif;
  font-size: .9rem;
  transform: rotate(-1.1deg);
}

.headless-poster figcaption span { display: block; color: #ffd77a; font: 1.1rem Rye, Georgia, serif; }
.curtain-edge {
  position: absolute;
  z-index: 3;
  bottom: -1px;
  width: 100%;
  height: 20px;
  background: var(--red);
  clip-path: polygon(0 35%, 2.5% 75%, 5% 35%, 7.5% 75%, 10% 35%, 12.5% 75%, 15% 35%, 17.5% 75%, 20% 35%, 22.5% 75%, 25% 35%, 27.5% 75%, 30% 35%, 32.5% 75%, 35% 35%, 37.5% 75%, 40% 35%, 42.5% 75%, 45% 35%, 47.5% 75%, 50% 35%, 52.5% 75%, 55% 35%, 57.5% 75%, 60% 35%, 62.5% 75%, 65% 35%, 67.5% 75%, 70% 35%, 72.5% 75%, 75% 35%, 77.5% 75%, 80% 35%, 82.5% 75%, 85% 35%, 87.5% 75%, 90% 35%, 92.5% 75%, 95% 35%, 97.5% 75%, 100% 35%, 100% 100%, 0 100%);
}

.section { padding: 106px 0; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.section h2 {
  margin: 0;
  color: var(--red);
  font: clamp(2.7rem, 4.6vw, 4.6rem)/1.04 Rye, Georgia, serif;
  letter-spacing: 0;
}

.intro-text { max-width: 500px; padding-top: 13px; }
.intro-text p:first-child { margin-top: 0; font-size: 1.2rem; }

.details-section { padding: 0 0 74px; background: transparent; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 13px;
  border: 4px solid var(--red-dark);
  outline: 2px solid var(--gold);
  outline-offset: 5px;
  background: var(--red);
  box-shadow: 10px 12px 0 rgba(84, 26, 23, .14);
}

.detail-card {
  min-height: 220px;
  padding: 27px 30px 24px;
  border: 1px solid rgba(184, 121, 46, .5);
  color: var(--ink);
  background: var(--paper-light);
}

.detail-icon { color: var(--red); font-size: 2rem; }
.card-label { margin: 8px 0 4px; color: var(--gold); font: 700 .7rem "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.detail-card h3 { margin: 0; color: var(--red); font: 1.55rem/1.08 Rye, Georgia, serif; }
.detail-card p:last-child { margin-bottom: 0; color: var(--ink); font-size: .87rem; }

.route { padding-top: 104px; padding-bottom: 82px; background: rgba(255, 239, 199, .42); border-top: 1px solid rgba(143, 45, 34, .18); }
.route-heading { max-width: 700px; text-align: center; }
.route-heading > p:last-child { max-width: 570px; margin: 20px auto 50px; }
.route-map-wrap {
  border: 9px solid var(--red-dark);
  outline: 2px solid var(--gold);
  outline-offset: 7px;
  background: #f9efd9;
  box-shadow: 0 10px 28px rgba(56, 28, 19, .2);
}

.route-map { display: block; width: 100%; }
.map-line { fill: none; stroke: #132d4b; stroke-width: 23; stroke-linecap: round; }
.map-dash { fill: none; stroke: #bc7830; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 2 25; }
.route-pin circle { fill: var(--red); stroke: #f5d17b; stroke-width: 5; }
.route-pin text { fill: #fff6e0; font: 700 10px "DM Mono", monospace; text-anchor: middle; }
.street-labels text { fill: #182e48; font: 700 13px "DM Mono", monospace; }
.map-stars text { fill: #b77d32; font-size: 30px; }
.route-notes { margin-top: 38px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.route-notes div { padding-left: 13px; border-left: 3px solid var(--red); }
.route-notes b, .route-notes span { display: block; }
.route-notes b { color: var(--red); font: 1rem Rye, Georgia, serif; }
.route-notes span { font-size: .83rem; }
.full-route { margin-top: 42px; padding: 18px 22px; border: 1px solid var(--line); background: var(--paper-light); }
.full-route summary { cursor: pointer; color: var(--red); font: 1.1rem Rye, Georgia, serif; }
.full-route ol { margin: 20px 0 0 18px; padding: 0 0 0 14px; columns: 2; column-gap: 48px; font-size: .9rem; }
.full-route li { break-inside: avoid; margin: 0 0 10px; padding-left: 4px; }

.poster-section { padding: 110px 0; color: var(--ink); background: transparent; }
.poster-layout { display: grid; grid-template-columns: 360px 1fr; align-items: center; justify-content: center; gap: min(11vw, 145px); }
.poster-layout > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 847 / 1200;
  object-fit: contain;
  border: 7px solid var(--red-dark);
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  box-shadow: 14px 16px 0 rgba(84, 26, 23, .18);
}

.poster-copy {
  position: relative;
  padding: clamp(35px, 5vw, 64px);
  color: var(--cream);
  background: linear-gradient(145deg, #982f23, #6f211b);
  border: 6px solid var(--red-dark);
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  box-shadow: 12px 14px 0 rgba(84, 26, 23, .15);
}

.poster-copy::before,
.poster-copy::after {
  content: "✦";
  position: absolute;
  color: #ffd478;
  font-size: 1.7rem;
}

.poster-copy::before { top: 15px; left: 18px; }
.poster-copy::after { right: 18px; bottom: 12px; }
.poster-copy .eyebrow { color: #f6ca75; }
.poster-copy h2 { margin: 0; color: var(--cream); font: clamp(2.8rem, 4.6vw, 4.7rem)/1.02 Rye, Georgia, serif; letter-spacing: 0; }
.poster-copy > p:not(.eyebrow) { max-width: 450px; margin: 28px 0; font-size: 1.07rem; }
.button-outline { background: transparent; border-color: var(--cream); box-shadow: 5px 5px 0 #d79d44; }
.button-outline:hover { background: var(--red-dark); }

footer { padding: 28px 0; color: var(--cream); background: var(--ink); border-top: 5px solid var(--red); }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-content p { margin: 0; font-size: .75rem; }
.footer-content .wordmark { color: var(--cream); font-size: 1.3rem; }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { max-width: 680px; padding-bottom: 22px; }
  .headless-poster { width: min(92%, 650px); margin: 26px auto 90px; }
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .details-grid { grid-template-columns: 1fr; }
  .detail-card { min-height: 0; }
  .poster-layout { grid-template-columns: minmax(240px, 330px) 1fr; gap: 62px; }
}

@media (max-width: 700px) {
  .site-frame { padding-inline: 18px; }
  .site-frame::before,
  .site-frame::after { width: 18px; background-size: 18px 37px; background-image: radial-gradient(circle, #fffbd1 0 2px, #ffd44e 3px 4px, #b94420 5px 6px, transparent 7px); box-shadow: inset 0 0 0 2px var(--red-dark); }
  .container { width: min(1120px, calc(100% - 26px)); }
  .lights-top { height: 32px; background-size: 43px 32px; background-image: radial-gradient(circle, #fffbd1 0 3px, #ffd44e 4px 6px, #b94420 7px 8px, transparent 9px); }
  .nav { min-height: 92px; padding-top: 27px; }
  .wordmark { font-size: 1.35rem; }
  .hero { min-height: auto; }
  .hero-copy { padding: 50px 0 20px; }
  .hero h1 { font-size: clamp(4rem, 20vw, 6.6rem); }
  .hero-punchline { margin-left: 10px; padding: 14px 18px 12px; font-size: clamp(2.15rem, 10.5vw, 3.7rem); }
  .headless-poster { width: 92%; margin-bottom: 76px; }
  .poster-window { border-width: 8px; outline-offset: 4px; aspect-ratio: 1.42; }
  .poster-window img { transform: translateY(-50%); }
  .headless-poster figcaption { width: 100%; font-size: .78rem; }
  .headless-poster figcaption span { font-size: .95rem; }
  .section { padding: 76px 0; }
  .details-section { padding-bottom: 62px; }
  .details-grid { padding: 8px; outline-offset: 3px; }
  .detail-card { padding: 24px; }
  .route { padding-top: 74px; }
  .route-notes { grid-template-columns: 1fr 1fr; }
  .route-map-wrap { border-width: 5px; outline-offset: 4px; overflow: hidden; }
  .route-map { width: 100%; max-width: none; transform: none; }
  .street-labels { display: none; }
  .route-pin text { font-size: 16px; }
  .full-route ol { columns: 1; }
  .poster-section { padding: 78px 0; }
  .poster-layout { grid-template-columns: 1fr; gap: 62px; max-width: 440px; }
  .poster-layout > img { width: 86%; margin: auto; }
  .poster-copy { padding: 40px 28px; }
  .footer-content { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 3.85rem; }
  .circus-name { font-size: 2.1rem; }
  .date-card { display: grid; grid-template-columns: auto 1fr; }
  .date-card strong { grid-row: span 2; }
  .route-notes { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 3.1rem;
    text-shadow: 2px 2px 0 var(--red), 4px 4px 0 var(--red-dark), 6px 6px 0 rgba(84, 26, 23, .14);
  }

  .hero-punchline {
    max-width: 100%;
    margin-left: 3px;
    padding: 12px 14px 10px;
    font-size: 1.82rem;
    transform: rotate(-1.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
