/* LinguaLatina: medicallatin.com
   Tokens and rules follow docs/design-plan.md. Latin is set in EB Garamond;
   everything else is set in Fixel. */

@font-face {
  font-family: "Fixel";
  src: url("../fonts/fixel-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 87.5% 100%;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #F5F7F7;      /* ward white */
  --atlas: #E3E9EC;      /* atlas grey */
  --ink: #1E2230;        /* iron-gall ink */
  --slate: #4E5566;
  --maroon: #6F1D2C;     /* praktikum maroon */
  --red: #B83226;        /* correction red: annotations and focus only */
  --on-maroon: #FFFFFF;
  --rule: color-mix(in srgb, var(--ink) 16%, transparent);

  --sans: "Fixel", "Segoe UI", Roboto, system-ui, sans-serif;
  --latin: "EB Garamond", Garamond, "Times New Roman", serif;

  --gutter: 1.25rem;
  --section: 4rem;
  --measure: 68ch;
}

/* Dark tokens apply when the device is dark and the visitor hasn't chosen light,
   or when they chose dark with the header switch (assets/js/theme.js).
   The two blocks hold the same values: change them together. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171B25;
    --atlas: #232937;
    --ink: #E8EBEF;
    --slate: #AAB1BF;
    --maroon: #E6A1AC;
    --red: #FF8B7B;
    --on-maroon: #171B25;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171B25;
  --atlas: #232937;
  --ink: #E8EBEF;
  --slate: #AAB1BF;
  --maroon: #E6A1AC;
  --red: #FF8B7B;
  --on-maroon: #171B25;
}
:root[data-theme="light"] { color-scheme: light; }

@media (min-width: 64em) {
  :root {
    --gutter: 2rem;
    --section: 5rem;
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-kerning: normal;
  /* room for the fixed booking bar on small screens */
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}

@media (min-width: 64em) {
  html { scroll-padding-top: 5.5rem; }
  body { font-size: 1.125rem; padding-bottom: 0; }
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--sans);
  font-stretch: 87.5%;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: 2.25rem; line-height: 1.1; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3125rem; }

@media (min-width: 64em) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
}

p, ul, ol, dl, dd, blockquote, figure { margin: 0; }

a {
  color: var(--maroon);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

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

strong { font-weight: 600; }

/* Latin, wherever it appears in running text.
   EB Garamond's Latin locl swaps u for v (classical spelling); medical Latin keeps u. */
[lang="la"] {
  font-family: var(--latin);
  font-style: italic;
  font-size: 1.12em;
  line-height: 1;
  font-feature-settings: "locl" 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 30;
  padding: 0.5rem 1rem;
  background: var(--paper);
}
.skip-link:focus { top: 0.5rem; }

/* Content still waiting for real data: visibly marked so nobody ships it by accident */
[data-placeholder] {
  outline: 2px dashed var(--red);
  outline-offset: 2px;
}

/* Layout */

.wrap {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule); }

.section__head {
  max-width: var(--measure);
  margin-bottom: 2rem;
}
.section__head > * + * { margin-top: 0.75rem; }

.lede {
  font-size: 1.1875rem;
  max-width: 36ch;
}
.muted { color: var(--slate); }
.small { font-size: 0.875rem; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1rem; }

/* Header */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding-block: 0.75rem;
}

.wordmark {
  margin-right: auto;
  color: var(--ink);
  font-style: normal;
  font-size: 1.625rem;
  text-decoration: none;
}

.lang-switch {
  padding: 0.5rem 0.25rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.lang-switch:hover { text-decoration: underline; }

/* Light/dark switch: the icon shows the theme a click switches to */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0.25rem;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.theme-toggle svg {
  width: 1.375rem;
  height: 1.375rem;
}
.theme-toggle[aria-pressed="true"] .theme-toggle__moon,
.theme-toggle:not([aria-pressed="true"]) .theme-toggle__sun { display: none; }

.nav {
  order: 3;
  width: 100%;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.header-actions { display: none; }

@media (min-width: 64em) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .site-header__inner { flex-wrap: nowrap; }
  .nav { order: 0; width: auto; }
  .nav ul { gap: 0 1.75rem; }
  .header-actions { display: flex; gap: 0.5rem; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 2px solid var(--maroon);
  border-radius: 0.25rem;
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.btn--primary {
  background: var(--maroon);
  color: var(--on-maroon);
}
.btn--primary:hover {
  background: color-mix(in srgb, var(--maroon) 82%, var(--ink));
  border-color: color-mix(in srgb, var(--maroon) 82%, var(--ink));
}
.btn--secondary {
  background: transparent;
  color: var(--maroon);
}
.btn--secondary:hover { background: color-mix(in srgb, var(--maroon) 10%, transparent); }

/* Booking bar: always reachable on small screens, never a popup */

.booking-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  padding: 0.625rem var(--gutter) calc(0.625rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.booking-bar .btn { padding-inline: 0.875rem; }

@media (min-width: 64em) {
  .booking-bar { display: none; }
}

/* Hero: one term, taken apart */

.hero { padding-block: 2.5rem var(--section); }

.hero__inner {
  display: grid;
  grid-template-areas: "text" "term" "cred";
  gap: 2.5rem;
}
.hero__text { grid-area: text; }
.hero__text > * + * { margin-top: 1rem; }
.hero .term { grid-area: term; }
.hero__cred {
  grid-area: cred;
  max-width: 44ch;
  color: var(--slate);
  font-size: 1rem;
}

@media (min-width: 64em) {
  .hero { padding-block: 4.5rem 3rem; }
  .hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "text term" "cred term";
    align-items: start;
    column-gap: 3rem;
    row-gap: 2rem;
  }
  .hero .term { align-self: center; }
}

.term {
  --size: clamp(3.25rem, 14vw, 5.5rem);
  --stem: 1.25rem;
  --bracket: 0.1;
}
@media (min-width: 64em) {
  .term {
    --size: clamp(5rem, 9vw, 7.5rem);
    --stem: 1.75rem;
  }
}

.term__parts {
  display: flex;
  gap: 0.07em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--size);
  /* reserve room for the leader lines and two lines of glosses */
  padding-bottom: calc(var(--size) * var(--bracket) + var(--stem) + 3rem);
}

.term__item { position: relative; }

.term__part {
  display: block;
  position: relative;
  font-family: var(--latin);
  font-style: normal;
  font-size: 1em;
  line-height: 1;
}

/* bracket under each part */
.term__part::after {
  content: "";
  position: absolute;
  left: 0.05em;
  right: 0.05em;
  bottom: calc(var(--size) * var(--bracket) * -1);
  height: 0.12em;
  border: 2px solid var(--red);
  border-top: 0;
}

/* stem from the bracket to the gloss */
.term__item::after {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: calc(100% + var(--size) * var(--bracket));
  width: 2px;
  height: var(--stem);
  background: var(--red);
}

.term__gloss {
  position: absolute;
  top: calc(100% + var(--size) * var(--bracket) + var(--stem) + 0.25rem);
  left: 50%;
  width: max-content;
  max-width: 7.5rem;
  transform: translateX(-50%);
  color: var(--slate);
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 0.875rem;
  line-height: 1.25;
  text-align: center;
}

.term__stress { color: var(--red); }

.term__meaning {
  max-width: 32ch;
  font-size: 1.0625rem;
}
.term__eq {
  margin-right: 0.35em;
  color: var(--red);
  font-weight: 600;
}

.term__next {
  min-height: 2.75rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--maroon);
  font: inherit;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.term__next:hover { text-decoration-thickness: 2px; }
.term__next[hidden] { display: none; }

@media (min-width: 64em) {
  .term__gloss { font-size: 1rem; max-width: 9rem; }
  .term__meaning { font-size: 1.1875rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .term.is-animating .term__parts { animation: term-split 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .term.is-animating .term__part::after { animation: draw-x 0.3s 0.3s ease-out both; }
  .term.is-animating .term__item::after { animation: draw-y 0.25s 0.5s ease-out both; transform-origin: top; }
  .term.is-animating .term__gloss { animation: fade-in 0.3s 0.6s ease-out both; }
  .term.is-animating .term__meaning { animation: fade-in 0.3s 0.75s ease-out both; }
}

@keyframes term-split { from { gap: 0; } }
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes draw-y { from { transform: scaleY(0); } }
@keyframes fade-in { from { opacity: 0; } }

/* Who I am */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
.intro__photo { width: 100%; max-width: 26rem; }
.intro__text > * + * { margin-top: 1rem; }

@media (min-width: 48em) {
  .intro {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
    gap: 3rem;
  }
}

/* How lessons work: plain rows, no cards */

.method {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.method li {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.method h3 {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

@media (min-width: 48em) {
  .method {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}

.method-figure {
  max-width: 28rem;
  margin-top: 2.5rem;
}
.method-figure img { border: 1px solid var(--rule); }
.method-figure figcaption {
  margin-top: 0.5rem;
  color: var(--slate);
  font-size: 0.875rem;
}

/* Offers overview */

.offers {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.offers li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}
.offers__name { grid-row: 1; grid-column: 1; font-weight: 600; }
.offers__price {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.offers__desc {
  grid-row: 2;
  grid-column: 1 / -1;
  color: var(--slate);
  font-size: 0.9375rem;
}

@media (min-width: 48em) {
  .offers li {
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2fr);
    align-items: baseline;
  }
  .offers__name { grid-row: 1; grid-column: 1; }
  .offers__desc { grid-row: 1; grid-column: 2; }
  .offers__price { grid-row: 1; grid-column: 3; }
}

.more-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding-block: 0.5rem;
  font-weight: 600;
}

/* Student results */

.cases {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 48em) {
  .cases { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.case {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0 1rem;
  align-content: start;
}
.case__photo {
  grid-row: 1 / span 2;
  width: 4rem;
  height: 4rem;
  object-fit: cover;
}
.case__name { font-size: 1.1875rem; }
.case__who {
  color: var(--slate);
  font-size: 0.9375rem;
}
.case__facts {
  grid-column: 1 / -1;
  margin-top: 1rem;
}
.case__facts div {
  padding-block: 0.5rem;
  border-top: 1px solid var(--rule);
}
.case__facts dt {
  color: var(--slate);
  font-size: 0.875rem;
}
@media (min-width: 30em) {
  .case__facts div {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1rem;
  }
  .case__facts dt { padding-top: 0.15rem; }
}
.case__result { font-weight: 600; }
.case--honest { grid-template-columns: minmax(0, 1fr); }
.case--honest .case__facts { grid-column: 1; }
.case__proof {
  display: table;
  margin-top: 0.375rem;
  font-size: 0.875rem;
}

.case-advice {
  max-width: var(--measure);
  margin-top: 2.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--maroon);
}
.case-advice > * + * { margin-top: 0.5rem; }

.quotes-title { margin-top: 4rem; margin-bottom: 1.5rem; }

.quotes {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48em) {
  .quotes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64em) {
  .quotes { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
}

.quote {
  padding: 1.25rem;
  background: var(--atlas);
  border-radius: 0.25rem;
}
.quote blockquote p + p { margin-top: 0.5em; }
.quote figcaption {
  margin-top: 0.75rem;
  color: var(--slate);
  font-size: 0.875rem;
}

/* Teaching in English, sign-up */

.split {
  display: grid;
  gap: 3rem;
}
.split > * > * + * { margin-top: 1rem; }
@media (min-width: 64em) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
}

.steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.75rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  color: var(--maroon);
  font-stretch: 87.5%;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}

.contacts {
  display: grid;
  gap: 0 2rem;
  margin: 1.5rem 0 0;
  padding: 0;
}
@media (min-width: 30em) {
  .contacts { grid-template-columns: auto minmax(0, 1fr); }
}
.contacts div { display: contents; }
.contacts dt {
  padding-top: 0.25rem;
  color: var(--slate);
}
.contacts dd { padding-block: 0.25rem 0.5rem; }
.contacts a { overflow-wrap: anywhere; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--rule);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
}
.motto [lang="la"] { font-size: 1.5rem; }
.motto__translation {
  display: block;
  margin-top: 0.25rem;
  color: var(--slate);
  font-size: 0.875rem;
}
.site-footer__meta {
  color: var(--slate);
  font-size: 0.875rem;
}
.site-footer__meta a { color: var(--ink); }

/* Inner pages */

.page-head { padding-block: 3rem 1rem; }
.page-head > * + * { margin-top: 1rem; }
@media (min-width: 64em) {
  .page-head { padding-top: 4.5rem; }
}

.with-toc {
  display: grid;
  gap: 1rem;
}
.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc a {
  display: inline-block;
  padding-block: 0.3rem;
}
.toc__title {
  margin-bottom: 0.25rem;
  color: var(--slate);
  font-size: 0.875rem;
}
@media (min-width: 64em) {
  .with-toc {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 4rem;
  }
  .toc {
    position: sticky;
    top: 6rem;
    align-self: start;
    padding-top: var(--section);
  }
}

.course { padding-block: var(--section); }
.course + .course { border-top: 1px solid var(--rule); }
.course > * + * { margin-top: 1.25rem; }
.course > h3 { margin-top: 2.5rem; }

.facts {
  max-width: var(--measure);
}
.facts div {
  padding-block: 0.5rem;
  border-top: 1px solid var(--rule);
}
.facts dt { color: var(--slate); }
@media (min-width: 30em) {
  .facts div {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 1rem;
  }
}

.nowrap { white-space: nowrap; }

.list {
  max-width: var(--measure);
  padding-left: 1.25rem;
}
.list li + li { margin-top: 0.35rem; }

.numbered {
  max-width: var(--measure);
  padding-left: 1.75rem;
}
.numbered li + li { margin-top: 0.5rem; }
.numbered li::marker {
  color: var(--maroon);
  font-weight: 600;
}

.start-date {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--atlas);
  border-radius: 0.25rem;
  font-weight: 600;
}

/* Year-course ladder: Basis, Medium and Maxi each include the previous level */

.ladder { max-width: 52rem; }

.ladder__head { display: none; }

.ladder__block {
  padding: 0.25rem 0 1rem 1rem;
  border-left: 3px solid var(--maroon);
}
.ladder__block + .ladder__block { margin-top: 1rem; }
.ladder__block h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}
.ladder__block ol {
  margin: 0;
  padding-left: 2.25rem;
}
.ladder__block li + li { margin-top: 0.35rem; }
.ladder__block li::marker {
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.ladder__bar { display: none; }

@media (min-width: 48em) {
  .ladder__head,
  .ladder__block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, 4.5rem);
  }
  .ladder__head {
    padding-bottom: 0.5rem;
    color: var(--slate);
    font-size: 0.875rem;
    text-align: center;
  }
  .ladder__head span:first-child { text-align: left; }
  .ladder__block {
    padding: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .ladder__block + .ladder__block { margin-top: 0; }
  .ladder__block h4 { grid-column: 1; padding-top: 1rem; }
  .ladder__block ol { grid-column: 1; padding-bottom: 1rem; }
  .ladder__bar {
    display: block;
    grid-row: 1 / span 2;
    justify-self: center;
    width: 4px;
    background: var(--maroon);
  }
  .ladder__bar--off { background: none; }
  .ladder__bar:nth-of-type(1) { grid-column: 2; }
  .ladder__bar:nth-of-type(2) { grid-column: 3; }
  .ladder__bar:nth-of-type(3) { grid-column: 4; }
}

/* Price table: rows become blocks on small screens */

.price-table {
  width: 100%;
  max-width: 52rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.price-table caption {
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-align: left;
}
.price-table th,
.price-table td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.price-table thead th {
  color: var(--slate);
  font-size: 0.875rem;
  font-weight: 400;
}
.price-table tbody th { font-weight: 600; }
.price-table .sub {
  display: block;
  color: var(--slate);
  font-size: 0.875rem;
  font-weight: 400;
}

@media (max-width: 47.99em) {
  .price-table thead { display: none; }
  .price-table tr,
  .price-table th,
  .price-table td { display: block; }
  .price-table tbody tr {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--atlas);
    border-radius: 0.25rem;
  }
  .price-table th,
  .price-table td {
    padding: 0.2rem 0;
    border: 0;
  }
  .price-table td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
  }
  .price-table td::before {
    content: attr(data-label);
    color: var(--slate);
  }
}

/* FAQ */

.faq { max-width: var(--measure); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  padding-block: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.faq summary::marker { color: var(--maroon); }
.faq details > *:not(summary) { margin-bottom: 1rem; }

/* About */

.story {
  display: grid;
  gap: 2.5rem;
  padding-bottom: var(--section);
}
.story__text > * + * { margin-top: 1rem; }
.story__photo { max-width: 24rem; }
.story__photo figcaption,
.docs figcaption,
.books figcaption {
  margin-top: 0.5rem;
  color: var(--slate);
  font-size: 0.875rem;
}

@media (min-width: 64em) {
  .story {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 4rem;
  }
  .story__photo { position: sticky; top: 6rem; align-self: start; }
}

.timeline { max-width: var(--measure); }
.timeline div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--rule);
}
.timeline dt {
  color: var(--maroon);
  font-stretch: 87.5%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.docs {
  display: grid;
  gap: 2rem;
  max-width: 52rem;
}
@media (min-width: 40em) {
  .docs { grid-template-columns: 1fr 1fr; }
}

.pubs {
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pubs li {
  padding-block: 0.75rem;
  border-top: 1px solid var(--rule);
}
.pubs__title { font-weight: 600; }
.pubs__authors {
  display: block;
  color: var(--slate);
  font-size: 0.9375rem;
}

.books {
  max-width: 30rem;
  margin-top: 2rem;
}

/* 404 */

.not-found { padding-block: 5rem; }
.not-found > * + * { margin-top: 1rem; }
