@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --paper: #fff8f1;
  --ink: #4e252a;
  --dark: #661e1d;
  --cream: #fff0d1;
  --accent: #f8bd45;
  --line: #e8d8d0;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #287bb3; outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; z-index: 5; padding: .6rem 1rem; background: white; }
.skip:focus { top: 8px; }
.header { background: #fffdf8; }
.bar { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { object-fit: contain; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; font-weight: 700; }
nav > a, summary { padding: 9px 0; white-space: nowrap; text-decoration: none; }
nav > a:hover, summary:hover { text-decoration: underline; text-underline-offset: 4px; }
details { position: relative; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "⌄"; margin-left: 6px; }
details > div { position: absolute; z-index: 3; min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px #112e3424; background: #fffdf8; }
details a { display: block; padding: 8px; text-decoration: none; border-radius: 6px; }
details a:hover, details a:focus-visible { background: #eeeeDF; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  color: #fff8f1;
  border-bottom: 5px solid var(--accent);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero::before {
  z-index: -2;
  inset: -5%;
  background: url("assets/pit-red-texture.jpg") center / cover no-repeat;
}
.hero::after {
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #340e15b8, #340e1533);
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: hero-wave 18s ease-in-out infinite; }
}
@keyframes hero-wave {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(-1.6%, 1.1%) scale(1.035); }
  65% { transform: translate(1.4%, -1.1%) scale(1.025); }
}
.hero-grid { display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: clamp(20px, 5vw, 80px); min-height: 545px; padding-block: 56px; }
.eyebrow { margin: 0 0 22px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { display: inline-block; vertical-align: middle; width: 5px; height: 5px; margin-inline: 10px; border-radius: 50%; background: currentColor; }
.hero .eyebrow {
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid #f8bd4580;
  border-radius: 7px;
  background: #340e15a8;
  font-size: clamp(14px, 1.8vw, 21px);
  letter-spacing: .065em;
}
.hero .eyebrow span { margin-inline: 6px; }
h1, h2 { margin: 0; font: 400 clamp(45px, 7vw, 103px)/.91 var(--serif); letter-spacing: -.035em; }
h1 { font: 700 clamp(42px, 5.7vw, 82px)/.99 var(--sans); letter-spacing: -.065em; }
h1 em { display: block; color: var(--accent); font-style: normal; }
.subtitle { margin: 23px 0 0; font-size: clamp(16px, 2vw, 23px); }
.theme { color: #ffe5d9; margin: 9px 0 26px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; width: min(100%, 320px); margin: 0 0 20px; }
.countdown div { display: flex; flex-direction: column-reverse; gap: 3px; padding: 8px 3px; text-align: center; border: 1px solid #fff2cf5c; border-radius: 8px; background: #340e15a8; }
.countdown dt { color: #fff2cf; font-size: 11px; }
.countdown dd { margin: 0; color: var(--accent); font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.hero-links { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.button { display: inline-flex; gap: 22px; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; color: var(--ink); background: var(--accent); border-radius: 100px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.button:hover { background: #ffe3a2; }
.hero-secondary { text-underline-offset: 5px; font-weight: 600; }
.event-art { overflow: hidden; border-radius: 16px; background: #fff1d6; }
.event-landscape { width: 100%; height: clamp(145px, 18vw, 238px); object-fit: cover; border-bottom: 4px solid var(--accent); }
.event-mark { display: grid; place-items: center; padding: clamp(16px, 3vw, 36px); }
.event-mark img { width: min(100%, 295px); height: auto; }
.quick { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: 14px; margin-top: 28px; overflow: hidden; background: #fffdf8; }
.quick a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; text-decoration: none; font-weight: 700; }
.quick a + a { border-left: 1px solid var(--line); }
.quick a:hover { background: var(--cream); }
.quick b { font-size: 19px; color: #805a17; }
.event-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 480px)); grid-template-rows: auto auto auto; justify-content: space-between; gap: 12px 28px; margin-block: 48px 38px; }
.documentation { display: grid; grid-column: 1; grid-row: 1 / 4; grid-template-rows: subgrid; }
h2 { font-size: clamp(38px,5vw,62px); }
.trailer-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.trailer-controls button { border: 1px solid var(--line); border-radius: 100px; padding: 9px 17px; min-height: 44px; color: var(--ink); background: #fffdf8; font: 700 14px var(--sans); cursor: pointer; }
.trailer-controls button:hover { border-color: var(--ink); }
.trailer-controls button[aria-pressed="true"] { color: #fffdf8; background: var(--dark); border-color: var(--dark); }
.trailer { max-width: 480px; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--dark); }
.trailer iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; font-size: 14px; }
.venue { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fffdf8; }
.venue-details { padding: 16px 22px; }
.venue .eyebrow { color: #912e25; margin-bottom: 13px; }
.venue h2 { max-width: 24ch; font: 700 23px/1.12 var(--sans); letter-spacing: -.04em; }
.venue-date { margin: 12px 0 8px; font-size: 14px; font-weight: 700; color: #912e25; }
.venue address { font-size: 14px; font-style: normal; }
.venue-directions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 22px; color: #fff8f1; border-top: 3px solid var(--accent); background: #14384b; }
.venue-directions p { margin: 0; font-size: 16px; font-weight: 700; }
.venue-directions .button { min-height: 38px; padding: 7px 13px; font-size: 13px; gap: 9px; }
footer { background: #fffdf8; padding: 20px 0; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.foot-identity { display: flex; align-items: center; gap: 12px; text-align: left; }
.foot-identity img { flex: 0 0 auto; width: clamp(64px, 10vw, 105px); height: auto; }
.foot p { margin: 0; }
.copyright { color: #455a5c; }
.inner-hero { padding: 28px 0 40px; color: #fff8f1; background: linear-gradient(90deg, #340e15d9, #340e1566), url("assets/pit-red-texture.jpg") center 42% / cover, var(--dark); border-bottom: 4px solid var(--accent); }
.breadcrumb { margin: 0 0 19px; font-size: 14px; color: #ffe7cb; }
.breadcrumb a { text-underline-offset: 4px; }
.breadcrumb span { padding-inline: 6px; }
.inner-body { padding-block: 24px 48px; }
.section-menu { padding: 8px; gap: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; margin-bottom: 27px; }
.section-menu a { padding: 10px 13px; border-radius: 7px; white-space: normal; }
.section-menu a[aria-current] { background: var(--dark); color: #fff8f1; }
.section-menu a:hover { background: var(--cream); color: var(--ink); }
.program-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.program-document { display: grid; grid-template-columns: minmax(88px, 34%) 1fr; align-items: center; gap: clamp(12px, 2.3vw, 27px); padding: clamp(14px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; text-decoration: none; }
.program-document:hover { border-color: #912e25; }
.program-document img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 7px; background: #f6e9dd; }
.program-document h2 { margin-block: 7px 12px; font: 700 clamp(19px, 2.5vw, 29px)/1.14 var(--sans); letter-spacing: -.04em; }
.document-type { color: #912e25; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.document-action { display: inline-block; color: #722726; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legacy-content {
  overflow-wrap: anywhere;
  padding: clamp(18px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
}
.legacy-content img { max-width: 100%; height: auto; }
.legacy-content iframe { display: block; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.legacy-content a { text-underline-offset: 3px; }
.legacy-content .page-title, .legacy-content h1 {
  margin-block: 20px 12px;
  font: 700 clamp(19px, 3vw, 31px)/1.2 var(--sans);
  letter-spacing: -.03em;
}
.legacy-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.legacy-content th, .legacy-content td { padding: 8px 10px; border: 1px solid var(--line); }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 42px); }
  .bar { padding-block: 12px; flex-wrap: wrap; gap: 7px 20px; }
  .hero-grid { min-height: 0; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  nav { gap: 0 14px; font-size: 13px; }
  nav details:nth-child(4) > div { right: 0; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 34px 24px; gap: 26px; }
  .event-mark img { width: min(100%, 215px); }
  .quick { grid-template-columns: 1fr; }
  .quick a + a { border-left: 0; border-top: 1px solid var(--line); }
  .venue-break { display: none; }
}
@media (max-width: 760px) {
  .program-docs { grid-template-columns: 1fr; }
  .event-summary { grid-template-columns: minmax(0, 480px); grid-template-rows: auto; gap: 18px; margin-block: 35px; }
  .documentation, .venue { grid-column: 1; grid-row: auto; }
  .documentation { grid-template-rows: auto; gap: 12px; }
}

.reg-preview .reg-notice { background: #f5ece2; border-left: 3px solid #962b2b; padding: 12px 16px; border-radius: 0 8px 8px 0; }
.reg-preview fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 18px; padding: 16px; min-width: 0; }
.reg-preview legend { font-weight: 700; padding: 0 7px; }
.reg-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px 18px; }
.reg-fields label { display: grid; gap: 5px; min-width: 0; }
.reg-fields input, .reg-fields select { box-sizing: border-box; width: 100%; min-width: 0; padding: 9px; border: 1px solid var(--line); background: #f8f4ef; color: var(--ink); border-radius: 7px; font: inherit; }
