/* package fonts (woff2, copied into dist/assets/fonts) */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/karla-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/karla-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/karla-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/karla-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/karla-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/karla-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/karla-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/karla-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/karla-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/karla-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/karla-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/karla-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/karla-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/karla-latin-800-normal.woff2") format("woff2"); }
/* generated block: satellite design tokens (light) */
:root {
  --bg-light-base: #f1f4ee;
  --fg-light-base-body: #3d4a42;
  --fg-light-base-heading: #1f3a2c;
  --fg-light-base-muted: #56625a;
  --fg-light-base-link: #0f5a5e;
  --fg-light-base-inverse: #1f3a2c;
  --bg-light-card: #ffffff;
  --fg-light-card-body: #3d4a42;
  --fg-light-card-heading: #1f3a2c;
  --fg-light-card-muted: #56625a;
  --fg-light-card-link: #0f5a5e;
  --fg-light-card-inverse: #1f3a2c;
  --bg-light-elevated: #dfe7d8;
  --fg-light-elevated-body: #3d4a42;
  --fg-light-elevated-heading: #1f3a2c;
  --fg-light-elevated-muted: #56625a;
  --fg-light-elevated-link: #0f5a5e;
  --fg-light-elevated-inverse: #1f3a2c;
  --brand-light-accent: #0f5a5e;
  --brand-light-accent-hover: #1f3a2c;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #0f5a5e;
  --border-light-default: #1f3a2c;
  --border-light-subtle: #c3cfbd;
}
.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; }
.site-menu > summary .menu-icon { display: inline-block; width: 1.25rem; text-align: center; }
.site-menu > summary .menu-icon::before { content: "\2630"; }
.site-menu[open] > summary .menu-icon::before { content: "\00D7"; }
.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) */
:root {
  --terracotta: #b5583a;
  --paper: var(--bg-light-base);
  --sage: var(--bg-light-elevated);
  --white: var(--bg-light-card);
  --keyline: var(--border-light-default);
  --hairline: var(--border-light-subtle);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Karla', system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}

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

h1 { font-size: clamp(2.4rem, 5vw + 0.5rem, 4rem); letter-spacing: -0.01em; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 2vw + 0.8rem, 2.15rem); }
h3 { font-size: 1.45rem; }

p, ul, ol, dl { margin: 0; }

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

.skip-link:focus { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 20; background: var(--white); outline-color: var(--terracotta); }

/* ---------- shell: sage top strip + scrolling column ---------- */

.ledger { min-height: 100vh; }

.rail {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--hairline);
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}

.rail-brand .site-logo { width: 40px; height: 40px; flex: none; }

.rail-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.1;
}

.rail-nav { flex: none; }

.site-menu > summary {
  position: relative;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 0.75rem;
  white-space: nowrap;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--fg-heading);
  border: 1px solid var(--keyline);
  background: var(--sage);
}

.site-menu > ul {
  list-style: none;
  margin: 0;
  padding: 5.5rem 1.5rem 2rem;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 11;
  width: min(86vw, 340px);
  background: var(--sage);
  border-right: 1px solid var(--keyline);
  overflow-y: auto;
}

.site-menu li a,
.rail-nav .site-menu li a {
  position: relative;
  display: block;
  padding: 0.55rem 0 0.55rem 1.4rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.site-menu li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.8rem;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease-out;
}

.site-menu li a:hover::before,
.site-menu li a:focus-visible::before { transform: scaleX(1); }

.ledger-page { min-width: 0; }

.ledger-page > .breadcrumbs,
.ledger-page > main,
.ledger-foot { padding-inline: var(--gutter); }

@media (min-width: 80em) {
  .rail {
    position: static;
    gap: 2rem;
    padding: 1rem var(--gutter);
  }

  .rail-brand .site-logo { width: 48px; height: 48px; }
  .rail-name { font-size: 1.45rem; }

  @supports selector(::details-content) {
    .site-menu > summary { display: none; }
    .site-menu::details-content { content-visibility: visible; display: block; }
    .site-menu > ul {
      position: static;
      display: flex;
      flex-wrap: nowrap;
      gap: 1.75rem;
      width: auto;
      padding: 0;
      border: 0;
      background: none;
      overflow: visible;
    }
    .site-menu li a { padding: 0.4rem 0 0.4rem 1.15rem; font-size: 1.2rem; white-space: nowrap; }
  }
}

/* ---------- breadcrumbs ---------- */

.breadcrumbs { padding-top: 1.5rem; font-size: 0.9rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--terracotta); }

/* ---------- shared body copy ---------- */

main { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 6rem); }

main p + p,
main p + ul, main p + ol,
main ul + p, main ol + p { margin-top: 1.05em; }

main h2 { margin-top: 2.4rem; margin-bottom: 0.8rem; }
main h3 { margin-top: 1.8rem; margin-bottom: 0.5rem; }

main ul, main ol { padding-left: 1.2rem; }
main li + li { margin-top: 0.45rem; }

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

figure { margin: 0; }

.photo-hero img,
.photo-inline img {
  display: block;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--keyline);
}

.photo-inline { margin: 2rem 0; }

/* ---------- home: specimen drawer ---------- */

.drawer-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.terra-rule {
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: 1.25rem;
  background: var(--terracotta);
}

.drawer-lede {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem);
  line-height: 1.4;
  max-width: 30ch;
}

.drawer-body { max-width: 66ch; }

.drawer-body > .photo-hero { margin: 0 0 2rem; }

.cards { margin-top: clamp(3rem, 6vw, 5rem); }
.cards-heading { margin: 0 0 1.25rem; }

.cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

.index-card {
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--keyline);
}

.card-no {
  display: block;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.card-title { margin: 0.3rem 0 0.9rem; font-size: 1.55rem; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.card-links { list-style: none; padding: 0; border-top: 1px solid var(--hairline); }
.card-links li { margin: 0; border-bottom: 1px solid var(--hairline); }
.card-links li + li { margin-top: 0; }
.card-links a { display: block; padding: 0.5rem 0; line-height: 1.4; }

.notes {
  margin-top: clamp(3rem, 6vw, 5rem);
  max-width: 34rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--terracotta);
}

.notes-heading { margin: 0 0 1rem; font-size: 1.6rem; }
.notes-list > div + div { margin-top: 1.1rem; }
.notes-list dt { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.notes-list dd { margin: 0.15rem 0 0; }

@media (min-width: 48em) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 72em) {
  .drawer-head {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: end;
    column-gap: 3.5rem;
  }
  .drawer-lede { padding-bottom: 0.4rem; }

  .drawer-body { max-width: none; display: flow-root; }
  .drawer-body > * { max-width: 62ch; }
  .drawer-body > .photo-hero {
    float: right;
    width: 40%;
    max-width: none;
    margin: 0.4rem 6% 1.5rem 2.5rem;
  }
}

/* ---------- topic hub: catalogue drawer ---------- */

.catalogue-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.catalogue-label {
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.catalogue-grid { display: grid; gap: 2.5rem; }

.catalogue-intro { max-width: 62ch; }
.catalogue-intro > .photo-hero { margin-bottom: 2rem; }

.catalogue-ledger {
  align-self: start;
  padding: 1.5rem;
  border: 1px solid var(--keyline);
}

.ledger-heading { margin: 0 0 0.75rem; font-size: 1.45rem; }

.catalogue-ledger ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--keyline); }
.catalogue-ledger li { margin: 0; border-bottom: 1px solid var(--hairline); }
.catalogue-ledger li + li { margin-top: 0; }
.catalogue-ledger a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 72em) {
  .catalogue-grid { grid-template-columns: minmax(0, 62ch) minmax(16rem, 22rem); column-gap: 3.5rem; }
  .catalogue-ledger { position: sticky; top: 2rem; }
}

/* ---------- article: herbal monograph ---------- */

.monograph-head { max-width: 66ch; margin-bottom: 2rem; }

.monograph-body { max-width: 66ch; display: flow-root; }

.monograph-body > .photo-hero { margin: 0 0 1.75rem; }

.monograph-body h2 { position: relative; padding-left: 1.4rem; }
.monograph-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.85rem;
  height: 2px;
  background: var(--terracotta);
}

.related {
  max-width: 66ch;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--keyline);
}

.related-heading { margin: 0 0 0.75rem; font-size: 1.45rem; }
.related-list { list-style: none; padding: 0; }
.related-list li { margin: 0; border-bottom: 1px solid var(--hairline); }
.related-list li + li { margin-top: 0; }
.related-list a { display: block; padding: 0.6rem 0; }

@media (min-width: 48em) {
  .monograph-body > .photo-hero {
    float: left;
    width: 46%;
    margin: 0.35rem 2rem 1.25rem 0;
  }
}

/* ---------- about: curator's note ---------- */

.curator-head { margin-bottom: 1.75rem; }

.curator-body > p:first-child {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 1.2vw + 1.1rem, 1.95rem);
  line-height: 1.4;
  max-width: 34ch;
  margin-bottom: 2.25rem;
  color: var(--fg-heading);
}

.curator-body > :not(:first-child) { max-width: 66ch; }

.curator-body ul {
  list-style: none;
  padding: 1rem 1.25rem;
  border: 1px solid var(--keyline);
  background: var(--white);
}

.curator-body ul li { position: relative; padding-left: 1.5rem; }
.curator-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--keyline);
  border-radius: 0 100% 0 100%;
}

.curator-body ul li + li { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--hairline); }
.curator-body ul li + li::before { top: calc(0.6rem + 0.5em); }

.curator-body .photo-inline { break-inside: avoid; }

@media (min-width: 72em) {
  .curator-body { column-count: 2; column-gap: 3rem; }
  .curator-body > p:first-child { column-span: all; }
  .curator-body > :not(:first-child) { max-width: none; }
  .curator-body h2 { break-after: avoid; }
  .curator-body ul { break-inside: avoid; }
}

/* ---------- contact: keyline card form ---------- */

.enquiry-head { margin-bottom: 1.75rem; }
.enquiry-body { max-width: 62ch; }

.form-card {
  max-width: 36rem;
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--keyline);
  display: grid;
  gap: 1.25rem;
}

.field { display: grid; gap: 0.35rem; }

.field label {
  font-family: var(--sans);
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-size: 1rem;
  color: var(--fg-heading);
}

.req { color: var(--terracotta); }

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--fg-body);
  background: var(--paper);
  border: 1px solid var(--keyline);
  border-radius: 0;
}

.field textarea { resize: vertical; min-height: 9rem; }

.form-submit {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-light-on-accent);
  background: var(--brand-light-accent-hover);
  border: 0;
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.form-submit:hover { background: var(--brand-light-accent); }

/* ---------- thank you: pressed leaf ---------- */

.pressed-panel {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  border: 1px solid var(--keyline);
}

.pressed-sprig { display: block; width: 120px; height: 120px; margin: 0 auto 1.25rem; }
.pressed-title h1 { margin-inline: auto; }
.pressed-body { margin-top: 1.25rem; text-align: left; }
.pressed-body h2 { font-size: 1.5rem; }

.pressed-cards { max-width: 56rem; margin: 2.5rem auto 0; }

.index-link { display: block; text-decoration: none; }
.index-link .card-title { display: block; margin: 0.3rem 0 0; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
.index-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; }

@media (min-width: 48em) {
  .pressed-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- footer ---------- */

.ledger-foot {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.92rem;
  line-height: 1.55;
}

.foot-line { max-width: 52ch; }
.foot-links { list-style: none; padding: 0; margin-top: 0.75rem; display: flex; gap: 1.25rem; }

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

/* Phone menu toggle: word only, no glyph. */
.site-menu > summary .menu-icon { display: none; }
.site-menu > summary .menu-label { border-bottom: 2px solid currentColor; padding-bottom: 1px; }

/* Section photo bands: the photo shows around a solid text panel. */
section[data-section][style] {
  background-size: cover;
  background-position: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  margin: 2.5rem 0;
  border-radius: 4px;
}
section[data-section][style] > .bg-surface-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 4px;
}
