/* Football Quotes — modern dark theme. One stylesheet, no frameworks. */
:root {
  /* Palette: 60% beige (backgrounds) · 30% green (brand, text, buttons) · 10% orange (accents).
     Green and orange are near-complementary; beige is a warm neutral that ties them together.
     Every text pairing below meets WCAG AA (4.5:1+). */
  --bg: #FBF6EC;          /* very light beige */
  --surface: #FFFDF8;     /* card white, warm */
  --surface-2: #F5EEDF;   /* deeper beige for hover / panels */
  --line: #E9E0CE;
  --line-2: #D9CDB5;
  --text: #1B2A21;        /* green-black ink   13.9:1 on bg */
  --muted: #5E6B60;       /* secondary text     5.2:1 on bg */
  --green: #1E6B47;       /* brand green        6.0:1 on bg, 6.5:1 with white */
  --green-dark: #164F35;
  --green-tint: #E3F0E6;
  --orange: #D9661F;      /* decorative accent (quote marks, dots, glows) */
  --orange-text: #A84A17; /* orange used for text, 5.4:1 on bg */
  --orange-tint: #FCE9DA;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(27, 42, 33, .05), 0 8px 24px -8px rgba(27, 42, 33, .10);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 90% -10%, rgba(30, 107, 71, .10), transparent 60%),
    radial-gradient(800px 480px at -10% 5%, rgba(217, 102, 31, .08), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  /* Keep the footer at the bottom on short pages */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.site-header, .site-footer { flex-shrink: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--green); color: #fff; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: rgba(251, 246, 236, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font: 800 1.2rem/1 var(--display); letter-spacing: -.02em;
}
.logo img { width: 30px; height: 30px; }
.logo { color: var(--green-dark); }
.logo span { color: var(--orange-text); }
.nav { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--muted);
  padding: 8px 16px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { background: var(--green); color: #fff; }

/* ---------- Buttons & small bits */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: .95rem; padding: 13px 22px; border-radius: 999px;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px -6px rgba(30,107,71,.5); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-text); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-text); background: var(--orange-tint); border: 1px solid #F6D3B8;
  padding: 6px 12px; border-radius: 999px;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(217,102,31,.18); }

.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--av-bg, var(--green-tint)); color: var(--av-fg, var(--green));
  font: 800 .72rem/1 var(--sans); letter-spacing: .02em;
  border: 1px solid rgba(27,42,33,.06);
}
.chip {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-size: .8rem; font-weight: 600; color: var(--text);
  padding: 4px 11px 4px 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip .avatar { width: 22px; height: 22px; font-size: .58rem; }

/* ---------- Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 {
  margin: 22px 0 26px;
  font: 800 clamp(2.1rem, 5.2vw, 4.1rem)/1.04 var(--display); letter-spacing: -.035em;
  text-wrap: balance;
}
.hero h1 { color: var(--green-dark); }
.hero h1 .q { color: var(--orange); font-family: Georgia, "Times New Roman", serif; }
.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.byline > .avatar { width: 44px; height: 44px; font-size: .85rem; }
.byline a.name { font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.byline a.name:hover { color: var(--green); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.ball-stage { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.ball-stage::before, .ball-stage::after {           /* centre-circle pitch markings */
  content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(30,107,71,.12);
}
.ball-stage::before { inset: -14%; }
.ball-stage::after { inset: 46%; background: rgba(30,107,71,.12); border: 0; }
.ball-stage .glow {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,102,31,.28), rgba(30,107,71,.10) 50%, transparent 70%); filter: blur(30px);
}
.ball-stage img { position: relative; z-index: 1; width: 100%; height: auto; animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) { .ball-stage img { animation: none; } }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-top: 56px;
}
.stats { box-shadow: var(--shadow); }
.stats a { background: var(--surface); padding: 22px 26px; text-decoration: none; transition: background .15s; }
.stats a:hover { background: var(--surface-2); }
.stats strong { display: block; font: 800 2.2rem/1 var(--display); letter-spacing: -.03em; color: var(--green); }
.stats span { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* ---------- Sections */
.section { padding: 40px 0 88px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--display); letter-spacing: -.03em; }
.section-head h2 { color: var(--green-dark); }
.section-head a { color: var(--orange-text); font-weight: 700; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

/* ---------- Page header (inner pages) */
.page-head { position: relative; padding-top: 56px; padding-bottom: 8px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green); }
.page-head h1 { margin: 0 0 10px; font: 800 clamp(2.4rem, 6vw, 4rem)/1 var(--display); letter-spacing: -.04em; color: var(--green-dark); }
.page-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }

.profile {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 32px; border-radius: 28px;
  background: linear-gradient(135deg, var(--green-tint) 0%, var(--surface) 55%, var(--orange-tint) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.profile .avatar { width: 96px; height: 96px; font-size: 1.8rem; font-family: var(--display); }
.profile h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.profile .watermark {
  position: absolute; right: -60px; top: 50%; width: 260px; transform: translateY(-50%) rotate(-12deg);
  opacity: .10; pointer-events: none;
}
.profile > div { position: relative; z-index: 1; }
.related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.related-label { color: var(--muted); font-size: .85rem; font-weight: 600; margin: 26px 0 0; }

/* ---------- Quote cards (masonry) */
.quotes { columns: 3 320px; column-gap: 18px; }
.quote-card {
  break-inside: avoid; margin: 0 0 18px;
  position: relative; padding: 26px 24px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.quote-card:hover { transform: translateY(-3px); border-color: #F0C6A6; box-shadow: 0 14px 30px -12px rgba(27,42,33,.18); }
.quote-card::before {
  content: "\201C"; display: block; height: 30px; margin-bottom: 4px;
  font: 700 4.4rem/1 Georgia, "Times New Roman", serif; color: var(--orange);
}
.quote-card h3 {
  margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.quote-card blockquote {
  margin: 0 0 20px; font: 600 1.2rem/1.42 var(--display); letter-spacing: -.01em;
}
.quote-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.who { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: .92rem; }
.who:hover { color: var(--green); }

/* ---------- A–Z */
.az {
  position: sticky; top: 68px; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0; margin-top: 28px;
  background: linear-gradient(var(--bg) 80%, rgba(251,246,236,0));
}
.az a, .az span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  font-weight: 700; font-size: .88rem; text-decoration: none;
}
.az a { background: var(--surface); border: 1px solid var(--line); color: var(--green); }
.az a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.az span { color: #C9BFAE; }

.group { margin-top: 36px; scroll-margin-top: 140px; }
.group h2 {
  display: flex; align-items: center; gap: 14px; margin: 0 0 14px;
  font: 800 1.5rem/1 var(--display); letter-spacing: -.02em; color: var(--green);
}
.group h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group h2 small { font: 600 .85rem var(--sans); color: var(--muted); letter-spacing: 0; }

.name-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.name-list a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; font-weight: 600; transition: border-color .15s, background .15s;
}
.name-list a:hover { border-color: var(--green); color: var(--green); }
.name-list .label { flex: 1; min-width: 0; }
.count { font-size: .76rem; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 3px 9px; border-radius: 999px; }

.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.team-grid a {
  display: flex; flex-direction: column; gap: 18px; padding: 18px; min-height: 140px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.team-grid a:hover { transform: translateY(-3px); border-color: var(--green); }
.team-grid .avatar { width: 46px; height: 46px; font-size: .9rem; border-radius: 14px; }
.team-grid strong { display: block; font: 700 1.1rem/1.2 var(--display); letter-spacing: -.01em; }
.team-grid small { color: var(--muted); font-weight: 600; }
.team-grid .bottom { margin-top: auto; }

/* ---------- Footer */
.site-footer { background: var(--green-dark); padding: 34px 0; color: #D7E4DA; font-size: .9rem; }
.site-footer strong { color: #fff; }
.site-footer .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-footer img { width: 24px; height: 24px; }

/* ---------- Small screens */
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .ball-stage { order: -1; width: 200px; height: 200px; justify-self: start; }
  .ball-stage::before { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 8px 12px; font-size: .85rem; }
  .az { position: static; }
  .az a, .az span { width: 32px; height: 32px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stats a { padding: 16px; }
  .stats strong { font-size: 1.6rem; }
  .profile { padding: 22px; }
  .profile .avatar { width: 72px; height: 72px; font-size: 1.4rem; }
  .page-head { padding-top: 32px; }
}
