@font-face { font-family: 'Faustina'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/faustina-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Faustina'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/faustina-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Faustina'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/faustina-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Faustina'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/faustina-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Faustina'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/faustina-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Faustina'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/faustina-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Faustina'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/faustina-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Faustina'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/faustina-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Faustina'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/faustina-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Faustina'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/faustina-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Faustina'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/faustina-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Faustina'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/faustina-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Quantico'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/quantico-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Quantico'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/quantico-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Quantico'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/quantico-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Quantico'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/quantico-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f6eedb;
  --fg-light-base-body: #2a2216;
  --fg-light-base-heading: #2a2216;
  --fg-light-base-muted: #5c4e36;
  --fg-light-base-link: #8a520e;
  --fg-light-base-inverse: #3b3020;
  --bg-light-card: #fcf8ee;
  --fg-light-card-body: #2a2216;
  --fg-light-card-heading: #2a2216;
  --fg-light-card-muted: #5c4e36;
  --fg-light-card-link: #8a520e;
  --fg-light-card-inverse: #3b3020;
  --bg-light-elevated: #ede1c2;
  --fg-light-elevated-body: #2a2216;
  --fg-light-elevated-heading: #2a2216;
  --fg-light-elevated-muted: #5c4e36;
  --fg-light-elevated-link: #8a520e;
  --fg-light-elevated-inverse: #3b3020;
  --brand-light-accent: #8a520e;
  --brand-light-accent-hover: #6b3f09;
  --brand-light-on-accent: #fcf8ee;
  --focus-light-ring: #8a520e;
  --border-light-default: #8f7c58;
  --border-light-subtle: #d6c7a2;
}
.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; }
: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); }

:root {
  --ink-accent: var(--brand-light-accent);
  --ink-accent-deep: var(--brand-light-accent-hover);
  --rule: var(--border-light-default);
  --rule-soft: var(--border-light-subtle);
  --paper: var(--bg-light-base);
  --face-heading: 'Faustina', Georgia, 'Times New Roman', serif;
  --face-body: 'Quantico', 'Trebuchet MS', Verdana, sans-serif;
  --measure: 38rem;
  --frame: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html { background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  font-family: var(--face-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--face-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); margin: 0; font-weight: 500; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin: 2.4em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 1.8em 0 0.4em; }
p, li { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.25em; }

a.text-role-link { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a.text-role-link:hover { text-decoration-thickness: 2px; }

input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink-accent);
  outline-offset: 2px;
}

.photo-hero, .photo-inline { margin: 0 0 1.75rem; }
.photo-hero img, .photo-inline img {
  display: block;
  width: 100%;
  border: 1px solid var(--rule);
  padding: 0.4rem;
  background: var(--bg-light-card);
}

.table-scroll { overflow-x: auto; margin: 0 0 1.5rem; }
.table-scroll table { border-collapse: collapse; min-width: 100%; }
.table-scroll th, .table-scroll td { border-bottom: 1px solid var(--rule-soft); padding: 0.5rem 0.75rem; text-align: left; }

/* Masthead and nav */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.masthead {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 1rem;
}

.brand { display: inline-block; line-height: 0; }
.brand .site-logo { width: 19rem; max-width: 100%; height: auto; }

.navbar {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--rule-soft);
}

.site-nav { display: none; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block;
  padding: 0.7rem 0;
  font-variant-caps: all-small-caps;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ink-accent); }

.site-menu { padding: 0.5rem 0; }
.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.25rem 0;
  font-variant-caps: all-small-caps;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
}
.site-menu .menu-icon {
  position: relative;
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.site-menu[open] .menu-icon { box-shadow: none; }
.site-menu ul { list-style: none; margin: 0.25rem 0 0.75rem; padding: 0; }
.site-menu li { margin: 0; border-top: 1px solid var(--rule-soft); }
.site-menu ul ul { padding-inline-start: 1rem; }
.site-menu a { display: block; padding: 0.7rem 0; text-decoration: none; }

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

/* Page frame and breadcrumbs */

.page { padding-bottom: 4rem; }

.breadcrumbs {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 0;
  font-size: 0.9rem;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; padding: 0 0.5rem; color: var(--fg-muted); }

main {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Home: the opening plate, then a stepped descent */

.plate {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3.5rem) 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.plate-title h1 { max-width: 15ch; }
.plate-lines { max-width: 34rem; margin-top: 1.25rem; }
.plate-lines .display-line { font-size: 1.125rem; margin: 0 0 0.5rem; }

.plate-figure { margin: 0; }
.plate-figure svg { display: block; width: 100%; height: auto; }
.plate-figure path, .plate-figure ellipse { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.foot-outline { stroke: var(--fg-heading); stroke-width: 1.6; }
.bone { stroke: var(--fg-muted); stroke-width: 1; }
.arch { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 5; }
.fascia { stroke: var(--ink-accent); stroke-width: 3; }
.leader { stroke: var(--ink-accent); stroke-width: 1; }
.callout { fill: var(--paper); stroke: var(--ink-accent); stroke-width: 1.5; }
.callout-num {
  fill: var(--ink-accent-deep);
  font-family: var(--face-heading);
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
}

.plate-key {
  display: grid;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: callout;
}
.plate-key li { counter-increment: callout; display: flex; align-items: baseline; gap: 0.75rem; margin: 0; }
.plate-key li::before {
  content: counter(callout);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1.5px solid var(--ink-accent);
  border-radius: 50%;
  font-family: var(--face-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-accent-deep);
}
.plate-key a { font-family: var(--face-heading); font-size: 1.2rem; font-style: italic; }

@media (min-width: 900px) {
  .plate {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "head figure" "head key";
    align-items: start;
    column-gap: 3rem;
  }
  .plate-head { grid-area: head; }
  .plate-figure { grid-area: figure; }
  .plate-key { grid-area: key; grid-template-columns: 1fr 1fr; }
  .plate-key li:nth-child(2) { justify-content: flex-end; }
}

.home-body { padding-top: 2.5rem; }
.home-body > * { max-width: var(--measure); }
.home-body > .photo-hero { max-width: 44rem; }
.home-body > h2 {
  padding-top: 0.9rem;
  border-top: 2px solid var(--ink-accent);
  max-width: 30rem;
}

@media (min-width: 900px) {
  .home-body > h2:nth-of-type(1), .home-body > h2:nth-of-type(1) ~ * { margin-inline-start: 0; }
  .home-body > h2:nth-of-type(2), .home-body > h2:nth-of-type(2) ~ * { margin-inline-start: 5rem; }
  .home-body > h2:nth-of-type(3), .home-body > h2:nth-of-type(3) ~ * { margin-inline-start: 10rem; }
  .home-body > h2:nth-of-type(4), .home-body > h2:nth-of-type(4) ~ * { margin-inline-start: 15rem; }
  .home-body > h2:nth-of-type(5), .home-body > h2:nth-of-type(5) ~ * { margin-inline-start: 20rem; }
}

/* Topic hub: an anatomy chart key in a grid */

.hub-head { padding: clamp(1.75rem, 4vw, 3rem) 0 1.5rem; }
.hub-head h1 { max-width: 22ch; }

.hub-key {
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 1.5rem;
  border-top: 2px solid var(--ink-accent);
  border-bottom: 1px solid var(--rule);
}
.hub-key-cap { margin: 0 0 0.75rem; font-family: var(--face-heading); font-style: italic; font-size: 1.05rem; }
.hub-key-list ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: key;
}
.hub-key-list li {
  counter-increment: key;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: baseline;
  margin: 0;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule);
}
.hub-key-list li::before {
  content: counter(key, upper-alpha);
  font-family: var(--face-heading);
  font-weight: 700;
  color: var(--ink-accent-deep);
}
.hub-key-list a { text-decoration: none; }
.hub-key-list a:hover { text-decoration: underline; }

.hub-body { max-width: var(--measure); padding-top: 1rem; }
.hub-body section[data-section] { margin: 2rem calc(var(--gutter) * -0.5); }
.hub-body section[data-section] > .bg-surface-card { max-width: 32rem; border: 1px solid var(--rule); }
.hub-body section[data-section] h2 { margin-top: 0; }

/* Article: headings sit in the margin as plate annotations */

.article-head { padding: clamp(1.75rem, 4vw, 3rem) 0 1.75rem; border-bottom: 1px solid var(--rule-soft); margin-bottom: 2rem; }
.article-head h1 { max-width: 24ch; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.article-body > * { max-width: var(--measure); }

@media (min-width: 900px) {
  .article-body {
    display: grid;
    grid-template-columns: 13rem minmax(0, var(--measure));
    column-gap: 3rem;
  }
  .article-body > * { grid-column: 2; }
  .article-body > .photo-hero { grid-column: 1 / -1; max-width: none; }
  .article-body > h2 {
    grid-column: 1;
    margin: 0.2rem 0 1.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--ink-accent);
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
  }
  .article-body > h3 { grid-column: 1; font-size: 1.05rem; margin-top: 0.2rem; }
}

/* About: a short colophon */

.colophon { max-width: calc(var(--measure) + 2 * var(--gutter)); padding-top: clamp(1.75rem, 4vw, 3rem); }
.profile-drawing { margin: 0 0 1.5rem; max-width: 22rem; }
.profile-drawing svg { display: block; width: 100%; height: auto; }
.profile-drawing path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.colophon-head { padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.colophon-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }

/* Contact: body beside an appointment slip */

.contact-head { padding: clamp(1.75rem, 4vw, 3rem) 0 1.5rem; }
.contact-grid { display: grid; gap: 2.5rem; }
.contact-body { max-width: var(--measure); }
.contact-body > h2:first-child { margin-top: 0; }

.slip {
  align-self: start;
  padding: 1.5rem clamp(1rem, 3vw, 1.75rem) 1.75rem;
  border: 1px solid var(--rule);
  border-top: 6px double var(--ink-accent);
}
.slip-cap {
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--face-heading);
  font-style: italic;
  font-size: 1.1rem;
}
.field { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.field-label { font-size: 0.95rem; font-variant-caps: all-small-caps; letter-spacing: 0.05em; }
.field input, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.2rem;
  border: 0;
  border-bottom: 1.5px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.field textarea { resize: vertical; border: 1.5px solid var(--rule); padding: 0.55rem 0.6rem; }
.slip-button {
  min-height: 44px;
  margin-top: 0.5rem;
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--ink-accent);
  border-radius: 2px;
  background: transparent;
  font-family: var(--face-heading);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.slip-button:hover { border-color: var(--ink-accent-deep); color: var(--ink-accent-deep); }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); column-gap: 4rem; }
}

/* Thank you: a quiet note with a stamp */

.note { max-width: calc(36rem + 2 * var(--gutter)); padding-top: clamp(2rem, 6vw, 4rem); }
.note-card { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--rule); }
.stamp { display: block; width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; transform: rotate(-8deg); }
.stamp circle { fill: none; stroke: var(--ink-accent); stroke-width: 2; }
.stamp circle + circle { stroke-width: 1; stroke-dasharray: 2 3; }
.stamp path { fill: none; stroke: var(--ink-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.note-head h1 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.5rem); }
.note-body { margin-top: 1rem; }

/* Footer */

.site-footer { border-top: 1px solid var(--rule); }
.footer-inner {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.footer-inner p { margin: 0; }
.footer-name { font-family: var(--face-heading); font-size: 1.15rem; font-weight: 600; }
