/* Spreadsheet FC - one small stylesheet, mobile first (phone layout is the default,
   wider screens get a few extras at the bottom). */

:root {
  --bg: #0D1424;
  --card: #111B30;
  --line: #22304D;
  --text: #F4F7FB;
  --muted: #8A97B3;
  --lime: #C8F23A;
  --red: #FF7A7A;
  --head: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

main, .site-header, .site-footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
main { padding-bottom: 32px; }

h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; margin-top: 24px; }
h2 { font-size: 1.3rem; margin-top: 28px; }
.card h2, .steps h2 { margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

a { color: var(--lime); }
a:hover { text-decoration: none; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num, dd, .badge, .league, .kickoff, .published { font-family: var(--mono); }
.lead { font-size: 1.05rem; color: var(--text); }
.tagline { font-family: var(--mono); color: var(--lime); letter-spacing: .03em; }

/* ---------- header and menu ---------- */
.site-header { padding-top: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand strong { display: block; font-family: var(--head); font-size: 1.2rem; }
.brand small { display: block; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.menu {
  display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.menu a {
  flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: .9rem;
}
.menu a[aria-current="page"] { background: var(--lime); border-color: var(--lime); color: var(--bg); font-weight: 600; }

/* ---------- home hero ---------- */
.hero { text-align: center; padding-top: 24px; }
.hero-logo { display: block; margin: 0 auto 12px; height: auto; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; margin: 16px 0;
}
.cards { display: grid; gap: 14px; margin: 16px 0; }
.cards .card { margin: 0; }
.empty p { margin: 0; color: var(--muted); }

.pick .league { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.pick h3 { margin-bottom: 4px; }
.pick .kickoff { color: var(--muted); font-size: .85rem; }
.pick .selection {
  font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--lime);
  border-left: 3px solid var(--lime); padding-left: 10px;
}
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.numbers div { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
dt { color: var(--muted); font-size: .78rem; }
dd { margin: 0; font-size: 1.05rem; font-weight: 600; }
.published { color: var(--muted); font-size: .8rem; margin: 0; }
.flag { color: var(--red); font-family: var(--mono); font-size: .8rem; margin: 6px 0 0; }

/* ---------- results ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.results { list-style: none; padding: 0; margin: 0; }
.result {
  display: flex; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--muted);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.result.win { border-left-color: var(--lime); }
.result.loss { border-left-color: var(--red); }
.result p { margin: 0; }
.result .match { font-weight: 600; }
.selection-small { font-size: .9rem; }
.result-side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: 0 0 auto; }
.badge { font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--line); }
.win .badge { background: var(--lime); color: var(--bg); }
.loss .badge { background: var(--red); color: var(--bg); }

/* ---------- notes, warnings, buttons, lists ---------- */
.note { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 24px; }
.warning { border: 1px solid var(--lime); border-radius: 12px; padding: 12px 14px; margin: 16px 0; }
.button {
  display: inline-block; margin: 4px 6px 4px 0; padding: 10px 16px; border-radius: 10px;
  background: var(--lime); color: var(--bg); font-weight: 600; text-decoration: none;
}
.button.ghost { background: transparent; color: var(--lime); border: 1px solid var(--lime); }
.links { padding-left: 1.1em; }
.links li { margin-bottom: 8px; }
.steps { list-style: none; padding: 0; }
.glossary dt { font-family: var(--mono); color: var(--lime); margin-top: 10px; }
.glossary dd { font-family: inherit; font-weight: 400; font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 28px; text-align: center; }
.footer-line { font-family: var(--mono); font-size: .85rem; }
.social a { margin: 0 8px; display: inline-block; }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  h1 { font-size: 2.4rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .numbers { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
