﻿:root {
  --ink: #f7f2e8;
  --muted: #b7c4d3;
  --soft: #8193a7;
  --blue: #003b8e;
  --blue-2: #1267c9;
  --navy: #07111f;
  --night: #030912;
  --panel: rgba(8, 19, 34, 0.84);
  --panel-strong: rgba(5, 13, 25, 0.94);
  --gold: #d8a441;
  --red: #d62b45;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 18px;
  --content: 1180px;
  --header: 76px;
  --shirt-base: #111;
  --shirt-ink: #fff;
  --shirt-accent: transparent;
  --shirt-overlay: transparent;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(0, 59, 142, 0.32), transparent 32%),
    linear-gradient(240deg, rgba(216, 164, 65, 0.14), transparent 28%),
    linear-gradient(180deg, #07111f 0%, #030912 58%, #07111f 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 84%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code { color: #ffe0a0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: .8rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(3,9,18,.95), rgba(3,9,18,.72));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .85rem; }
.brand-crest {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #0047a8, #0b69df 55%, #d8a441 56%);
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 10px 30px rgba(0, 59, 142, .38);
}
.brand strong { display: block; font-size: .98rem; }
.brand small { display: block; color: var(--muted); margin-top: .1rem; }
.nav { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.nav a {
  position: relative;
  padding: .68rem .82rem;
  border-radius: 999px;
  color: #d9e4ef;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.nav a:hover, .nav a:focus-visible {
  border-color: rgba(216,164,65,.4);
  background: rgba(216,164,65,.08);
  color: #f3d080;
}
.scroll-meter {
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  overflow: hidden;
}
.scroll-meter span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gold), var(--blue-2)); }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  overflow: clip;
  display: grid;
  align-items: stretch;
}
.hero-image { position: absolute; inset: 0; }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Stronger left-side darken so the headline wins on first read. */
    linear-gradient(90deg, rgba(3,9,18,.97) 0%, rgba(3,9,18,.68) 38%, rgba(3,9,18,.55) 62%, rgba(3,9,18,.92) 100%),
    /* Bottom fade stays for the title-scroll dock. */
    linear-gradient(180deg, rgba(3,9,18,.10), rgba(3,9,18,.94) 88%),
    /* Subtle royal-blue tint over the whole hero, just enough to tie
       it to the brand without killing the photo. */
    radial-gradient(ellipse at 30% 40%, rgba(0,71,168,.18), transparent 60%);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95) contrast(1.05); }
.hero-grid {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 7rem 1.25rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 2rem;
  align-items: end;
}
.eyebrow {
  margin: 0 0 .9rem;
  color: #b9c9dc;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  font-weight: 800;
}
h1, h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: .94;
  margin: 0;
  letter-spacing: 0;
}
h1 { max-width: 12ch; font-size: clamp(4rem, 7.6vw, 8.1rem); }
h2 { font-size: clamp(2.7rem, 5vw, 4.6rem); }
h3 { margin: 0; font-size: 1.2rem; }
p { line-height: 1.72; color: var(--muted); }
.hero-copy p:not(.eyebrow) { max-width: 64ch; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 1.05rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #05101e; background: linear-gradient(135deg, #e2b75b, #fff0ba); font-weight: 800; }
.button-ghost { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }

.match-panel, .story-card, .tease-panel, .kit-stage-frame, .kit-era {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 28, 48, .78), rgba(5, 13, 25, .94));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.match-panel { padding: 1.3rem; }
.panel-kicker, .meta, .card-tag, .kit-stage-range, .kit-era span {
  display: block;
  color: #a9bad0;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 800;
}
.match-panel h2 { font-family: "Manrope", sans-serif; line-height: 1.08; font-size: 1.55rem; margin: .55rem 0; }
.title-scroll {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  gap: 2rem;
  overflow: hidden;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(3,9,18,.52);
  color: rgba(255,255,255,.58);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .76rem;
}
.title-scroll span, .title-scroll a { white-space: nowrap; animation: drift 16s linear infinite; }
@keyframes drift { to { transform: translateX(-28px); } }

.section { width: min(100%, var(--content)); margin: 0 auto; padding: 5rem 1.25rem; position: relative; }

/* Section background: subtle dock-water + Goodison-brick texture.
   Two stacked SVG data-URIs keep the page asset-free while giving
   the panels a sense of place. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* Horizontal dock-water lines */
    repeating-linear-gradient(180deg, rgba(0,71,168,.05) 0 1px, transparent 1px 14px),
    /* Goodison-brick offset pattern */
    repeating-linear-gradient(90deg, rgba(216,164,65,.035) 0 1px, transparent 1px 80px),
    /* Soft blue ambient */
    radial-gradient(ellipse at top, rgba(0,71,168,.06), transparent 60%);
  background-blend-mode: normal;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 2rem;
  position: relative;
  padding-top: 1.1rem;
}
/* Royal-blue rule above each section heading, ties the page together. */
.section-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--blue-2) 55%, rgba(0,0,0,0));
}
/* Faint full-width separator between stacked boards so the page has
   visible chapters instead of one continuous wall. */
.news-board + .news-board {
  border-top: 1px solid rgba(255,255,255,.07);
}
.section-intro { max-width: 68ch; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.story-grid-large {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.story-stack { display: grid; gap: 1rem; }
.story-card {
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  /* Slight lift and a tighter shadow so a row of cards reads like
     a stack of plates, not a stamp sheet. */
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(216,164,65,.25);
  border-color: rgba(216,164,65,.45);
}
.story-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(0,59,142,.4), rgba(216,164,65,.14));
  overflow: hidden;
}
/* Gradient scrim so the image blends into the card body instead of
   sitting on it like a sticker. */
.story-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,59,142,.08), transparent 40%, rgba(5,13,25,.55) 100%);
  pointer-events: none;
}
.story-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.story-card:hover .story-card-media img { transform: scale(1.04); }
.story-card-body { padding: 1rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.story-card h3 { font-size: 1.12rem; line-height: 1.3; }
.story-card p { margin: 0; }
.story-brief { color: #d5deea; }
.summary-toggle {
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: .5rem .72rem;
  cursor: pointer;
  font-weight: 800;
  font-size: .86rem;
  transition: border-color .18s ease, background .18s ease;
}
.summary-toggle:hover {
  border-color: rgba(216,164,65,.45);
  background: rgba(216,164,65,.1);
}
.summary-toggle::after { content: " +"; color: #f0c96a; }
.story-card.expanded .summary-toggle::after { content: " \2212"; }
.story-summary {
  display: none;
  border-top: 1px solid var(--line);
  padding-top: .75rem;
}
.story-card.expanded .story-summary { display: block; }
.story-summary ul { margin: 0 0 .75rem; padding-left: 1.1rem; color: var(--muted); line-height: 1.65; }
.read-more { display: inline-flex; color: #f3d080; font-size: .86rem; font-weight: 800; }
.card-tag {
  width: max-content;
  color: #f0c96a;
  border: 1px solid rgba(216,164,65,.32);
  background: rgba(216,164,65,.08);
  border-radius: 999px;
  padding: .32rem .6rem;
}
.meta { letter-spacing: .08em; text-transform: none; color: var(--soft); }
.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 1rem;
  align-items: stretch;
}
.feature-image { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.feature-image img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.feature-image figcaption { padding: 1rem; color: var(--muted); }
.tease-panel { padding: clamp(1.3rem, 4vw, 2.2rem); }
.tease-with-image {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, 1fr);
  gap: 1.2rem;
  align-items: center;
}
.tease-with-image img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 14px;
}
.image-strip {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 1rem;
}
.image-strip img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.check-list { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.8; }

.goodison-blue-history {
  background:
    linear-gradient(180deg, rgba(0,59,142,.08), transparent 44%),
    radial-gradient(circle at 82% 10%, rgba(216,164,65,.12), transparent 26%);
}
.kit-explorer { display: grid; grid-template-columns: minmax(300px, .92fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.kit-stage { position: sticky; top: calc(var(--header) + 1rem); }
.kit-stage-frame { overflow: hidden; padding: 1.2rem; }
.kit-stage-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.kit-stage-controls { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.kit-jump {
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  border-radius: 999px;
  padding: .45rem .62rem;
  font-size: .78rem;
}
.kit-jump.active { border-color: rgba(216,164,65,.6); background: rgba(216,164,65,.14); }
.kit-stage-body { display: grid; gap: 1rem; margin-top: 1.2rem; }
.kit-shirt {
  width: min(100%, 300px);
  aspect-ratio: .92;
  margin: 0 auto;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), transparent 24%),
    linear-gradient(90deg, transparent 42%, var(--shirt-overlay) 42%, var(--shirt-overlay) 58%, transparent 58%),
    linear-gradient(135deg, transparent 40%, var(--shirt-accent) 40%, var(--shirt-accent) 48%, transparent 48%),
    var(--shirt-base);
  clip-path: polygon(22% 10%, 37% 10%, 45% 0, 55% 0, 63% 10%, 78% 10%, 100% 28%, 87% 40%, 84% 100%, 16% 100%, 13% 40%, 0 28%);
  box-shadow: inset 0 -24px 40px rgba(0,0,0,.18), 0 24px 50px rgba(0,0,0,.35);
}
.kit-shirt::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 10%, transparent 10% 20%);
}
.kit-shirt.striped::after { opacity: .9; }
.kit-shirt-collar {
  position: absolute;
  left: 42%;
  top: 3.5%;
  width: 16%;
  height: 10%;
  border-radius: 0 0 999px 999px;
  background: var(--shirt-ink);
}
.kit-shirt-sash {
  position: absolute;
  inset: 0;
  background: linear-gradient(132deg, transparent 43%, var(--shirt-accent) 43%, var(--shirt-accent) 51%, transparent 51%);
  opacity: 0;
}
.kit-shirt.has-sash .kit-shirt-sash { opacity: 1; }
.kit-stage-copy { text-align: center; max-width: 46ch; margin: 0 auto; }
.kit-stage-copy h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: .95; }
.kit-palette { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; padding: 0; }
.kit-palette li { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .75rem; color: var(--muted); }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); }
.kit-storyline { display: grid; gap: .85rem; }
.kit-era { padding: 1rem; cursor: pointer; }
.kit-era.active { border-color: rgba(216,164,65,.52); transform: translateY(-2px); }
.site-footer {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer a { color: #f3d080; font-weight: 800; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }

@media (max-width: 1120px) {
  .story-grid-large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr; justify-items: start; }
  .scroll-meter { display: none; }
  .hero-grid, .story-grid, .story-grid-large, .feature-layout, .kit-explorer, .tease-with-image, .image-strip { grid-template-columns: 1fr; }
  .kit-stage { position: relative; top: 0; }
}
@media (max-width: 680px) {
  .section { padding: 4rem 1rem; }
  .hero-grid { padding: 5.2rem 1rem 4.4rem; }
  h1 { max-width: none; font-size: clamp(3.3rem, 17vw, 5rem); }
  .hero-actions, .site-footer { flex-direction: column; }
  .story-card-media { aspect-ratio: 16 / 11; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.article-tile {
  display: grid;
  gap: .7rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 28, 48, .78), rgba(5, 13, 25, .94));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.article-tile span,
.article-tile strong {
  margin-inline: 1rem;
}
.article-tile span {
  color: #f0c96a;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 800;
}
.article-tile strong {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.article-page {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 5rem 1.25rem;
}
.article-page h1 {
  max-width: none;
  font-size: clamp(3.4rem, 8vw, 6rem);
}
.article-page figure {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-page figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.article-copy p {
  font-size: 1.08rem;
  color: #d0dbea;
}
@media (max-width: 980px) {
  .article-grid { grid-template-columns: 1fr; }
}

.glory-history {
  background: linear-gradient(180deg, rgba(216, 164, 65, .08), transparent 58%);
}
.moment-explorer {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.moment-stage {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background:
    linear-gradient(180deg, rgba(5, 13, 25, .3), rgba(5, 13, 25, .94)),
    url("./assets/images/bramley-dock-wall.jpg") center / cover;
  box-shadow: var(--shadow);
}
.moment-year {
  width: max-content;
  color: #05101e;
  background: linear-gradient(135deg, #e2b75b, #fff0ba);
  border-radius: 999px;
  padding: .5rem .75rem;
  font-weight: 900;
}
.moment-stage h3 {
  margin-top: 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .92;
}
.moment-stage p {
  max-width: 62ch;
  color: #e0e8f2;
}
.moment-stat {
  margin-top: 1rem;
  color: #f3d080;
  font-weight: 900;
}
.moment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.moment-button {
  min-height: 104px;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(180deg, rgba(12, 28, 48, .78), rgba(5, 13, 25, .94));
}
.moment-button span {
  display: block;
  margin-bottom: .35rem;
  color: #f0c96a;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.moment-button strong {
  display: block;
  line-height: 1.2;
}
.moment-button.active {
  border-color: rgba(216,164,65,.62);
  background: linear-gradient(180deg, rgba(30, 55, 86, .88), rgba(8, 19, 34, .96));
}
@media (max-width: 980px) {
  .moment-explorer, .moment-list { grid-template-columns: 1fr; }
}


.title-scroll a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
}
.title-scroll a:hover,
.title-scroll a:focus-visible {
  color: #f3d080;
}

/* Shared dock mark and return navigation, including the existing article archive. */
.brand-crest { background: url('assets/dock-mark.svg') center / contain no-repeat; border: 0; border-radius: 0; box-shadow: none; font-size: 0; width: 48px; height: 48px; flex: 0 0 48px; }
.return-link { display: inline-block; margin-bottom: 24px; font: 700 14px Manrope, Arial, sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
