/*
 * activehungarian.com, variant v10: colour bands (fork of the live site)
 *
 * Grown from design direction 09 (site/designs/09-letter-original/): the
 * approved July "Letter" (version-a theme.json and theme.css), with its
 * tokens unchanged, carrying the full method from site/content/copy.md.
 * Two kinds of additions only:
 *   - text twins for colours that fail WCAG AA as small text on cream
 *     (both are values the July theme already used: #A0522D and #5A6748)
 *   - card and step bodies raised from 14.5 px to 17 px (body text minimum)
 * Since 2026-11-12: self-hosted fonts (no request to Google Fonts), the
 * in-person line, the price line and the learning-needs link. The booking
 * window has its own stylesheet (booking.css), the learning-needs page too.
 *
 * Contents
 *   0.  Fonts
 *   1.  Tokens
 *   2.  Base
 *   3.  Shared pieces: section shell, eyebrows, pills, badges, insets
 *   4.  Header
 *   5.  Hero
 *   6.  Letter
 *   7.  Method
 *   8.  Lesson plan card
 *   10. Path card
 *   11. Trial lesson
 *   12. Reviews
 *   13. FAQ
 *   14. Booking card
 *   15. Contact cards
 *   16. Sign-off and footer
 *   17. Responsive
 *   18. Reduced motion
 */

/* ------------------------------------------------------------------ *
 * 0. Fonts: Newsreader and Karla (SIL Open Font License), self-hosted,
 *    variable weight 200 to 800, the same files and ranges as the July
 *    theme.json
 * ------------------------------------------------------------------ */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-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;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-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: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-italic-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;
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-italic-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: "Karla";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/karla-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;
}

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/karla-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;
}

/* ------------------------------------------------------------------ *
 * 1. Tokens (theme.json 18-35, theme.css 31-65)
 * ------------------------------------------------------------------ */

:root {
  /* the sixteen July colours */
  --cream: #FBF5EE;
  --cream-light: #FFFDFA;
  --white: #FFFFFF;
  --blush: #F6EADD;
  --peach: #F2D9C6;
  --apricot: #E8A87C;
  --terracotta: #B4603C;
  --brand-sep: #C9A793;
  --sage: #E8EBDC;
  --sage-mid: #E2E6D4;
  --sage-deep: #6E7C5A;
  --forest: #4E5A3D;
  --ink: #2B221C;
  --ink-soft: #453729;
  --muted: #6B5A4C;
  --muted-light: #8A7263;

  /* unnamed July values (theme.css) */
  --on-ink: #F7EFE6;
  --on-forest: #F7F5EC;
  --sienna: #A0522D;         /* July peach-badge text: the terracotta that small text uses */
  --sage-label: #5A6748;     /* July sage label text */
  --sage-body: #3E4433;      /* July citizenship body */
  --whatsapp-hover: #A9B58F;
  --sage-glow: #C8D3B1;
  --badge-peach-text: #8B4325; /* sienna one step darker: AA on the peach badge */

  /* lines */
  --hairline: rgba(43, 34, 28, 0.1);
  --rule: rgba(43, 34, 28, 0.12);
  --card-border: rgba(43, 34, 28, 0.09);
  --terracotta-line: rgba(180, 96, 60, 0.3);

  /* radii */
  --r-card: 28px;
  --r-panel: 22px;
  --r-inset: 20px;
  --r-field: 14px;
  --r-pill: 100px;

  /* widths */
  --w-letter: 660px;
  --w-hero: 720px;
  --w-reading: 920px;
  --w-card: 800px;
  --w-shell: 1000px;
  --gutter: clamp(18px, 5vw, 32px);

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed: 180ms;

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --size-h1: clamp(32px, 19px + 3.3vw, 54px);
  --size-h2: clamp(26px, 19px + 1.6vw, 36px);
  --size-h2-lg: clamp(26px, 19px + 1.6vw, 36px);
  --size-cta: clamp(32px, 21.5px + 2.35vw, 46px);
  --size-quote: clamp(18px, 15.6px + 0.5vw, 21px);
  --size-letter: clamp(17px, 15.9px + 0.3vw, 19px);
  --size-lead: clamp(18px, 15.9px + 0.6vw, 22px);
  --size-stat: clamp(25px, 21px + 0.9vw, 31px);
  --size-bank: clamp(40px, 33px + 1.4vw, 52px);
  --size-signoff: clamp(26px, 23.9px + 0.59vw, 30px);
  --size-card: 17px;
}

/* ------------------------------------------------------------------ *
 * 2. Base
 * ------------------------------------------------------------------ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: var(--size-letter);
  font-weight: 300;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h3 {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
}

p {
  margin: 0;
}

/* Only headings (balance, above) and lead paragraphs get the careful wrap.
   Card and step bodies wrap normally, so their lines run full. */
.hero__body,
.letter__body,
.section-note,
.path__body,
.trial__note,
.book__body {
  text-wrap: pretty;
}

em {
  font-style: italic;
}

a {
  color: var(--sienna);
  text-decoration: underline;
  text-decoration-color: var(--terracotta-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--speed) var(--ease), text-decoration-color var(--speed) var(--ease);
}

a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

::selection {
  background: var(--peach);
  color: var(--ink);
}

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: top var(--speed) var(--ease);
}

.skip-link:focus {
  top: 16px;
  color: var(--cream);
}

/* Hungarian words: italic serif, the way they are said aloud. */
.hu,
.hu-inline,
.pair__word,
.eyebrow-hu,
.book__eyebrow,
.book__closing,
.signoff p {
  font-family: var(--serif);
  font-style: italic;
}

.hu-inline {
  font-weight: 400;
  color: var(--ink);
}

/* ------------------------------------------------------------------ *
 * 3. Shared pieces
 * ------------------------------------------------------------------ */

.section {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  padding-top: clamp(34px, 4.8vw, 56px);
}

.shell {
  max-width: var(--w-shell);
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
}

/* Hungarian eyebrows are said, not labelled: italic terracotta, large. */
.eyebrow-hu {
  font-size: clamp(25px, 22px + 0.6vw, 28px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--terracotta);
  letter-spacing: -0.005em;
}

/* Section heads: eyebrow and h2 on the left, the short note beside them. */
.section-head {
  max-width: var(--w-card);
  margin: 0 auto clamp(18px, 2.4vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: clamp(24px, 5vw, 64px);
  align-items: end;
  text-align: left;
}

.section-head > * {
  grid-column: 1;
}

.section-head h2 {
  font-size: var(--size-h2);
  margin: 6px 0 0;
}

.section-note {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 36em;
  margin: 0;
  font-size: var(--size-card);
  line-height: 1.55;
  color: var(--ink-soft);
}

.section-note--small {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
}

/* Pills (theme.css 173-235). Hover always goes to ink or cream. */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  padding: 13px 26px;
  border: 1px solid transparent;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.pill:hover {
  transform: translateY(-1px);
}

.pill--terracotta {
  background: var(--sienna);
  color: var(--cream);
}

.pill--terracotta:hover {
  background: var(--ink);
  color: var(--cream);
}

.pill--outline {
  background: transparent;
  color: var(--sienna);
  border-color: rgba(180, 96, 60, 0.5);
  font-size: 13.5px;
  font-weight: 400;
  padding: 11px 24px;
}

.pill--outline:hover {
  background: var(--sienna);
  border-color: var(--sienna);
  color: var(--cream);
}

.pill--forest {
  background: var(--forest);
  color: var(--on-forest);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  padding: 15px 26px;
}

.pill--forest:hover {
  background: var(--ink);
  color: var(--cream);
}

.pill--apricot {
  background: var(--apricot);
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  padding: 19px 40px;
}

.pill--apricot:hover {
  background: var(--cream);
  color: var(--ink);
}

.pill__short {
  display: none;
}

.text-link {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--sienna);
  text-decoration-color: rgba(180, 96, 60, 0.45);
  text-underline-offset: 6px;
}

/* Round number badges: peach, sage, peach (theme.css 566-588). */
.badge {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

.badge--peach {
  background: var(--peach);
  color: var(--badge-peach-text);
}

.badge--sage {
  background: var(--sage-mid);
  color: var(--sage-label);
}

/* The cream inset (the July question-bank inset, theme.css 651-692). */
.inset {
  background: var(--cream);
  border-radius: var(--r-inset);
  padding: 24px 26px 22px;
  text-align: center;
}

.inset__figure {
  font-family: var(--serif);
  font-size: var(--size-bank);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--forest);
}

.inset__label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin: 10px 0 6px;
}

.inset__note {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  max-width: 26em;
  margin: 0 auto;
}

/* ------------------------------------------------------------------ *
 * 4. Header (parts/header.html, theme.css 262-321)
 * ------------------------------------------------------------------ */

.site-header {
  padding: 24px var(--gutter) 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

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

.brand__mark img {
  width: 34px;
  height: 34px;
  mix-blend-mode: multiply;
}

.brand__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  padding-top: 1px;
}

.brand__tail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand__sep {
  color: var(--brand-sep);
}

.brand__studio {
  color: var(--sienna);
}

/* ------------------------------------------------------------------ *
 * 4b. Section nav: small, quiet sans links between brand and pill
 * ------------------------------------------------------------------ */

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px 22px;
  margin: 0 8px 0 auto;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.site-nav a {
  display: inline-block;
  padding: 10px 1px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--terracotta-line);
  text-underline-offset: 6px;
}

/* ------------------------------------------------------------------ *
 * 5. Hero: portrait left, text right (stacked on a phone)
 * ------------------------------------------------------------------ */

.hero {
  padding-top: clamp(22px, 3.4vw, 40px);
}

.hero__inner {
  max-width: var(--w-card);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(36px, 6vw, 80px);
}

.portrait {
  position: relative;
  display: inline-block;
  margin: 0;
  justify-self: center;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--terracotta-line);
  pointer-events: none;
}

.portrait img {
  width: clamp(132px, 19vw, 232px);
  height: clamp(132px, 19vw, 232px);
  border-radius: var(--r-pill);
  object-fit: cover;
  object-position: 50% 30%;
}

.hero__title {
  font-size: var(--size-h1);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__title em {
  color: var(--terracotta);
  font-weight: 300;
}

.hero__meta {
  margin-top: 14px;
}

.hero__body {
  max-width: 34em;
  margin: 14px 0 0;
  font-size: var(--size-lead);
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 20px;
}

/* ------------------------------------------------------------------ *
 * 6. Letter: the text left, the "In short" card right
 * ------------------------------------------------------------------ */

.letter {
  padding-top: clamp(40px, 5.6vw, 64px);
}

.letter__inner {
  max-width: var(--w-card);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  font-size: var(--size-letter);
}

.letter__title {
  font-size: var(--size-h2);
  margin: 6px 0 14px;
}

.letter__body {
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.letter__body .hu {
  font-weight: 400;
  color: var(--sienna);
}

.letter__body:last-of-type {
  margin-bottom: 18px;
}

.signature {
  display: flex;
  align-items: center;
  gap: 16px;
  font-style: italic;
  font-size: max(24px, 1.37em);
  line-height: 1.2;
  color: var(--terracotta);
}

.signature::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(180, 96, 60, 0.25);
}

/* "In short": a white card, five facts with small round ticks. */
.inshort {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r-panel);
  padding: 22px 26px 24px;
}

.inshort__title {
  font-size: 23px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 12px;
}

.inshort__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.inshort__list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid var(--hairline);
  font-family: var(--sans);
  font-size: var(--size-card);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-soft);
}

.inshort__list li:first-child {
  border-top: 0;
}

.inshort__list li::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--peach);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3 L9.6 14.4 L15.6 7.8' fill='none' stroke='%238B4325' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 22px 22px;
}

.inshort__list li:nth-child(even)::before {
  background-color: var(--sage-mid);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3 L9.6 14.4 L15.6 7.8' fill='none' stroke='%235A6748' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ *
 * 7. Method
 * ------------------------------------------------------------------ */

.method {
  padding-top: clamp(40px, 5.6vw, 64px);
}

/* The July statistics row (three figures between two hairlines) holds the
   three principles, side by side. */
.principles {
  list-style: none;
  max-width: var(--w-card);
  margin: 0 auto;
  padding: 22px 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3.4vw, 44px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.principle__title {
  font-size: var(--size-stat);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  min-height: 2.24em;
}

.principle__title em {
  color: var(--sage-deep);
}

.principle p {
  font-family: var(--sans);
  font-size: var(--size-card);
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 8px;
}

/* ------------------------------------------------------------------ *
 * 8. Lesson plan card (theme.css 461-527)
 * ------------------------------------------------------------------ */

.card-xl {
  max-width: var(--w-card);
  margin: 0 auto;
  border-radius: var(--r-card);
  padding: clamp(24px, 3.2vw, 38px) clamp(22px, 4.4vw, 52px) clamp(26px, 3.4vw, 40px);
}

.lesson__card {
  background: var(--blush);
}

.section-head--tight {
  margin-bottom: clamp(12px, 1.8vw, 20px);
}

/* Five steps in two columns, the long middle one across both, so the card
   uses its width: 1 2 / 3 / 4 5. The time column stays on the left of each step. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4.4vw, 56px);
}

.step {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--hairline);
}

.step:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 4px;
}

.step:nth-child(3) {
  grid-column: 1 / -1;
}

.step:nth-child(3) .step__text p {
  max-width: 48em;
}

.step__time {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--sienna);
  padding-top: 5px;
}

.step__text h3 {
  margin: 0 0 4px;
}

.step__text p {
  font-family: var(--sans);
  font-size: var(--size-card);
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

/* the three opening sentences, numbered in place */
.three__part {
  color: var(--ink);
  white-space: nowrap;
}

.three__part::before {
  content: attr(data-n);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0 5px 0 1px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--badge-peach-text);
  font-size: 11.5px;
  font-weight: 700;
  vertical-align: 2px;
}

.three__part[data-n="2"]::before {
  background: var(--sage-mid);
  color: var(--sage-label);
}

/* ------------------------------------------------------------------ *
 * 10. Path card (the July citizenship card, theme.css 610-692)
 * ------------------------------------------------------------------ */

.path__card {
  background: var(--sage);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.eyebrow--sage {
  font-size: 12px;
  font-weight: 600;
  color: var(--sage-label);
}

.path__title {
  font-size: var(--size-h2-lg);
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}

.path__body {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--sage-body);
  max-width: 34em;
}

/* Five stops, one gap size. The rail is drawn per gap: a dashed line that
   leaves a badge centre, bends out (right, left, right, left, always the same
   depth) and lands on the next badge centre. The last stop draws nothing, so
   the rail ends inside the interview badge. The spacing makes no claim about
   how long a level takes. */
.stages {
  --stage-gap: 16px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  /* The first four rows share one height (the tallest of them), so a stop
     with a longer sentence does not push its badge further away. */
  display: grid;
  grid-template-rows: repeat(4, 1fr) auto;
  row-gap: var(--stage-gap);
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.stage__link {
  position: absolute;
  left: 0;
  top: 21px;
  width: 42px;
  height: calc(100% + var(--stage-gap));
  overflow: visible;
  pointer-events: none;
}

.stage__link path {
  fill: none;
  stroke: var(--sage-deep);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
}

.stage__badge {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 5px var(--sage);
}

.stage__badge--peach {
  background: var(--peach);
  color: var(--badge-peach-text);
}

.stage__badge--sage {
  background: var(--cream-light);
  color: var(--sage-label);
}

.stage__badge--forest {
  background: var(--forest);
}

.stage__badge svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--on-forest);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.stage__text h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--sage-label);
  padding-top: 3px;
}

.stage__text p {
  font-size: 19px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  margin-top: 4px;
}

.stage--interview .stage__text h3 {
  color: var(--forest);
}

/* Said before the stops, so the bending rail below illustrates it. */
.path__notline {
  margin: 0 0 12px;
}

.path__notline h3 {
  font-size: 22px;
  font-style: italic;
  color: var(--forest);
}

.path__notline p {
  font-family: var(--sans);
  font-size: var(--size-card);
  font-weight: 400;
  line-height: 1.55;
  color: var(--sage-body);
  margin-top: 4px;
}

.path__side {
  position: sticky;
  top: 24px;
}

.inset--pace {
  padding: 24px 26px 22px;
}

.levers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
}

.levers li {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--forest);
  background: var(--sage);
  border-radius: var(--r-pill);
  padding: 9px 13px;
  white-space: nowrap;
}

.inset__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(78, 90, 61, 0.18);
}

.inset__foot h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--forest);
}

.inset__foot p {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 6px;
}

.path__cta {
  margin-top: 16px;
  text-align: center;
}

/* ------------------------------------------------------------------ *
 * 11. Trial lesson
 * ------------------------------------------------------------------ */

/* A white card (the July "who" card, at full width) so the sage path card
   and the plain reviews do not run into each other. */
.trial__card {
  background: var(--white);
  border: 1px solid var(--card-border);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 4.6vw, 60px);
  align-items: start;
}

.trial__head {
  position: sticky;
  top: 24px;
}

.trial__head h2 {
  font-size: var(--size-h2-lg);
  letter-spacing: -0.02em;
  margin: 6px 0 10px;
}

.trial__note {
  font-size: var(--size-lead);
  line-height: 1.55;
  color: var(--ink-soft);
}

.trial__cta {
  margin-top: 18px;
}

.trial__steps {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 6px 0 0;
}

.tstep {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 18px;
}

.tstep:last-child {
  padding-bottom: 0;
}

/* The hairline runs from each badge centre to the next one, so it always
   ends at badge 5, however the last step wraps. */
.tstep:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 17px;
  height: 100%;
  width: 1px;
  background: var(--terracotta-line);
}

.tstep .badge {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--white);
}

.tstep h3 {
  padding-top: 2px;
}

.tstep p {
  font-family: var(--sans);
  font-size: var(--size-card);
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 4px;
}

/* ------------------------------------------------------------------ *
 * 12. Reviews: three quotes on the first row, two wider on the second
 * ------------------------------------------------------------------ */

.reviews {
  padding-top: clamp(40px, 5.6vw, 64px);
}

.reviews__list {
  max-width: var(--w-card);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 30px) clamp(24px, 3.4vw, 44px);
}

.review {
  position: relative;
  margin: 0;
  grid-column: span 2;
}

.review:nth-child(n + 4) {
  grid-column: span 3;
}

/* No quotation marks (the copy rules ban curly double quotes, also drawn
   ones): a terracotta rule marks the student's words instead. */
.review blockquote {
  position: relative;
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--terracotta);
}

.review blockquote p {
  font-size: var(--size-quote);
  line-height: 1.5;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
}

.review figcaption {
  padding-left: 20px;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ *
 * 13. FAQ: two columns, so an open answer only moves its own column
 * ------------------------------------------------------------------ */

.faq {
  padding-top: clamp(40px, 5.6vw, 64px);
}

.faq__list {
  max-width: var(--w-card);
  margin: 0 auto;
  columns: 2;
  column-gap: clamp(32px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}

.qa {
  break-inside: avoid;
  border-top: 1px solid var(--rule);
}

.qa summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 14px 40px 14px 0;
  font-family: var(--serif);
  font-size: 19.5px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  transition: color var(--speed) var(--ease);
}

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

.qa summary::before,
.qa summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--terracotta);
  transition: transform var(--speed) var(--ease);
}

.qa summary::after {
  transform: rotate(90deg);
}

.qa[open] summary::after {
  transform: rotate(0deg);
}

.qa summary:hover {
  color: var(--sienna);
}

.qa p {
  font-size: var(--size-card);
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 0 40px 16px 0;
}

/* ------------------------------------------------------------------ *
 * 14. Booking card: the ink card, intro left, price list right
 * ------------------------------------------------------------------ */

.book {
  padding-top: clamp(40px, 5.6vw, 64px);
}

.book__card {
  max-width: var(--w-shell);
  margin: 0 auto;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r-card);
  padding: clamp(26px, 3.6vw, 44px) clamp(22px, 4.4vw, 52px) clamp(24px, 3.2vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.book__intro {
  grid-column: 1;
  grid-row: 1;
}

.book__list {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.book__eyebrow {
  font-size: clamp(22px, 20px + 0.5vw, 26px);
  font-weight: 300;
  line-height: 1.25;
  color: var(--apricot);
}

.book__title {
  font-size: clamp(30px, 23px + 1.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--on-ink);
  margin: 8px 0 12px;
}

.book__body {
  font-size: var(--size-letter);
  line-height: 1.55;
  color: rgba(247, 239, 230, 0.8);
  max-width: 30em;
  margin: 0;
}

/* The price list: the price is the anchor of each row, but not a poster. */
.offers {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  border-top: 1px solid rgba(247, 239, 230, 0.16);
}

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(247, 239, 230, 0.16);
}

.offer__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 19px + 0.6vw, 25px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--on-ink);
}

.offer__meta {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  color: rgba(247, 239, 230, 0.78);
}

.offer__price {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 27px + 0.6vw, 36px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--apricot);
  text-align: right;
  white-space: nowrap;
}

.offer__price small {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 239, 230, 0.78);
}

.offer__action {
  justify-self: end;
}

.offer .pill--apricot {
  padding: 13px 30px;
}

.book__note {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(247, 239, 230, 0.78);
}

.book__note + .book__note {
  margin-top: 2px;
}

/* "Want to tell me about your Hungarian first?", to the learning-needs page. */
.book__alt {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(247, 239, 230, 0.82);
}

.book__alt a,
.book__note a {
  color: var(--apricot);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.book__alt a:hover,
.book__alt a:focus-visible,
.book__note a:hover,
.book__note a:focus-visible {
  color: var(--on-ink);
}

.book__closing {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  margin-top: 18px;
  font-size: var(--size-signoff);
  font-weight: 300;
  line-height: 1.2;
  color: var(--apricot);
}

/* ------------------------------------------------------------------ *
 * 15. Contact cards (theme.css 1247-1343)
 * ------------------------------------------------------------------ */

.contact {
  padding-top: clamp(40px, 5.6vw, 64px);
  padding-bottom: clamp(26px, 3.4vw, 40px);
}

.contact .section-head h2 {
  font-size: clamp(25px, 20px + 1.2vw, 32px);
}

.contact__cards {
  max-width: var(--w-card);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  position: relative;
  background: var(--cream-light);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: 18px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.contact-card:hover {
  transform: translateY(-2px);
}

/* a thin border and a very gentle tint: warm for e-mail, sage for WhatsApp */
.contact-card--email {
  background: var(--blush);
  border-color: var(--peach);
}

.contact-card--whatsapp {
  background: var(--sage);
  border-color: var(--sage-glow);
}

.contact-card--email:hover {
  background: var(--cream-light);
  border-color: var(--apricot);
}

.contact-card--whatsapp:hover {
  background: var(--cream-light);
  border-color: var(--whatsapp-hover);
}

.contact-card:focus-within {
  background: var(--cream-light);
}

.contact-card__label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
}

.contact-card--email .contact-card__label {
  color: var(--sienna);
}

.contact-card--whatsapp .contact-card__label {
  color: var(--sage-label);
}

.contact-card__value {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-card__value a {
  color: var(--ink);
  text-decoration: none;
}

/* one real link, stretched to the card's edges */
.contact-card__value a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-panel);
}

.contact-card__value a:focus-visible {
  outline: none;
}

.contact-card__value a:focus-visible::after {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.contact-card__note {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

/* ------------------------------------------------------------------ *
 * 16. Sign-off and footer (parts/footer.html, theme.css 1349-1384)
 * ------------------------------------------------------------------ */

.signoff {
  text-align: center;
  padding: 4px var(--gutter) clamp(20px, 2.6vw, 30px);
}

.signoff p {
  font-size: var(--size-signoff);
  font-weight: 300;
  line-height: 1.2;
  color: var(--terracotta);
}

.site-footer {
  border-top: 1px solid var(--hairline);
}

.site-footer__inner {
  padding: 20px var(--gutter) clamp(24px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
  text-align: center;
}

.site-footer__inner p,
.site-footer__inner a {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  text-decoration: none;
}

.site-footer__inner a:hover {
  color: var(--sienna);
}

/* ------------------------------------------------------------------ *
 * 17. Responsive
 * ------------------------------------------------------------------ */

/* Laptop and tablet: the nav drops to its own row under the brand */
@media (max-width: 820px) {
  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .brand {
    margin-right: auto;
  }

  .site-nav {
    order: 3;
    flex: 0 0 100%;
    margin: 0;
    gap: 2px 20px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 900px) {
  .principles {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    padding: 0;
    gap: 0;
  }

  .principle__title {
    min-height: 0;
  }

  .principle {
    padding: 20px 0 22px;
  }

  .principle + .principle {
    border-top: 1px solid var(--hairline);
  }

  .path__card,
  .trial__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .path__side,
  .trial__head {
    position: static;
  }

  /* stacked, the button would sit before the steps it books */
  .trial__cta {
    display: none;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step:nth-child(3) .step__text p {
    max-width: none;
  }

  .step:nth-child(2) {
    border-top: 1px solid var(--hairline);
    padding-top: 14px;
  }

  .reviews__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review,
  .review:nth-child(n + 4) {
    grid-column: auto;
  }

  .review:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .section-head {
    display: block;
  }

  .section-note {
    margin-top: 10px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
    text-align: center;
  }

  .hero__body {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .letter__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .book__card {
    display: block;
  }

  .book__list {
    margin-top: 18px;
  }

  .book__closing {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(247, 239, 230, 0.12);
  }

  .faq__list {
    columns: 1;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 17px;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .step__time {
    padding-top: 0;
  }

  .reviews__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .review:last-child {
    grid-column: auto;
  }

  .contact__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .qa summary {
    font-size: 18.5px;
  }

  .qa p {
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand__mark img {
    width: 32px;
    height: 32px;
  }

  .site-header__inner {
    gap: 12px;
  }

  /* The whole lockup on one line, the #C9A793 dot included. */
  .brand__name {
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .pill--outline {
    padding: 10px 16px;
  }

  .pill__long {
    display: none;
  }

  .pill__short {
    display: inline;
  }

  .hero__line {
    display: block;
  }

  .card-xl {
    border-radius: 24px;
  }

  .inset {
    padding: 22px 20px 20px;
  }

  .inshort {
    padding: 20px 20px 22px;
  }

  .offer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .offer__text {
    grid-column: 1 / -1;
  }

  .offer__price {
    text-align: left;
  }

  .pill--apricot {
    padding: 14px 26px;
  }
}

/* Below 380 px the one-line lockup no longer fits beside the pill: it
   stacks, and the dot leads the second line (· STUDIO), so it never drops. */
@media (max-width: 379px) {
  .brand__name {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ------------------------------------------------------------------ *
 * 17b. Colour bands (the concept of this variant)
 *      Every section is a full-width band; its content sits in one column
 *      of 800 px (--w-card). Colour separates the sections, so the gaps are
 *      small and the old card backgrounds are gone.
 * ------------------------------------------------------------------ */

.band.section {
  padding-top: clamp(26px, 3.4vw, 38px);
  padding-bottom: clamp(26px, 3.4vw, 38px);
  scroll-margin-top: 76px;
}

.band--cream-light { background: var(--cream-light); }
.band--white { background: var(--white); }
.band--blush { background: var(--blush); }
.band--cream { background: var(--cream); }
.band--sage { background: var(--sage); }

.band--ink {
  background: var(--ink);
  color: var(--on-ink);
  border-top: 3px solid var(--terracotta);
}

/* heading row: eyebrow and h2 left, the note under them */
.section-head {
  display: block;
  max-width: var(--w-card);
  margin-bottom: 16px;
}

.section-head h2 {
  margin-top: 4px;
}

.section-note {
  max-width: 40em;
  margin-top: 8px;
}

/* the old cards dissolve into the band */
.band .card-xl {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* header: a slim sticky bar with a solid background and a hairline */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 8px var(--gutter);
  background: var(--cream-light);
  border-bottom: 1px solid var(--hairline);
}

/* hero: portrait 150 px left, text right */
.hero.band.section {
  padding-top: clamp(22px, 3vw, 32px);
  padding-bottom: clamp(24px, 3.2vw, 36px);
}

.hero__inner {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(26px, 4vw, 40px);
}

.portrait img {
  width: 150px;
  height: 150px;
}

.hero__title {
  font-size: clamp(30px, 22px + 2.2vw, 44px);
}

.hero__meta {
  margin-top: 10px;
}

.hero__body {
  margin-top: 10px;
  font-size: clamp(17px, 15.9px + 0.4vw, 19px);
}

.hero__actions {
  margin-top: 16px;
}

/* letter: In short as a cream card on the white band */
.letter__inner {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(24px, 4vw, 44px);
}

.letter__title {
  margin: 4px 0 10px;
}

.inshort {
  background: var(--cream);
  border-color: transparent;
  padding: 18px 22px 20px;
}

.inshort__title {
  font-size: 21px;
}

.inshort__list li {
  padding: 7px 0;
  font-size: 16px;
}

/* method: three principles in three columns */
.principles {
  padding: 16px 0 18px;
  gap: clamp(20px, 3vw, 32px);
  border-color: rgba(43, 34, 28, 0.14);
}

.principle__title {
  font-size: 23px;
  min-height: 0;
}

.principle__title em {
  color: var(--sage-label);
}

.principle p {
  font-size: 16px;
  margin-top: 6px;
}

/* lesson: one column of steps */
.steps {
  grid-template-columns: minmax(0, 1fr);
}

.step:nth-child(2) {
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}

.step:nth-child(3) .step__text p {
  max-width: none;
}

.step {
  padding: 12px 0 14px;
}

/* path: one column, the pace inset below the stops */
.path__card {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.path__side {
  position: static;
}

.path__title {
  margin: 4px 0 10px;
}

.path__cta {
  margin-top: 14px;
}

/* trial: heading row, then the steps in one column */
.trial__card {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.trial__head {
  position: static;
}

.trial__head h2 {
  margin: 4px 0 8px;
}

.trial__cta {
  display: none;
}

/* reviews: two columns, the fifth across */
.reviews__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px clamp(24px, 4vw, 44px);
}

.review,
.review:nth-child(n + 4) {
  grid-column: auto;
}

.review:last-child {
  grid-column: 1 / -1;
}

/* book: the ink band, intro on top, then the price list */
.book__card {
  max-width: var(--w-card);
  padding: 0;
  background: transparent;
  border-radius: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  overflow: visible;
}

.book__intro,
.book__list,
.book__closing {
  grid-column: 1;
}

.book__intro { grid-row: 1; }
.book__list { grid-row: 2; margin-top: 16px; }
.book__closing { grid-row: 3; margin-top: 16px; }

.book__title {
  margin: 4px 0 8px;
}

/* faq and contact */
.faq__list {
  border-bottom-color: rgba(43, 34, 28, 0.14);
}

.contact.band.section {
  padding-bottom: clamp(20px, 3vw, 30px);
}

.signoff {
  background: var(--white);
  padding-top: 0;
}

/* the phone bar: hidden except on small screens */
.mobile-bar {
  display: none;
}

@media (max-width: 820px) {
  .site-header {
    padding-top: 8px;
    padding-bottom: 2px;
  }

  .band.section {
    scroll-margin-top: 104px;
  }
}

@media (max-width: 760px) {
  .principles {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    gap: 0;
  }

  .principle {
    padding: 16px 0 18px;
  }

  .principle + .principle {
    border-top: 1px solid var(--hairline);
  }

  .letter__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }

  .portrait img {
    width: 120px;
    height: 120px;
  }

  .faq__list {
    columns: 1;
  }

  .book__card {
    display: grid;
  }

  .book__list { margin-top: 12px; }

  .book__closing {
    margin-top: 16px;
    padding-top: 14px;
  }

  /* the bar below replaces the header pill, only on a page that has the bar */
  body:has(.mobile-bar) .site-header .pill {
    display: none;
  }

  body:has(.mobile-bar) {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--cream-light);
    border-top: 1px solid var(--hairline);
  }

  .mobile-bar__price {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
  }

  .mobile-bar .pill {
    flex: 1;
    max-width: 260px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  body:has(dialog[open]) .mobile-bar {
    display: none;
  }
}

@media (max-width: 700px) {
  .reviews__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .review:last-child {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .hero__line {
    display: block;
  }
}

/* ------------------------------------------------------------------ *
 * 18. Reduced motion
 * ------------------------------------------------------------------ */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .contact-card:hover,
  .pill:hover {
    transform: none;
  }
}

