@font-face { font-family: 'Big Shoulders Stencil Text'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/big-shoulders-stencil-text-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Big Shoulders Stencil Text'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/big-shoulders-stencil-text-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Big Shoulders Stencil Text'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/big-shoulders-stencil-text-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Big Shoulders Stencil Text'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/big-shoulders-stencil-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Big Shoulders Stencil Text'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/big-shoulders-stencil-text-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Big Shoulders Stencil Text'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/big-shoulders-stencil-text-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Big Shoulders Stencil Text'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/big-shoulders-stencil-text-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Big Shoulders Stencil Text'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/big-shoulders-stencil-text-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Big Shoulders Stencil Text'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/big-shoulders-stencil-text-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Gelasio'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/gelasio-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Gelasio'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/gelasio-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Gelasio'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/gelasio-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Gelasio'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/gelasio-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Gelasio'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/gelasio-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Gelasio'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/gelasio-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Gelasio'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/gelasio-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Gelasio'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/gelasio-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f5f7fa;
  --fg-light-base-body: #18202e;
  --fg-light-base-heading: #18202e;
  --fg-light-base-muted: #4a5568;
  --fg-light-base-link: #254693;
  --fg-light-base-inverse: #18202e;
  --bg-light-card: #ffffff;
  --fg-light-card-body: #18202e;
  --fg-light-card-heading: #18202e;
  --fg-light-card-muted: #4a5568;
  --fg-light-card-link: #254693;
  --fg-light-card-inverse: #18202e;
  --bg-light-elevated: #e9eef6;
  --fg-light-elevated-body: #18202e;
  --fg-light-elevated-heading: #18202e;
  --fg-light-elevated-muted: #4a5568;
  --fg-light-elevated-link: #254693;
  --fg-light-elevated-inverse: #18202e;
  --brand-light-accent: #254693;
  --brand-light-accent-hover: #173372;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #254693;
  --border-light-default: #6f7c92;
  --border-light-subtle: #cfd8e6;
}
.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); }

/* Clinical notebook: cool ruled paper, condensed stencil headings, one blue accent. */

:root {
  --font-heading: 'Big Shoulders Stencil Text', 'Arial Narrow', sans-serif;
  --font-body: 'Gelasio', Georgia, serif;
  --ink-accent: var(--brand-light-accent);
  --rule: var(--border-light-subtle);
  --rule-strong: var(--border-light-default);
  --margin-col: 13rem;
  --text-col: 40rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
}

p,
ul,
ol {
  margin: 0 0 1.1em;
}

a.text-role-link,
.note-body a {
  text-decoration-line: underline;
  text-decoration-color: var(--ink-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

/* ---------- Header ---------- */

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

.header-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.65rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.brand .site-logo {
  display: block;
  width: 17rem;
  max-width: 100%;
  height: auto;
}

.nav-bar {
  display: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem 1.1rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration-line: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--ink-accent);
}

.site-nav-group > summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
}

.nav-toggle {
  position: relative;
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
}

.menu-icon {
  display: inline-block;
  width: 1.1rem;
  height: 0.8rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}

.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid currentColor;
  transform: translateY(-50%);
}

.site-menu[open] > summary {
  border-color: var(--ink-accent);
}

.site-menu > ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(20rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.5rem 1rem;
  list-style: none;
  background: var(--bg-light-card);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
}

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

.site-menu li:last-child {
  border-bottom: 0;
}

.site-menu a {
  display: block;
  padding: 0.6rem 0;
}

.site-menu ul ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

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

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 64rem) and (max-width: 79.99rem) {
  .brand .site-logo {
    width: 13rem;
  }
}

/* ---------- Page frame ---------- */

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

.breadcrumbs ol {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: 0.95rem;
}

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

.page-title h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 0.98;
  max-width: 18ch;
  padding-bottom: 0.9rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule-strong);
}

/* ---------- Note body (markdown) ---------- */

.note-body h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 2.2rem 0 0.8rem;
}

.note-body h3 {
  font-size: 1.3rem;
  margin: 1.6rem 0 0.6rem;
}

.note-body > :first-child,
.note-body > h2:first-child {
  margin-top: 0;
}

.note-body ul,
.note-body ol {
  padding-left: 1.25rem;
}

.note-body li {
  margin-bottom: 0.45rem;
}

.note-body li::marker {
  color: var(--ink-accent);
}

.note-body .accent-block {
  margin: 1.8rem 0;
  padding: 0.4rem 0 0.4rem 1.25rem;
  border-left: 3px solid var(--ink-accent);
  font-style: italic;
  font-size: 1.2rem;
}

.note-body .table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.note-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 1rem;
}

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

.note-body th {
  font-family: var(--font-heading);
  font-weight: 700;
  border-bottom-color: var(--rule-strong);
}

.note-body figure,
.photo-hero {
  margin: 0 0 2rem;
}

.photo-hero img,
.note-body img {
  display: block;
  width: 100%;
  border: 1px solid var(--rule);
}

.note-body section[data-section][style] {
  margin: 2rem 0;
}

/* ---------- Home: notebook spread ---------- */

.spread {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
}

.spread-left,
.spread-right {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.spread-left {
  border-bottom: 1px solid var(--rule-strong);
}

.cover-title h1 {
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  line-height: 0.95;
  max-width: 14ch;
  margin-bottom: 2rem;
}

.display-index {
  border-top: 2px solid var(--ink-accent);
}

.display-index .display-line {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.05rem;
  line-height: 1.55;
}

.spread-right {
  max-width: 44rem;
}

@media (min-width: 60rem) {
  .spread {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .spread-left {
    border-bottom: 0;
    align-self: start;
    position: sticky;
    top: 5rem;
  }

  .spread-right {
    border-left: 1px solid var(--rule-strong);
  }
}

/* ---------- Topic hub: tabbed index grid ---------- */

.hub-intro {
  max-width: var(--text-col);
  margin-bottom: 3rem;
}

.hub-index {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 3px;
}

.hub-index-title {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.hub-cards ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.hub-cards li {
  position: relative;
  border: 1px solid var(--rule-strong);
  border-top: 4px solid var(--ink-accent);
  border-radius: 0 3px 3px 3px;
  padding: 1.1rem 1.1rem 1.25rem;
  min-height: 8rem;
  display: flex;
  align-items: flex-end;
}

.hub-cards li::before {
  content: "";
  position: absolute;
  top: -0.9rem;
  left: -1px;
  width: 4.5rem;
  height: 0.9rem;
  background: var(--brand-light-accent);
  border-radius: 3px 3px 0 0;
}

.hub-cards a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.1;
}

.hub-cards a::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ---------- Article: annotated page ---------- */

.article {
  max-width: calc(var(--margin-col) + var(--text-col) + 3rem);
}

.annotated {
  max-width: var(--text-col);
}

@media (min-width: 60rem) {
  .article .page-title h1 {
    margin-left: calc(var(--margin-col) + 3rem);
  }

  .annotated {
    max-width: none;
    display: grid;
    grid-template-columns: var(--margin-col) minmax(0, var(--text-col));
    column-gap: 3rem;
  }

  .annotated > * {
    grid-column: 2;
  }

  .annotated > h2 {
    grid-column: 1;
    margin: 0.25rem 0 1.5rem;
    padding-top: 0.6rem;
    border-top: 2px solid var(--ink-accent);
    font-size: 1.35rem;
    line-height: 1.15;
    text-align: right;
  }

  .annotated > h2 + * {
    margin-top: 0;
  }

  .annotated > .photo-hero {
    grid-column: 1 / -1;
  }

  .annotated > p:has(+ h2),
  .annotated > ul:has(+ h2),
  .annotated > ol:has(+ h2),
  .annotated > .table-scroll:has(+ h2) {
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 1.6rem;
  }
}

/* ---------- About: author's margin ---------- */

.about-cols {
  display: grid;
  gap: 2.5rem;
}

.about-note {
  max-width: var(--text-col);
}

.about-questions {
  padding: 1.5rem 1.5rem 1rem;
  border-left: 3px solid var(--ink-accent);
  align-self: start;
}

.about-questions h2 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.about-questions ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-questions li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule-strong);
  line-height: 1.5;
}

@media (min-width: 60rem) {
  .about-cols {
    grid-template-columns: minmax(0, var(--text-col)) minmax(16rem, 20rem);
    gap: 4rem;
  }

  .about-questions {
    position: sticky;
    top: 6.5rem;
  }
}

/* ---------- Contact: index card ---------- */

.contact-split {
  display: grid;
  gap: 2.5rem;
}

.contact-guide {
  max-width: var(--text-col);
}

.include-list {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink-accent);
}

.include-list h2 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

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

.include-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}

.index-card {
  align-self: start;
  padding: 1.75rem;
  border: 1px solid var(--rule-strong);
  border-top: 4px solid var(--ink-accent);
  border-radius: 0 0 3px 3px;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: inherit;
  background: transparent;
  padding: 0.6rem 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
}

.field textarea {
  resize: vertical;
  line-height: 2rem;
  padding-top: 0.2rem;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(2rem - 1px), var(--rule) calc(2rem - 1px), var(--rule) 2rem);
  background-attachment: local;
}

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

.card-button {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.55rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  background: transparent;
  border: 2px solid var(--ink-accent);
  border-radius: 3px;
  cursor: pointer;
}

.card-button:hover {
  border-color: var(--brand-light-accent-hover);
}

.card-button:focus-visible {
  outline: 2px solid var(--ink-accent);
  outline-offset: 3px;
}

@media (min-width: 60rem) {
  .contact-split {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
    gap: 4rem;
  }
}

/* ---------- Thank you: stamped card ---------- */

.stamped {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}

.stamp-card {
  position: relative;
  width: 100%;
  max-width: 40rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--rule-strong);
  border-top: 4px solid var(--ink-accent);
}

.stamp {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 4.5rem;
  height: 4.5rem;
  border: 3px double var(--ink-accent);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.stamp::after {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border-top: 2px solid var(--ink-accent);
  border-bottom: 2px solid var(--ink-accent);
}

.stamp-card .page-title h1 {
  padding-right: 5rem;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
}

.back-link {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

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

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

.footer-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3rem;
  display: grid;
  gap: 0.35rem;
}

.footer-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}

.footer-strap {
  margin: 0 0 0.75rem;
  font-style: italic;
}

.footer-note {
  max-width: 38rem;
  margin: 0;
  font-size: 1rem;
}

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