/* package fonts (woff2, copied into dist/assets/fonts) */
@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"); }
/* generated block: satellite design tokens (light) */
:root {
  --bg-light-base: #f2efe6;
  --fg-light-base-body: #1d3528;
  --fg-light-base-heading: #1d3528;
  --fg-light-base-muted: #4a5b4e;
  --fg-light-base-link: #9a3f24;
  --fg-light-base-inverse: #1d3528;
  --bg-light-card: #faf8f2;
  --fg-light-card-body: #1d3528;
  --fg-light-card-heading: #1d3528;
  --fg-light-card-muted: #4a5b4e;
  --fg-light-card-link: #9a3f24;
  --fg-light-card-inverse: #1d3528;
  --bg-light-elevated: #e3e8da;
  --fg-light-elevated-body: #1d3528;
  --fg-light-elevated-heading: #1d3528;
  --fg-light-elevated-muted: #4a5b4e;
  --fg-light-elevated-link: #9a3f24;
  --fg-light-elevated-inverse: #1d3528;
  --brand-light-accent: #9a3f24;
  --brand-light-accent-hover: #6c2a15;
  --brand-light-on-accent: #faf8f2;
  --focus-light-ring: #9a3f24;
  --border-light-default: #3d6650;
  --border-light-subtle: #c4cdbd;
}
.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) */
/* Botanical herbarium plate: linen ground, forest-green line borders, terracotta specimen marks, EB Garamond throughout with italic captions. Symmetric and centered. */

:root {
  --font-serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --linen: var(--bg-light-base);
  --paper: var(--bg-light-card);
  --sage: var(--bg-light-elevated);
  --terracotta: var(--brand-light-accent);
  --terracotta-deep: var(--brand-light-accent-hover);
  --line: var(--border-light-default);
  --line-soft: var(--border-light-subtle);
  --measure: 35rem;
  --plate: 46rem;
  --page: 70rem;
  --gutter: clamp(1rem, 5vw, 3rem);
  --air: clamp(2.75rem, 7vw, 5.5rem);
}

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

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

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

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

p, ul, ol, dl, dd, figure, blockquote { margin: 0; }

a { color: var(--fg-link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terracotta-deep); text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ---------- Plate frame: a fine double line, the herbarium sheet border ---------- */

.plate, .title-plate, .record-sheet, .form-plate, .small-plate, .specimen {
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--line-soft);
}

/* ---------- Header: menu split in two halves around the crest ---------- */

.crest-head { border-bottom: 1px solid var(--line); box-shadow: 0 3px 0 -2px var(--line-soft); }

.crest-row {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
}

.crest-half {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  font-style: italic;
  font-size: 1.125rem;
}
.crest-half-left { justify-content: flex-end; }
.crest-half-right { justify-content: flex-start; }

.crest-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.crest-link:hover { text-decoration: underline; }

.crest-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  text-decoration: none;
  text-align: center;
}
.crest-brand:hover { color: var(--fg-heading); }
.crest-brand .site-logo { width: 3rem; height: 3.5rem; }
.crest-name {
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  max-width: 16ch;
}

.crest-menu { display: none; }

.site-menu { position: relative; }
.site-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 1.25rem;
  border: 1px solid var(--line);
  font-style: italic;
  cursor: pointer;
  list-style: none;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary:hover { background: var(--sage); }
.site-menu[open] > summary { background: var(--sage); }

.site-menu > ul {
  list-style: none;
  margin: 0.5rem auto 0;
  padding: 0.5rem 0;
  max-width: 20rem;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
}
.site-menu > ul a {
  display: block;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  text-decoration: none;
}
.site-menu > ul a:hover { text-decoration: underline; }

/* ---------- Folio and breadcrumbs ---------- */

.folio { flex: 1; width: 100%; }

.breadcrumbs ol {
  list-style: none;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.75rem var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.6rem;
  font-style: italic;
  font-size: 1rem;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); font-style: normal; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Shared plate page ---------- */

.plates { padding: var(--air) var(--gutter); }

.title-plate {
  max-width: var(--plate);
  margin: 0 auto;
  padding: clamp(2.25rem, 6vw, 3.75rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
}
.title-plate h1 { font-size: clamp(2.125rem, 5vw, 3.5rem); }
.title-plate h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin: 1.25rem auto 0;
  background: var(--terracotta);
}

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

.prose > * + * { margin-top: 1.15rem; }
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-top: clamp(2.25rem, 5vw, 3rem);
  text-align: center;
}
.prose h3 { font-size: 1.375rem; margin-top: 1.75rem; }
.prose h2 + *, .prose h3 + * { margin-top: 0.85rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.55rem; }
.prose li::marker { color: var(--terracotta); }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin-block: 2.25rem; }
.prose blockquote {
  padding: 0 1.5rem;
  border-left: 1px solid var(--terracotta);
  font-style: italic;
}

.reading {
  max-width: var(--measure);
  margin: clamp(2.25rem, 6vw, 3.5rem) auto 0;
}

.photo-hero, .photo-inline {
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.photo-hero img, .photo-inline img { display: block; width: 100%; height: auto; }
.photo-inline { margin-block: clamp(1.75rem, 4vw, 2.5rem); }
.reading > .photo-hero:first-child { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }

.reading > section[data-section] {
  background-size: cover;
  background-position: center;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--line);
}
.reading > section[data-section] > div { padding: clamp(1.25rem, 4vw, 2rem); }
.reading > section[data-section] > div > * + * { margin-top: 1rem; }

.reading-note {
  max-width: var(--measure);
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-style: italic;
  text-align: center;
}

/* ---------- Home: lead plate and paired specimen plates ---------- */

.plate-lead {
  max-width: var(--plate);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 6vw, 4rem);
}

.plate-head { text-align: center; }
.plate-title h1 {
  font-size: clamp(2.375rem, 6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.08;
}
.plate-caption {
  margin-top: 1rem;
  font-style: italic;
  font-size: clamp(1.1875rem, 2.4vw, 1.4375rem);
  line-height: 1.4;
}
.plate-head::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.5rem;
  margin: 1.5rem auto 0;
  background: var(--terracotta);
}

.plate-body { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.plate-body > .photo-hero:first-child { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.plate-body > p:first-of-type { font-size: 1.3125rem; line-height: 1.55; }

.plate-label {
  list-style: none;
  margin: clamp(2.25rem, 5vw, 3rem) auto 0;
  padding: 0;
  max-width: 30rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-style: italic;
  font-size: 1.0625rem;
  text-align: center;
}
.plate-label li { padding: 0.65rem 0.5rem; }
.plate-label li + li { border-top: 1px solid var(--line-soft); }

.pairs {
  max-width: var(--page);
  margin: var(--air) auto 0;
}
.pairs-title {
  text-align: center;
  font-size: clamp(1.75rem, 3.6vw, 2.375rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}
.pairs-link { text-decoration: none; }
.pairs-link:hover { text-decoration: underline; text-decoration-color: var(--terracotta); }

.pairs-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 54rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
}
.pairs-grid > li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, calc(50% - clamp(0.5rem, 1.5vw, 0.875rem)));
}

.specimen {
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.specimen::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--terracotta);
}
.specimen-name { font-size: clamp(1.3125rem, 2.4vw, 1.5625rem); line-height: 1.22; }
.specimen-link { text-decoration: underline; text-decoration-color: var(--line-soft); }
.specimen-link:hover { color: var(--fg-heading); text-decoration-color: var(--terracotta); }
.specimen-caption { font-style: italic; font-size: 1.0625rem; }

/* ---------- Topic hub: shelf of framed specimen cards ---------- */

.specimen-shelf {
  max-width: var(--page);
  margin: var(--air) auto 0;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.shelf-title {
  text-align: center;
  font-size: clamp(1.625rem, 3.2vw, 2.125rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}
.shelf-grid > ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 50rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}
.shelf-grid li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, calc(50% - clamp(0.5rem, 1.5vw, 0.75rem)));
}
.shelf-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.75rem 1.25rem;
  background: var(--sage);
  border: 1px solid var(--line);
  text-align: center;
}
.shelf-grid li::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--terracotta);
}
.shelf-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.3125rem;
  line-height: 1.25;
}

/* ---------- About: herbarium record sheet ---------- */

.record-sheet {
  max-width: var(--plate);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 6vw, 4rem);
}
.record-head { text-align: center; }
.record-title h1 { font-size: clamp(2.25rem, 5.4vw, 3.5rem); }

.record-label {
  margin: clamp(2rem, 5vw, 2.75rem) auto 0;
  max-width: 32rem;
  border: 1px solid var(--line);
  padding: 1.25rem clamp(1rem, 4vw, 1.75rem) 0.5rem;
}
.record-label-title {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.record-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 0.7rem 0;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.record-row + .record-row { border-top: 1px solid var(--line-soft); }
.record-row dt { font-style: italic; }

.record-body {
  max-width: var(--measure);
  margin: clamp(2rem, 5vw, 2.75rem) auto 0;
}

/* ---------- Contact: framed form card ---------- */

.form-plate {
  max-width: 34rem;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  text-align: center;
}
.form-plate-title { font-size: clamp(1.5rem, 3vw, 1.875rem); }
.form-plate-note { margin-top: 0.75rem; font-style: italic; }

.form-fields { margin-top: 1.75rem; display: grid; gap: 1.35rem; text-align: left; }
.field { display: grid; gap: 0.2rem; font-weight: 500; }
.field-caption { font-weight: 400; font-style: italic; font-size: 1rem; }
.field-input {
  width: 100%;
  min-height: 48px;
  margin-top: 0.35rem;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-weight: 400;
  border: 1px solid var(--line);
  border-radius: 0;
}
.field-input:focus-visible { border-color: var(--terracotta); }
.field-text { resize: vertical; min-height: 8.5rem; }

.form-finish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1.75rem;
  padding: 0.6rem 1.75rem;
  border: 1px solid var(--terracotta);
  font-style: italic;
}
.form-finish:hover { background: var(--linen); }

/* ---------- Thank you and not found: small plate with the crest ---------- */

.small-plate {
  max-width: 32rem;
  margin: 0 auto;
  padding: clamp(2.25rem, 6vw, 3.25rem) clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
}
.small-plate-crest .site-logo { display: block; width: 3.5rem; height: auto; margin: 0 auto 1.25rem; }
.small-plate-title h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.small-plate-body { margin-top: 1.5rem; }
.small-plate-body h2 { font-size: 1.375rem; }
.small-plate-return { margin-top: 2rem; font-style: italic; font-size: 1.25rem; }
.small-plate-return a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Footer: directory of every section ---------- */

.directory { margin-top: var(--air); padding: clamp(2.5rem, 6vw, 3.75rem) var(--gutter); border-top: 1px solid var(--line); }
.directory-inner { max-width: var(--page); margin: 0 auto; }
.directory-crest { text-align: center; }
.directory-name { font-size: 1.5rem; font-weight: 500; }
.directory-strap { margin-top: 0.25rem; font-style: italic; }

.directory-cols {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
}
.directory-head { font-size: 1.1875rem; font-weight: 500; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line-soft); }
.directory-head a { display: inline-flex; align-items: center; min-height: 44px; }
.directory-list { list-style: none; margin: 0.5rem 0 0; padding: 0; font-size: 1.0625rem; line-height: 1.35; }
.directory-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: var(--line-soft); }

.directory-note {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-style: italic;
  font-size: 1rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 50rem) {
  .crest-row { grid-template-columns: minmax(0, 1fr); padding-bottom: 0.5rem; justify-items: center; }
  .crest-half { display: none; }
  .crest-menu { display: block; padding: 0 var(--gutter) 1rem; text-align: center; }
  .pairs-grid, .shelf-grid > ul { grid-template-columns: minmax(0, 1fr); }
  .pairs-grid > li:last-child:nth-child(odd), .shelf-grid li:last-child:nth-child(odd) { width: 100%; }
  .directory-cols { grid-template-columns: minmax(0, 1fr); }
  .record-row { grid-template-columns: minmax(0, 1fr); }
}

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