/* Self-hosted fonts (Latin subset, WOFF2). No third-party font requests. */
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/assets/fonts/SourceSerif4-latin.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/assets/fonts/SourceSerif4-Italic-latin.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/InstrumentSans-latin.woff2) format('woff2'); }

/* Morning Line Football — shared styles, translated from the approved
   Figma Make homepage design. Inner-page styles are at the end. */

:root {
  --ink: #0d0c0b;
  --cream: #f5f1ea;
  --cream-dark: #ede8df;
  --accent: #c14f0d;
  --accent-hover: #b84510;
  --muted: #6c6864;
  --rule: #d6d0c8;
  --panel: #181714;
  --white: #fff;

  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --max: 72rem;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* Land in-page jumps below the sticky header */
section[id] { scroll-margin-top: 4rem; }

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

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.serif { font-family: var(--font-display); font-weight: 600; }
.serif em { font-style: italic; font-weight: 400; }

.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: currentColor; }

/* ── Logo ─────────────────────────────────────────────────────────────── */

/* The mark's sun uses --sun: ink on master-brand pages, club colour on
   edition pages and edition cards. The horizon line is always ink. */
.mark { display: block; flex-shrink: 0; width: 32px; height: 22px; color: var(--ink); }
.club-dundee, .club-melbourne, .edition { --sun: var(--club); }

.logo { display: flex; align-items: center; gap: 10px; user-select: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  word-spacing: 0.12em;
  white-space: nowrap;
}
.logo-text span {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.logo.small .mark { width: 28px; height: 19px; }
.logo.small strong { font-size: 16px; }
.logo.small span { font-size: 10px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent .dot { background: #fff; opacity: .8; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-dark { background: var(--ink); color: var(--cream); padding: 8px 16px; }
.btn-dark:hover { background: #2a2724; }

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 56px; }

.primary-nav { display: none; align-items: center; gap: 28px; }
.primary-nav a:not(.btn) { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .15s; }
.primary-nav a:not(.btn):hover { color: var(--ink); }

.menu-toggle {
  padding: 8px;
  margin-right: -8px;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 1px; background: var(--ink); }
.menu-toggle span:last-child { width: 14px; }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px var(--gutter);
  border-top: 1px solid var(--rule);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-size: 14px; font-weight: 500; }
.mobile-menu .btn { justify-content: center; padding: 10px 16px; font-weight: 600; }

@media (min-width: 768px) {
  .primary-nav { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { padding-top: 64px; padding-bottom: 80px; }
.hero-grid { display: grid; gap: 48px; align-items: start; }
.hero .eyebrow { margin-bottom: 32px; }
.hero h1 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}
.hero .lede {
  max-width: 32rem;
  margin-bottom: 40px;
  font-size: 18px;
  line-height: 1.625;
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.briefing { background: var(--panel); border-radius: 2px; overflow: hidden; }
.briefing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 28px 20px;
  border-bottom: 1px solid color-mix(in srgb, white 8%, transparent);
  font-size: 12px;
  font-weight: 500;
}
.briefing-top .label { text-transform: uppercase; letter-spacing: 0.12em; color: color-mix(in srgb, white 38%, transparent); }
.briefing-top .live { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.briefing-body { padding: 28px 28px 24px; }
.briefing-quote {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.25;
  color: #fff;
}
.briefing-body p:last-child { font-size: 14px; line-height: 1.625; color: color-mix(in srgb, white 45%, transparent); }

.waveform { display: flex; align-items: flex-end; gap: 4px; padding: 0 28px 28px; }
.waveform span { flex: 1; min-width: 4px; border-radius: 999px; background: color-mix(in srgb, white 12%, transparent); }

@media (min-width: 768px) {
  .hero { padding-top: 96px; padding-bottom: 112px; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); gap: 32px; }
  .hero-copy { grid-column: span 7; }
  .hero-panel { grid-column: span 5; padding-top: 8px; }
  .hero h1 { font-size: 60px; }
}
@media (min-width: 1280px) { .hero h1 { font-size: 68px; } }

/* ── Pillars ──────────────────────────────────────────────────────────── */

.pillars { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--cream-dark); }
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pillar { padding: 28px 16px; border-color: var(--rule); border-style: solid; border-width: 0; }
/* Two columns on mobile: right column and second row get dividers */
.pillar:nth-child(2) { border-left-width: 1px; }
.pillar:nth-child(3) { border-top-width: 1px; }
.pillar:nth-child(4) { border-left-width: 1px; border-top-width: 1px; }
.pillar h3 { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.pillar p { font-size: 14px; line-height: 1.625; color: var(--muted); }

@media (min-width: 768px) {
  .pillar-grid { grid-template-columns: repeat(4, 1fr); }
  .pillar { padding: 32px 24px; }
  .pillar:nth-child(3) { border-top-width: 0; border-left-width: 1px; }
  .pillar:nth-child(4) { border-top-width: 0; }
}

/* ── Network / editions ───────────────────────────────────────────────── */

.network { padding-top: 80px; padding-bottom: 96px; }
.section-head { margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head-grid { display: grid; gap: 32px; align-items: end; }
.section-head h2 { font-size: 36px; line-height: 1.25; }
.section-head-grid p { font-size: 16px; line-height: 1.625; color: var(--muted); }

.edition-grid { display: grid; gap: 24px; }

.edition {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.edition-bar { height: 2px; background: var(--club); }
.edition-inner { padding: 32px; }
.edition-dundee { --club: #e07420; }
.edition-melbourne { --club: #1e3a6e; }

.edition-meta { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 10%, transparent);
}
.badge.live { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.league { font-size: 12px; font-weight: 500; color: color-mix(in srgb, var(--muted) 65%, transparent); }

.edition-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.edition-brand .mark { width: 26px; height: 18px; }
.edition-brand span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.edition h3 { margin-bottom: 24px; font-size: 24px; line-height: 1.375; }
.edition h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.edition-desc { margin-bottom: 24px; font-size: 14px; line-height: 1.625; color: var(--muted); }

.edition-points { display: grid; gap: 8px; margin-bottom: 32px; }
.edition-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.edition-points li::before {
  content: '';
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--club);
  opacity: .55;
}
.edition-foot { padding-top: 20px; border-top: 1px solid var(--rule); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  transition: color .15s, border-color .15s;
}
a.pill:hover { color: var(--ink); border-color: var(--muted); }

@media (min-width: 768px) {
  .section-head-grid { grid-template-columns: 1fr 1fr; }
  .section-head h2 { font-size: 48px; }
  .edition-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Listening platforms ──────────────────────────────────────────────── */

.platforms-label { margin-bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px; /* touch-friendly on phones */
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s, border-color .15s, background-color .15s;
}
.platform-btn:hover {
  border-color: var(--muted);
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.platform-btn svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }
@media (min-width: 768px) { .platform-btn { min-height: 0; } }

.trailer { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .15s; }
.trailer:hover { color: var(--ink); }

/* ── How it works ─────────────────────────────────────────────────────── */

.how { background: var(--panel); }
.how-inner { padding-top: 80px; padding-bottom: 80px; }
.how-grid { display: grid; gap: 48px; }
.how .eyebrow { margin-bottom: 32px; }
.how h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.25;
  color: #fff;
}
.how-rule { width: 48px; height: 1px; margin-top: 32px; background: var(--accent); }
.steps { display: grid; gap: 32px; }
.step-n {
  margin-bottom: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.step h3 { margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #fff; }
.step p { font-size: 14px; line-height: 1.625; color: color-mix(in srgb, white 48%, transparent); }

@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) {
  .how-inner { padding-top: 112px; padding-bottom: 112px; }
  .how-grid { grid-template-columns: repeat(12, 1fr); gap: 64px; }
  .how-title { grid-column: span 5; }
  .steps { grid-column: span 7; gap: 40px; }
  .how h2 { font-size: 48px; }
}
@media (min-width: 1280px) { .how h2 { font-size: 60px; } }

/* ── Listen ───────────────────────────────────────────────────────────── */

.listen { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--cream-dark); }
.listen-inner { padding-top: 64px; padding-bottom: 64px; }
.listen-grid { display: grid; gap: 48px; align-items: start; }
.listen .eyebrow { margin-bottom: 20px; }
.listen h2 { margin-bottom: 16px; font-size: 30px; line-height: 1.25; }
.listen-copy p:not(.eyebrow) { font-size: 16px; line-height: 1.625; color: var(--muted); }
.listen-note { margin-top: 20px; font-size: 12px; line-height: 1.625; color: color-mix(in srgb, var(--muted) 65%, transparent); }

@media (min-width: 768px) {
  .listen-inner { padding-top: 80px; padding-bottom: 80px; }
  .listen-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .listen-options { padding-top: 8px; }
  .listen h2 { font-size: 36px; }
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer { padding-top: 40px; padding-bottom: 40px; }
.footer-top { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.footer-tagline { margin-top: 8px; font-size: 12px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer-links a { font-size: 12px; font-weight: 500; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom p:last-child { color: color-mix(in srgb, var(--muted) 60%, transparent); }

@media (min-width: 768px) {
  .footer-top, .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ── Nav: current page ────────────────────────────────────────────────── */

.primary-nav a[aria-current="page"] { color: var(--ink); }
.mobile-menu a[aria-current="page"] { color: var(--accent); }

/* ── Inner pages: shared hero ─────────────────────────────────────────── */

.page-hero { padding-top: 64px; padding-bottom: 72px; }
.page-hero .eyebrow { margin-bottom: 32px; }
.page-hero h1 {
  max-width: 16ch;
  margin-bottom: 32px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.page-hero .lede { max-width: 36rem; font-size: 18px; line-height: 1.625; color: var(--muted); }

@media (min-width: 768px) {
  .page-hero { padding-top: 96px; padding-bottom: 96px; }
  .page-hero h1 { font-size: 60px; }
}
@media (min-width: 1280px) { .page-hero h1 { font-size: 68px; } }

/* ── Club pages ───────────────────────────────────────────────────────── */

.club-dundee { --club: #e07420; }
.club-melbourne { --club: #1e3a6e; }

.club-hero-grid { display: grid; gap: 48px; align-items: center; }
.club-hero .lede { margin-bottom: 40px; }
.club-art {
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.club-art::before { content: ''; display: block; height: 2px; background: var(--club); }
.club-art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

@media (min-width: 768px) {
  .club-hero-grid { grid-template-columns: repeat(12, 1fr); gap: 32px; }
  .club-copy { grid-column: span 7; }
  .club-art { grid-column: 9 / span 4; max-width: none; }
}

/* Feature band (reuses the pillar look, 2 × 2) */
.features { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--cream-dark); }
.features-inner { padding-top: 80px; padding-bottom: 80px; }
.feature-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.feature { padding: 28px; background: var(--white); }
.feature h3 { margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.feature p { font-size: 14px; line-height: 1.625; color: var(--muted); }

@media (min-width: 768px) {
  .features-inner { padding-top: 96px; padding-bottom: 96px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature { padding: 32px; }
}

/* Dark statement panel (transparency note) */
.statement { background: var(--panel); }
.statement-inner { padding-top: 80px; padding-bottom: 80px; }
.statement .eyebrow { margin-bottom: 32px; }
.statement h2 {
  max-width: 20ch;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  color: #fff;
}
.statement p:not(.eyebrow) { max-width: 40rem; font-size: 16px; line-height: 1.7; color: color-mix(in srgb, white 55%, transparent); }
.statement .how-rule { margin-top: 0; margin-bottom: 32px; }

@media (min-width: 768px) {
  .statement-inner { padding-top: 112px; padding-bottom: 112px; }
  .statement h2 { font-size: 48px; }
}

/* ── About page ───────────────────────────────────────────────────────── */

.about-story { padding-bottom: 96px; }
.about-story .about-grid { padding-top: 80px; border-top: 1px solid var(--rule); }
.about-grid { display: grid; gap: 48px; align-items: start; }
.prose h2 { margin-bottom: 12px; font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.25; }
.prose h2:not(:first-child) { margin-top: 48px; }
.prose p { max-width: 40rem; font-size: 17px; line-height: 1.7; color: var(--muted); }
.prose p + p { margin-top: 14px; }

.about-card { background: var(--white); border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.about-card::before { content: ''; display: block; height: 2px; background: var(--accent); }
.about-card-inner { padding: 32px; }
.about-card .mark { width: 64px; height: 44px; margin-bottom: 24px; }
.about-card h3 { margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.about-card p { margin-bottom: 20px; font-size: 14px; line-height: 1.625; color: var(--muted); }
.about-card .btn { width: 100%; justify-content: center; }

@media (min-width: 768px) {
  .about-grid { grid-template-columns: repeat(12, 1fr); gap: 32px; }
  .prose { grid-column: span 7; }
  .about-card { grid-column: 9 / span 4; position: sticky; top: 88px; }
}

/* ── 404 ──────────────────────────────────────────────────────────────── */

.not-found { min-height: 60vh; }
.text-link { font-weight: 600; color: var(--accent); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Keyboard focus */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
