/* package fonts (woff2, copied into dist/assets/fonts) */
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/alegreya-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/alegreya-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/alegreya-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/alegreya-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/alegreya-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/alegreya-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/alegreya-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/alegreya-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/alegreya-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/alegreya-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/alegreya-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/alegreya-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
/* generated block: satellite design tokens (light) */
:root {
  --bg-light-base: #f4ecd8;
  --fg-light-base-body: #27333d;
  --fg-light-base-heading: #27333d;
  --fg-light-base-muted: #545c63;
  --fg-light-base-link: #6b3a1c;
  --fg-light-base-inverse: #27333d;
  --bg-light-card: #fbf6e9;
  --fg-light-card-body: #27333d;
  --fg-light-card-heading: #27333d;
  --fg-light-card-muted: #545c63;
  --fg-light-card-link: #6b3a1c;
  --fg-light-card-inverse: #27333d;
  --bg-light-elevated: #ebe0c4;
  --fg-light-elevated-body: #27333d;
  --fg-light-elevated-heading: #27333d;
  --fg-light-elevated-muted: #545c63;
  --fg-light-elevated-link: #6b3a1c;
  --fg-light-elevated-inverse: #27333d;
  --brand-light-accent: #6b3a1c;
  --brand-light-accent-hover: #4e2913;
  --brand-light-on-accent: #fbf6e9;
  --focus-light-ring: #6b3a1c;
  --border-light-default: #766a50;
  --border-light-subtle: #d8ccad;
}
.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); }
/* component rules: semantic carriers and renderer-owned behaviours */
.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); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* package stylesheet (verbatim; model-owned rules win by source order) */
/* Clifton Spine Notes: anatomical field notebook */

:root {
  --font-heading: 'Alegreya', Georgia, serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --ink-line: var(--border-light-default);
  --ink-faint: var(--border-light-subtle);
  --measure: 36rem;
  --margin-col: 11rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page { flex: 1 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--fg-heading);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); letter-spacing: -0.005em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

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

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

/* The hand-ruled divider: a firm ink line over a faint second stroke */
.ruled {
  height: 5px;
  border-top: 1.5px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-faint);
  max-width: var(--measure);
  margin: 1.25rem 0 0;
}
.ruled-wide { max-width: none; }
.ruled-short { max-width: 6rem; margin-left: auto; margin-right: auto; }


/* ---------- Masthead ---------- */

.masthead { padding: 1.25rem var(--gutter) 0; }
/* Brand and menu tab share row 1; the opened index drops in flow beneath
   and pushes the page down instead of covering it. */
.masthead-inner {
  max-width: calc(var(--measure) + var(--margin-col) + 3rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.masthead .ruled {
  max-width: calc(var(--measure) + var(--margin-col) + 3rem);
  margin: 1rem auto 0;
}
.brand {
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
  align-self: start;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  max-width: calc(100% - 7.5rem);
  text-decoration: none;
}
.brand .site-logo { width: 2rem; height: auto; display: block; flex: 0 0 auto; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
}

.site-menu { grid-row: 1; grid-column: 1; }
.site-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
  margin-left: auto;
  min-height: 3rem;
  padding: 0 1rem;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--bg-light-card);
  background: var(--fg-heading);
  border-radius: 0 0 0.9rem 0.9rem;
}
.site-menu > summary:hover { background: var(--brand-light-accent); }
.site-menu[open] > summary { border-radius: 0; }

/* The opened index: a kraft strip with entries strung on a spine line */
.site-menu ul {
  position: relative;
  margin: 0;
  padding: 0.75rem 0 0.75rem 3.25rem;
  list-style: none;
  background: var(--bg-light-elevated);
  border-top: 3px solid var(--fg-heading);
  border-bottom: 1px solid var(--ink-line);
}
.site-menu ul::before {
  content: "";
  position: absolute;
  left: 1.6rem;
  top: 1.1rem;
  bottom: 1.1rem;
  border-left: 1px solid var(--ink-line);
}
.site-menu li { position: relative; }
.site-menu li::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 50%;
  width: 1.5rem;
  height: 0.7rem;
  margin-top: -0.35rem;
  border: 1.5px solid var(--fg-heading);
  border-radius: 45% / 50%;
  background: var(--bg-light-elevated);
}
.site-menu li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 1rem 0.2rem 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--fg-heading);
  text-decoration: none;
}
.site-menu li a:hover,
.site-menu li a:focus-visible { color: var(--brand-light-accent); text-decoration: underline; }
@media (min-width: 40rem) {
  .site-menu ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.75rem; }
  .site-menu ul::before { display: none; }
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  max-width: calc(var(--measure) + var(--margin-col) + 3rem);
  margin: 1.25rem auto 0;
  font-size: 0.9rem;
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
.breadcrumbs li + li::before { content: "/"; padding: 0 0.5rem; color: var(--ink-line); }

/* ---------- Shared page frames ---------- */

main {
  max-width: calc(var(--measure) + var(--margin-col) + 3rem);
  margin: 0 auto;
  padding: 2.5rem 0 4.5rem;
}

.note-head,
.hub-head { max-width: var(--measure); margin: 0 0 2.25rem; }

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

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.75rem 0 0.75rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose ul,
.prose ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--ink-line); }
.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--ink-line);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
}
.prose strong { font-weight: 700; }
.prose figure { margin: 0 0 1.75rem; }
.prose img { display: block; border: 1.5px solid var(--ink-line); padding: 0.35rem; background: var(--bg-light-card); }
.photo-hero { margin: 0 0 2rem; }

/* Wide screens: headings hang in the left margin as annotations */
@media (min-width: 62rem) {
  .prose-margin {
    max-width: none;
    display: grid;
    grid-template-columns: var(--margin-col) minmax(0, var(--measure));
    column-gap: 3rem;
    align-items: start;
  }
  .prose-margin > * { grid-column: 2; }
  .prose-margin > h2 {
    grid-column: 1;
    margin: 0.35rem 0 1.5rem;
    padding-top: 0.75rem;
    border-top: 1.5px solid var(--ink-line);
    font-size: 1.2rem;
    font-style: italic;
    text-align: right;
  }
  .prose-margin > h2 + * { margin-top: 0.35rem; }
  .prose-margin > h2 ~ h2 { margin-top: 2rem; }
  .note-head, .hub-head, .home .cover, .letter .prose, .letter .index-card, .contents {
    margin-left: calc(var(--margin-col) + 3rem);
  }
}

/* ---------- Home: notebook cover ---------- */

.cover { max-width: var(--measure); margin-bottom: 3.5rem; }
.cover-title h1 { font-size: clamp(2.75rem, 1.8rem + 4.5vw, 4.75rem); font-weight: 600; line-height: 1.02; }
.cover-lede {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  line-height: 1.3;
  margin: 1rem 0 1.25rem;
}
.cover-lines p { max-width: 32rem; }
.cover .ruled { margin: 1.75rem 0 1.75rem; }

.note-index { list-style: none; margin: 0; padding: 0; counter-reset: note; }
.note-index li {
  counter-increment: note;
  position: relative;
  padding: 0 0 1.25rem 3rem;
  border-bottom: 1px solid var(--ink-faint);
  margin-bottom: 1.25rem;
}
.note-index li:last-child { border-bottom: 0; margin-bottom: 0; }
.note-index li::before {
  content: counter(note);
  position: absolute;
  left: 0;
  top: -0.2rem;
  width: 2rem;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1.2;
  color: var(--fg-muted);
  border-right: 1.5px solid var(--ink-line);
}
.note-index a { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.3; }
.note-index p { margin: 0.25rem 0 0; font-size: 0.95rem; }
@media (min-width: 62rem) {
  .note-index li { padding-left: 0; }
  .note-index li::before {
    left: -5.5rem;
    width: 2.5rem;
    text-align: right;
    border-right: 0;
    padding-right: 0;
  }
}

.cover-note {
  max-width: var(--measure);
  margin: 2.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-faint);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
}
@media (min-width: 62rem) { .cover-note { margin-left: calc(var(--margin-col) + 3rem); } }

/* ---------- Article: long-form note ---------- */


/* ---------- Topic hub: table of contents spread ---------- */

.contents {
  max-width: var(--measure);
  margin-bottom: 3rem;
  padding: 0.5rem 1.5rem;
  border: 1.5px solid var(--ink-line);
  box-shadow: 5px 5px 0 var(--ink-faint);
}
.contents ul { list-style: none; margin: 0; padding: 0; counter-reset: row; }
.contents li {
  counter-increment: row;
  display: grid;
  grid-template-columns: 3.25rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--ink-faint);
}
.contents li:last-child { border-bottom: 0; }
.contents li::before {
  content: "";
  grid-column: 1;
  width: 3rem;
  height: 1.05rem;
  border: 1.5px solid var(--ink-line);
  border-radius: 45% / 50%;
  background: linear-gradient(var(--ink-line), var(--ink-line)) center / 1px 45% no-repeat;
}
.contents li::after {
  content: counter(row);
  grid-column: 3;
  grid-row: 1;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--fg-muted);
}
.contents a { grid-column: 2; grid-row: 1; font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.3; }

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

.preface { max-width: 34rem; text-align: center; }
.preface-head h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); }
.preface-head { margin-bottom: 2.5rem; }
.prose-preface { margin: 0 auto; font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.7; }
.prose-preface h2 { font-size: 1.3rem; font-style: italic; }
.prose-preface > p:first-child::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: 0.85;
  padding: 0.08em 0.1em 0 0;
  font-weight: 600;
  color: var(--fg-heading);
}
.prose-preface > p:first-child { text-align: left; }
.signature-rule {
  width: 9rem;
  margin: 3rem auto 0;
  border-top: 1.5px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-faint);
  height: 4px;
}

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

.letter .prose { margin-bottom: 2.25rem; }
.index-card {
  max-width: var(--measure);
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1.5px solid var(--ink-line);
  border-top: 3px solid var(--brand-light-accent);
  box-shadow: 5px 5px 0 var(--ink-faint);
}
.card-fields { display: grid; grid-template-columns: 1fr; gap: 0.25rem 1.5rem; }
@media (min-width: 40rem) { .card-fields { grid-template-columns: 1fr 1fr; } }
.field { margin: 0 0 1.1rem; display: flex; flex-direction: column; }
.field label { font-family: var(--font-heading); font-size: 1.05rem; font-style: italic; }
.field input {
  font: inherit;
  color: var(--fg-body);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink-line);
  border-radius: 0;
  padding: 0.5rem 0.1rem;
  min-height: 44px;
}
.field input:focus-visible {
  outline: 2px solid var(--focus-light-ring);
  outline-offset: 2px;
  border-bottom-color: var(--brand-light-accent);
}
.card-actions { margin: 0.75rem 0 0; }
.send {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  min-height: 44px;
  padding: 0.55rem 1.75rem;
  color: var(--bg-light-card);
  background: var(--fg-heading);
  border: 1.5px solid var(--fg-heading);
  border-radius: 2px;
  cursor: pointer;
}
.send:hover { background: var(--brand-light-accent); border-color: var(--brand-light-accent); }

/* ---------- Thank you: torn notebook page ---------- */

.torn { max-width: var(--measure); }
.torn-page {
  position: relative;
  margin-top: 1.5rem;
  padding: 2.75rem 1.75rem 2rem;
  border: 1.5px solid var(--ink-line);
  border-top: 0;
  box-shadow: 5px 5px 0 var(--ink-faint);
}
.torn-page::before {
  content: "";
  position: absolute;
  left: -1.5px;
  right: -1.5px;
  top: -10px;
  height: 12px;
  background:
    linear-gradient(135deg, var(--bg-light-base) 50%, transparent 50%) 0 0 / 14px 12px repeat-x,
    linear-gradient(225deg, var(--bg-light-base) 50%, transparent 50%) 0 0 / 14px 12px repeat-x,
    var(--bg-light-card);
}
.torn-title h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.6rem); margin-bottom: 1.5rem; }
.torn .prose h2 { font-size: 1.3rem; }
.torn-back { margin: 2rem 0 0; font-family: var(--font-heading); font-size: 1.15rem; }

/* ---------- Colophon ---------- */

.colophon { flex-shrink: 0; padding: 2.25rem var(--gutter) 2.5rem; border-top: 1.5px solid var(--ink-line); }
.colophon-inner {
  max-width: calc(var(--measure) + var(--margin-col) + 3rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.95rem;
}
.colophon-line { margin: 0; max-width: 34rem; }
.colophon-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.colophon-links a { display: inline-flex; align-items: center; min-height: 44px; }

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

/* Section photo cards: the renderer pads the section, the card needs its own inset */
section[data-section][style] > .bg-surface-card { padding: 1.25rem 1.5rem; }
