/* Andrologia Medica — Layout 1a·2 "Il nome come marchio"
 *
 * Fonts are served from our own pipeline. The brief asks for Google Fonts;
 * this repo forbids third-party hosts and a test enforces it
 * (tests/test_theme_pages.py), so the same three families ship as woff2.
 * No sourcemap comment: CompressedManifestStaticFilesStorage treats a missing
 * .map as fatal.
 */

/* ----------------------------------------------------------------- fonts */
/* Newsreader is variable, 400..500, roman and italic, latin + latin-ext.
   Italian needs only the latin block (à è ù ò ì é), but the ext face costs
   nothing until a glyph outside latin is actually used. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/Newsreader-var-latin.f94a697b1650.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: 400 500;
  font-display: swap;
  src: url("../fonts/Newsreader-var-latin-ext.2e01db0610b1.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/Newsreader-var-italic-latin.e97067eb043b.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: 400 500;
  font-display: swap;
  src: url("../fonts/Newsreader-var-italic-latin-ext.43736a955d60.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Sans is variable: two weights, one file. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexSans-var.b2c9031d9fd6.woff2") format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/IBMPlexSans-var.b2c9031d9fd6.woff2") format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-400.79936b18df9f.woff2") format('woff2');
}

/* ---------------------------------------------------------------- tokens */
:root {
  --paper: #f6f3ee;
  --paper-deep: #ebe5db;
  --ink: #1d1b18;
  --ink-soft: #4a453e;
  /* The brief specifies #7a7266. That is 4.29:1 on paper and 3.79:1 on
     paper-deep — below WCAG AA for text under 18.66px, which is exactly the
     12–15px labels and footer it was assigned to. This is the nearest
     same-hue darkening that passes on both grounds (5.13:1 and 4.53:1), and
     the brief's own accessibility requirement outranks its hex. */
  --muted: #6d665b;
  /* The one accent. It carries the numbers, the icons, the short rules and
     every hover state, which is what ties the sections together — so it is
     also the colour most often set in small text, and it has to pass there.
     #8a5a3c is 5.26:1 on paper and 4.65:1 on paper-deep: AA on both grounds
     at any size. No separate darkened text variant is needed. */
  --accent: #8a5a3c;
  --accent-light: #d9b48f;
  --rule: #ddd6cb;
  --rule-deep: #d3c9b9;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1280px;
  --pad: 64px;

  /* One value for the space between every home-page section, so the vertical
     rhythm is even rather than per-section. Sections set their own padding
     from this and nothing else. */
  --section-gap: 96px;

  /* The rounded-arch top. The only Florence element on the page: the hero
     photo wears it, and so does the thin outline sitting behind it. The
     vertical radius is kept shallow (26%) on purpose — a deeper arch starts
     cutting into the top of the doctor's head. */
  --arch: 50% 50% 0 0 / 26% 26% 0 0;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, p, figure { margin: 0; }

/* Visible focus on every interactive element, on both grounds. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
.nav-burger:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.06em;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.label {
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  padding: 16px 26px;
  border-radius: 2px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.btn--solid {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------- header */
.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--pad);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__name { font: 500 22px/1 var(--serif); }
.wordmark__sub {
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 28px;
  margin: 0 auto;
  font: 400 15px/1 var(--sans);
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.header__cta { margin-left: auto; }

/* The mobile menu is a checkbox and a label — it opens with no JavaScript.
   A <details> cannot be used: a closed <details> hides its children whatever
   the wrapper's display is, so the nav would vanish on desktop too.

   display:none above 768px, not just visually hidden. Its <label> is the
   burger, which is itself display:none up here — so the checkbox was left
   in the accessibility tree and the tab order with no accessible name at
   all. Lighthouse desktop caught it as "form elements do not have
   associated labels"; a screen reader on a laptop would have announced an
   unnamed checkbox before the navigation. */
.nav-check { display: none; }
.nav-burger { display: none; }

/* ------------------------------------------------------------- name hero */
/* One grid, both columns starting at the same line. The previous version
   was two sections — the name, then a bottom-aligned row — which is what
   put a paragraph-sized hole in the middle of the page. */
.hero-name {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--pad);
  align-items: start;
  /* Half a gap at the bottom, not a whole one: the brief wants the trust
     strip reading as part of the hero rather than as the next section.
     Still derived from --section-gap, so the rhythm stays one value. */
  padding: 52px var(--pad) calc(var(--section-gap) / 2);
}
.hero-name__eyebrow {
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
/* The name is still the largest text on the page at every breakpoint — that
   is the layout. It came down from 172px for one reason: the H1 now also
   carries the keyword line, and the whole left column has to clear the fold
   at 1440x800. It came down again, from 132px to 104px, on 2026-11-16 because
   Dr Beretta asked for his name to be a little smaller. */
.hero-name__title {
  font: 400 clamp(56px, 7.4vw, 104px)/0.9 var(--serif);
  letter-spacing: -0.04em;
  margin: 0 0 26px;
}
.hero-name__title span { display: block; }
/* Inside the H1, so the heading contains the keyword — but set at reading
   size, because it is a subtitle and not part of the wordmark. */
.hero-name__kicker {
  font: 400 clamp(19px, 1.7vw, 25px)/1.25 var(--serif);
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-top: 18px;
}
.hero-name__message {
  font: italic 400 28px/1.3 var(--serif);
  margin-bottom: 18px;
}
.hero-name__body {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-name__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* The arch. Its top is pushed down by the height of the eyebrow so that the
   photo starts on the same line as the H1 rather than the line above it. */
.hero-name__photo {
  position: relative;
  margin: 35px 0 0;
}
/* The thin outline sitting 12px outside the photo, on the same arch. Drawn
   on a pseudo-element behind the image so it cannot intercept a click. */
.hero-name__photo::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border: 1px solid var(--accent);
  border-radius: var(--arch);
  pointer-events: none;
}
.hero-name__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--arch);
}

/* ------------------------------------------------------------ trust strip */
/* Grid, not flex. With six figures the column count has to be known to put
   the hairlines in the right places — flex-wrap decides how many fit from
   the basis, so the row starts move with the viewport and the nth-child
   rules that strip their left rule stop matching. Three columns, two on a
   phone, and the arithmetic below is exact at both. */
.trust { padding-bottom: var(--section-gap); }
.trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px;
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}
.trust__item:nth-child(3n+1) { border-left: 0; }
.trust__item:nth-child(-n+3) { border-top: 0; }
.trust__figure {
  font: 400 26px/1 var(--mono);
  letter-spacing: -0.01em;
  color: var(--accent);
}
.trust__label { font-size: 15px; color: var(--ink-soft); }

/* Where the figures come from. Small, but not optional: activity numbers on
   a doctor's own site need to name their source. */
.trust__source,
.latest__source {
  margin-top: 18px;
  font: 400 13px/1.6 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
/* Underlined at rest, not just on hover. These sit inside a sentence, and
   accent-on-muted is 1.02:1 against the surrounding text — a reader who
   cannot pick the hue out has nothing else to go on, which is WCAG 1.4.1.
   Every other link on this page is either a block or already underlined;
   these two attribution lines were the only prose links on it. */
.trust__source a,
.latest__source a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.trust__source a:hover,
.latest__source a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ------------------------------------------------------ section headers */
.section-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 20px;
  margin-bottom: 0;
}
/* The short ochre bar sitting on the left end of the black rule. It is the
   repeated mark that makes the sections read as one system, so it belongs
   to .section-head itself rather than to any one section — every home-page
   heading and every inner-page heading gets it for free. 2px tall against a
   1px rule, so it covers the line rather than sitting beside it. */
.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 2px;
  background: var(--accent);
}
/* h1 as well as h2: the blog index puts its page title in a section head,
   and without this it falls back to the browser's bold sans. */
.section-head h1,
.section-head h2 { font: 400 40px/1.1 var(--serif); }

/* --------------------------------------------------------------- icons */
/* Inline SVG only — no sprite file and no icon font, so nothing can 404 and
   the stylesheet keeps its "every url() resolves" guarantee. The shapes are
   deliberately abstract: this is a medical site and a literal drawing would
   be both uncomfortable and unhelpful at 28px. */
.icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--accent);
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  overflow: visible;
}

/* ---------------------------------------------------------- aree di cura */
.care { padding: 0 var(--pad) var(--section-gap); }
.care__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* One hairline between cells rather than doubled borders: the grid draws
     its own top and left, each cell draws right and bottom. */
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.care__cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 220px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* The whole cell is a link, so without this every line in it is
     underlined — which is what the first render looked like. */
  text-decoration: none;
  color: inherit;
}
/* The accent line on hover is an inset shadow, not a border: the grid draws
   the cells' top rule itself, so a real border-top would push every cell
   down by a pixel the moment it was hovered. */
.care__cell:not(.care__cell--dark):hover,
.care__cell:not(.care__cell--dark):focus-visible {
  background: var(--paper-deep);
  box-shadow: inset 0 2px 0 var(--accent);
}
.care__cell:hover .care__title { color: var(--accent); }

/* Always in the markup, only faded in — so a hover never reflows the title. */
.care__arrow {
  margin-left: 0.35em;
  opacity: 0;
  transition: opacity .15s ease;
}
.care__cell:hover .care__arrow,
.care__cell:focus-visible .care__arrow { opacity: 1; }
.care__num {
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.care__title { font: 400 30px/1.15 var(--serif); }
.care__desc { font-size: 16px; color: var(--ink-soft); }

.care__cell--dark {
  background: var(--ink);
  color: var(--paper);
  justify-content: space-between;
}
.care__cell--dark:hover { background: var(--ink); }
.care__cell--dark .care__num { color: var(--accent-light); }
.care__cell--dark .care__title { color: var(--paper); }
.care__cell--dark .care__desc { color: var(--accent-light); }
a.care__cell--dark:hover .care__title { color: var(--accent-light); }

/* ------------------------------------------------------------- il dottore */
/* The heading keeps its own rule in the left column rather than spanning
   the page: the section is a short aside, and a full-width rule would give
   it the same weight as Aree di cura. */
.doctor {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--pad);
  align-items: start;
  padding: 0 var(--pad) var(--section-gap);
}
.doctor__body { max-width: 62ch; }
.doctor__body p { font-size: 18px; color: var(--ink-soft); }
.doctor__body p + p { margin-top: 1.1em; }
.doctor__link {
  display: inline-block;
  margin-top: 26px;
  font: 400 15px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
}
.doctor__link:hover { color: var(--ink); text-decoration: underline; }

/* ----------------------------------------------------------- dove riceve */
.offices { padding: 0 var(--pad) 0; }
.offices__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.office {
  background: var(--paper-deep);
  padding: 36px;
}
.office__label {
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.office__name { font: 400 34px/1.1 var(--serif); margin-bottom: 16px; }
.office__address { font-size: 17px; color: var(--ink-soft); }
.office__phones {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-deep);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
/* A phone number that is tappable should look tappable before it is
   hovered — a hover state is no use at all on the phone these are for. */
.office__phones a {
  font: 400 15px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.office__phones a:hover { color: var(--accent); }

.office__directions {
  margin-top: 16px;
  font: 400 14px/1 var(--mono);
  letter-spacing: 0.06em;
}
.office__directions a { color: var(--accent); text-decoration: none; }
.office__directions a:hover { color: var(--ink); text-decoration: underline; }

.booking-bar {
  margin: 48px 0 var(--section-gap);
  background: var(--ink);
  color: var(--paper);
  padding: 34px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-decoration: none;
}
.booking-bar__text { display: block; }
.booking-bar__title { display: block; font: 400 30px/1.1 var(--serif); }
/* Says where the booking actually happens, because the bar leaves the site. */
.booking-bar__note {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--accent-light);
}
.booking-bar__url {
  font: 400 15px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--accent-light);
  white-space: nowrap;
}
.booking-bar:hover .booking-bar__url { color: var(--paper); }

/* ------------------------------------------------------- ultime dal blog */
.latest { padding: 0 var(--pad) var(--section-gap); }
.latest .section-head .label a { color: var(--accent); text-decoration: none; }
.latest .section-head .label a:hover { color: var(--ink); text-decoration: underline; }
.latest__list { list-style: none; margin: 32px 0 0; padding: 0; }
.latest__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.latest__item:first-child { border-top: 1px solid var(--rule); }
.latest__date {
  font: 400 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.latest__title { font: 400 24px/1.25 var(--serif); }
.latest__title a { text-decoration: none; }
.latest__title a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 44px var(--pad) 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  font: 400 13px/1.7 var(--mono);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px var(--pad);
  padding-bottom: 32px;
}
.site-footer__heading { color: var(--ink); margin-bottom: 10px; }
.site-footer__col p + p { margin-top: 10px; }
.site-footer__phones { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer__phones a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.site-footer__phones a:hover { color: var(--ink); }

.site-footer__bar {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer__trust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-footer__trust img { width: 120px; }

/* ------------------------------------ inner pages (imported content) */
/* Not in the brief — it covers the home page. These reuse its tokens and
   type scale so the imported WordPress content is not left unstyled. */
.page { padding: 64px var(--pad) 96px; }
.page__head { margin-bottom: 40px; }
.page__title {
  font: 400 clamp(36px, 5vw, 64px)/1.08 var(--serif);
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.page__date {
  display: block;
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.page__intro { margin-top: 24px; }
.page__back {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font: 400 14px/1 var(--mono);
  letter-spacing: 0.06em;
}
.page__back a { text-decoration: none; color: var(--accent); }
.page__back a:hover { color: var(--ink); text-decoration: underline; }

/* A single editorial column. 68ch keeps the long glossary readable. */
.prose { max-width: 68ch; font-size: 18px; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 2em;
}
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 27px; }
.prose h4 { font-size: 22px; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); }
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose img { margin: 1.6em 0; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 20px 24px;
  background: var(--paper-deep);
  border-left: 2px solid var(--accent);
  font-style: italic;
}
.prose iframe { max-width: 100%; border: 1px solid var(--rule); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
/* The privacy notice names a cookie by its literal name. */
.prose code { font: 400 0.9em/1 var(--mono); color: var(--ink); }

/* ------------------------------------------------------------ post list */
.postlist { list-style: none; margin: 40px 0 0; padding: 0; }
.postlist__item {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.postlist__item:first-child { border-top: 1px solid var(--rule); }
.postlist__date {
  display: block;
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.postlist__title { font: 400 30px/1.15 var(--serif); }
.postlist__title a { text-decoration: none; }
.postlist__title a:hover { color: var(--accent); }
.postlist__intro {
  margin-top: 8px;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 17px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font: 400 14px/1 var(--mono);
  letter-spacing: 0.06em;
}
.pager a { color: var(--accent); text-decoration: none; }
.pager a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------------ form */
.form { display: flex; flex-direction: column; gap: 22px; max-width: 34rem; }
.form__row { display: flex; flex-direction: column; gap: 8px; }
.form__row label {
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form input[type="text"],
.form input[type="email"],
.form input[type="number"],
.form input[type="url"],
.form input[type="date"],
.form select,
.form textarea {
  font: 400 17px/1.5 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-deep);
  border-radius: 0;
  padding: 10px 2px;
  width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  border-bottom-color: var(--accent);
}
.form .helptext { font-size: 14px; color: var(--muted); }
.form ul.errorlist {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #a3301c;
}
.form__submit { align-self: flex-start; }
.form__offices { margin-top: 72px; }

/* The consent checkbox is a long sentence; keep it beside its box rather
   than stacked above it like the text inputs. */
.form__row:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
.form__row:has(input[type="checkbox"]) label {
  order: 2;
  font: 400 15px/1.45 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.form__row input[type="checkbox"] {
  order: 1;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--ink);
}
.form__privacy {
  font-size: 14px;
  color: var(--muted);
  max-width: 34rem;
}
.form__privacy a { color: var(--accent); }

/* ------------------------------------------- sticky mobile booking bar */
/* Shown under 768px only. It sits above the footer content via padding on
   the body so it never covers the last line. */
.callbar { display: none; }

/* ----------------------------------------------------------- 768–1199px */
@media (max-width: 1199px) {
  :root { --pad: 40px; }
  /* The name needs no override here any more: its clamp() scales with the
     viewport, so this breakpoint only has to fix the grids. */
  .care__grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: 20px; font-size: 14px; }
}

/* --------------------------------------------------------- under 768px */
@media (max-width: 767px) {
  :root { --pad: 20px; --section-gap: 64px; }

  body { padding-bottom: 76px; }

  .site-header { flex-wrap: wrap; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
  /* Back in the tree down here, where its label is visible and names it.
     It stays focusable so the menu can be opened from the keyboard. */
  .nav-check { display: block; position: absolute; opacity: 0; pointer-events: none; }
  .nav-burger {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--rule);
    border-radius: 2px;
    font: 400 12px/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    cursor: pointer;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin: 0;
    gap: 0;
    order: 3;
  }
  .nav-check:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .header__cta { display: none; }

  /* One column: eyebrow, H1, tagline, paragraph, buttons, then the photo —
     which is the source order, so nothing needs reordering. The arch and
     its outline are kept; only the 12px offset would crowd the edge of a
     narrow screen, and --pad already holds it clear. */
  .hero-name {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
  }
  .hero-name__title { font-size: clamp(48px, 12vw, 104px); }
  .hero-name__eyebrow { font-size: 12px; margin-bottom: 18px; }
  .hero-name__kicker { font-size: 20px; margin-top: 14px; }
  .hero-name__message { font-size: 24px; }
  .hero-name__body { font-size: 17px; }
  .hero-name__photo { margin-top: 0; }

  /* Two columns, so every nth-child rule above has to be restated for a
     different row width — the three-column ones are reset first, then the
     two-column ones applied. Six figures become 2x3. */
  .trust__list { grid-template-columns: repeat(2, 1fr); }
  .trust__item { padding: 22px 18px; }
  .trust__item:nth-child(3n+1) { border-left: 1px solid var(--rule); }
  .trust__item:nth-child(2n+1) { border-left: 0; }
  .trust__item:nth-child(-n+3) { border-top: 1px solid var(--rule); }
  .trust__item:nth-child(-n+2) { border-top: 0; }
  .trust__figure { font-size: 22px; }
  .trust__label { font-size: 14px; }

  .section-head { flex-direction: column; gap: 8px; padding-bottom: 16px; }
  .section-head h2 { font-size: 32px; }

  .care__grid { grid-template-columns: 1fr; }
  .care__cell { min-height: 0; padding: 24px; }
  .care__title { font-size: 26px; }

  .doctor { grid-template-columns: 1fr; gap: 28px; }

  .latest__item { grid-template-columns: 1fr; gap: 8px; }
  .latest__title { font-size: 21px; }

  .offices__grid { grid-template-columns: 1fr; }
  .office { padding: 28px; }
  .office__name { font-size: 28px; }

  .booking-bar { flex-direction: column; align-items: flex-start; }
  .booking-bar__title { font-size: 24px; }

  .site-footer__cols { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bar { flex-direction: column; align-items: flex-start; }

  .page { padding-top: 40px; padding-bottom: 64px; }
  .page__head { margin-bottom: 28px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 27px; }
  .prose h3 { font-size: 23px; }
  .postlist__title { font-size: 25px; }
  .form__offices { margin-top: 48px; }

  .callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    border-top: 1px solid var(--rule);
    background: var(--paper);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .callbar a {
    padding: 18px 10px;
    text-align: center;
    text-decoration: none;
    font: 500 15px/1 var(--sans);
  }
  .callbar a:first-child { background: var(--ink); color: var(--paper); }
  .callbar a:last-child { color: var(--ink); border-left: 1px solid var(--rule); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
