@font-face { font-family: 'Cabin'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/cabin-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Cabin'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/cabin-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Cabin'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/cabin-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Cabin'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/cabin-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Cabin'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/cabin-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Cabin'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/cabin-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Cabin'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/cabin-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Cabin'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/cabin-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f5ecd8;
  --fg-light-base-body: #2a2116;
  --fg-light-base-heading: #2a2116;
  --fg-light-base-muted: #5f513a;
  --fg-light-base-link: #77630f;
  --fg-light-base-inverse: #3a2f1c;
  --bg-light-card: #faf3e3;
  --fg-light-card-body: #2a2116;
  --fg-light-card-heading: #2a2116;
  --fg-light-card-muted: #5f513a;
  --fg-light-card-link: #77630f;
  --fg-light-card-inverse: #3a2f1c;
  --bg-light-elevated: #fffaf0;
  --fg-light-elevated-body: #2a2116;
  --fg-light-elevated-heading: #2a2116;
  --fg-light-elevated-muted: #5f513a;
  --fg-light-elevated-link: #77630f;
  --fg-light-elevated-inverse: #3a2f1c;
  --brand-light-accent: #77630f;
  --brand-light-accent-hover: #5a4a08;
  --brand-light-on-accent: #fffaf0;
  --focus-light-ring: #77630f;
  --border-light-default: #8f7440;
  --border-light-subtle: #d6c59c;
}
.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; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
: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: var(--fg-light-base-heading);
  --honey: var(--brand-light-accent);
  --honey-deep: var(--brand-light-accent-hover);
  --rule: var(--border-light-default);
  --rule-soft: var(--border-light-subtle);
  --paper-raised: var(--bg-light-elevated);
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Cabin', 'Gill Sans', 'Trebuchet MS', sans-serif;
  --measure: 36rem;
  --gutter: clamp(1rem, 5vw, 4.5rem);
}

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

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

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.62;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0;
}

h2 { font-size: 1.5rem; margin: 2.6rem 0 0.9rem; }
h3 { font-size: 1.1875rem; font-weight: 600; margin: 2rem 0 0.6rem; }
p { margin: 0 0 1.05rem; }

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

/* Header: static masthead with an inline bar of links */
.site-header {
  position: static;
  border-bottom: 1px solid var(--rule-soft);
}

.masthead {
  max-width: 74rem;
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}

.brand .site-logo { width: 2.4rem; height: auto; flex: none; }
.brand-name { white-space: nowrap; }

.site-nav { display: none; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}
.site-nav a {
  font-family: var(--sans);
  font-size: 0.98rem;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--honey); }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 0.5rem 0.85rem;
  min-height: 2.75rem;
  border: 1px solid var(--rule);
  border-radius: 2rem;
  white-space: nowrap;
}
.menu-icon {
  display: inline-block;
  width: 1.05rem;
  height: 0.7rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  border-top: 2px solid currentColor;
}
.site-menu[open] > summary { background: var(--paper-raised); }
.site-menu > ul {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 0.75rem var(--gutter) 1.25rem;
  list-style: none;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--rule);
}
.site-menu > ul li { border-top: 1px dotted var(--rule); }
.site-menu > ul li:first-child { border-top: 0; }
.site-menu > ul a {
  display: block;
  padding: 0.8rem 0;
  font-family: var(--sans);
  text-decoration: none;
}

@media (max-width: 30rem) { .masthead { gap: 0.75rem; } .brand { font-size: 1rem; gap: 0.5rem; } .brand .site-logo { width: 2rem; } .brand-name { white-space: normal; line-height: 1.15; } .site-menu > summary { padding: 0.45rem 0.7rem; gap: 0.4rem; } }

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

/* Breadcrumbs */
.page-frame { flex: 1 0 auto; }
.breadcrumbs {
  max-width: 74rem;
  margin: 0 auto;
  padding: 1.1rem var(--gutter) 0;
  font-family: var(--sans);
  font-size: 0.9rem;
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--rule); }

/* Photos */
figure { margin: 2rem 0; }
figure img { display: block; }
.photo-inline img { width: 100%; border: 1px solid var(--rule-soft); }

/* Home: pamphlet cover */
.pamphlet {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) 4rem;
}
.cover { text-align: center; margin-bottom: 3rem; }
.cover-title h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  font-weight: 500;
  line-height: 1.1;
  max-width: 17em;
  margin: 0 auto;
  text-wrap: balance;
}
.cover-lines {
  max-width: 32rem;
  margin: 1.6rem auto 0;
  font-size: 1.125rem;
  font-style: italic;
}
.cover-lines .display-line { margin: 0 0 0.6rem; }
.cover-lines .display-line:last-child { margin-bottom: 0; }
.pamphlet-body > .photo-hero {
  max-width: 24rem;
  margin: 2.75rem auto 3rem;
  padding: 0.6rem;
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule-soft);
  outline-offset: 5px;
}
.pamphlet-body > .photo-hero img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.pamphlet-body { max-width: var(--measure); margin: 0 auto; }
.pamphlet-body h2 {
  display: flex;
  align-items: last baseline;
  gap: 0.75rem;
  font-size: 1.3rem;
}
.pamphlet-body h2::after {
  content: "";
  flex: 1 1 3rem;
  min-width: 2rem;
  border-bottom: 2px dotted var(--rule);
}

/* Topic hub: chapter opener */
.chapter {
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.chapter-title::before {
  content: "§";
  display: block;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 10vw, 7rem);
  line-height: 0.9;
  color: var(--honey);
  margin-bottom: 0.5rem;
}
.chapter-title h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); text-wrap: balance; }
.chapter-contents { margin-top: 2rem; border-top: 1px solid var(--rule); }
.chapter-contents ul { list-style: none; margin: 0; padding: 0; counter-reset: section; }
.chapter-contents li {
  counter-increment: section;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  padding: 0.75rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 1.05rem;
  line-height: 1.35;
}
.chapter-contents li::before {
  content: counter(section, lower-roman) ".";
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--fg-light-base-muted);
  padding-top: 0.15rem;
}
.chapter-contents a { text-decoration: none; }
.chapter-contents a:hover { text-decoration: underline; }
.chapter-text { max-width: var(--measure); }
.chapter-text > .photo-hero { margin-top: 0; }
.chapter-text > .photo-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

@media (min-width: 56rem) {
  .chapter { grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); gap: 4.5rem; }
  .chapter-rail { position: sticky; top: 1.5rem; align-self: start; }
}

/* Article: long read with a margin column */
.longread {
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.longread-title h1 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); text-wrap: balance; }
.longread-imprint {
  margin: 1.1rem 0 0;
  padding-top: 0.8rem;
  border-top: 2px solid var(--honey);
  max-width: 12rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}
.longread-text { max-width: var(--measure); }
.longread-text > p:first-child::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: 0.85;
  padding: 0.08em 0.1em 0 0;
  color: var(--honey-deep);
}
.accent-block {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--honey);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.45;
}
.table-scroll { overflow-x: auto; margin: 1.75rem 0; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.table-scroll th, .table-scroll td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--rule-soft); }
.table-scroll th { font-family: var(--sans); font-weight: 600; }

@media (min-width: 60rem) {
  .longread { grid-template-columns: minmax(14rem, 19rem) minmax(0, var(--measure)); gap: 4rem; }
  .longread-margin { position: sticky; top: 1.5rem; align-self: start; }
}

/* About: a single-column letter */
.foreword {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 4.5rem;
}
.foreword-title h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 2rem; }
.foreword-letter > p:first-child { font-size: 1.3rem; line-height: 1.5; }
.foreword-signature {
  margin: 2.5rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  width: 14rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}

/* Contact: reference desk */
.desk {
  max-width: 70rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 4.5rem;
}
.desk-title h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 2rem; }
.desk-split { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.desk-notice {
  padding: 1.75rem 1.75rem 0.75rem;
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule-soft);
  outline-offset: -7px;
}
.desk-notice h2:first-child { margin-top: 0; }
.desk-card {
  padding: 1.75rem;
  border: 1px solid var(--rule);
  display: grid;
  gap: 1.15rem;
}
.desk-field { display: grid; gap: 0.35rem; }
.desk-label { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; }
.desk-field input,
.desk-field textarea {
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--bg-light-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.65rem 0.75rem;
  min-height: 2.9rem;
  width: 100%;
}
.desk-field textarea { resize: vertical; }
.desk-field input:focus-visible,
.desk-field textarea:focus-visible { outline: 2px solid var(--honey); outline-offset: 1px; }
.desk-card .desk-submit {
  justify-self: start;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-light-on-accent);
  background: var(--honey);
  border: 0;
  border-radius: 3px;
  padding: 0.8rem 1.5rem;
  min-height: 2.9rem;
  cursor: pointer;
}
.desk-card .desk-submit:hover { background: var(--honey-deep); }

@media (min-width: 52rem) {
  .desk-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; }
}

/* Thank you: bookplate */
.bookplate-page {
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) 5rem;
}
.bookplate {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem clamp(1.25rem, 5vw, 2.75rem) 1.75rem;
  border: 2px solid var(--honey);
  outline: 1px solid var(--rule);
  outline-offset: -9px;
}
.bookplate-title h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1.25rem; }
.bookplate-text h2 { font-size: 1.2rem; }

/* Footer colophon */
.site-footer { border-top: 1px solid var(--rule-soft); margin-top: auto; }
.colophon {
  max-width: 74rem;
  margin: 0 auto;
  padding: 2.25rem var(--gutter) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.colophon p { margin: 0; }
.colophon-name { font-weight: 600; }

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