/* roadprep.school: shared by every page. Self-hosted so the site itself
   makes no requests to anyone else; see the privacy policy. */

/* The app's own faces: SF Pro Rounded where the platform has it
   (ui-rounded), and otherwise the rounded cut of Google Sans Flex, the same
   files the app bundles (src/assets/fonts/google-sans-flex). */
@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/google-sans-flex/latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/google-sans-flex/latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --paper-2: #ece8dd;
  --card: #ffffff;
  --ink: #16171a;
  --muted: #5d5f66;
  --rule: #dcd7ca;
  --asphalt: #1b1c20;
  --asphalt-2: #26272c;
  --on-asphalt: #f3f1ea;
  --on-asphalt-muted: #a3a5ab;
  --marking: #ffc629;
  --sign: #0b6b3a;
  --sign-edge: #f3f1ea;
  --focus: #2f6bff;
  --radius: 18px;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

/* Dark follows the system unless the visitor picked a theme; theme.js
   records the pick on <html data-theme>. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #111214;
    --paper-2: #17181b;
    --card: #1b1c20;
    --ink: #f1eee6;
    --muted: #a3a5ab;
    --rule: #2c2d33;
    --asphalt: #0a0a0c;
    --asphalt-2: #1a1b1f;
    --sign: #0d5c33;
    --sign-edge: #d9d6cc;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111214;
  --paper-2: #17181b;
  --card: #1b1c20;
  --ink: #f1eee6;
  --muted: #a3a5ab;
  --rule: #2c2d33;
  --asphalt: #0a0a0c;
  --asphalt-2: #1a1b1f;
  --sign: #0d5c33;
  --sign-edge: #d9d6cc;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    ui-rounded,
    "Google Sans Flex",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Roboto",
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: var(--marking);
  text-decoration-thickness: 3px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 4px;
  border-radius: 2px;
  background: var(--marking);
}

.display {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}

.site-header.on-asphalt {
  background: color-mix(in srgb, var(--asphalt) 82%, transparent);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: var(--on-asphalt);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

@media (max-width: 420px) {
  .brand-name {
    display: none;
  }
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--marking);
  transform: rotate(-20deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

.brand .road {
  fill: var(--paper);
}

.on-asphalt .brand .road {
  fill: var(--asphalt);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 1.9rem);
  font-size: 0.95rem;
  font-weight: 550;
}

.nav a {
  text-decoration: none;
  opacity: 0.8;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--marking);
  text-decoration-thickness: 3px;
}

@media (max-width: 960px) {
  .nav .hide-md {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav .hide-sm {
    display: none;
  }
}

/* Language menu */

.lang {
  position: relative;
}

.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.25rem;
  padding: 0 0.7rem 0 0.6rem;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color 0.2s ease;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang summary:hover,
.lang[open] summary {
  border-color: var(--marking);
}

.lang summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 30;
  min-width: 11rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.45);
}

.lang li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
  text-decoration: none;
  opacity: 1;
  font-size: 0.95rem;
}

.nav .lang li a:hover {
  background: var(--paper);
  text-decoration: none;
}

.nav .lang li a[aria-current] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--marking);
  text-decoration-thickness: 3px;
}

/* ---------- Buttons ---------- */

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem 0.7rem 1rem;
  border-radius: 14px;
  background: var(--marking);
  color: #16171a;
  text-decoration: none;
  line-height: 1.15;
  font-weight: 750;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 10px 30px -12px rgba(255, 198, 41, 0.55);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 16px 36px -12px rgba(255, 198, 41, 0.7);
}

.store-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.02em;
}

.store-btn span {
  font-size: 1.15rem;
}

.store-btn.compact {
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--asphalt);
  color: var(--on-asphalt);
  overflow: hidden;
  isolation: isolate;
  margin-top: -4rem;
  padding: 9rem 0 0;
}

/* Grain, so the asphalt reads as a surface rather than a flat fill. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The centre line: dashes running toward the reader. */
.lane {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 58%;
  width: 10px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(243, 241, 234, 0.16) 0 56px,
    transparent 56px 112px
  );
  animation: drive 1.6s linear infinite;
}

.lane.edge {
  left: auto;
  right: 6%;
  width: 6px;
  background: var(--marking);
  opacity: 0.85;
  animation: none;
}

@keyframes drive {
  to {
    background-position: 0 112px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: end;
}

.hero-copy {
  padding-bottom: 7rem;
}

.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
}

.hero h1 em {
  font-style: normal;
  color: var(--marking);
}

.hero .lede {
  max-width: 33rem;
  margin: 1.75rem 0 2.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--on-asphalt-muted);
}

.hero .eyebrow {
  color: var(--on-asphalt-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cta-note {
  font-size: 0.9rem;
  color: var(--on-asphalt-muted);
}

.phones {
  position: relative;
  height: clamp(26rem, 52vw, 38rem);
}

.phone {
  position: absolute;
  width: clamp(12rem, 22vw, 16.5rem);
  aspect-ratio: 600 / 1322;
  border-radius: 2.6rem;
  padding: 0.55rem;
  background: #050506;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 2.1rem;
}

.phones .phone:first-child {
  left: 0;
  top: 3rem;
  transform: rotate(-5deg);
}

.phones .phone:last-child {
  right: 0;
  top: 0;
  transform: rotate(4deg);
}

@media (max-width: 860px) {
  .hero {
    padding-top: 7rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding-bottom: 1rem;
  }
  .phones {
    height: 25rem;
    max-width: 26rem;
    width: 100%;
    margin: 0 auto;
  }
  .phones .phone {
    width: 12.5rem;
  }
  .lane {
    left: 82%;
  }
  .lane.edge {
    display: none;
  }
}

/* Page-load: rise in, one after another. */
.rise {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.phones .phone.rise:first-child {
  animation-name: rise-left;
}
.phones .phone.rise:last-child {
  animation-name: rise-right;
}

@keyframes rise-left {
  from {
    opacity: 0;
    transform: translateY(80px) rotate(-10deg);
  }
}

@keyframes rise-right {
  from {
    opacity: 0;
    transform: translateY(120px) rotate(10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lane,
  .rise {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Guidance sign (stats) ---------- */

.sign-row {
  position: relative;
  z-index: 2;
  margin-top: -3.25rem;
}

.sign {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--sign);
  color: #fff;
  border-radius: 16px;
  padding: 0.45rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}

.sign div {
  padding: 1.25rem 1.5rem;
  border: 3px solid var(--sign-edge);
  border-right-width: 0;
}

.sign div:first-child {
  border-radius: 11px 0 0 11px;
}

.sign div:last-child {
  border-right-width: 3px;
  border-radius: 0 11px 11px 0;
}

.sign strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.sign span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  opacity: 0.88;
}

@media (max-width: 720px) {
  .sign {
    grid-template-columns: 1fr 1fr;
  }
  .sign div,
  .sign div:first-child,
  .sign div:last-child {
    border-width: 3px;
    border-radius: 0;
    margin: -1.5px;
  }
  .sign div:nth-child(1) {
    border-radius: 11px 0 0 0;
  }
  .sign div:nth-child(2) {
    border-radius: 0 11px 0 0;
  }
  .sign div:nth-child(3) {
    border-radius: 0 0 0 11px;
  }
  .sign div:nth-child(4) {
    border-radius: 0 0 11px 0;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(5rem, 11vw, 8.5rem) 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-head h2 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
}

.section-head p {
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  color: var(--muted);
}

/* Study modes */

.modes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.modes {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: mode;
}

.modes li {
  position: relative;
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 0 1.25rem;
  padding: 1.6rem 0;
  border-top: 2px dashed var(--rule);
  counter-increment: mode;
}

.modes li:last-child {
  border-bottom: 2px dashed var(--rule);
}

.modes li::before {
  content: counter(mode, decimal-leading-zero);
  grid-row: span 2;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  transition: color 0.25s ease;
}

.modes li:hover::before {
  color: var(--marking);
  -webkit-text-stroke-color: var(--marking);
}

.modes h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.modes p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.modes-aside {
  position: sticky;
  top: 6rem;
}

.modes-aside .phone {
  position: relative;
  width: 100%;
  max-width: 17rem;
  margin: 0 auto;
  transform: rotate(2deg);
}

.modes-aside figcaption {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .modes-grid {
    grid-template-columns: 1fr;
  }
  .modes-aside {
    position: static;
  }
  .modes-aside .phone {
    max-width: 14rem;
  }
}

/* Countries */

.countries {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.country {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.25rem 1.3rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.country:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.45);
}

.flag {
  align-self: flex-start;
  margin-bottom: 0.7rem;
  font-family:
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.country:hover .flag {
  transform: rotate(-8deg) scale(1.08);
}

.country h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.country .src {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.country dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--rule);
}

.country dl div {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.8rem;
}

.country dt {
  color: var(--muted);
}

.country dd {
  margin: 0;
  font-weight: 650;
}

.fineprint {
  max-width: 44rem;
  margin: 2.5rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Promise */

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.promise {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--rule);
}

.promise svg {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
}

.promise h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 750;
}

.promise p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 800px) {
  .promise-grid {
    grid-template-columns: 1fr;
  }
}

/* Closing call to action */

.finish {
  position: relative;
  overflow: hidden;
  background: var(--asphalt);
  color: var(--on-asphalt);
  border-radius: 28px;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
  isolation: isolate;
}

/* A stop line and chequered edge across the bottom. */
.finish::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: repeating-conic-gradient(
      var(--on-asphalt) 0 25%,
      transparent 0 50%
    )
    0 0 / 28px 28px;
  opacity: 0.12;
}

.finish h2 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  max-width: 15ch;
}

.finish p {
  max-width: 34rem;
  margin: 1.25rem 0 2rem;
  font-size: 1.1rem;
  color: var(--on-asphalt-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 3.5rem 0 3rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer .disclaimer {
  max-width: 48rem;
  margin: 1.5rem 0 0;
}

/* ---------- Document pages (support, privacy) ---------- */

.doc-hero {
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 2px dashed var(--rule);
}

.doc-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
}

.doc-hero .lede {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.doc {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 42rem);
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(4rem, 9vw, 6rem);
}

.toc {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  font-size: 0.9rem;
}

.toc p {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.9rem;
  border-left: 3px solid var(--rule);
}

.toc li + li {
  margin-top: 0.45rem;
}

.toc a {
  text-decoration: none;
  color: var(--muted);
}

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

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 3rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.2;
  scroll-margin-top: 5.5rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose .translation-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.prose .summary {
  padding: 1.5rem 1.6rem;
  border-left: 5px solid var(--marking);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--card);
  font-size: 1.08rem;
}

.contact-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--asphalt);
  color: var(--on-asphalt);
}

.contact-card .mail {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 750;
  word-break: break-word;
}

.contact-card p {
  margin: 0;
  color: var(--on-asphalt-muted);
}

@media (max-width: 820px) {
  .doc {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
}
