@font-face { font-family: 'Manuale'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/manuale-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Manuale'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/manuale-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Manuale'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/manuale-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Manuale'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/manuale-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Manuale'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/manuale-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Manuale'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/manuale-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Manuale'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/manuale-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Manuale'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/manuale-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Manuale'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/manuale-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Manuale'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/manuale-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Manuale'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/manuale-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Manuale'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/manuale-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Laila'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/laila-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Laila'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/laila-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Laila'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/laila-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Laila'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/laila-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Laila'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/laila-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #ffffff;
  --fg-light-base-body: #1d1b2c;
  --fg-light-base-heading: #1d1b2c;
  --fg-light-base-muted: #59566c;
  --fg-light-base-link: #5a3fc6;
  --fg-light-base-inverse: #1d1b2c;
  --bg-light-card: #efece6;
  --fg-light-card-body: #1d1b2c;
  --fg-light-card-heading: #1d1b2c;
  --fg-light-card-muted: #59566c;
  --fg-light-card-link: #5a3fc6;
  --fg-light-card-inverse: #1d1b2c;
  --bg-light-elevated: #e4e0d8;
  --fg-light-elevated-body: #1d1b2c;
  --fg-light-elevated-heading: #1d1b2c;
  --fg-light-elevated-muted: #59566c;
  --fg-light-elevated-link: #5a3fc6;
  --fg-light-elevated-inverse: #1d1b2c;
  --brand-light-accent: #5a3fc6;
  --brand-light-accent-hover: #4a30a8;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #5a3fc6;
  --border-light-default: #7a7690;
  --border-light-subtle: #dfdce4;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* Clifton Vein Health Guide: quiet patient-education journal */
:root {
  --font-heading: 'Manuale', Georgia, 'Times New Roman', serif;
  --font-body: 'Laila', Georgia, serif;
  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4.25rem;
}

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

html { scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.78;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--fg-heading);
  text-wrap: balance;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Header: white row closed by a thick indigo rule ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 4px solid var(--brand-light-accent);
}

.header-row {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand .site-logo { width: 9rem; max-width: 100%; height: auto; display: block; }

.site-nav { display: none; }
.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.75rem;
}
.site-nav > ul > li { position: relative; }
.site-nav a,
.site-nav summary {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--fg-heading);
  display: inline-block;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current],
.site-nav summary:hover,
.site-nav details[open] > summary { color: var(--fg-link); border-bottom-color: var(--brand-light-accent); }

.site-nav summary { cursor: pointer; list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.2rem) rotate(45deg);
}

.site-nav-group > ul {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: -1.25rem;
  min-width: 17rem;
  list-style: none;
  margin: 0;
  padding: 0.9rem 1.25rem 1.1rem;
  background: var(--bg-light-base);
  border: 1px solid var(--border-light-subtle);
  box-shadow: inset 3px 0 0 var(--brand-light-accent);
}
.site-nav-group > ul a { white-space: normal; font-size: 0.98rem; padding: 0.4rem 0; line-height: 1.35; }

/* Phone menu: italic underlined label, full-height sheet of large serif links on an indigo vein line */
.site-menu { flex: none; }
.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0 0.1rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--fg-heading);
}
.menu-label { border-bottom: 1px solid currentColor; padding-bottom: 0.1rem; }
.menu-icon {
  width: 0.95rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
  transform: translateY(-3px);
}
.site-menu[open] .menu-icon { box-shadow: none; transform: none; width: 0.6rem; }
.site-menu > ul {
  position: fixed;
  inset: calc(var(--header-h) + 4px) 0 0 0;
  overflow-y: auto;
  margin: 0;
  padding: 2rem 1.5rem 3rem 2.75rem;
  list-style: none;
  background-color: var(--bg-light-base);
  background-image: linear-gradient(var(--brand-light-accent), var(--brand-light-accent));
  background-size: 2px 100%;
  background-position: 1.5rem 0;
  background-repeat: no-repeat;
}
.site-menu > ul > li { padding: 0.2rem 0; }
.site-menu a {
  display: block;
  padding: 0.5rem 0;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  color: var(--fg-heading);
}
.site-menu a:hover { color: var(--fg-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.site-menu ul ul { list-style: none; margin: 0 0 0.6rem; padding: 0 0 0 1rem; }
.site-menu ul ul a { font-family: var(--font-body); font-size: 1.05rem; font-weight: 400; padding: 0.35rem 0; }

@media (min-width: 30rem) {
  .header-row { padding: 0.8rem var(--gutter); gap: 1.5rem; }
  .brand .site-logo { width: 11rem; }
}

@media (min-width: 64rem) {
  .site-nav { display: block; }
  .site-menu { display: none; }
}

/* ---------- Frame, breadcrumbs ---------- */

.page-frame { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

.breadcrumbs { padding-top: 1.5rem; font-size: 0.9rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--fg-muted); }
.breadcrumbs a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.page { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 6rem); }

.page-head h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem);
  letter-spacing: -0.01em;
}

/* ---------- Vein line drawings ---------- */

.vein-rule {
  display: block;
  width: 100%;
  height: 2.5rem;
  margin: clamp(2rem, 5vw, 3rem) 0;
  color: var(--brand-light-accent);
  opacity: 0.85;
}
.flow { stroke: var(--brand-light-accent); }

/* ---------- Prose ---------- */

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25rem; }
.prose h2 {
  margin: 3rem 0 1rem;
  padding-top: 1.1rem;
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.8rem);
  background-image: linear-gradient(var(--brand-light-accent), var(--brand-light-accent));
  background-size: 2.5rem 2px;
  background-repeat: no-repeat;
  background-position: 0 0;
}
.prose h3 { margin: 2rem 0 0.6rem; font-size: 1.25rem; }
.prose a {
  color: var(--brand-light-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.prose a:hover { color: var(--brand-light-accent-hover); text-decoration-thickness: 2px; }
.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.6rem; }
.prose li::marker { color: var(--brand-light-accent); }
.prose blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--brand-light-accent);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--brand-light-accent-hover);
}
.prose blockquote p { margin: 0; }
.prose strong { font-weight: 600; }
.prose figure, .photo-hero { margin: 0 0 2.5rem; }
.photo-hero img, .prose img { display: block; width: 100%; border-radius: 0.25rem; }
.photo-hero img { border-radius: 50% 50% 0.25rem 0.25rem / 22% 22% 0.25rem 0.25rem; }

/* ---------- Home ---------- */

.cover { position: relative; max-width: 48rem; }
.cover-veins { display: none; }
@media (min-width: 60rem) {
  .cover { max-width: none; padding-right: 16rem; }
  .cover-veins {
    display: block;
    position: absolute;
    top: -1rem;
    right: 1rem;
    width: 12rem;
    height: auto;
    color: var(--border-light-default);
  }
}
.cover-title h1 {
  margin: 0;
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.cover-lines { margin-top: 1.75rem; max-width: 34rem; }
.display-line { margin: 0 0 0.75rem; font-size: 1.25rem; line-height: 1.6; }
.display-line + .display-line { color: var(--fg-muted); font-size: 1.05rem; }

.valve-primer {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  border-radius: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 40rem;
}
.valve-step { text-align: center; color: var(--fg-heading); }
.valve-step svg { width: 100%; max-width: 7rem; max-height: 9rem; }
.valve-step figcaption { font-family: var(--font-heading); font-size: 0.98rem; margin-top: 0.35rem; }

.journal-contents { max-width: 42rem; }
.journal-contents ul { list-style: none; padding: 0; border-top: 1px solid var(--border-light-default); }
.journal-contents ul li {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light-subtle);
}
.journal-contents ul li a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  text-decoration: none;
  color: var(--fg-heading);
  margin-bottom: 0.15rem;
}
.journal-contents ul li a:hover { color: var(--brand-light-accent); }

/* ---------- Topic hub (grid) ---------- */

.hub-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.hub-shelf { border-radius: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); }
.hub-shelf ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}
.hub-shelf li {
  background: var(--bg-light-base);
  border: 1px solid var(--border-light-subtle);
  border-radius: 1rem;
}
.hub-shelf a {
  display: block;
  height: 100%;
  padding: 1.1rem 1.2rem 1.3rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  text-decoration: none;
  border-top: 3px solid var(--brand-light-accent);
  border-radius: 1rem;
}
.hub-shelf a:hover { color: var(--brand-light-accent-hover); background: var(--bg-light-elevated); }

/* ---------- Article (two-column) ---------- */

.article-grid { display: grid; gap: 2rem; margin-top: clamp(2rem, 5vw, 3rem); }
.article-rail { display: none; color: var(--border-light-default); }
.leg-veins { width: 100%; max-width: 6rem; height: auto; }
@media (min-width: 60rem) {
  .article-grid { grid-template-columns: 8rem minmax(0, var(--measure)); gap: 3rem; }
  .article-rail { display: block; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- About (two-column) ---------- */

.masthead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem); }
.masthead-mark .site-logo { width: 11rem; display: block; }
.about-grid { display: grid; gap: 2rem; margin-top: clamp(2rem, 5vw, 3rem); }
.vein-rule-vertical { display: none; }
.about-prose > p:first-of-type { font-size: 1.3rem; line-height: 1.65; max-width: 44rem; }
.about-prose > p:last-child::first-line { font-variant-caps: small-caps; letter-spacing: 0.02em; }
@media (min-width: 60rem) {
  .about-grid { grid-template-columns: 3rem minmax(0, 44rem); gap: 3rem; }
  .vein-rule-vertical { display: block; width: 2.5rem; height: 100%; min-height: 24rem; margin: 0; }
  .about-prose > :not(p:first-of-type) { max-width: var(--measure); }
}

/* ---------- Contact (one-column) ---------- */

.page-contact .prose { margin-top: 2rem; }
.letter-card {
  max-width: var(--measure);
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.75rem;
  border: 1px solid var(--border-light-subtle);
}
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--fg-body);
  background: var(--bg-light-base);
  border: 1px solid var(--border-light-default);
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
}
.field textarea { resize: vertical; min-height: 11rem; line-height: 1.7; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--brand-light-accent); outline-offset: 2px; border-color: var(--brand-light-accent); }
.letter-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  min-height: 2.9rem;
  padding: 0.6rem 1.6rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.letter-button.text-role-inverse { color: var(--brand-light-on-accent); background: var(--brand-light-accent); }
.letter-button.text-role-inverse:hover { background: var(--brand-light-accent-hover); }

/* ---------- Thank you (one-column, centred) ---------- */

.page-thanks { text-align: center; }
.page-thanks .page-head h1 { margin: 0 auto; }
.thanks-vein { width: 15rem; height: auto; color: var(--brand-light-accent); margin: 0 auto 1.5rem; display: block; }
.thanks-prose { margin: 2rem auto 0; text-align: left; }

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

.site-footer { margin-top: 2rem; padding: 0 0 2.5rem; }
.site-footer .vein-rule { margin: 0 0 1.5rem; color: var(--brand-light-accent); }
.footer-row {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.footer-row p { margin: 0; }
.footer-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; }
.footer-client { font-size: 0.98rem; }

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