/* Direction: matchday programme — chalk-white paper, heavy italic display type,
   round kit crests, one pitch-green accent for leaders, wins and the main button. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f4f4f0;
  --surface: #ffffff;
  --surface-2: #eaebe4;
  --border: #d6d8cd;
  --border-strong: #acb0aa;
  --ink: #15170f;
  --muted: #595e51;
  --accent: #1c7a3c;
  --accent-hover: #186833;
  --accent-ink: #ffffff;
  --accent-text: #15672f;
  --accent-strong: #0f5526;
  --accent-soft: #e1f0e3;
  --accent-border: #93bd9f;
  --success: #1c7a3c;
  --success-ink: #ffffff;
  --success-soft: #dae5da;
  --success-strong: #1a7037;
  --warning: #9c6b06;
  --warning-ink: #ffffff;
  --warning-soft: #e9e4d4;
  --warning-strong: #845a06;
  --danger: #b02f28;
  --danger-ink: #ffffff;
  --danger-soft: #ecdcd8;
  --danger-strong: #b02f28;
  --chart-1: #1c7a3c;
  --chart-2: #1091a2;
  --chart-3: #354897;
  --chart-4: #a55c9f;
  --chart-5: #86281e;
  --chart-6: #997905;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 900;
  --display-tracking: -0.03em;
  --radius-card: 4px;
  --radius-btn: 3px;
  --radius-input: 3px;
  --card-pad: 1.15rem;
  --x-on-photo: #ffffff;
  --x-draw: #868c7a;
  --x-loss: #b02f28;
  --x-chalk: rgba(21, 23, 15, 0.1);
  --x-kit-red: #c8322b;
  --x-kit-claret: #6e1f2e;
  --x-kit-orange: #df7025;
  --x-kit-yellow: #e6c22c;
  --x-kit-green: #1f8a46;
  --x-kit-sky: #4ea7db;
  --x-kit-blue: #22509c;
  --x-kit-navy: #16233f;
  --x-kit-purple: #5a3a8c;
  --x-kit-pink: #cd5e8d;
  --x-kit-black: #16170f;
  --x-kit-white: #f7f8f3;
  --x-kit-silver: #b7bab0;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #041108;
  --surface: #1d2921;
  --surface-2: #111d14;
  --border: #27322b;
  --border-strong: #4f5852;
  --ink: #f4f4f0;
  --muted: #949993;
  --accent: #1c7a3c;
  --accent-hover: #3e8e59;
  --accent-ink: #ffffff;
  --accent-text: #5ca073;
  --accent-strong: #4e9867;
  --accent-soft: #092813;
  --accent-border: #0f401f;
  --success: #1c7a3c;
  --success-ink: #ffffff;
  --success-soft: #092813;
  --success-strong: #4e9867;
  --warning: #9c6b06;
  --warning-ink: #ffffff;
  --warning-soft: #252508;
  --warning-strong: #b28c3d;
  --danger: #b02f28;
  --danger-ink: #ffffff;
  --danger-soft: #2a180f;
  --danger-strong: #c66a65;
  --chart-1: #248042;
  --chart-2: #1e97a8;
  --chart-3: #627ace;
  --chart-4: #ab61a5;
  --chart-5: #c15e50;
  --chart-6: #9f7f14;
}

/* Touchline — matchday programme textures and motion */

main {
  animation: tl-page-in 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes tl-page-in {
  from {
    transform: translateY(16px);
  }
  to {
    transform: none;
  }
}
html.reduced-motion main {
  animation: none;
}

/* round kit crest: two kit colours split on the diagonal, dark disc for initials */
.crest {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(10, 12, 8, 0.6) 0 53%, rgba(10, 12, 8, 0) 54%),
    linear-gradient(118deg, var(--x-c1, var(--x-kit-green)) 0 48%, var(--x-c2, var(--x-kit-black)) 48% 100%);
  color: var(--x-on-photo);
  box-shadow: inset 0 0 0 1px rgba(10, 12, 8, 0.22);
  flex: none;
}

/* chalk line under a section heading */
.chalk-rule {
  background-image: repeating-linear-gradient(90deg, var(--x-chalk) 0 10px, rgba(0, 0, 0, 0) 10px 16px);
  height: 3px;
}

.lift {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -18px rgba(10, 12, 8, 0.45);
}
html.reduced-motion .lift:hover {
  transform: none;
}

.pts {
  font-variant-numeric: tabular-nums;
}
