:root {
  --ice: #d7eef5;
  --paper: #fff8f0;
  --ink: #12263a;
  --ink-soft: #3d5268;
  --muted: #5a6d80;
  --cobalt: #1e4d8c;
  --tomato: #e94f37;
  --butter: #f5d547;
  --mint: #2bb673;
  --cream: #fff5eb;
  --card: #ffffff;
  --header-h: 56px;
  --max: 1080px;
  --font: "Avenir Next", "Segoe UI", "Gill Sans", sans-serif;
  --display: "Avenir Next Condensed", "Gill Sans", "Century Gothic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--ice);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cobalt);
}

a:hover {
  color: var(--tomato);
}

h1,
h2,
h3,
.brand-name,
.pick-score,
.pick-go span,
.hero-kicker {
  font-family: var(--display);
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 0.45em;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.7rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
}

h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -44px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--cream);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--cream);
}

.site-header::after {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--butter) 0 25%, var(--tomato) 25% 50%, var(--mint) 50% 75%, var(--cobalt) 75% 100%);
}

.header-inner {
  width: min(100% - 28px, var(--max));
  min-height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px 4px 14px 4px;
  background: var(--butter);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.05;
}

.brand-tag {
  display: block;
  margin-top: 3px;
  color: var(--butter);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 15px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 10px 0 var(--ink);
}

.site-header .site-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.site-header .site-nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--cream);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-header .site-nav a[aria-current="page"] {
  background: var(--tomato);
  color: #fff;
}

.site-header .site-nav a:hover {
  background: rgba(245, 213, 71, 0.16);
  color: var(--butter);
}

.site-footer .site-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrap {
  width: min(100% - 36px, var(--max));
  margin-inline: auto;
}

.hero {
  position: relative;
  margin: 8px 10px 0;
  overflow: hidden;
  border-radius: 6px 16px 6px 16px;
  background: var(--cobalt);
}

.hero img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  object-position: center 40%;
}

.hero-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(18, 38, 58, 0.58);
  color: var(--cream);
  text-align: center;
}

.hero-kicker {
  margin: 0 0 2px;
  color: var(--butter);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-panel h1 {
  margin: 0;
  color: #fff;
  font-size: 1.22rem;
}

.hero-panel p {
  display: none;
}

.board {
  padding: 8px 0 10px;
}

.board-lead {
  display: none;
}

.rank-list {
  display: grid;
  gap: 8px;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: 36px 52px minmax(0, 1fr);
  grid-template-areas:
    "num art copy"
    "go go go";
  column-gap: 8px;
  row-gap: 0;
  align-items: center;
  overflow: hidden;
  border: 3px solid var(--cobalt);
  border-radius: 4px 16px 4px 16px;
  background: var(--card);
  cursor: pointer;
  user-select: none;
}

.game-card:nth-child(even) {
  background: var(--paper);
}

.hidlink {
  position: absolute;
  z-index: -5;
  opacity: 0;
}

.pick-num {
  grid-area: num;
  display: grid;
  place-items: center;
  align-self: stretch;
  background: var(--cobalt);
  color: var(--butter);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
}

.pick-art {
  grid-area: art;
  width: 52px;
  height: 52px;
  margin: 8px 0;
  overflow: hidden;
  border-radius: 12px 4px 12px 4px;
  background: var(--ice);
}

.pick-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pick-copy {
  grid-area: copy;
  min-width: 0;
  padding: 8px 8px 6px 0;
}

.pick-kicker {
  margin: 0 0 3px;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.15;
}

.pick-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 800;
}

.stars {
  color: #c48a0a;
  letter-spacing: -1px;
}

.pick-mark {
  padding: 2px 7px;
  background: var(--butter);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pick-copy p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pick-go {
  grid-area: go;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  background: var(--tomato);
  color: #fff;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.block {
  padding: 28px 0 8px;
}

.block h2 {
  margin-bottom: 10px;
}

.split {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 16px 16px 14px;
  background: var(--paper);
  border-left: 6px solid var(--mint);
}

.story {
  display: grid;
  gap: 18px;
  align-items: center;
}

.story-media {
  overflow: hidden;
  border-radius: 28px 6px 28px 6px;
  background: var(--card);
}

.story-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.story-copy p {
  color: var(--ink-soft);
}

.ask-list {
  display: grid;
  gap: 8px;
}

.ask-list details {
  padding: 12px 14px;
  background: var(--card);
  border-bottom: 3px solid var(--cobalt);
}

.ask-list summary {
  cursor: pointer;
  font-weight: 800;
  font-family: var(--display);
}

.ask-list details p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.notes {
  display: grid;
  gap: 14px;
  padding: 8px 0 28px;
}

.notes article {
  padding: 14px 0 4px;
  border-top: 3px solid var(--butter);
}

.inner-page {
  padding: 28px 0 48px;
}

.inner-page .lead {
  max-width: 62ch;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 1.45em;
}

.prose ul {
  padding-left: 1.15em;
}

.contact-grid {
  display: grid;
  gap: 22px;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--card);
  border-radius: 4px 22px 4px 22px;
}

.contact-form label {
  display: grid;
  gap: 5px;
  font-weight: 700;
  font-size: 0.88rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--butter);
  outline-offset: 1px;
}

.send-button,
.button,
a.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--tomato);
  color: #fff;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.send-button:hover,
.button:hover,
a.send-button:hover {
  background: var(--cobalt);
  color: #fff;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-aside address {
  font-style: normal;
}

.site-footer {
  margin-top: 8px;
  background: var(--ink);
  color: #d7e3ee;
}

.footer-shell {
  width: min(100% - 32px, 1080px);
  margin: 0 auto;
  padding: 32px 0 22px;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-col h2 {
  margin: 0 0 10px;
  color: var(--cream);
  font-size: 1.05rem;
}

.footer-col p,
.footer-col a {
  color: #d7e3ee;
}

.site-footer a {
  color: var(--butter);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .site-nav {
  margin-top: 0;
}

.site-footer .site-nav a {
  min-height: 32px;
  padding: 0;
  border-radius: 0;
  color: var(--butter);
}

.site-footer .brand-name {
  color: var(--cream);
}

.rg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 8px;
}

.rg-row a {
  display: block;
  line-height: 0;
}

.rg-row img {
  height: 36px;
  width: auto;
  background: #12263a;
}

.footer-disclaimer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 245, 235, 0.14);
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  font-size: 0.88rem;
}

.footer-copy {
  margin: 12px 0 0;
  color: #8ea0b3;
  font-size: 0.78rem;
}

.cookie-bar {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  background: var(--butter);
  color: var(--ink);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar a {
  color: var(--cobalt);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 38, 58, 0.7);
}

.modal-backdrop[hidden] {
  display: none;
}

.thank-you {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 22px 22px;
  background: var(--paper);
  border-top: 8px solid var(--mint);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--ice);
  font-size: 1.2rem;
  cursor: pointer;
}

.lost-page {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  text-align: left;
  padding: 48px 16px;
}

@media (min-width: 700px) {
  .hero {
    margin: 10px 16px 0;
  }

  .hero img {
    height: 128px;
  }

  .hero-panel {
    padding: 10px 16px;
  }

  .hero-panel h1 {
    font-size: 1.55rem;
  }

  .hero-panel p {
    display: block;
    margin: 4px auto 0;
    max-width: 54ch;
    color: rgba(255, 245, 235, 0.9);
    font-size: 0.88rem;
    text-align: center;
  }

  .board {
    padding: 12px 0 10px;
  }

  .board-lead {
    display: block;
    max-width: 62ch;
    margin: 0 auto 10px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    text-align: center;
  }

  .rank-list {
    gap: 10px;
  }

  .game-card {
    grid-template-columns: 44px 64px minmax(0, 1fr);
    grid-template-areas:
      "num art copy"
      "go go go";
    min-height: 0;
  }

  .pick-art {
    width: 64px;
    height: 64px;
    margin: 8px 0;
  }

  .pick-copy p:last-child {
    font-size: 0.84rem;
    -webkit-line-clamp: 2;
  }

  .pick-go {
    min-height: 40px;
    margin: 0 10px 10px;
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.04em;
    font-size: 0.88rem;
    border-radius: 8px;
  }
}

@media (min-width: 880px) {
  .hero img {
    height: 148px;
  }

  .hero-panel h1 {
    font-size: 1.75rem;
  }

  .game-card {
    grid-template-columns: 48px 72px minmax(0, 1fr);
    min-height: 0;
  }

  .pick-art {
    width: 72px;
    height: 72px;
  }

  .split,
  .story,
  .contact-grid,
  .footer-grid,
  .notes {
    grid-template-columns: 1fr 1fr;
  }

  .story.is-flip .story-media {
    order: 2;
  }

  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .footer-grid {
    grid-template-columns: 1.1fr 0.8fr 0.9fr 1fr;
  }

  .notes {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 879px) {
  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: 0;
    padding: 10px 14px 14px;
    background: var(--ink);
  }

  .site-header .site-nav.is-open {
    display: flex;
  }

  .hero {
    margin: 8px 8px 0;
  }

  .cookie-bar .button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
