/* Road to Morecambe - main stylesheet
   Colours live in :root so the whole site can be reskinned in one place
   when the final artwork arrives. */

:root {
  --sea-deep: #0f1d2b;      /* page background - Morecambe Bay at dusk */
  --sea: #16293b;           /* cards and panels */
  --sea-line: #26405a;      /* borders */
  --brick: #e8b63c;         /* the yellow brick - headings, buttons */
  --brick-dark: #b9871c;    /* brick mortar / hover */
  --sand: #f3ead8;          /* body text */
  --sand-dim: #b9b2a3;      /* secondary text */
  --max: 1080px;
  --display: "Fraunces", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sea-deep);
  color: var(--sand);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

a { color: var(--brick); }
a:hover { color: var(--sand); }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--brick);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- The brick road stripe ---------- */
.bricks {
  height: 18px;
  background-color: var(--brick-dark);
  background-image:
    linear-gradient(90deg, var(--brick) 0 46px, transparent 46px),
    linear-gradient(90deg, transparent 0 23px, var(--brick) 23px 69px, transparent 69px);
  background-size: 50px 9px, 50px 9px;
  background-position: 0 0, 0 9px;
  background-repeat: repeat-x;
  border-top: 2px solid var(--brick-dark);
  border-bottom: 2px solid var(--brick-dark);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 29, 43, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sea-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brick);
  text-decoration: none;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--sea-line);
  color: var(--sand);
  font: inherit;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}
.site-nav a {
  color: var(--sand);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--brick); border-bottom-color: var(--brick); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sea-deep);
    border-bottom: 1px solid var(--sea-line);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--sea-line); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(232, 182, 60, 0.18), transparent 60%),
    var(--sea-deep);
}
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sand-dim);
  margin-bottom: 12px;
}
.hero .lede {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  max-width: 640px;
  margin: 0 auto 28px;
}
.page-hero { padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brick);
  color: var(--sea-deep);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid var(--brick);
  margin: 4px;
}
.btn:hover { background: var(--brick-dark); border-color: var(--brick-dark); color: var(--sea-deep); }
.btn.ghost { background: transparent; color: var(--brick); }
.btn.ghost:hover { background: var(--brick); color: var(--sea-deep); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--sea); border-top: 1px solid var(--sea-line); border-bottom: 1px solid var(--sea-line); }
.narrow { max-width: 720px; }

/* The road: three stops, heats -> final -> Morecambe */
.road {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: stop;
}
.road li {
  background: var(--sea);
  border: 1px solid var(--sea-line);
  border-top: 6px solid var(--brick);
  border-radius: 8px;
  padding: 24px;
  counter-increment: stop;
}
section.alt .road li { background: var(--sea-deep); }
.road li::before {
  content: "Stop " counter(stop);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sand-dim);
  margin-bottom: 8px;
}
.road .when { color: var(--brick); font-weight: 700; margin-bottom: 8px; }
.road p:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .road { grid-template-columns: 1fr; }
}

/* Fact list - label / value pairs */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 24px 0;
}
.facts dt { font-weight: 700; color: var(--brick); }
.facts dd { margin: 0; }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
}

/* Rules list */
.rules { padding-left: 1.2em; }
.rules li { margin-bottom: 10px; }
.rules li::marker { color: var(--brick); }

.callout {
  border-left: 4px solid var(--brick);
  background: var(--sea);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--sea-line);
  padding: 40px 0;
  color: var(--sand-dim);
  font-size: 0.95rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--brick); }
