/* ============================================================
   Padel Stateside: design system
   Identity: deep court green + padel-ball yellow on warm paper.
   Display type is Fraunces (editorial serif with real attitude);
   text and UI type is Archivo. No stock imagery anywhere: all
   visuals are CSS and SVG compositions.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --court-950: #05231a;
  --court-900: #07301f;
  --court-800: #0a3a28;
  --court: #0c4633;
  --court-bright: #116149;
  --court-soft: #e2eee4;
  --ball: #d9e021;
  --ball-deep: #b9c114;
  --paper: #faf6ed;
  --paper-2: #f2ecd9;
  --ink: #171a15;
  --ink-soft: #3c423b;
  --muted: #68705f;
  --line: #ddd5bd;
  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 76rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--court);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--court-bright);
}

:focus-visible {
  outline: 3px solid var(--ball-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--court-950);
  color: var(--paper);
  padding: var(--space-3) var(--space-4);
  z-index: 200;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
  color: var(--paper);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  color: var(--court);
  box-shadow: inset 0 -0.32em 0 var(--ball);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 999px;
}

.nav-list a:hover {
  background: var(--court-soft);
  color: var(--court-900);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--court);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ball {
  background: var(--ball);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-ball:hover {
  background: var(--ball-deep);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}

.btn-ghost:hover {
  background: rgba(250, 246, 237, 0.12);
  color: var(--paper);
}

.btn-court {
  background: var(--court);
  color: var(--paper);
  border-color: var(--court-950);
}

.btn-court:hover {
  background: var(--court-bright);
  color: var(--paper);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(217, 224, 33, 0.16), transparent 60%),
    linear-gradient(160deg, var(--court-900), var(--court-950) 70%);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}

.hero::before {
  /* faint court lines across the green */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.85%, rgba(250, 246, 237, 0.07) 49.85% 50.15%, transparent 50.15%),
    linear-gradient(0deg, transparent 0 33%, rgba(250, 246, 237, 0.05) 33% 33.4%, transparent 33.4%),
    linear-gradient(0deg, transparent 0 66%, rgba(250, 246, 237, 0.05) 66% 66.4%, transparent 66.4%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-7);
  align-items: center;
  padding-block: var(--space-8);
}

.hero-kicker {
  margin: 0 0 var(--space-4);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--ball);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.9rem, 6.5vw, 5.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.hero-title .hl {
  color: var(--ball);
  font-style: italic;
}

.hero-sub {
  margin: var(--space-5) 0 var(--space-6);
  font-size: 1.2rem;
  line-height: 1.55;
  color: #e9e4d2;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin: var(--space-7) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(250, 246, 237, 0.25);
  list-style: none;
  padding-left: 0;
}

.hero-stats li {
  font-size: 0.95rem;
  color: #cfd6c6;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--paper);
  line-height: 1.1;
}

.hero-art {
  position: relative;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.hero-chip {
  position: absolute;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.hero-chip-a {
  top: 6%;
  right: 4%;
  transform: rotate(3deg);
}

.hero-chip-b {
  bottom: 8%;
  left: 0;
  transform: rotate(-2deg);
}

/* ---------- Section scaffolding ---------- */
.section {
  padding-block: var(--space-8);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-kicker {
  margin: 0 0 var(--space-2);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--court);
}

/* ---------- Feed layout ---------- */
.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: var(--space-7);
  align-items: start;
}

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.filter-btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.filter-btn:hover {
  background: var(--court-soft);
}

.filter-btn[aria-pressed="true"] {
  background: var(--court);
  border-color: var(--court);
  color: var(--paper);
}

.feed-count {
  margin: 0 0 var(--space-5);
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 4px 4px 0 var(--paper-2);
  transition: transform 140ms ease, box-shadow 140ms ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ball);
}

.card[hidden] {
  display: none;
}

.card-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.chip {
  display: inline-block;
  padding: 0.15rem var(--space-3);
  border-radius: 999px;
  background: var(--court-soft);
  color: var(--court-900);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip-gear {
  background: #f4f6cf;
  color: #4c5605;
}

.chip-clubs {
  background: #e7e3f2;
  color: #3d3465;
}

.chip-culture {
  background: #fbe7d7;
  color: #7a3c10;
}

.chip-fuel {
  background: #fde3e3;
  color: #7c2222;
}

.badge-new {
  display: inline-block;
  padding: 0.15rem var(--space-3);
  border-radius: 999px;
  background: var(--ball);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1.18;
  letter-spacing: -0.005em;
}

.card-title a {
  color: var(--ink);
  text-decoration: none;
}

.card-title a::after {
  /* stretched link: the whole card is the tap target */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

.card-title a:hover {
  color: var(--court);
  text-decoration: underline;
  text-decoration-color: var(--ball-deep);
  text-decoration-thickness: 3px;
}

.card-excerpt {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.99rem;
  line-height: 1.55;
  flex-grow: 1;
}

.card-cue {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--court);
  letter-spacing: 0.02em;
}

/* ---------- Sidebar: most read + newsletter ---------- */
.rail {
  display: grid;
  gap: var(--space-5);
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
}

.rail-panel {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--white);
}

.rail-title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}

.most-read {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  counter-reset: mr;
}

.most-read li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: var(--space-3);
  align-items: start;
}

.most-read .mr-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ball-deep);
  -webkit-text-stroke: 1px var(--ink);
}

.most-read a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
  display: block;
}

.most-read a:hover {
  color: var(--court);
  text-decoration: underline;
}

.most-read .mr-date {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.newsletter-panel {
  background: var(--court);
  color: var(--paper);
  border-color: var(--court-950);
}

.newsletter-panel .rail-title {
  color: var(--paper);
}

.newsletter-panel p {
  margin: 0 0 var(--space-4);
  color: #e6e9d8;
  font-size: 0.99rem;
}

/* ---------- Quiz band ---------- */
.quiz-band {
  background: var(--paper-2);
  border-block: 2px solid var(--ink);
}

.quiz-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}

.quiz-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.quiz-inner p {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-soft);
}

.quiz-inner-form {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.quiz {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--paper-2);
  padding: var(--space-5);
}

.quiz .q {
  border: 0;
  margin: 0 0 var(--space-5);
  padding: 0;
}

.quiz .q legend {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: var(--space-3);
  padding: 0;
}

.quiz .q label {
  display: block;
  padding: var(--space-2) var(--space-3);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
  cursor: pointer;
  font-size: 0.99rem;
}

.quiz .q label:has(input:checked) {
  border-color: var(--ink);
  background: #fbfbe9;
  font-weight: 600;
}

.quiz .q input {
  margin-right: var(--space-2);
  accent-color: #0c4633;
}

.result {
  grid-column: 1 / -1;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ball);
  padding: var(--space-5);
}

.result:empty {
  display: none;
}

.result > b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: var(--space-2);
}

.result h3,
.quiz-pick h3 {
  font-family: var(--font-display);
  font-weight: 800;
  margin: var(--space-4) 0 var(--space-2);
}

.quiz-pick {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  background: var(--paper);
}

.quiz-pick h3 {
  margin-top: 0;
}

.quiz-affiliate-disclosure {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  margin: var(--space-3) 0;
}

.result ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.3rem;
}

.result li {
  margin-bottom: var(--space-2);
}

.result-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.result-links a {
  font-weight: 600;
}

.affiliate-button {
  display: inline-block;
  background: var(--ball);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.affiliate-button:hover {
  box-shadow: 4px 4px 0 var(--ink);
}

.disclosure {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: var(--space-4);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-6);
}

.product-pick {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  background: var(--white);
}

.product-pick h4 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
}

/* ---------- Quick notes ---------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.note {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--paper-2);
  padding: var(--space-4);
}

.note summary {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.3;
  cursor: pointer;
}

.note-body {
  margin-top: var(--space-3);
  font-size: 0.99rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.note-body h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1rem;
  margin: var(--space-4) 0 var(--space-2);
}

.note-body .affiliate-disclosure {
  margin: 0 0 var(--space-3);
}

.source-note {
  font-size: 0.92rem;
}

/* ---------- Article pages ---------- */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: transparent;
  z-index: 300;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--ball);
  border-right: 2px solid var(--ink);
}

.article-wrap {
  width: min(100% - 2.5rem, 46rem);
  margin-inline: auto;
  padding-block: var(--space-7) var(--space-8);
}

.article-head {
  margin-bottom: var(--space-6);
}

.article-title {
  margin: var(--space-3) 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  align-items: center;
  margin: 0;
  padding-block: var(--space-3);
  border-block: 1.5px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.97rem;
  font-weight: 600;
}

.article-dek {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: var(--space-5) 0 0;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.75;
}

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.2;
  margin: var(--space-7) 0 var(--space-3);
}

.article-body p {
  margin: 0 0 var(--space-5);
}

.article-body figure {
  margin: 0 0 var(--space-6);
}

.article-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--paper-2);
}

.article-body figcaption {
  margin-top: var(--space-2);
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

.todo-content {
  border: 2px dashed var(--ball-deep);
  background: #fbfbe9;
  border-radius: var(--radius);
  padding: var(--space-5);
  margin: var(--space-6) 0;
}

.todo-content h2 {
  margin-top: 0;
}

.affiliate-block {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin: var(--space-6) 0;
  background: var(--white);
}

.affiliate-block h2,
.affiliate-block h3 {
  margin-top: 0;
}

.affiliate-disclosure {
  margin: var(--space-4) 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.article-nav a {
  display: block;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: var(--space-4);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.article-nav a:hover {
  background: var(--court-soft);
  color: var(--court-900);
}

.article-nav .nav-dir {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.article-nav .nav-next {
  text-align: right;
}

.related {
  margin-top: var(--space-7);
  border-top: 2px solid var(--ink);
  padding-top: var(--space-5);
}

.related h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 0 var(--space-4);
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.related a {
  font-weight: 600;
}

.related .rel-date {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--court-950);
  color: #d8dcc9;
  padding-block: var(--space-7);
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-7);
  align-items: center;
  justify-content: space-between;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--paper);
  margin: 0;
}

.footer-copy,
.footer-contact {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.notfound-code {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 1;
  color: var(--court);
  -webkit-text-stroke: 2px var(--ink);
}

.notfound-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: var(--space-3) 0;
}

.notfound-text {
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 0 auto var(--space-6);
}

/* ---------- Responsive ---------- */
@media (max-width: 62rem) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero-art {
    max-width: 26rem;
  }

  .feed-layout {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 48rem) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: var(--space-3) var(--space-4) var(--space-4);
  }

  .site-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: var(--space-3);
    border-radius: var(--radius);
  }

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

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

  .quiz-inner {
    grid-template-columns: 1fr;
  }

  .quiz-inner-form {
    grid-template-columns: 1fr;
  }

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

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav .nav-next {
    text-align: left;
  }

  .hero-chip {
    display: none;
  }
}

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

  .card,
  .btn {
    transition: none;
  }
}
