/* The Weekly Lock: plain CSS, light and dark. */

:root {
  --paper: #f6f4ef;
  --surface: #ffffff;
  --ink: #15171a;
  --muted: #62666d;
  --rule: #e3dfd6;
  --gold: #b7821f;
  --gold-soft: #f3e6c8;
  --hit: #1d7a4b;
  --hit-soft: #dcefe4;
  --miss: #b3261e;
  --miss-soft: #f6dedb;
  --push: #56606e;
  --push-soft: #e5e8ec;
  --pending: #8a5a00;
  --pending-soft: #fbecc8;
  --shadow: 0 1px 2px rgb(21 23 26 / 0.05), 0 8px 24px rgb(21 23 26 / 0.06);
  --radius: 14px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1114;
    --surface: #171a1f;
    --ink: #ecebe6;
    --muted: #9aa0a8;
    --rule: #2a2e35;
    --gold: #e0ad4a;
    --gold-soft: #3a2f18;
    --hit: #5cc98f;
    --hit-soft: #173526;
    --miss: #f07b72;
    --miss-soft: #3d1c1a;
    --push: #aab3bf;
    --push-soft: #262b32;
    --pending: #f0c060;
    --pending-soft: #3a2f14;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

p { margin: 0; }

.wrap { display: block; width: 100%; max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* Masthead */

.masthead { background: var(--ink); color: var(--paper); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font: 700 1.6rem/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.brand__tag { font-size: 0.85rem; opacity: 0.75; margin-top: 4px; }
.masthead__season {
  flex: none;
  font: 600 0.8rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgb(255 255 255 / 0.25); border-radius: 999px; padding: 7px 12px;
}
@media (prefers-color-scheme: dark) {
  .masthead { background: #07080a; color: var(--ink); border-bottom: 1px solid var(--rule); }
}

.lock-icon { width: 34px; height: 34px; flex: none; }
.lock-icon rect { fill: var(--gold); }
.lock-icon path { stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; }
.lock-icon__hole { fill: var(--ink); }
@media (prefers-color-scheme: dark) { .lock-icon__hole { fill: #07080a; } }

.demo-notice {
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 0.9rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

main { padding-top: 32px; padding-bottom: 48px; }

/* Shared pieces */

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.09em; text-transform: uppercase;
}

.section-title { font: 700 1.35rem/1.2 var(--display); letter-spacing: 0.02em; text-transform: uppercase; margin: 0 0 14px; }

.badge {
  --team: #333;
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--team); color: var(--team-ink, #fff);
  font: 700 0.78rem/1 var(--sans); letter-spacing: 0.03em;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.18);
}
.badge--lg { width: 68px; height: 68px; font-size: 1.1rem; }

.pill {
  display: inline-block; flex: none;
  padding: 5px 11px; border-radius: 999px;
  font: 700 0.75rem/1 var(--sans); letter-spacing: 0.07em; text-transform: uppercase;
}
.pill--hit { background: var(--hit-soft); color: var(--hit); }
.pill--miss { background: var(--miss-soft); color: var(--miss); }
.pill--push { background: var(--push-soft); color: var(--push); }
.pill--pending { background: var(--pending-soft); color: var(--pending); }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  padding: 11px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--gold); color: #15171a; }

/* The pick */

.pick { display: flex; align-items: center; gap: 16px; }
.pick > div { flex: 1; min-width: 0; }
.pick__line { font: 800 2.3rem/1 var(--display); letter-spacing: 0.01em; }
.pick__matchup { color: var(--muted); margin-top: 6px; }
.pick__final { margin-top: 8px; font-weight: 600; }

/* Home */

.home { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }

.lock-card { border-top: 5px solid var(--gold); display: flex; flex-direction: column; gap: 16px; }
.lock-card .eyebrow { margin: 0; }
.lock-card__week { margin: -8px 0 0; font: 800 3rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.lock-card__headline { margin: 4px 0 0; font-size: 1.3rem; line-height: 1.3; }
.lock-card__excerpt { color: var(--muted); max-width: 60ch; }
.lock-card .button { align-self: flex-start; }

.record__line { font: 800 3.6rem/1 var(--display); letter-spacing: 0.02em; margin: 4px 0 14px; }
.record__split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; }
.record__split div { background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.record__split dt { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.record__split dd { margin: 2px 0 0; font: 700 1.4rem/1.1 var(--display); }
.record__rate strong { font-size: 1.15rem; }
.record__streak { color: var(--muted); margin-top: 4px; }
.record__strip { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; }

.dot { width: 16px; height: 16px; border-radius: 50%; }
.dot--hit { background: var(--hit); }
.dot--miss { background: var(--miss); }
.dot--push { background: var(--push); }
.dot--pending { background: transparent; box-shadow: inset 0 0 0 2px var(--pending); }

/* Season list */

.season { margin-top: 44px; }
.season__list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.season__row {
  display: grid;
  grid-template-columns: 76px 40px 120px minmax(0, 1fr) auto;
  align-items: center; gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--rule);
}
.season__row:first-child { border-top: 0; }
.season__week { color: var(--muted); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.season__pick { font-weight: 700; white-space: nowrap; }
.season__opp { color: var(--muted); font-weight: 500; }
.season__headline { text-decoration: none; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season__headline:hover { text-decoration: underline; text-underline-offset: 3px; }
.season__headline::after { content: ""; position: absolute; inset: 0; }
.season__row { position: relative; }
.season__row:hover { background: var(--paper); }

/* Week page */

.crumbs { margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); }

.week { max-width: 720px; }
.week__headline { font: 800 2.6rem/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 24px; }
.pick--week { align-items: flex-start; }
.week__write-up { font-size: 1.15rem; line-height: 1.65; margin: 28px 0; }
.week__write-up p + p { margin-top: 1em; }

.pager { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); padding-top: 20px; }
.pager a { font-weight: 700; text-decoration: none; padding: 8px 0; }
.pager a:hover { color: var(--gold); }

/* Footer */

.footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.88rem; }
.footer__inner { padding-top: 24px; padding-bottom: 40px; display: grid; gap: 6px; }

/* Phones */

@media (max-width: 820px) {
  .home { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  main { padding-top: 22px; }
  .brand__name { font-size: 1.3rem; }
  .brand__tag { font-size: 0.78rem; }
  .masthead__season { display: none; }
  .card { padding: 18px; }
  .lock-card__week { font-size: 2.4rem; }
  .pick { flex-wrap: wrap; gap: 12px; }
  .pick__line { font-size: 2rem; }
  .record__line { font-size: 3rem; }
  .season__row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas: "badge week pill" "badge line line";
    row-gap: 2px; padding: 12px 14px;
  }
  .season__row .badge { grid-area: badge; }
  .season__week { grid-area: week; }
  .season__row .pill { grid-area: pill; }
  .season__pick { display: none; }
  .season__headline { grid-area: line; white-space: normal; }
  .week__headline { font-size: 2rem; }
}
