/* ==========================================================================
   Coopers' Cask Race — caskrace.com
   Design: the "Coopers' Cask Race" artifact (Nov 2026). Sable and vellum,
   gules for action, a gold hoop rule. Anton for display, Source Sans 3 for
   text, EB Garamond small caps for the livery endorsement line.
   Fonts are self-hosted in assets/fonts/ (no third-party requests).
   ========================================================================== */

@font-face { font-family: 'Anton'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('assets/fonts/anton-400.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('assets/fonts/source-sans-3-400.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('assets/fonts/source-sans-3-600.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('assets/fonts/eb-garamond-500.woff2') format('woff2'); }

:root {
  --sable: #1b1718;
  --paper: #ffffff;
  --vellum: #f6f2ec;
  --ink: #1b1718;
  --muted: #5e5654;
  --rule: #d8d0c4;
  --gules: #8e1420;
  --gules-deep: #6c0e18;
  --argent: #ffffff;
  --argent-70: rgba(255, 255, 255, .72);
  --hairline: rgba(255, 255, 255, .18);
  --or: #c9973f;

  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --text: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
  --serif: 'EB Garamond', Garamond, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 27px;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 16px; }

:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--argent); color: var(--ink); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.cap {
  font-family: var(--text);
  font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 8px;
}
.cap--gules { color: var(--gules); }
.cap--light { color: var(--argent-70); }

h1, h2, h3 {
  font-family: var(--display); font-weight: 400;
  margin: 0; letter-spacing: .01em; text-transform: uppercase;
}
h2 { font-size: 48px; line-height: 50px; margin: 0 0 20px; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--text); font-size: 15px; line-height: 20px; font-weight: 600;
  padding: 14px 28px; min-height: 48px;
  background: var(--gules); color: var(--argent);
  text-decoration: none; border: 1px solid var(--gules); border-radius: 2px;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--gules-deep); border-color: var(--gules-deep); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--argent); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* --- Header ------------------------------------------------------------- */
.hd { background: var(--sable); color: var(--argent); }
.hd .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: block; flex: none; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--argent);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--gules); }

/* --- Hero --------------------------------------------------------------- */
.hero { background: var(--sable); color: var(--argent); }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: stretch;
  padding-top: 40px;
}
.hero__copy { padding-bottom: 48px; }
.hero h1 { font-size: 150px; line-height: 1.04; margin: 4px 0 24px; }
.hero__tag {
  font-family: var(--display); font-size: 30px; line-height: 34px;
  text-transform: uppercase; letter-spacing: .02em; margin: -8px 0 20px;
}
.hero__lead { font-size: 22px; line-height: 32px; max-width: 520px; margin: 0 0 28px; }

.facts { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 14px 40px; margin: 0 0 40px; }
.facts dt { color: var(--argent-70); }
.facts dd {
  margin: 0; font-family: var(--display); font-size: 30px; line-height: 32px;
  text-transform: uppercase; letter-spacing: .02em;
}

.hero__img { position: relative; min-height: 560px; }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* --- Sections ----------------------------------------------------------- */
.sec { padding: 72px 0; }
.vellum { background: var(--vellum); }
.sable { background: var(--sable); color: var(--argent); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two img { width: 100%; height: auto; }
.two p:last-child { margin-bottom: 0; }

.prog { display: grid; grid-template-columns: 150px 1fr; max-width: 760px; margin: 12px 0 0; }
.prog dt, .prog dd { margin: 0; padding: 16px 0; border-top: 1px solid var(--hairline); }
.prog dt { font-family: var(--display); font-size: 26px; line-height: 27px; letter-spacing: .02em; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 64px; margin-top: 12px; }
.faq h3 {
  font-family: var(--text); font-size: 18px; line-height: 24px; font-weight: 600;
  text-transform: none; letter-spacing: 0; margin: 0 0 6px;
}
.faq p { margin: 0 0 20px; }
.faq a { color: var(--gules); }

.hoop { display: block; width: 160px; height: 7px; margin-top: 28px; border-top: 2px solid var(--or); border-bottom: 1px solid var(--or); }

/* --- Footer ------------------------------------------------------------- */
.ft { background: var(--sable); color: var(--argent); padding: 56px 0 40px; border-top: 1px solid var(--hairline); }
.ft .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px 64px; align-items: center; }
.ft .cols { display: grid; grid-template-columns: repeat(3, auto); gap: 40px; font-size: 15px; line-height: 22px; }
.ft .cap { color: rgba(255, 255, 255, .65); margin: 0 0 4px; }
.ft .cols a { text-decoration: none; display: inline-block; padding: 4px 0; }
.ft .cols a:hover { text-decoration: underline; }

.endorse { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 0 28px; justify-content: start; }
.endorse .bar { width: 1px; height: 96px; background: rgba(255, 255, 255, .35); }
.endorse__logo { height: 84px; width: auto; }
.endorse__arms { height: 96px; width: auto; }
.endorse .line {
  grid-column: 1 / -1; margin: 14px 0 0;
  font-family: var(--serif); font-variant: small-caps; letter-spacing: .06em;
  font-size: 15px; line-height: 20px; white-space: nowrap; color: rgba(255, 255, 255, .85);
}

.legal {
  max-width: 1200px; margin: 40px auto 0; padding: 20px 24px 0;
  border-top: 1px solid var(--hairline);
  font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .65);
  display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap;
}
.legal span { white-space: nowrap; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; color: rgba(255, 255, 255, .8); }
.social a:hover { color: var(--argent); }
.social svg { width: 20px; height: 20px; }

/* --- Booking pop-up ------------------------------------------------------
   z-index stays well below Ticket Tailor's own checkout overlay (999999). */
.booking-open, .booking-open body { overflow: hidden; }
.booking {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 16px; overflow-y: auto;
  background: rgba(27, 23, 24, .78);
}
.booking[hidden] { display: none; }
.booking__panel {
  width: 100%; max-width: 680px; background: var(--paper); color: var(--ink);
  border-top: 4px solid var(--gules); border-radius: 2px; padding: 24px 24px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.booking__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.booking__head h2 { font-size: 36px; line-height: 38px; margin: 0; }
.booking__close {
  flex: none; width: 44px; height: 44px; border: 0; background: transparent;
  font-size: 32px; line-height: 1; color: var(--ink); cursor: pointer; border-radius: 2px;
}
.booking__close:hover { background: var(--vellum); }
.booking__note { color: var(--muted); font-size: 15px; line-height: 22px; margin: 0 0 16px; }
.booking__widget { min-height: 320px; }
.booking__widget .tt-widget-fallback p { color: var(--muted); margin: 0; padding: 24px 0; }
.booking__alt { font-size: 14px; line-height: 20px; color: var(--muted); margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.booking__alt a { color: var(--gules); }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .ft .wrap { grid-template-columns: 1fr; }
  .nav { gap: 20px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .hero .wrap, .two, .faq, .ft .wrap { grid-template-columns: 1fr; }
  .hero .wrap { gap: 0; padding-top: 32px; }
  .hero__copy { padding-bottom: 40px; }
  .hero h1 { font-size: 88px; }
  .hero__img { min-height: 0; aspect-ratio: 4 / 5; margin: 0 -24px; }
  .two { gap: 32px; }
  .two--flip > :first-child { order: 2; }
  .ft .cols { grid-template-columns: 1fr 1fr; gap: 24px 40px; }
  .endorse { gap: 0 20px; }
  .endorse .line { white-space: normal; }
  h2 { font-size: 38px; line-height: 40px; }
  .sec { padding: 56px 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero__img { margin: 0 -16px; }
  .hd .wrap { gap: 16px; }
  .logo img { height: 40px; }
  .hd .btn { padding: 12px 16px; }
  .hero h1 { font-size: 64px; }
  .hero__tag { font-size: 24px; line-height: 28px; }
  .hero__lead { font-size: 19px; line-height: 28px; }
  .facts { gap: 12px 24px; }
  .facts dd { font-size: 22px; line-height: 26px; }
  .prog { grid-template-columns: 84px 1fr; }
  .prog dt { font-size: 22px; }
  .ft .cols { grid-template-columns: 1fr; }
  .endorse__logo { height: 60px; }
  .endorse__arms { height: 72px; }
  .endorse .bar { height: 72px; }
  .legal { padding: 20px 16px 0; }
  .legal span { white-space: normal; }
  .booking { padding: 0; }
  .booking__panel { min-height: 100%; padding: 16px 16px 20px; border-radius: 0; box-shadow: none; }
  .booking__head h2 { font-size: 28px; line-height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
