/* Darlington FC FM27 shop. Dark launch style: FM27 key art, club crest, black and white hoops. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2");
  font-weight: 900; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}

:root {
  --ink: #0a0b0d;          /* page */
  --panel: #111316;        /* raised surfaces (matches the pack image backdrop) */
  --panel-2: #181b20;
  --line: #2b2f36;
  --text: #f4f4f2;
  --muted: #b3b7be;        /* 9:1 on --ink */
  --white: #fff;
  --black: #000;
  --alert: #ff8a8a;        /* errors only, 8:1 on --panel */
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 80rem;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 1.0625rem/1.55 var(--body);
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--white); }

/* ---- masthead ---- */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem var(--gutter); background: var(--black);
}
.club {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--white); text-decoration: none;
  font: 900 1.625rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase;
}
.crest { display: block; width: auto; height: 48px; }
.masthead-tag { color: var(--muted); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; }

/* Black and white hoops: the club's accent, used as thin bands. */
.hoopline {
  height: 14px;
  background: repeating-linear-gradient(to bottom,
    var(--white) 0 3.5px, var(--black) 3.5px 7px);
}

/* ---- hero: key art behind, copy left, till right ---- */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  min-height: min(88vh, 52rem);
  padding: clamp(2.5rem, 7vw, 6rem) var(--gutter);
  background: var(--ink);
  overflow: hidden;
}
.hero::before {                       /* the key art */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("fm27-hero.jpg") 62% 30% / cover no-repeat;
}
.hero::after {                        /* darken where the text sits, fade into the page */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,11,13,.96) 0%, rgba(10,11,13,.86) 34%, rgba(10,11,13,.35) 62%, rgba(10,11,13,.55) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10,11,13,0) 30%);
}
.hero-copy { max-width: 38rem; }
.kicker {
  display: inline-block; margin: 0 0 1.25rem; padding: .3rem .6rem;
  border: 1px solid var(--white); font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.hero h1 { margin: 0; line-height: 0; }
.wordmark { width: min(100%, 36rem); }
.tagline {
  margin: 1.25rem 0 .75rem;
  font: 900 clamp(2.25rem, 5vw, 3.5rem)/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
}
.lede { margin: 0 0 1.75rem; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.45; color: var(--text); max-width: 34ch; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.facts li {
  padding: .45rem .8rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  font-size: .9375rem; font-weight: 600;
}

/* ---- the till ---- */
.till {
  background: rgba(17,19,22,.94); border: 1px solid var(--line);
  border-top: 6px solid var(--white);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
}
.price-row { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .25rem; }
.price { font: 900 clamp(3.75rem, 7vw, 5rem)/.9 var(--display); }
.each { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; }
.stock { margin: 0 0 1.5rem; font-weight: 600; color: var(--muted); }
.panel-title { font: 600 1.375rem/1.3 var(--body); text-transform: none; letter-spacing: 0; margin: 0 0 .75rem; }

label { display: block; font-weight: 600; margin-bottom: .375rem; }
input[type="email"] {
  width: 100%; font: inherit; padding: .8rem .9rem;
  border: 1px solid #5a5f68; border-radius: 0; background: var(--ink); color: var(--text);
}
input[type="email"]:hover { border-color: var(--muted); }
.help { color: var(--muted); font-size: .9375rem; margin: .5rem 0 0; }
form .help { margin-bottom: 1.25rem; }

button[type="submit"] {
  width: 100%; font: 600 1.0625rem/1.2 var(--body);
  padding: 1rem 1.25rem; border: 2px solid var(--white); border-radius: 0;
  background: var(--white); color: var(--black); cursor: pointer;
  transition: background-color .15s, color .15s;
}
button[type="submit"]:hover { background: transparent; color: var(--white); }
button[type="submit"]:disabled { background: #6b7079; border-color: #6b7079; color: var(--white); cursor: progress; }
button.link { font: inherit; color: var(--white); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* quantity: three big buttons, black and white */
.qty { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.qty legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.qty-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.qty-options label { margin: 0; position: relative; }
.qty-options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qty-options span {
  display: block; text-align: center; padding: .7rem 0;
  border: 2px solid #5a5f68; font: 900 1.75rem/1 var(--display); cursor: pointer;
}
.qty-options input:hover + span { border-color: var(--white); }
.qty-options input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); }
.qty-options input:disabled + span { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.qty-options input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 3px; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: .9rem 0 0; padding-top: .75rem; border-top: 1px solid var(--line); }
.total strong { font: 900 1.875rem/1 var(--display); }
.qty .help { margin-bottom: 0; }
#email-form .qty { margin-bottom: 1.5rem; }
.legend-note { color: var(--muted); font-weight: 400; font-size: .9375rem; }

.check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; font-weight: 400; margin: 0 0 1.25rem; }
.check input { width: 1.375rem; height: 1.375rem; margin: .15rem 0 0; accent-color: var(--white); }
#pay-form > .help { margin: .75rem 0 0; }

.error { color: var(--alert); font-weight: 600; margin: 1rem 0 0; }

:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
button[type="submit"]:focus-visible { outline-offset: 4px; }

/* ---- sections ---- */
main > section:not(.hero) { padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); }
main > section > * { max-width: var(--max); }
h2 { font: 900 clamp(2rem, 4vw, 2.75rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 1.75rem; }

.steps {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
}
.steps li {
  counter-increment: step; padding: 1.25rem 1.25rem 1.5rem;
  background: var(--panel); border-top: 4px solid var(--white); color: var(--muted);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: .75rem;
  font: 900 2.5rem/1 var(--display); color: var(--white);
}
.steps strong { display: block; color: var(--text); font-weight: 600; margin-bottom: .25rem; }

.game {
  display: grid; grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
  background: var(--panel); border-block: 1px solid var(--line);
}
.pack { display: block; width: 100%; }
.features { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.features li { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.features li:last-child { border-bottom: 1px solid var(--line); }
.features strong { color: var(--text); font-weight: 600; }

.notes { margin: 0; padding-left: 1.1rem; max-width: 42rem; color: var(--muted); }
.notes li { margin-bottom: .4rem; }

/* ---- footer ---- */
footer { background: var(--black); color: var(--muted); padding: 2rem var(--gutter) 2.5rem; font-size: .9375rem; }
footer p { margin: 0 0 .5rem; max-width: 75ch; }
footer .legal { font-size: .8125rem; }

/* ---- confirmation pages (success / cancelled) ---- */
.band { height: 14px; background: repeating-linear-gradient(to bottom, var(--white) 0 3.5px, var(--black) 3.5px 7px); }
.notice { padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) 5rem; max-width: 46rem; }
.notice h1 { font: 900 clamp(3rem, 9vw, 5.5rem)/.95 var(--display); text-transform: uppercase; margin: 0 0 1.5rem; }
.notice p { margin: 0 0 1rem; color: var(--muted); }
.notice p:first-of-type { color: var(--text); font-size: 1.1875rem; }
.button-link {
  display: inline-block; margin-top: 1rem; padding: 1rem 1.25rem;
  background: var(--white); color: var(--black); font-weight: 600; text-decoration: none;
  border: 2px solid var(--white);
}
.button-link:hover { background: transparent; color: var(--white); }

/* ---- smaller screens ---- */
@media (max-width: 60rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 0; align-items: start; }
  .hero::before { background-position: 55% 30%; inset: 0 0 auto 0; height: 22rem; }
  .hero::after {
    inset: 0 0 auto 0; height: 22.1rem;
    background: linear-gradient(0deg, var(--ink) 0%, rgba(10,11,13,.2) 55%, rgba(10,11,13,.35) 100%);
  }
  .hero-copy { padding-top: 13rem; }
  .lede { max-width: none; }
  .game { grid-template-columns: 1fr; }
  .pack { max-width: 16rem; margin: 0 auto; }
  .masthead-tag { display: none; }
}
@media (max-width: 30rem) {
  .steps { grid-template-columns: 1fr; }
  .club { font-size: 1.375rem; }
  .crest { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
