/* Layout: full-bleed photo bands alternate with a narrow reading column; amber/black hoops mark the top and bottom of every page, like the shirt. */
:root {
  --amber: #f5b400;
  --amber-deep: #b98500;
  --ink: #15130f;
  --paper: #ffffff;
  --stone: #f1efe9;
  --line: #dedad0;
  --text: #1b1915;
  --muted: #5f5a4f;
  --on-amber: #15130f;
  --surface: #ffffff;
  --link: #8a6300;

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  --wrap: 1180px;
  --read: 68ch;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --hoops: repeating-linear-gradient(180deg, var(--amber) 0 6px, var(--ink) 6px 12px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12110e; --stone: #1b1915; --line: #34302a; --text: #f2efe7;
    --muted: #b3ac9e; --surface: #1f1d18; --link: #f5c440; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12110e; --stone: #1b1915; --line: #34302a; --text: #f2efe7;
  --muted: #b3ac9e; --surface: #1f1d18; --link: #f5c440; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }
.eyebrow { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.9rem; color: var(--muted); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.stack { display: grid; gap: 1rem; }
.prose { max-width: var(--read); display: grid; gap: 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--amber); color: var(--on-amber); padding: 8px 12px; }

/* Header */
.site-head { background: var(--ink); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--ink); }
.site-head::after { content: ""; display: block; height: 12px; background: var(--hoops); }
.head-row { display: flex; align-items: center; gap: 1rem; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 44px; height: 53px; object-fit: contain; }
.brand b { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.brand small { display: block; font-family: var(--label); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.98rem; padding: 8px 10px; border-radius: 4px; }
.nav a:hover { background: rgba(255,255,255,0.08); }
.nav a[aria-current="page"] { color: var(--amber); }
.menu-btn { display: none; background: none; border: 2px solid rgba(255,255,255,0.3); color: #fff; font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; padding: 8px var(--gutter-r) 16px var(--gutter-l); border-top: 1px solid #2b2822; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; font-size: 1.1rem; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,13,10,0.86) 0%, rgba(14,13,10,0.55) 45%, rgba(14,13,10,0.05) 80%); z-index: 1; }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(56px, 10vw, 120px); display: grid; gap: 28px; }
.hero h1 { max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lede { max-width: 46ch; font-size: 1.2rem; color: #ece8de; }
.hero .eyebrow { color: var(--amber); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.05rem; padding: 12px 20px; border-radius: 4px; text-decoration: none; border: 2px solid var(--amber); }
.btn.solid { background: var(--amber); color: var(--on-amber); }
.btn.ghost { color: inherit; background: transparent; }
.btn.ghost-dark { border-color: var(--text); color: var(--text); }

/* Page header (inner pages) */
.page-head { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.page-head img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.page-head .wrap { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px); display: grid; gap: 14px; }
.page-head .eyebrow { color: var(--amber); }
.page-head p { max-width: 56ch; font-size: 1.15rem; color: #ece8de; }

/* Next match strip */
.matchbar { background: var(--amber); color: var(--on-amber); }
.matchbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 18px; }
.matchbar .tag { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.9rem; }
.matchbar .vs { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1; }
.matchbar .vs img { width: 40px; height: 40px; object-fit: contain; }
.matchbar .when { font-weight: 600; font-variant-numeric: tabular-nums; }
.matchbar a { color: var(--on-amber); font-weight: 700; margin-left: auto; }

/* Sections */
section.band { padding-block: clamp(56px, 8vw, 96px); }
section.band.stone { background: var(--stone); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section-head .stack { gap: 8px; }

/* Team tiles */
.teams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .teams { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .teams { grid-template-columns: 1fr; } }
.team { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 340px; color: #fff; text-decoration: none; overflow: hidden; border-radius: 6px; background: var(--ink); }
.team img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.team::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(10,9,7,0.9) 100%); }
.team .txt { position: relative; z-index: 1; padding: 20px; display: grid; gap: 6px; }
.team h3 { font-size: 2.2rem; }
.team .eyebrow { color: var(--amber); }
.team p { color: #e7e2d6; font-size: 0.98rem; line-height: 1.45; }
.team:hover img { transform: scale(1.04); }

/* Split feature */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.split img { border-radius: 6px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split .stack { gap: 18px; }

/* Facts list */
.facts { display: grid; gap: 0; border-top: 2px solid var(--text); }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* Fixtures */
.fixtures { display: grid; gap: 28px; }
.month h3 { font-size: 1.3rem; padding-bottom: 8px; border-bottom: 2px solid var(--text); margin-bottom: 4px; }
.fx { display: grid; grid-template-columns: 6.5rem 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.fx time { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.fx time small { display: block; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; }
.fx img { width: 44px; height: 44px; object-fit: contain; }
.fx .opp { font-weight: 600; font-size: 1.1rem; min-width: 0; }
.fx .opp small { display: block; font-weight: 500; font-size: 0.88rem; color: var(--muted); }
.pill { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill.home { background: var(--amber); color: var(--on-amber); }
.pill.away { border: 1.5px solid var(--muted); color: var(--muted); }
.fx .score { font-family: var(--display); font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.fx.past { opacity: 0.62; }
.fx.next { background: color-mix(in srgb, var(--amber) 14%, transparent); border-radius: 6px; padding-inline: 10px; margin-inline: -10px; }
.fx .right { display: flex; align-items: center; gap: 10px; justify-content: end; }
@media (max-width: 560px) {
  .fx { grid-template-columns: 4.6rem 34px minmax(0, 1fr); }
  .fx img { width: 34px; height: 34px; }
  .fx .right { grid-column: 3; justify-content: start; }
}

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.person { padding-block: 18px; border-top: 2px solid var(--text); display: grid; gap: 6px; align-content: start; }
.person h3 { font-size: 1.5rem; }
.person .role { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber-deep); }
:root[data-theme="dark"] .person .role { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .person .role { color: var(--amber); } }
.person p { color: var(--muted); font-size: 0.98rem; }
.contact-line { font-variant-numeric: tabular-nums; }

/* Values */
.values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.value { display: grid; gap: 10px; align-content: start; }
.value .letter { font-family: var(--display); font-weight: 900; font-size: 4.5rem; line-height: 0.85; color: var(--amber); }
.value h3 { font-size: 1.5rem; }
.value p { color: var(--muted); font-size: 0.98rem; }

/* Timeline */
.timeline { display: grid; gap: 0; border-left: 3px solid var(--amber); margin-left: 6px; }
.timeline div { display: grid; grid-template-columns: 5rem 1fr; gap: 16px; padding: 10px 0 18px 20px; position: relative; }
.timeline div::before { content: ""; position: absolute; left: -9px; top: 16px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--amber); }
.timeline b { font-family: var(--display); font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .timeline div { grid-template-columns: 1fr; gap: 4px; } }

/* Sponsors */
.tiers { display: grid; gap: 36px; }
.tier-label { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.medal { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex: none; }
.tier-gold .medal { background: linear-gradient(135deg, #f7d774, #c99a1e); }
.tier-silver .medal { background: linear-gradient(135deg, #eef0f2, #9aa1a8); }
.tier-bronze .medal { background: linear-gradient(135deg, #e3a674, #9c5a2b); }
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.tier-gold .sponsors { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.sponsor { display: grid; grid-template: 100% / 100%; place-items: center; aspect-ratio: 3 / 2; background: #ffffff; border: 1px solid var(--line); border-radius: 6px; padding: 10px; overflow: hidden; }
.tier-gold .sponsor { aspect-ratio: 16 / 9; border: 2px solid #c99a1e; }
.sponsor img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
a.sponsor { transition: transform 0.15s ease; }
a.sponsor:hover { transform: translateY(-2px); }
.sponsor-cta { display: grid; place-items: center; text-align: center; aspect-ratio: 3 / 2; border: 2px dashed var(--muted); border-radius: 6px; padding: 18px; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; color: var(--text); }

/* News */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { display: grid; gap: 10px; text-decoration: none; color: inherit; }
.news-card img { border-radius: 6px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.news-card h3 { font-size: 1.7rem; }
.news-card p { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }

/* Callout */
.callout { background: var(--ink); color: #fff; border-radius: 6px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.callout .eyebrow { color: var(--amber); }
.callout a:not(.btn) { color: var(--amber); }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.copy { font: inherit; font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; padding: 4px 10px; border-radius: 4px; border: 1.5px solid currentColor; background: none; color: inherit; cursor: pointer; }

/* Footer */
.site-foot { background: var(--ink); color: #d9d4c7; margin-top: 0; }
.site-foot::before { content: ""; display: block; height: 12px; background: var(--hoops); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 { margin: 0 0 10px; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--amber); font-size: 0.95rem; }
.site-foot a { color: #fff; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot .crest-row { display: flex; gap: 14px; align-items: center; }
.site-foot .crest-row img { width: 56px; }
.site-foot .crest-row b { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; color: #fff; line-height: 1; }
.foot-base { border-top: 1px solid #2d2a24; padding-block: 16px 24px; font-size: 0.88rem; color: #a59f90; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 700px) {
  .hero::before { background: linear-gradient(180deg, rgba(14,13,10,0.55) 0%, rgba(14,13,10,0.82) 100%); }
}
.league { border: 2px solid var(--text); border-radius: 6px; padding: clamp(20px, 3vw, 28px); }
.league h3 { font-size: 2rem; }
.league p:not(.eyebrow) { color: var(--muted); }
.fx-aside { position: sticky; top: 110px; }
@media (max-width: 860px) { .fx-aside { position: static; order: -1; } }

/* Gallery */
.dark-band { background: var(--ink); color: #fff; }
.dark-band .eyebrow { color: var(--amber); }
.dark-band .btn.ghost { color: #fff; }
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.strip a { display: block; border-radius: 6px; overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.4s ease; }
.strip a:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip a:nth-child(5) { display: none; } }
.masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); grid-auto-flow: dense; gap: 14px; }
.masonry figure { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 6px; min-width: 0; }
.masonry figure.tall { grid-row: span 2; }
.masonry a { display: block; cursor: zoom-in; min-height: 0; }
.masonry img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--stone); }
.masonry .tall img { aspect-ratio: auto; height: 100%; }
.masonry figcaption { font-size: 0.88rem; color: var(--muted); }
.masonry figure:target img { outline: 3px solid var(--amber); outline-offset: 3px; }
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(10, 9, 7, 0.95); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10, 9, 7, 0.9); }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; padding: 56px max(64px, env(safe-area-inset-right, 0px)) 24px max(64px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; border-radius: 4px; }
.lightbox figcaption { font-family: var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: #d9d4c7; text-align: center; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,0.08); color: #fff; border: 0; cursor: pointer; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; border-radius: 4px; }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); padding: 8px 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 2.6rem; line-height: 1; padding: 6px 14px 12px; }
.lb-prev { left: calc(8px + env(safe-area-inset-left, 0px)); }
.lb-next { right: calc(8px + env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .lightbox figure { padding-inline: 12px; } .lb-nav { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; } }
