/* Henry's Car Comps — British racing green, bright yellow, cream white.
   Vintage 80s motorsport garage sign energy: bold italic block lettering,
   high-contrast decal colors, racing-stripe dividers. Matches the brand
   logo. System fonts only (no webfont load, stays fast on mobile). */

:root {
  --bg: #f6f2e4;
  --bg-raised: #ffffff;
  --bg-inset: #efe9d4;
  --ink: #12251a;
  --ink-dim: #3c5445;
  --ink-faint: #6c8272;
  --line: #cfc6a0;
  --green: #0d3d28;
  --green-dark: #082a1c;
  --yellow: #f6c500;
  --yellow-bright: #ffdd33;
  --ok: #3c7a4c;
  --warn: #b5490f;
  --danger: #a8332a;
  --focus: #082a1c;
  --radius: 8px;
  --display: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }

a { color: var(--green); font-weight: 600; }
a:hover { color: var(--warn); }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--green-dark);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 6vw, 3rem); font-style: italic; }
h2 { font-size: clamp(1.3rem, 4vw, 1.8rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--ink-dim); }

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Racing-stripe divider — thin livery pinstripe used under the header and
   between the hero and content, instead of a plain border. */
.racing-stripe {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--green) 0, var(--green) 14px,
    var(--yellow) 14px, var(--yellow) 20px
  );
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-raised);
  border-bottom: 3px solid var(--green-dark);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.wordmark img {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav a {
  color: var(--green-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  margin-left: 18px;
}
.site-nav a:hover { color: var(--warn); }

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(13,61,40,0.05) 0%, rgba(13,61,40,0.15) 55%, rgba(8,42,28,0.9) 100%), var(--green) center/cover no-repeat;
}
.hero-inner { padding: 32px 20px 40px; width: 100%; }
.hero-logo { width: min(340px, 70vw); height: auto; margin-bottom: 20px; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--yellow);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.hero h1 { color: #fff; text-shadow: 2px 2px 0 var(--green-dark); }
.hero p.lede {
  color: #fff;
  font-size: 1.05rem;
  max-width: 46ch;
}

/* Tabs (Online / Free Entry) — deliberately identical size/position */
.entry-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.entry-tab {
  flex: 1 1 0;
  padding: 12px 16px;
  text-align: center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--ink-dim);
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
}
.entry-tab[aria-selected="true"] {
  border-color: var(--green-dark);
  color: var(--bg-raised);
  background: var(--green);
}
.entry-panel[hidden] { display: none; }

/* Cards / sections */
.section { padding: 56px 0; border-top: 3px solid var(--line); }
.card {
  background: var(--bg-raised);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.spec-list li:last-child { border-bottom: none; }
.spec-label { color: var(--ink-faint); font-weight: 600; }
.spec-value { color: var(--ink); text-align: right; }
.placeholder-flag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--warn);
  border: 1px dashed var(--warn);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 8px;
  white-space: nowrap;
}

/* Bundles */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.bundle {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg-raised);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.bundle:hover { border-color: var(--green); }
.bundle[aria-pressed="true"] {
  border-color: var(--green-dark);
  background: var(--yellow);
  box-shadow: 0 0 0 1px var(--green-dark) inset;
}
.bundle .tickets { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--green-dark); }
.bundle .bonus { color: var(--warn); font-weight: 700; font-size: 0.82rem; }
.bundle .price { color: var(--ink-dim); font-size: 0.85rem; margin-top: 6px; }

/* Forms */
label { display: block; font-size: 0.9rem; color: var(--ink-dim); font-weight: 600; margin: 14px 0 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg-raised);
  border: 2px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
}
input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
}
.checkbox-row input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.checkbox-row label { margin: 0; font-size: 0.9rem; font-weight: 400; }

.btn {
  display: inline-block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 6px;
  border: 2px solid var(--green-dark);
  background: var(--yellow);
  color: var(--green-dark);
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  cursor: pointer;
  margin-top: 18px;
}
.btn:hover { background: var(--yellow-bright); }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--ink-faint); cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  border: 2px solid var(--green-dark);
  color: var(--green-dark);
}
.btn-secondary:hover { background: var(--green-dark); color: var(--yellow); }

.form-error {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 8px;
}
.form-success {
  border: 2px solid var(--ok);
  background: rgba(60,122,76,0.08);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--ink);
}

.hash-box {
  font-family: var(--mono);
  font-size: 0.85rem;
  word-break: break-all;
  background: var(--green-dark);
  border: 2px solid var(--green-dark);
  border-radius: 6px;
  padding: 12px;
  color: var(--yellow);
}

.entry-list { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.entry-list th, .entry-list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.entry-list th { color: var(--ink-faint); font-weight: 700; text-transform: uppercase; font-size: 0.78rem; }
.entry-list td.num { font-family: var(--display); font-weight: 800; color: var(--green); }

footer {
  border-top: 3px solid var(--green-dark);
  padding: 36px 0 60px;
  color: var(--ink-faint);
  font-size: 0.85rem;
  background: var(--bg-raised);
}
footer a { color: var(--ink-dim); }
footer .legal-lines { margin-top: 10px; }
footer .legal-lines div { margin: 2px 0; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}

.responsible-strip {
  background: var(--green-dark);
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--bg);
  text-align: center;
}
.responsible-strip a { color: var(--yellow); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .bundle, .entry-tab { transition: background-color 120ms ease, border-color 120ms ease; }
}

@media (max-width: 480px) {
  .site-nav { display: none; }
}
