@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/literata.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
}

/* Palette: Derwent ink, dolerite grey, eucalypt green, sea mist */
:root {
  color-scheme: light dark;

  --paper: #fbfcfb;
  --mist: #e9f0ee;
  --ink: #11303a;
  --ink-soft: #46606a;
  --eucalypt: #2f6b58;
  --rule: #cfdcd7;
  --button-bg: #11303a;
  --button-fg: #ffffff;
  --button-hover: #2f6b58;
  --focus: #2f6b58;

  --footer-bg: #11303a;
  --footer-ink: #e8f0ed;
  --footer-soft: #a9bdb8;
  --footer-link: #9fd6c0;
  --footer-rule: #2a4a54;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 4.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1f26;
    --mist: #0f2a33;
    --ink: #e8f0ed;
    --ink-soft: #a9bdb8;
    --eucalypt: #86c9b0;
    --rule: #24434c;
    --button-bg: #86c9b0;
    --button-fg: #0b1f26;
    --button-hover: #b4e0cf;
    --focus: #86c9b0;

    --footer-bg: #07161b;
    --footer-rule: #1d3840;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3125rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--eucalypt);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--eucalypt);
  color: var(--paper);
}

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--button-bg);
  color: var(--button-fg);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1.5px solid var(--button-bg);
  border-radius: 0.5rem;
  background: var(--button-bg);
  color: var(--button-fg);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  border-color: var(--button-hover);
  background: var(--button-hover);
}

.button-quiet {
  border-color: currentColor;
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--eucalypt);
  background: transparent;
  color: var(--eucalypt);
}

.button-small {
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  font-size: 1rem;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--mist);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}

.wordmark {
  margin-right: auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--eucalypt);
  text-decoration: underline;
}

/* On small screens the menu becomes a second row, and the header scrolls away */
@media (max-width: 52rem) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.5rem;
    min-height: 0;
    padding-top: 0.75rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    padding-bottom: 0.75rem;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
  }
}

section[id] {
  scroll-margin-top: var(--header-h);
}

/* Hero */

.hero {
  padding-top: clamp(2rem, 5vw, 4rem);
  background: var(--mist);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

.portrait {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--paper);
}

.hero h1 {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.75rem, 1.4rem + 5.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 34ch;
  font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.375rem);
  line-height: 1.5;
}

.credentials {
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.glance {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.glance dt {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.glance dd {
  margin: 0;
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(15rem, 1fr);
    align-items: end;
    gap: 4rem;
  }

  .glance {
    padding-top: 0;
    padding-left: 2rem;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
}

/* Scales uniformly with the page width; below 576px it keeps a minimum
   height and crops the northern end of the ridge instead of squashing it. */
.horizon {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 1;
  min-height: 4.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: -1px;
}

.horizon-fill {
  fill: var(--paper);
}

/* Stroke width is in drawing units, so it steps down as the drawing scales up */
.horizon-line {
  fill: none;
  stroke: var(--eucalypt);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 50rem) {
  .horizon-line {
    stroke-width: 3;
  }
}

@media (min-width: 75rem) {
  .horizon-line {
    stroke-width: 2;
  }
}

@media (min-width: 105rem) {
  .horizon-line {
    stroke-width: 1.5;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .horizon-animate .horizon-line {
    stroke-dasharray: 1;
    animation: trace 2.8s cubic-bezier(0.45, 0.05, 0.25, 1) 0.3s both;
  }
}

@keyframes trace {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* Sections */

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-tinted {
  background: var(--mist);
}

.prose p {
  max-width: 62ch;
}

.muted {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* About */

.about-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 56rem) {
  .about-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 5rem;
  }

  .facts {
    padding-top: 0.5rem;
  }
}

.facts h3 + .fact-list {
  margin-top: 0;
}

.fact-list {
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding-block: 0.875rem;
  border-top: 1px solid var(--rule);
}

.fact-title,
.fact-detail {
  display: block;
}

.fact-title {
  font-weight: 600;
  line-height: 1.4;
}

.fact-detail {
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Interests */

.interests-grid {
  display: grid;
  gap: 2rem;
}

.interests-intro p {
  max-width: 34ch;
  color: var(--ink-soft);
}

.interest-list {
  margin: 0;
}

.interest {
  display: grid;
  gap: 0.35rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}

.interest:last-child {
  border-bottom: 1px solid var(--rule);
}

.interest dt {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
}

.interest dd {
  max-width: 58ch;
  margin: 0;
}

@media (min-width: 56rem) {
  .interests-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 4rem;
  }

  .interests-intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }

  .interest {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 2rem;
  }
}

/* Visit */

.visit-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 50rem) {
  .visit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }
}

.visit-block {
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

address {
  margin-bottom: 0.75rem;
  font-style: normal;
}

.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.5rem;
  margin: 0 0 1.25rem;
}

.hours dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.plain-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.plain-list li::marker {
  color: var(--eucalypt);
}

/* Footer */

.site-footer {
  --ink: var(--footer-ink);
  --ink-soft: var(--footer-soft);
  --eucalypt: var(--footer-link);
  --rule: var(--footer-rule);
  --focus: var(--footer-link);

  padding-block: clamp(3.5rem, 8vw, 5.5rem) 2.5rem;
  background: var(--footer-bg);
  color: var(--ink);
}

.book {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--rule);
}

.book p {
  max-width: 44ch;
  margin-bottom: 1.75rem;
  color: var(--ink-soft);
}

.button-inverse {
  border-color: var(--footer-ink);
  background: var(--footer-ink);
  color: var(--footer-bg);
}

.button-inverse:hover {
  border-color: var(--footer-link);
  background: var(--footer-link);
}

.footer-grid {
  display: grid;
  gap: 1.5rem 3rem;
  padding-block: 2.5rem;
  font-size: 1rem;
}

@media (min-width: 50rem) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.urgent strong {
  font-size: 1.125rem;
}

.acknowledgement,
.legal {
  max-width: 70ch;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.legal {
  margin-bottom: 0;
}

/* Topic pages */

.page-hero {
  padding-top: clamp(1.5rem, 4vw, 3rem);
  background: var(--mist);
}

.page-hero h1 {
  max-width: 20ch;
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.375rem, 1.5rem + 3.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.page-hero .lead {
  max-width: 44ch;
  margin-bottom: 1.25rem;
}

.page-hero .note {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--rule);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.content {
  display: grid;
  gap: clamp(3rem, 7vw, 5rem);
}

.content-block > h2 {
  max-width: 24ch;
}

.content-block > p,
.content-block > ul,
.content-block > ol {
  max-width: 62ch;
}

.content-block li + li {
  margin-top: 0.4rem;
}

.alert {
  --alert: #a33a2c;

  max-width: 46rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  border-left: 4px solid var(--alert);
  background: var(--mist);
}

.alert h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.alert ul {
  columns: 2 16rem;
  column-gap: 2rem;
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.alert li {
  break-inside: avoid;
}

.alert p:last-child {
  margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
  .alert {
    --alert: #f0a090;
  }
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.rules {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 1rem;
}

.rules caption {
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
  text-align: left;
}

.rules th,
.rules td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.rules thead th {
  border-bottom: 2px solid var(--ink);
  font-weight: 600;
}

.rules tbody th {
  font-weight: 600;
}

.steps {
  padding-left: 1.5rem;
}

.steps li::marker {
  color: var(--eucalypt);
  font-weight: 600;
}

.faq h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.faq h3:first-of-type {
  margin-top: 0;
}

.faq p {
  max-width: 62ch;
}

.source-note {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Not found page */

.not-found {
  min-height: 60vh;
  padding-block: clamp(4rem, 12vw, 8rem);
  background: var(--mist);
}

.not-found h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.75rem);
}

/* Contemporary navy identity */
:root {
  color-scheme: light;
  --paper: #f9fbff;
  --mist: #edf3fa;
  --ink: #102c50;
  --ink-soft: #4b627d;
  --eucalypt: #235ca0;
  --rule: #d5e0ee;
  --button-bg: #184e8b;
  --button-fg: #fff;
  --button-hover: #2368b4;
  --focus: #3687d9;
  --footer-bg: #081b34;
  --footer-ink: #f0f6ff;
  --footer-soft: #b5c7dd;
  --footer-link: #a7d2ff;
  --footer-rule: #28415f;
  --header-h: 5rem;
}
.site-header { background: #0c2342; border-color: #28415f; }
.site-header .wordmark, .site-nav a { color: #f2f7ff; }
.site-header .button { background: #e8f2ff; border-color: #e8f2ff; color: #12365d; }
.site-nav a:hover { color: #aad4ff; }
.button { border-radius: 100px; padding: .85rem 1.5rem; }
.button-small { padding: .6rem 1.2rem; }
.hero, .page-hero {
  background: radial-gradient(ellipse at 90% 15%, #234c7a 0, transparent 55%), #0c2342;
  color: #f3f7ff;
  --ink: #f3f7ff;
  --ink-soft: #bed0e6;
  --eucalypt: #a7d2ff;
  --button-bg: #d8eaff;
  --button-fg: #102c50;
  --button-hover: #fff;
  --focus: #a7d2ff;
}
.hero { padding-top: clamp(3rem, 6vw, 5.5rem); }
.hero-grid { align-items: center; }
.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--eucalypt); margin-bottom: 1.25rem; }
.hero h1 { max-width: 10ch; font-size: clamp(3.2rem, 6vw, 5.4rem); margin-top: 0; letter-spacing: -.045em; }
.hero .lead { max-width: 39ch; }
.hero-portrait { position: relative; max-width: 27rem; width: 100%; justify-self: end; }
.hero .portrait { width: 100%; height: auto; aspect-ratio: 1 / 1.07; border-radius: 8rem 1.5rem 1.5rem 1.5rem; box-shadow: 0 25px 70px #020e2055; object-fit: cover; }
.portrait-caption { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; padding: 1rem 1.2rem; border: 1px solid #ffffff40; border-radius: .75rem; background: #0c2342ed; }
.portrait-caption span { display: block; font-size: .85rem; color: #bed0e6; }
.portrait-caption span:first-child { color: #fff; font-size: 1rem; font-weight: 600; }
.clinic-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3.5rem; }
.clinic-summary { display: flex; flex-direction: column; gap: .65rem; padding: 1.6rem 1.8rem; background: #ffffff09; border: 1px solid #ffffff30; border-radius: 1rem; text-decoration: none; color: #f3f7ff; transition: background .2s; }
.clinic-summary:hover { background: #ffffff14; }
.clinic-summary strong { font-size: 1.25rem; font-weight: 600; }
.clinic-summary strong span { font-size: .95rem; font-weight: 400; color: #bed0e6; margin-left: .4rem; }
.clinic-summary > span:last-child { display: flex; justify-content: space-between; color: #bed0e6; font-size: 1rem; }
.status { display: inline-flex; align-items: center; align-self: flex-start; gap: .5rem; width: fit-content; padding: .3rem .7rem; border-radius: 100px; background: #e2f0fc; color: #164e7b; font-size: .8rem; font-weight: 600; }
.status::before { content: ''; width: .4rem; height: .4rem; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.status-muted { background: #e9edf3; color: #4a5c73; }
.hero .status { background: #c8e5ff; }
.hero .status-muted { background: #2d4664; color: #dce7f5; }
.horizon { margin-top: 1.5rem; }
.horizon-line { stroke: #81b9ee; }
.facts { padding: 2rem; background: var(--mist); border-radius: 1.2rem; }
.facts .fact-list:last-child { margin-bottom: 0; }
.interest dt { font-family: var(--sans); }
.visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.visit-block { padding: clamp(1.4rem, 3vw, 2.5rem); border: 1px solid var(--rule); border-radius: 1.2rem; background: #fff; box-shadow: 0 12px 40px #102c5006; scroll-margin-top: 6rem; }
.visit-block h3 { font-size: 1.8rem; }
.clinic-location { color: var(--ink-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin: 1.5rem 0 .6rem; }
.consulting-days { color: var(--eucalypt); font-weight: 600; }
.visit-block .actions { align-items: center; }
.clinic-detail { margin-top: 1.5rem; margin-bottom: 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.site-footer .button-quiet { color: var(--footer-ink); }
@media (max-width: 55.99rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; max-width: 22rem; }
}
@media (max-width: 40rem) {
  .clinic-strip, .visit-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 19rem; }
  .header-inner { gap: .75rem; }
  .wordmark { font-size: 1.1rem; }
  .site-nav ul { gap: .4rem 1rem; }
  .site-nav a { font-size: .9rem; }
  .hero .actions { flex-direction: column; align-items: stretch; }
}
