@font-face { font-family: 'Kaisei Tokumin'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/kaisei-tokumin-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Kaisei Tokumin'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/kaisei-tokumin-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Kaisei Tokumin'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/kaisei-tokumin-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Kaisei Tokumin'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/kaisei-tokumin-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Host Grotesk'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Host Grotesk'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Host Grotesk'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Host Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Host Grotesk'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Host Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Host Grotesk'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Host Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Host Grotesk'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Host Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Host Grotesk'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Host Grotesk'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #eee8dd;
  --fg-light-base-body: #1d2430;
  --fg-light-base-heading: #1d2430;
  --fg-light-base-muted: #535966;
  --fg-light-base-link: #9e2440;
  --fg-light-base-inverse: #1d2430;
  --bg-light-card: #f7f3ec;
  --fg-light-card-body: #1d2430;
  --fg-light-card-heading: #1d2430;
  --fg-light-card-muted: #535966;
  --fg-light-card-link: #9e2440;
  --fg-light-card-inverse: #1d2430;
  --bg-light-elevated: #e3dccf;
  --fg-light-elevated-body: #1d2430;
  --fg-light-elevated-heading: #1d2430;
  --fg-light-elevated-muted: #535966;
  --fg-light-elevated-link: #9e2440;
  --fg-light-elevated-inverse: #1d2430;
  --brand-light-accent: #9e2440;
  --brand-light-accent-hover: #7f1a33;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #9e2440;
  --border-light-default: #857b6c;
  --border-light-subtle: #d5ccbc;
}
.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); }

/* Front Range Spine Notes: clinical field-guide plates */

:root {
  --font-head: 'Kaisei Tokumin', Georgia, 'Times New Roman', serif;
  --font-body: 'Host Grotesk', 'Segoe UI', Arial, sans-serif;
  --rose: var(--brand-light-accent);
  --rose-deep: var(--brand-light-accent-hover);
  --ink: #1d2430;
  --hair: 1px solid var(--border-light-default);
  --hair-soft: 1px solid var(--border-light-subtle);
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --measure: 39rem;
  --wide: 74rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.66;
  font-kerning: normal;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.18;
  text-wrap: balance;
}

p, li { text-wrap: pretty; }

a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.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;
}

/* ---------- Header: thin sticky band with an inline link bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-top: 3px solid var(--rose);
  border-bottom: var(--hair);
}

.top-band {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.site-nav { display: none; }
.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0 0.15rem;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--rose); }
.site-nav a[aria-current] { border-bottom-color: var(--ink); }

/* Small screens: the menu opens as a hairline-ruled sheet below the band */
.site-menu { position: static; flex: none; }
.site-menu > summary {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.25rem;
  font-weight: 500;
  font-size: 0.98rem;
}
.menu-icon {
  position: relative;
  flex: none;
  width: 1.1rem;
  height: 0.8rem;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -0.75px;
  height: 1.5px;
  background: var(--rose);
}
.site-menu[open] .menu-icon { border-color: transparent; }
.site-menu[open] .menu-icon::after { transform: rotate(45deg); background: currentColor; }
.site-menu[open] .menu-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -0.75px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
}
.site-menu > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 0.5rem var(--gutter) 1.25rem;
  list-style: none;
  background: var(--bg-light-card);
  border-bottom: var(--hair);
}
.site-menu li { border-top: var(--hair-soft); }
.site-menu li:first-child { border-top: 0; }
.site-menu a {
  display: block;
  padding: 0.7rem 0;
  font-size: 1.05rem;
  text-decoration: none;
}
.site-menu ul ul { list-style: none; padding: 0 0 0.4rem 1rem; margin: 0; }
.site-menu ul ul li { border-top: 0; }
.site-menu ul ul a { padding: 0.35rem 0; font-size: 0.98rem; }

@media (min-width: 64rem) {
  .top-band { gap: 1rem 1.75rem; }
  .brand { flex: none; }
  .brand .site-logo, .brand svg { height: 2.5rem; }
  .site-nav { display: block; }
  .site-menu { display: none; }
}

/* ---------- Page sheet ---------- */

.sheet {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 5rem;
}

.breadcrumbs { margin-bottom: 2rem; font-size: 0.92rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; }
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--border-light-default);
}

.page-title h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  line-height: 1.12;
  max-width: 24ch;
  letter-spacing: -0.01em;
}

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

.prose > * { max-width: var(--measure); }
.prose p { margin: 0 0 1.15rem; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem); margin: 3rem 0 0.9rem; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose ul > li::marker { color: var(--rose); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote {
  margin: 2.25rem 0;
  padding: 1.1rem 0;
  border-top: var(--hair);
  border-bottom: var(--hair);
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.45;
}
.prose blockquote p { margin: 0; }
.prose .table-scroll { overflow-x: auto; margin: 0 0 1.5rem; }
.prose table { border-collapse: collapse; font-size: 0.98rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 0.55rem 0.8rem; border-bottom: var(--hair-soft); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; border-bottom: var(--hair); }

/* Section counters: each h2 carries a numbered vertebral-level marker */
.prose-levels { counter-reset: level; }
.prose-levels h2 {
  counter-increment: level;
  position: relative;
  padding-top: 2.4rem;
  border-top: var(--hair-soft);
}
.prose-levels h2::before {
  content: counter(level);
  position: absolute;
  top: 0.65rem;
  left: 0;
  min-width: 2.1rem;
  padding: 0 0.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-align: center;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.prose-levels h2::after {
  content: "";
  position: absolute;
  top: 1.27rem;
  left: 2.1rem;
  width: 0.7rem;
  height: 1px;
  background: var(--ink);
}

.photo-hero, .photo-inline { margin: 0 0 2.25rem; max-width: var(--measure); }
.photo-hero img, .photo-inline img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--hair);
  padding: 0.5rem;
  background: var(--bg-light-card);
}
.photo-inline { margin: 2.25rem 0; }

section[data-section][style] {
  max-width: none;
  margin: 3rem 0;
  padding: clamp(3rem, 10vw, 7rem) clamp(1rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  background-size: cover;
  background-position: center;
  border-top: var(--hair);
  border-bottom: var(--hair);
}
section[data-section][style] > .bg-surface-card {
  max-width: 36rem;
  padding: 1.4rem 1.6rem;
  border: var(--hair);
}
section[data-section][style] h2 { margin-top: 0; }

/* ---------- Home: split opening with a spinal-column plate ---------- */

.opening {
  display: grid;
  gap: 2rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: var(--hair);
}

.plate {
  margin: 0;
  padding: 1.5rem 1rem;
  border: var(--hair);
  outline: 1px solid var(--border-light-subtle);
  outline-offset: -0.5rem;
  display: flex;
  justify-content: center;
}
.spine-plate { display: block; width: 100%; max-width: 15rem; height: auto; }
.spine-plate .axis { stroke: var(--border-light-subtle); stroke-width: 1; stroke-dasharray: 2 4; fill: none; }
.spine-plate .v, .margin-plate .v { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.spine-plate .v-hl, .margin-plate .v-hl { fill: var(--rose); stroke: var(--rose); stroke-width: 1.25; }
.spine-plate .sp { stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; fill: none; }
.spine-plate .br { fill: none; stroke: var(--border-light-default); stroke-width: 1; }
.spine-plate .br-hl { fill: none; stroke: var(--rose); stroke-width: 1.25; }
.spine-plate .tk { stroke: var(--border-light-default); stroke-width: 1; }

.opening-text { align-self: center; }
.cover-title h1 {
  font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4rem);
  line-height: 1.08;
  max-width: 17ch;
}
.cover-lines { margin-top: 2rem; max-width: 34rem; counter-reset: line; }
.cover-lines .display-line {
  counter-increment: line;
  position: relative;
  margin: 0;
  padding: 0.8rem 0 0.8rem 2.6rem;
  border-top: var(--hair-soft);
  font-size: 1.08rem;
  line-height: 1.55;
}
.cover-lines .display-line:last-child { border-bottom: var(--hair-soft); }
.cover-lines .display-line::before {
  content: counter(line);
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 1.6rem;
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--rose);
  border-bottom: 1px solid var(--rose);
  text-align: center;
}

.home-body { max-width: var(--measure); }

@media (min-width: 56rem) {
  .opening { grid-template-columns: minmax(14rem, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); }
  .plate { padding: 2rem 1.25rem; }
}

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

.hub-head, .article-head, .preface-head, .contact-head, .thanks-head { margin-bottom: 2.25rem; }

.hub-intro { max-width: var(--measure); }

.hub-cards {
  margin-top: 3.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-top: var(--hair);
}
.cards-label { margin: 0 0 1.5rem; font-size: 1.4rem; }
.card-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  counter-reset: card;
}
.card-grid li {
  counter-increment: card;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 9rem;
  padding: 2.4rem 1.2rem 1.2rem;
  background: var(--bg-light-card);
  border: var(--hair);
  background-image: linear-gradient(var(--border-light-subtle), var(--border-light-subtle));
  background-size: 100% 1px;
  background-position: 0 1.9rem;
  background-repeat: no-repeat;
}
.card-grid li::before {
  content: counter(card);
  position: absolute;
  top: 0.45rem;
  right: 1rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--rose);
}
.card-grid li::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  left: 1.2rem;
  width: 1.6rem;
  height: 0.55rem;
  border: 1px solid var(--ink);
  border-radius: 0.2rem;
}
.card-grid a {
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.3;
  text-decoration: none;
}
.card-grid a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.card-grid li > a::after { content: ""; position: absolute; inset: 0; }
.card-grid ul ul { display: block; margin-top: 0.75rem; }
.card-grid ul ul li { min-height: 0; padding: 0; border: 0; background: none; }
.card-grid ul ul li::before, .card-grid ul ul li::after { display: none; }

/* ---------- Article: long read with a margin column ---------- */

.article-head .page-title h1 { max-width: 26ch; }

.article-columns { display: grid; gap: 1.5rem; }
.margin-col { display: none; }

@media (min-width: 60rem) {
  .article-columns { grid-template-columns: 9rem minmax(0, var(--measure)); gap: 3rem; }
  .article-head { padding-left: 12rem; }
  .margin-col {
    display: block;
    position: sticky;
    top: 6rem;
    align-self: start;
    padding-top: 0.5rem;
    border-top: var(--hair);
  }
  .margin-plate { display: block; width: 2.5rem; height: auto; margin-top: 1rem; }
  .margin-plate .axis { stroke: var(--border-light-subtle); stroke-width: 1; stroke-dasharray: 2 3; fill: none; }
}

/* ---------- About: preface column with a standards box ---------- */

.preface { max-width: var(--measure); margin: 0 auto; }
.preface-text p:first-of-type { font-size: 1.18rem; line-height: 1.6; }
.standards {
  margin-top: 3rem;
  padding: 1.5rem 1.6rem;
  border: var(--hair);
  border-left: 3px solid var(--rose);
}
.standards-label { margin: 0 0 0.6rem; font-size: 1.25rem; }
.standards p { margin: 0; }

/* ---------- Contact: note beside a roomy form ---------- */

.contact-columns { display: grid; gap: 2.5rem; }
.contact-form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: var(--hair);
}
.field { display: grid; gap: 0.4rem; }
.field-label { font-weight: 500; font-size: 0.98rem; }
.field-input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg-light-base);
  border: 1px solid var(--border-light-default);
  border-radius: 0.25rem;
}
.field-area { min-height: 11rem; resize: vertical; }
.form-button {
  justify-self: start;
  min-height: 2.9rem;
  padding: 0.7rem 1.5rem;
  font: inherit;
  font-weight: 600;
  color: var(--brand-light-on-accent);
  background: var(--rose);
  border: 0;
  border-radius: 0.25rem;
  cursor: pointer;
}
.form-button:hover { background: var(--rose-deep); }

@media (min-width: 56rem) {
  .contact-columns { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
}

/* ---------- Thank you: centred column ---------- */

.thanks { max-width: 36rem; margin: 0 auto; text-align: center; }
.thanks .page-title h1 { margin: 0 auto; }
.thanks-text > * { margin-left: auto; margin-right: auto; }
.next-reads {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-top: var(--hair);
  border-bottom: var(--hair);
}
.next-label { margin: 0 0 1rem; font-size: 1.2rem; }
.next-list { list-style: none; margin: 0; padding: 0; counter-reset: next; }
.next-list li { counter-increment: next; padding: 0.55rem 0; border-top: var(--hair-soft); }
.next-list li:first-child { border-top: 0; }
.next-list li::before { content: counter(next) "."; margin-right: 0.5rem; color: var(--rose); font-family: var(--font-head); }

/* ---------- Footer: colophon ---------- */

.site-footer { border-top: var(--hair); }
.colophon {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 2rem;
  display: grid;
  gap: 1.5rem;
}
.colophon-name { margin: 0 0 0.35rem; font-family: var(--font-head); font-size: 1.25rem; }
.colophon-line { margin: 0; max-width: 32rem; }
.colophon-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.colophon-links a { display: inline-block; padding: 0.35rem 0; }
.colophon-strap { margin: 0; padding-top: 1rem; border-top: var(--hair-soft); font-size: 0.92rem; }

@media (min-width: 56rem) {
  .colophon { grid-template-columns: minmax(0, 1fr) auto; }
  .colophon-links { justify-content: flex-end; align-self: center; }
  .colophon-strap { grid-column: 1 / -1; }
}

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