@font-face { font-family: 'Archivo Narrow'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-narrow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo Narrow'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-narrow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo Narrow'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/archivo-narrow-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo Narrow'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/archivo-narrow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo Narrow'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-narrow-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo Narrow'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-narrow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Archivo Narrow'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-narrow-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Archivo Narrow'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-narrow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Volkhov'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/volkhov-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Volkhov'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/volkhov-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Volkhov'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/volkhov-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Volkhov'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/volkhov-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #ebe8e2;
  --fg-light-base-body: #221f1b;
  --fg-light-base-heading: #221f1b;
  --fg-light-base-muted: #575148;
  --fg-light-base-link: #00708f;
  --fg-light-base-inverse: #221f1b;
  --bg-light-card: #fdfcfa;
  --fg-light-card-body: #221f1b;
  --fg-light-card-heading: #221f1b;
  --fg-light-card-muted: #575148;
  --fg-light-card-link: #00708f;
  --fg-light-card-inverse: #221f1b;
  --bg-light-elevated: #dcd6cc;
  --fg-light-elevated-body: #221f1b;
  --fg-light-elevated-heading: #221f1b;
  --fg-light-elevated-muted: #575148;
  --fg-light-elevated-link: #00546b;
  --fg-light-elevated-inverse: #221f1b;
  --brand-light-accent: #00708f;
  --brand-light-accent-hover: #00546b;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #00708f;
  --focus-ring: var(--focus-light-ring);
  --border-light-default: #766e63;
  --border-light-subtle: #cbc4b8;
}
.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; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-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-ring); }

/* The Hormone Ledger: apothecary precision on warm stone */

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

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

body.ledger {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Volkhov', Georgia, 'Times New Roman', serif;
  font-size: 1.0625rem;
  line-height: 1.72;
}

h1, h2, h3, h4 {
  font-family: 'Archivo Narrow', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  line-height: 1.08;
  color: var(--fg-heading);
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.25rem); letter-spacing: -0.01em; line-height: 1.02; }

h2 { font-size: clamp(1.55rem, 2.6vw, 1.95rem); margin: 2.6rem 0 0.8rem; }

h3 { font-size: 1.3rem; margin: 1.8rem 0 0.5rem; }

p { margin: 0 0 1.15rem; }

ul, ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }

li { margin-bottom: 0.4rem; }

a { color: var(--fg-link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

a:hover { color: var(--brand-light-accent-hover); text-decoration-thickness: 2px; }

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

/* ---------- Shelf: static side rail beside the page ---------- */

.shelf {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
}

.site-header {
  position: relative;
  overflow-wrap: normal;
  padding: 1.75rem 1.75rem 2.5rem 1.25rem;
  border-right: 2px solid var(--brand-light-accent);
}

/* graduated vial scale along the rail edge */
.site-header::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  right: 0;
  width: 0.6rem;
  background: repeating-linear-gradient(to bottom, var(--brand-light-accent) 0 1px, transparent 1px 0.75rem);
  pointer-events: none;
}

.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }

.brand { display: inline-flex; text-decoration: none; }

.brand .site-logo { display: block; width: 13.25rem; height: auto; }

.rail-links { margin-top: 2.5rem; }

.rail-links .site-nav ul { list-style: none; margin: 0; padding: 0; }

.rail-links .site-nav li { margin: 0; }

.rail-links .site-nav > ul > li + li { border-top: 1px solid var(--border-light-subtle); }

.rail-links .site-nav a,
.rail-links .site-nav-group > summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.45rem 0.25rem;
  font-family: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  color: var(--fg-heading);
  cursor: pointer;
}

/* small vial marker beside each rail label */
.rail-links .site-nav > ul > li > a::before,
.rail-links .site-nav-group > summary::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 1rem;
  border: 1.5px solid var(--brand-light-accent);
  border-radius: 0 0 0.25rem 0.25rem;
  box-shadow: inset 0 -0.35rem 0 0 transparent;
}

.rail-links .site-nav a:hover,
.rail-links .site-nav-group > summary:hover { color: var(--fg-link); text-decoration: underline; }

.rail-links .site-nav > ul > li > a:hover::before,
.rail-links .site-nav a[aria-current="page"]::before { box-shadow: inset 0 -0.45rem 0 0 var(--brand-light-accent); }

.rail-links .site-nav a[aria-current="page"] { color: var(--fg-link); }

.rail-links .site-nav-group > summary { list-style: none; }

.rail-links .site-nav-group > summary::-webkit-details-marker { display: none; }

.rail-links .site-nav-group > ul { padding: 0 0 0.4rem 1.25rem; }

.rail-links .site-nav-group > ul a { font-size: 1rem; min-height: 40px; }

/* collapsed menu: phones and tablets */
.rail-toggle { display: none; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  list-style: none;
  font-family: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--brand-light-on-accent);
  background: var(--brand-light-accent);
  cursor: pointer;
}

.site-menu > summary::-webkit-details-marker { display: none; }

.site-menu > summary:hover,
.site-menu[open] > summary { color: var(--brand-light-on-accent); background: var(--brand-light-accent-hover); }

.site-menu > summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.site-menu .menu-icon {
  flex: none;
  width: 0.55rem;
  height: 1rem;
  border: 1.5px solid var(--brand-light-on-accent);
  border-radius: 0 0 0.25rem 0.25rem;
  box-shadow: inset 0 -0.4rem 0 0 var(--brand-light-on-accent);
}

.site-menu[open] .menu-icon { box-shadow: inset 0 -0.85rem 0 0 var(--brand-light-on-accent); }

/* open menu: a full-width cyan drawer under the header, numbered like a dispensing ledger */
.site-menu > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  max-height: 80vh;
  overflow-y: auto;
  margin: 0;
  padding: 1.1rem clamp(1rem, 5vw, 2rem) 1.4rem;
  list-style: none;
  counter-reset: dose;
  background: var(--brand-light-accent-hover);
}

.site-menu li { margin: 0; counter-increment: dose; }

.site-menu a {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: baseline;
  padding: 0.55rem 0;
  font-family: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-light-on-accent);
  text-decoration: none;
}

.site-menu a::before {
  content: counter(dose, decimal-leading-zero);
  font-family: 'Volkhov', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 400;
}

.site-menu a:hover { color: var(--brand-light-on-accent); text-decoration: underline; text-decoration-thickness: 2px; }

/* a row of pellet capsules drawn to scale at the foot of the drawer */
.site-menu > ul::after {
  content: "";
  display: block;
  width: 0.55rem;
  height: 1.5rem;
  margin: 1rem 0 0 0.1rem;
  border-radius: 1rem;
  background: var(--bg-light-card);
  box-shadow: 1rem 0 0 var(--bg-light-card), 2rem 0 0 var(--bg-light-card), 3rem 0 0 var(--bg-light-card), 4rem 0 0 var(--bg-light-card), 5rem 0 0 var(--bg-light-card), 6rem 0 0 var(--bg-light-card);
}

@media (max-width: 63.99rem) {
  .shelf { grid-template-columns: minmax(0, 1fr); }
  .site-header { padding: 0.7rem 0.75rem; border-right: 0; border-bottom: 2px solid var(--brand-light-accent); }
  .site-header::after { display: none; }
  .brand .site-logo { width: 8.25rem; }
  .rail-links { display: none; }
  .rail-toggle { display: flex; }
}

/* ---------- Page frame ---------- */

.page { width: 100%; max-width: 70rem; padding: 2rem clamp(1rem, 4.5vw, 3.75rem) 5rem; }

.breadcrumbs ol {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  font-family: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  font-size: 0.98rem;
}

.breadcrumbs li { margin: 0; }

.breadcrumbs li + li::before { content: "/"; margin-right: 0.55rem; color: var(--fg-muted); }

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

.photo-hero img, .photo-inline img { display: block; width: 100%; height: auto; border-radius: 0.3rem; }

.photo-hero img { aspect-ratio: 16 / 9; object-fit: cover; }

.ink, .pellets, .scale, .story-ring g, .desk-art g, .sealed-art g { stroke: var(--brand-light-accent); }

/* ---------- Home: split cover ---------- */

.cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-light-default);
}

.cover-title { max-width: 34rem; margin-bottom: 1.25rem; }

.cover-lines { max-width: 32rem; }

.cover-lines .display-line { margin: 0 0 0.7rem; font-size: 1.18rem; line-height: 1.55; color: var(--fg-muted); }

.cover-art { margin: 0; justify-self: start; width: min(100%, 13rem); }

.cover-art svg { display: block; width: 100%; height: auto; }

.scale { stroke: var(--border-light-default); }

@media (min-width: 48rem) {
  .cover { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2.5rem; }
  .cover-art { justify-self: end; width: min(100%, 20rem); }
}

.cover-body { max-width: 40rem; }

/* ---------- Topic hub: a cabinet of drawers ---------- */

.cabinet-title { max-width: 40rem; margin-bottom: 2rem; }

.drawers { margin: 0 0 3rem; }

.drawers > ul {
  list-style: none;
  margin: 0;
  padding: 0.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  gap: 0.6rem;
  background: var(--bg-light-elevated);
  border: 1px solid var(--border-light-default);
  border-radius: 0.3rem;
}

.drawers > ul > li {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  min-height: 6.5rem;
  padding: 1rem 1rem 1.6rem;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light-default);
  border-radius: 0.2rem;
}

/* the drawer's vial icon */
.drawers > ul > li::before {
  content: "";
  width: 0.8rem;
  height: 1.6rem;
  border: 2px solid var(--brand-light-accent);
  border-top-width: 0.4rem;
  border-radius: 0.1rem 0.1rem 0.35rem 0.35rem;
  box-shadow: inset 0 -0.55rem 0 0 var(--bg-light-elevated);
}

/* the drawer pull */
.drawers > ul > li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  width: 2.5rem;
  height: 0.35rem;
  margin-left: -1.25rem;
  border: 1.5px solid var(--border-light-default);
  border-radius: 1rem;
}

.drawers > ul > li > a {
  font-family: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.drawers > ul > li > a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.drawers > ul > li:hover { border-color: var(--brand-light-accent); }

.drawers > ul > li:hover > a { text-decoration: underline; }

.drawers > ul > li:hover::before { box-shadow: inset 0 -0.9rem 0 0 var(--brand-light-accent); }

.cabinet-body { max-width: 40rem; }

/* ---------- Article: text column with a margin timeline ---------- */

.entry-title { max-width: 40rem; margin-bottom: 2rem; }

.entry-columns { display: grid; grid-template-columns: minmax(0, 1fr); }

.entry-text { max-width: 38rem; }

.entry-margin { display: none; }

.entry-margin svg { display: block; width: 100%; height: auto; }

@media (min-width: 48rem) {
  .entry-columns { grid-template-columns: minmax(0, 38rem) 6.5rem; gap: 2.25rem; justify-content: start; }
  .entry-margin { display: block; position: sticky; top: 1.5rem; align-self: start; padding-left: 1rem; border-left: 1px solid var(--border-light-subtle); }
}

.entry-text h2 { padding-top: 0.9rem; border-top: 1px solid var(--border-light-subtle); }

/* ---------- Tables in entries ---------- */

.table-scroll { overflow-x: auto; margin: 0 0 1.75rem; }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }

th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border-light-subtle); }

thead th { font-family: 'Archivo Narrow', 'Arial Narrow', sans-serif; font-weight: 600; border-bottom: 2px solid var(--brand-light-accent); }

/* ---------- About: stepped story ---------- */

.story { position: relative; isolation: isolate; }

.story-ring {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(60%, 26rem);
  height: auto;
}

.story-ring g { stroke: var(--border-light-subtle); }

.story-title { max-width: 36rem; margin-bottom: 2.25rem; }

.story-steps { max-width: 48rem; }

.story-steps > * { max-width: 36rem; }

.story-steps > h2 {
  padding: 0.9rem 0 0 0.9rem;
  border-top: 1px solid var(--border-light-default);
  border-left: 3px solid var(--brand-light-accent);
}

@media (min-width: 56rem) {
  .story-steps > h2:nth-of-type(2), .story-steps > h2:nth-of-type(2) ~ * { margin-left: 2.5rem; }
  .story-steps > h2:nth-of-type(3), .story-steps > h2:nth-of-type(3) ~ * { margin-left: 5rem; }
  .story-steps > h2:nth-of-type(4), .story-steps > h2:nth-of-type(4) ~ * { margin-left: 7.5rem; }
  .story-steps > h2:nth-of-type(5), .story-steps > h2:nth-of-type(5) ~ * { margin-left: 10rem; }
  .story-steps > h2:nth-of-type(6), .story-steps > h2:nth-of-type(6) ~ * { margin-left: 12.5rem; }
}

/* ---------- Contact: form beside a pump bottle drawing ---------- */

.desk-title { max-width: 36rem; margin-bottom: 2rem; }

.desk-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }

.desk-main { max-width: 38rem; }

.desk-art { display: none; margin: 0; }

.desk-art svg { display: block; width: 100%; height: auto; }

@media (min-width: 48rem) {
  .desk-split { grid-template-columns: minmax(0, 38rem) 9rem; justify-content: start; align-items: start; }
  .desk-art { display: block; position: sticky; top: 1.5rem; }
}

.desk-form {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light-default);
  border-top: 4px solid var(--brand-light-accent);
  border-radius: 0.3rem;
}

.desk-form label {
  margin-top: 0.75rem;
  font-family: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.desk-form label:first-child { margin-top: 0; }

.desk-form input, .desk-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--fg-body);
  background: var(--bg-light-base);
  border: 1px solid var(--border-light-default);
  border-radius: 0.2rem;
}

.desk-form textarea { resize: vertical; }

.desk-form input:focus-visible, .desk-form textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

.desk-submit {
  justify-self: start;
  margin-top: 1.25rem;
  min-height: 44px;
  padding: 0.55rem 1.4rem;
  font-family: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-light-on-accent);
  background: var(--brand-light-accent);
  border: 0;
  border-radius: 0.3rem;
  cursor: pointer;
}

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

/* ---------- Thank you: a vial laid flat over a dispensing label ---------- */

.sealed { max-width: 44rem; }

.sealed-title { margin-bottom: 1.25rem; }

.sealed-art { margin: 0 0 1.5rem; width: 100%; }

.sealed-art svg { display: block; width: 100%; height: auto; }

.sealed-art g, .sealed-art .cap-seal { stroke: var(--brand-light-accent); }

.sealed-art .cap { fill: var(--brand-light-accent); }

.sealed-label {
  counter-reset: line;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 0.5rem;
  border-top: 3px double var(--border-light-default);
  border-bottom: 3px double var(--border-light-default);
}

.sealed-label > h2 {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: baseline;
  margin: 1.5rem 0 0.6rem;
  padding-top: 0.6rem;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid var(--border-light-subtle);
  counter-increment: line;
}

.sealed-label > h2::before {
  content: counter(line, upper-roman) ".";
  font-family: 'Volkhov', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.sealed-label > h2 ~ p { padding-left: 2.25rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border-light-default); }

.footer-inner {
  max-width: 70rem;
  padding: 1.75rem clamp(1rem, 4.5vw, 3.75rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.footer-line { margin: 0; max-width: 34rem; font-size: 0.98rem; }

.footer-client { margin: 0; }
