/* Alan Irwin Sports — site styles */

:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #eef0f2;
  --text: #1c1f23;
  --muted: #5b636d;
  --border: #dde1e5;
  --brand: #2de035;        /* original site green */
  --brand-ink: #157a1b;    /* accessible green for text on light backgrounds */
  --header-bg: #16191d;
  --header-text: #f2f4f6;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 4px 16px rgb(0 0 0 / .06);
  --max: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --surface: #181b20;
    --surface-2: #20242a;
    --text: #e8ebee;
    --muted: #9aa3ad;
    --border: #2c3138;
    --brand-ink: #5ee865;
    --header-bg: #0a0c0e;
    --shadow: none;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .container { padding-inline: 24px; } }

.skip-link {
  position: absolute; left: 16px; top: -100px;
  background: var(--brand); color: #000; padding: 8px 14px; border-radius: 6px; z-index: 10;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header { background: var(--header-bg); color: var(--header-text); }

.topbar { border-bottom: 1px solid rgb(255 255 255 / .08); font-size: .875rem; color: #aab2bb; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: flex-end; padding-block: 6px; }
.topbar a { color: #dfe4e8; text-decoration: none; }
.topbar a:hover { color: var(--brand); }

.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }

.logo {
  font-size: 1.85rem; font-weight: 600; letter-spacing: -.03em; line-height: 1;
  color: var(--brand); text-decoration: none; text-transform: lowercase;
}
.logo span { color: var(--header-text); font-weight: 400; font-size: .5em; letter-spacing: .12em; text-transform: uppercase; margin-left: 6px; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgb(255 255 255 / .25); color: inherit;
  border-radius: 8px; padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--header-text); text-decoration: none; font-weight: 500;
}
.site-nav a:hover { background: rgb(255 255 255 / .08); }
.site-nav a[aria-current="page"] { background: var(--brand); color: #0b0d0f; }

@media (max-width: 640px) {
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.open { display: block; }
  .nav-row { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; padding-bottom: 8px; }
  .site-nav { width: 100%; }
}

/* ---------- Layout ---------- */

main { flex: 1; padding-block: 40px 64px; }

.layout { display: grid; gap: 32px; }
@media (min-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }

.aside { display: grid; gap: 20px; }
.aside h2 { font-size: 1.15rem; }

.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Home hero ---------- */

.hero { display: grid; gap: 28px; align-items: center; margin-bottom: 40px; }
@media (min-width: 700px) { .hero { grid-template-columns: 220px 1fr; } }
.hero img { border-radius: var(--radius); width: 220px; aspect-ratio: 200 / 230; object-fit: cover; box-shadow: var(--shadow); }
.eyebrow { color: var(--brand-ink); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: .5em; }

.highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 600px) { .highlights { grid-template-columns: 1fr 1fr; } }
.highlights li {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: 8px; padding: 14px 16px;
}

.btn {
  display: inline-block; background: var(--brand); color: #0b0d0f; text-decoration: none; font-weight: 600;
  padding: 10px 20px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* ---------- Clips ---------- */

.clip { padding: 18px 0; border-top: 1px solid var(--border); }
.clip:first-of-type { border-top: 0; padding-top: 0; }
.clip h3 { margin-bottom: .25em; }
.clip p { margin-bottom: .6em; color: var(--muted); }
.clip-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .85rem; color: var(--muted); margin-bottom: .5em; }
.tag { background: var(--surface-2); border-radius: 999px; padding: 1px 10px; font-weight: 500; color: var(--text); }
.clip audio { width: 100%; height: 40px; }

.season { margin-top: 36px; }
.season:first-of-type { margin-top: 0; }
.season > h2 { font-size: 1.15rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.filter input { flex: 1 1 220px; }
.filter-count { color: var(--muted); font-size: .9rem; }

/* ---------- Forms ---------- */

label { display: block; font-weight: 600; margin-bottom: 4px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .875rem; }
input, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
}
input:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); border-color: var(--brand-ink); }
textarea { min-height: 160px; resize: vertical; }
.field { margin-bottom: 18px; }
.form-status { border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; }
.form-status[hidden] { display: none; }
.form-status.ok { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); }
.form-status.err { background: color-mix(in srgb, #e5484d 18%, var(--surface)); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { background: var(--header-bg); color: #aab2bb; font-size: .9rem; padding-block: 24px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: #dfe4e8; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
