/* ============ Design tokens ============ */
:root {
  --bg: #0a0e14;
  --bg-alt: #0e141d;
  --surface: #121a26;
  --surface-2: #182333;
  --line: rgba(148, 170, 197, 0.14);
  --text: #e6edf3;
  --muted: #93a3b5;
  --accent: #3ddc84;
  --accent-dim: rgba(61, 220, 132, 0.14);
  --amber: #fbbf24;
  --red: #f87171;
  --blue: #60a5fa;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 14px;
  --max-w: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
a { color: var(--accent); text-decoration: none; }
code { font-family: var(--font-mono); background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.9em; }
strong { color: var(--text); }

/* ============ Nav ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav__logo-mark { color: var(--accent); margin-right: 0.35rem; }
.nav__logo-slash { color: var(--accent); }
.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav__links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(61, 220, 132, 0.35); }
.nav__progress {
  height: 2px;
  background: var(--accent);
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 10.5rem 1.5rem 6rem;
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 170, 197, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 170, 197, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 75%);
}
.hero__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-areas:
    "eyebrow eyebrow"
    "title terminal"
    "sub terminal"
    "actions terminal"
    "stats stats";
  column-gap: 3.5rem;
}
.hero__eyebrow {
  grid-area: eyebrow;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.hero__title {
  grid-area: title;
  font-size: clamp(2.8rem, 6.5vw, 4.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__line { display: block; overflow: hidden; }
.hero__sub {
  grid-area: sub;
  color: var(--muted);
  font-size: 1.13rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__actions { grid-area: actions; display: flex; gap: 1rem; align-self: start; }
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(61, 220, 132, 0.3); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--surface); }

.hero__stats {
  grid-area: 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: 4rem;
}
.stat {
  background: var(--surface);
  padding: 1.5rem 1.8rem;
}
.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
}
.stat__label { color: var(--muted); font-size: 0.88rem; }

/* Terminal */
.terminal {
  grid-area: terminal;
  align-self: start;
  background: #0c1119;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot--r { background: #ff5f57; }
.terminal__dot--y { background: #febc2e; }
.terminal__dot--g { background: #28c840; }
.terminal__title { margin-left: auto; color: var(--muted); font-size: 0.75rem; }
.terminal__body { padding: 1.1rem 1.2rem 1.3rem; min-height: 148px; }
.terminal__body p { margin-bottom: 0.45rem; line-height: 1.7; }
.t-prompt { color: var(--accent); }
.t-cmd { color: var(--text); }
.t-out { color: var(--muted); white-space: pre-wrap; }
.t-out .ok { color: var(--accent); }
.t-cursor { animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* ============ Sections ============ */
.section { padding: 7rem 1.5rem; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__inner { max-width: var(--max-w); margin: 0 auto; }
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section__title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1.2rem;
  max-width: 46rem;
}
.section__lede { color: var(--muted); font-size: 1.12rem; max-width: 42rem; margin-bottom: 3rem; }

/* ============ What is SRE ============ */
.what__cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin: 2.5rem 0 4rem;
  align-items: start;
}
.what__text p { color: var(--muted); margin-bottom: 1.1rem; }
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
}
.quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.quote cite { color: var(--muted); font-style: normal; font-size: 0.9rem; }

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.principle__icon {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.principle h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.principle p { color: var(--muted); font-size: 0.92rem; }

/* ============ Discipline cards ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 220, 132, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.card__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.15em;
}
.card h3 { font-size: 1.12rem; margin: 0.7rem 0 0.6rem; }
.card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.1rem; }
.card__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

/* ============ Error budget playground ============ */
.budget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.budget__slider-row { margin-bottom: 2.5rem; }
#nines-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--accent));
  outline: none;
  cursor: pointer;
}
#nines-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  cursor: grab;
}
#nines-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--bg);
  cursor: grab;
}
.budget__ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.7rem;
}
.budget__readout {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "big bar" "facts facts" "note note";
  gap: 1.8rem 3rem;
  align-items: center;
}
.budget__big { grid-area: big; }
.budget__slo {
  display: block;
  font-family: var(--font-mono);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.budget__slo-label { color: var(--muted); font-size: 0.88rem; }
.budget__bar-wrap { grid-area: bar; }
.budget__bar {
  height: 14px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.budget__bar-fill {
  height: 100%;
  width: 60%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #7ef5b0);
}
.budget__bar-label { color: var(--muted); font-size: 0.85rem; }
.budget__facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.budget__facts > div {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
}
.budget__facts dt { color: var(--muted); font-size: 0.82rem; margin-bottom: 0.3rem; }
.budget__facts dd {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
}
.budget__note {
  grid-area: note;
  color: var(--muted);
  font-size: 0.98rem;
  border-top: 1px dashed var(--line);
  padding-top: 1.3rem;
}

/* ============ SRE vs DevOps ============ */
.versus__code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  margin: 2.5rem 0 3rem;
}
.versus__code pre {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  margin-bottom: 1.2rem;
  overflow-x: auto;
}
.versus__code code { background: none; padding: 0; }
.c-kw { color: var(--blue); }
.c-type { color: var(--accent); }
.versus__code p { color: var(--muted); }

.versus__table { display: flex; flex-direction: column; gap: 0.6rem; }
.vs-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  font-size: 0.95rem;
}
.vs-row span:nth-child(2) { color: var(--muted); }
.vs-row span:nth-child(3) { color: var(--text); }
.versus__head { background: none; border: none; padding-bottom: 0.2rem; }
.versus__col-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.versus__col-label--devops { color: var(--blue) !important; }
.versus__col-label--sre { color: var(--accent) !important; }
.vs-row__dim {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.versus__takeaway {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46rem;
}

/* ============ Learning path ============ */
.path {
  list-style: none;
  position: relative;
  margin-top: 1rem;
}
.path::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}
.path__step {
  position: relative;
  display: flex;
  gap: 1.8rem;
  padding: 0 0 2.6rem 0;
}
.path__marker {
  position: relative;
  z-index: 1;
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}
.path__body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.path__body p { color: var(--muted); max-width: 40rem; margin-bottom: 0.5rem; }
.path__body a { font-family: var(--font-mono); font-size: 0.9rem; }
.path__body a:hover { text-decoration: underline; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 3rem 1.5rem; }
.footer__inner { max-width: var(--max-w); margin: 0 auto; }
.footer__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.footer__logo span { color: var(--accent); }
.footer__note { color: var(--muted); font-size: 0.85rem; max-width: 40rem; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "eyebrow" "title" "sub" "actions" "terminal" "stats";
  }
  .terminal { margin-top: 3rem; }
  .cards, .principles { grid-template-columns: repeat(2, 1fr); }
  .what__cols { grid-template-columns: 1fr; }
  .vs-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .versus__head { display: none; }
  .vs-row span:nth-child(2)::before {
    content: "DEVOPS — ";
    color: var(--blue);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }
  .vs-row span:nth-child(3)::before {
    content: "SRE — ";
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .hero { padding-top: 7.5rem; }
  .hero__stats { grid-template-columns: 1fr; }
  .cards, .principles { grid-template-columns: 1fr; }
  .budget { padding: 1.5rem; }
  .budget__readout {
    grid-template-columns: 1fr;
    grid-template-areas: "big" "bar" "facts" "note";
  }
  .budget__facts { grid-template-columns: 1fr; }
  .budget__ticks span:nth-child(even) { display: none; }
}

/* ============ Topic pages ============ */
.topic-hero {
  position: relative;
  padding: 9.5rem 1.5rem 3.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
}
.topic-hero__inner { max-width: 860px; margin: 0 auto; position: relative; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--line); }
.topic-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.topic-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}
.topic-hero__lede { color: var(--muted); font-size: 1.15rem; max-width: 44rem; }

.topic-body { padding: 3.5rem 1.5rem 5rem; }
.topic-body__inner { max-width: 860px; margin: 0 auto; }

.tldr {
  background: var(--surface);
  border: 1px solid rgba(61, 220, 132, 0.35);
  border-radius: var(--radius);
  padding: 1.6rem 1.9rem;
  margin-bottom: 3rem;
}
.tldr__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.tldr ul { list-style: none; }
.tldr li { padding-left: 1.4rem; position: relative; margin-bottom: 0.55rem; color: var(--text); }
.tldr li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

.prose h2 {
  font-size: 1.65rem;
  margin: 3.2rem 0 1rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.18rem; margin: 2rem 0 0.7rem; }
.prose p { color: var(--muted); margin-bottom: 1.1rem; }
.prose ul, .prose ol { color: var(--muted); margin: 0 0 1.2rem 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--accent); }

.callout {
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin: 1.6rem 0;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.97rem;
}
.callout p { margin: 0; }
.callout--tip { border-left: 3px solid var(--accent); }
.callout--warn { border-left: 3px solid var(--amber); }
.callout__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.4rem;
}
.callout--tip .callout__label { color: var(--accent); }
.callout--warn .callout__label { color: var(--amber); }

.data-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0 2rem; font-size: 0.93rem; }
.data-table th {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 2px solid var(--line);
}
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}
.data-table td:first-child { color: var(--text); font-weight: 500; }
.data-table tr:hover td { background: rgba(148, 170, 197, 0.04); }
.table-scroll { overflow-x: auto; }

.term-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 1.8rem 0 2.2rem; }
.term-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.term-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--accent); font-family: var(--font-mono); }
.term-card p { font-size: 0.92rem; margin: 0; }

.pitfalls { list-style: none; margin: 1.4rem 0 2rem !important; }
.pitfalls li { padding-left: 1.6rem; position: relative; margin-bottom: 0.8rem; }
.pitfalls li::before { content: "✗"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

.further { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.4rem 0 0; }
.further a {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  padding: 0.9rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.further a:hover { border-color: rgba(61, 220, 132, 0.5); transform: translateX(4px); }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.pager a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.pager a:hover { border-color: rgba(61, 220, 132, 0.5); transform: translateY(-3px); }
.pager__dir {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.pager__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.pager a.pager--next { text-align: right; }
.pager__spacer { visibility: hidden; }

a.card { color: inherit; display: block; }
.card__link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-top: 0.9rem;
}
.card:hover .card__link { text-decoration: underline; }

@media (max-width: 760px) {
  .term-grid { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager a.pager--next { text-align: left; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
