@font-face { font-family: 'Chathura'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/chathura-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chathura'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/chathura-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chathura'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/chathura-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chathura'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/chathura-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chathura'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/chathura-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karma'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/karma-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karma'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/karma-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karma'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/karma-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karma'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/karma-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karma'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/karma-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #edf0e2;
  --fg-light-base-body: #1d2212;
  --fg-light-base-heading: #1d2212;
  --fg-light-base-muted: #4a5236;
  --fg-light-base-link: #535e10;
  --fg-light-base-inverse: #1d2212;
  --bg-light-card: #dde3c8;
  --fg-light-card-body: #1d2212;
  --fg-light-card-heading: #1d2212;
  --fg-light-card-muted: #4a5236;
  --fg-light-card-link: #535e10;
  --fg-light-card-inverse: #1d2212;
  --bg-light-elevated: #f7f8ef;
  --fg-light-elevated-body: #1d2212;
  --fg-light-elevated-heading: #1d2212;
  --fg-light-elevated-muted: #4a5236;
  --fg-light-elevated-link: #535e10;
  --fg-light-elevated-inverse: #1d2212;
  --brand-light-accent: #535e10;
  --brand-light-accent-hover: #3e470a;
  --brand-light-on-accent: #f7f8ef;
  --focus-light-ring: #535e10;
  --border-light-default: #6f7a52;
  --border-light-subtle: #c3cbaa;
}
.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); }

/* Endocrine almanac: moss ledger paper, ruled columns, tall condensed heads. */
:root {
  --paper: var(--bg-light-base);
  --moss: var(--bg-light-card);
  --sheet: var(--bg-light-elevated);
  --olive: var(--brand-light-accent);
  --olive-deep: var(--brand-light-accent-hover);
  --on-olive: var(--brand-light-on-accent);
  --rule: var(--border-light-default);
  --rule-soft: var(--border-light-subtle);
  --tall: 'Chathura', 'Arial Narrow', sans-serif;
  --book: 'Karma', Georgia, serif;
  --measure: 40rem;
  --wide: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --cycle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23535e10' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 20a12 12 0 1 1-4-8.9'/%3E%3Cpath d='M28.6 5.4l-.6 5.7 5.7.6'/%3E%3Ccircle cx='20' cy='20' r='2.6' fill='%23535e10' stroke='none'/%3E%3C/svg%3E");
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23535e10' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M10 2.5l6.5 3.75v7.5L10 17.5l-6.5-3.75v-7.5z'/%3E%3Ccircle cx='10' cy='10' r='2' fill='%23535e10' stroke='none'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  font-family: var(--book);
  font-size: 1.0625rem;
  line-height: 1.75;
  background: var(--paper);
}

h1, h2, h3, h4 {
  font-family: var(--tall);
  color: var(--fg-heading);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(3.2rem, 8vw, 5.6rem); font-weight: 800; margin: 0 0 1rem; }
h2 { font-size: clamp(2.1rem, 3.6vw, 2.7rem); margin: 2.8rem 0 0.7rem; }
h3 { font-size: 1.9rem; margin: 2rem 0 0.5rem; }

p { margin: 0 0 1.15rem; }

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

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

/* ---------- Header: masthead row over a ruled nav band ---------- */
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 3px double var(--rule);
}

.masthead-row {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; flex: 0 1 auto; min-width: 0; text-decoration: none; }
.brand .site-logo { display: block; width: clamp(180px, 26vw, 300px); max-width: 100%; height: auto; }
.site-menu { flex: none; }

@media (max-width: 479px) {
  .site-menu > summary { padding: 0.45rem 0.7rem; }
  .menu-label {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

.ledger-band { display: none; border-top: 1px solid var(--rule); }
.ledger-band-inner { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
}
.site-nav > ul > li { position: relative; border-right: 1px solid var(--rule-soft); }
.site-nav > ul > li:first-child { border-left: 1px solid var(--rule-soft); }
.site-nav a,
.site-nav summary {
  display: block;
  font-family: var(--book);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.6rem 1.05rem;
}
.site-nav > ul > li > a:hover { background: var(--sheet); }
.site-nav summary {
  cursor: pointer;
  list-style: none;
  color: var(--fg-body);
}
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after {
  content: "";
  display: inline-block;
  width: 0.38em; height: 0.38em;
  margin-left: 0.5em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.2em) rotate(45deg);
}
.site-nav details[open] > summary { background: var(--sheet); }
.site-nav details[open] > summary::after { transform: translateY(0.05em) rotate(-135deg); }
.site-nav details > ul {
  position: absolute;
  top: 100%;
  left: -1px;
  min-width: 19rem;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--olive);
}
.site-nav details > ul a {
  white-space: normal;
  line-height: 1.35;
  padding: 0.55rem 1.05rem;
  border-bottom: 1px solid var(--rule-soft);
}
.site-nav details > ul li:first-child a { font-weight: 600; }
.site-nav details > ul li:last-child a { border-bottom: 0; }
.site-nav details > ul a:hover { background: var(--paper); }

/* Phone menu toggle */
.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--rule);
  font-family: var(--book);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  color: var(--fg-body);
}
.site-menu > summary::-webkit-details-marker { display: none; }
.menu-icon {
  width: 18px; height: 13px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  position: relative;
}
.menu-icon::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1.5px solid currentColor;
  transform: translateY(-50%);
}
.site-menu[open] > summary { background: var(--moss); }
.site-menu > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.75rem var(--gutter) 1.75rem;
  list-style: none;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 3px double var(--rule);
}
.site-menu > ul > li { border-bottom: 1px solid var(--rule-soft); }
.site-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.05rem;
  text-decoration: none;
}
.site-menu > ul > li > a { font-weight: 600; }
.site-menu ul ul { list-style: none; margin: 0 0 0.6rem; padding: 0 0 0 1rem; border-left: 2px solid var(--olive); }
.site-menu ul ul a { font-size: 0.98rem; padding: 0.4rem 0; }

@media (min-width: 1024px) {
  .ledger-band { display: block; }
  .site-menu { display: none; }
}

/* ---------- Page frame ---------- */
.page-frame { min-height: 60vh; }

.breadcrumbs { max-width: var(--wide); margin: 0 auto; padding: 1.1rem var(--gutter) 0; }
.breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem;
  font-size: 0.92rem;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--fg-muted); }

main { display: block; padding: 0 var(--gutter); }

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }

.photo-hero { margin: 0 0 2.2rem; border: 1px solid var(--rule); padding: 0.4rem; background: var(--sheet); }
.photo-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Home: one-column almanac ---------- */
.almanac-home { max-width: var(--wide); margin: 0 auto; padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: 4rem; }

.masthead-band {
  border-top: 3px double var(--rule);
  border-bottom: 3px double var(--rule);
  padding: clamp(1.5rem, 5vw, 3.25rem) clamp(1rem, 4vw, 2.5rem);
}
.masthead-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}
.cycle-wheel { width: clamp(84px, 14vw, 128px); height: auto; display: block; }
.cover-title h1 { font-size: clamp(3.6rem, 10vw, 7rem); line-height: 0.88; margin: 0 0 1.2rem; max-width: 12ch; }
.cover-lines { border-top: 1px solid var(--rule); }
.display-line {
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 1.12rem;
  line-height: 1.55;
  max-width: 44rem;
}

.almanac-column { margin: clamp(2.25rem, 5vw, 3.5rem) auto 0; }
.almanac-column h2 { padding-top: 1rem; border-top: 1px solid var(--rule); }
.almanac-column ul { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.almanac-column ul li {
  margin: 0;
  padding: 0.85rem 0 0.85rem 2.1rem;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--hex) no-repeat 0 1.15rem / 1.15rem 1.15rem;
}

@media (min-width: 860px) {
  .masthead-inner { grid-template-columns: auto minmax(0, 1fr); column-gap: 2.5rem; align-items: start; }
  .cycle-wheel { margin-top: 0.6rem; }
}

/* ---------- Topic hub: two-column ledger ---------- */
.ledger-hub { max-width: var(--wide); margin: 0 auto; padding-bottom: 4rem; }
.hub-head { padding: clamp(1.25rem, 4vw, 2.75rem) 0 1.25rem; border-bottom: 3px double var(--rule); margin-bottom: 2rem; }
.hub-title h1 { max-width: 20ch; margin: 0; }

.ledger-columns { display: grid; gap: 2rem; }
.ledger-entries { border: 1px solid var(--rule); align-self: start; }
.entry-rows > ul { list-style: none; margin: 0; padding: 0; counter-reset: entry; }
.entry-rows li {
  counter-increment: entry;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  border-bottom: 1px solid var(--rule-soft);
}
.entry-rows li:last-child { border-bottom: 0; }
.entry-rows li::before {
  content: counter(entry);
  font-family: var(--tall);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.85rem 0 0;
  text-align: center;
  border-right: 1px solid var(--rule);
  color: var(--fg-muted);
}
.entry-rows a { display: block; padding: 0.8rem 1rem; line-height: 1.4; font-weight: 500; text-decoration: none; }
.entry-rows a:hover { background: var(--sheet); text-decoration: underline; }

@media (min-width: 900px) {
  .ledger-columns { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 0; }
  .ledger-prose { padding-right: 2.5rem; border-right: 1px solid var(--rule); }
  .ledger-entries { margin-left: 2.5rem; }
}

/* ---------- Article: stepped stages with cycle marks ---------- */
.stage-column { max-width: 44rem; margin: 0 auto; padding: clamp(1.25rem, 4vw, 2.75rem) 0 4.5rem; }
.read-title h1 { font-size: clamp(2.8rem, 6.5vw, 4.6rem); padding-bottom: 1rem; border-bottom: 3px double var(--rule); }
.stages { counter-reset: stage; max-width: none; }
.stages > p:first-of-type { font-size: 1.15rem; }
.stages h2 {
  counter-increment: stage;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.9rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.stages h2::before {
  content: counter(stage);
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  font-family: var(--book);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fg-heading);
  background: var(--cycle) no-repeat center / contain;
}
.stages h2 ~ p,
.stages h2 ~ ul,
.stages h2 ~ ol { margin-left: 1.6rem; padding-left: 2.25rem; border-left: 1px solid var(--rule-soft); }
.stages h2 ~ p { padding-bottom: 1.15rem; margin-bottom: 0; }
.stage-column .photo-hero { margin-top: 1.5rem; }

/* ---------- About: split charter and sourcing ledger ---------- */
.charter { max-width: var(--wide); margin: 0 auto; padding-bottom: 4.5rem; }
.charter-split { display: grid; gap: 1.75rem; padding-top: clamp(1.25rem, 4vw, 2.75rem); }
.charter-side { padding-bottom: 1.25rem; border-bottom: 3px double var(--rule); }
.charter-title h1 { font-size: clamp(3rem, 6.5vw, 4.8rem); max-width: 12ch; }
.charter-site { margin: 0 0 1.25rem; font-weight: 500; }
.molecule { display: block; width: min(100%, 11rem); height: auto; }
.charter-ledger h2 { padding-top: 0.9rem; border-top: 1px solid var(--rule); }
.charter-ledger h2:first-of-type { border-top: 2px solid var(--olive); }
@media (min-width: 900px) {
  .charter-split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0; }
  .charter-side { border-bottom: 0; border-right: 3px double var(--rule); padding: 0 2.5rem 2rem 0; align-self: start; }
  .charter-ledger { padding-left: 2.5rem; }
}

/* ---------- Contact: form beside ruled correspondence box ---------- */
.correspondence { max-width: var(--wide); margin: 0 auto; padding-bottom: 4.5rem; }
.corr-head { padding: clamp(1.25rem, 4vw, 2.75rem) 0 1.25rem; border-bottom: 3px double var(--rule); margin-bottom: 2rem; }
.corr-title h1 { margin: 0; }
.corr-columns { display: grid; gap: 2rem; align-items: start; }
.corr-form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--olive);
}
.field { display: grid; gap: 0.35rem; }
.field-label { font-weight: 600; font-size: 0.98rem; }
.field input {
  font: inherit;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-bottom: 1.5px solid var(--rule);
  background: var(--paper);
  color: var(--fg-body);
}
.field input:focus-visible { outline: 2px solid var(--olive); outline-offset: 1px; }
.form-button {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 0.55rem 1.5rem;
  border: 1px solid var(--olive-deep);
  background: var(--olive);
  color: var(--on-olive);
  cursor: pointer;
}
.form-button:hover { background: var(--olive-deep); }
.corr-notes {
  max-width: none;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.75em - 1px), var(--rule-soft) calc(1.75em - 1px), var(--rule-soft) 1.75em);
}
.corr-notes h2 { font-size: 2.1rem; margin-top: 1.75rem; }
.corr-notes h2:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .corr-columns { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 2.5rem; }
}

/* ---------- Thank you: single almanac column ---------- */
.almanac-confirm { padding-bottom: 4.5rem; }
.confirm-column { max-width: var(--measure); margin: 0 auto; padding-top: clamp(1.25rem, 4vw, 2.75rem); }
.confirm-title h1 { margin-bottom: 1.25rem; }
.double-rule { border: 0; border-top: 3px double var(--rule); margin: 0 0 2rem; }
.confirm-body h2:last-of-type { padding-top: 1rem; border-top: 1px solid var(--rule); }

/* ---------- Footer ---------- */
.site-footer { border-top: 3px double var(--rule); }
.footer-ledger {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
.footer-name { font-family: var(--tall); font-weight: 700; font-size: 1.9rem; line-height: 1; margin: 0; }
.footer-line { margin: 0; }

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