@font-face { font-family: 'Averia Sans Libre'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/averia-sans-libre-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Averia Sans Libre'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/averia-sans-libre-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Averia Sans Libre'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/averia-sans-libre-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Averia Sans Libre'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/averia-sans-libre-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Averia Sans Libre'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/averia-sans-libre-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Averia Sans Libre'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/averia-sans-libre-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Merriweather Sans'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/merriweather-sans-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Merriweather Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/merriweather-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Merriweather Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/merriweather-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Merriweather Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/merriweather-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Merriweather Sans'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/merriweather-sans-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Merriweather Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/merriweather-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Merriweather Sans'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/merriweather-sans-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Merriweather Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/merriweather-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Merriweather Sans'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/merriweather-sans-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Merriweather Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/merriweather-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Merriweather Sans'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/merriweather-sans-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Merriweather Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/merriweather-sans-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #ebe9e2;
  --fg-light-base-body: #22251c;
  --fg-light-base-heading: #22251c;
  --fg-light-base-muted: #50534a;
  --fg-light-base-link: #44620c;
  --fg-light-base-inverse: #22251c;
  --bg-light-card: #f6f5f1;
  --fg-light-card-body: #22251c;
  --fg-light-card-heading: #22251c;
  --fg-light-card-muted: #50534a;
  --fg-light-card-link: #44620c;
  --fg-light-card-inverse: #22251c;
  --bg-light-elevated: #dcdbd1;
  --fg-light-elevated-body: #22251c;
  --fg-light-elevated-heading: #22251c;
  --fg-light-elevated-muted: #50534a;
  --fg-light-elevated-link: #44620c;
  --fg-light-elevated-inverse: #22251c;
  --brand-light-accent: #44620c;
  --brand-light-accent-hover: #34500a;
  --brand-light-on-accent: #f6f5f1;
  --focus-light-ring: #44620c;
  --focus-ring: var(--focus-light-ring);
  --border-light-default: #6c6f61;
  --border-light-subtle: #c9c8bc;
}
.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); }

:root {
  --stone: var(--bg-light-base);
  --sheet: var(--bg-light-card);
  --slate: var(--bg-light-elevated);
  --olive: var(--brand-light-accent);
  --olive-deep: var(--brand-light-accent-hover);
  --on-olive: var(--brand-light-on-accent);
  --lime: #9ccf3a;
  --lime-wash: #dbeab4;
  --ink-dark: #22251c;
  --line: var(--border-light-default);
  --line-soft: var(--border-light-subtle);
  --head: 'Averia Sans Libre', 'Trebuchet MS', sans-serif;
  --text: 'Merriweather Sans', 'Segoe UI', sans-serif;
  --gutter: clamp(1rem, 4vw, 2.25rem);
  --frame: 72rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6.5rem; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  color: var(--fg-heading);
  line-height: 1.18;
  text-wrap: balance;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line-soft);
}

.header-row {
  position: relative;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.brand .site-logo { width: 2.5rem; height: 2.5rem; flex: none; }

.brand-name {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
}

.brand:hover .brand-name { color: var(--olive-deep); }

.header-track {
  height: 4px;
  background: var(--line-soft);
}

.header-track span {
  display: block;
  width: 33%;
  height: 100%;
  background: var(--lime);
}

/* Desktop nav: renderer's nav.site-nav with optional group disclosures */

.site-nav { display: none; }

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav > ul > li { position: relative; }

.site-nav a,
.site-nav summary {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow-wrap: normal;
  color: var(--fg-heading);
  text-decoration: none;
}

.site-nav summary { cursor: pointer; list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }

.site-nav summary::after {
  content: "\25BE";
  margin-left: 0.4rem;
  color: var(--olive);
}

.site-nav a:hover,
.site-nav summary:hover,
.site-nav a:focus-visible,
.site-nav summary:focus-visible {
  background: var(--lime-wash);
  color: var(--ink-dark);
}

.site-nav-group[open] > summary { background: var(--lime-wash); color: var(--ink-dark); }

.site-nav-group > ul {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 16rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--sheet);
  border: 1px solid var(--line-soft);
  border-top: 4px solid var(--lime);
  border-radius: 0 0 0.75rem 0.75rem;
  box-shadow: 0 18px 30px -22px var(--line);
}

.site-nav-group > ul a { border-radius: 0.5rem; white-space: normal; }

/* Phone menu: the renderer's details toggle */

.site-menu { flex: none; }

.site-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-menu > summary:hover { background: var(--lime-wash); color: var(--ink-dark); }

.menu-icon {
  position: relative;
  display: inline-block;
  width: 1rem;
  height: 0.7rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  border-top: 2px solid currentColor;
}

.site-menu[open] > summary { background: var(--lime-wash); color: var(--ink-dark); }

.site-menu > ul {
  margin: 0;
  padding: 0.75rem var(--gutter) 1.25rem;
  list-style: none;
}

.site-menu[open] > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--sheet);
  border-top: 4px solid var(--lime);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 28px -22px var(--line);
}

.site-menu li { border-bottom: 1px solid var(--line-soft); }
.site-menu li:last-child { border-bottom: 0; }
.site-menu li ul { list-style: none; padding-left: 1rem; }

.site-menu a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 600;
  text-decoration: none;
}

.site-menu a:hover { color: var(--olive-deep); text-decoration: underline; }

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

/* ---------- Links ---------- */

.text-role-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.text-role-link:hover {
  color: var(--olive-deep);
  text-decoration-thickness: 2px;
}

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

.page-frame {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.breadcrumbs li + li::before {
  content: "\203A";
  margin-right: 0.55rem;
  color: var(--olive);
}

.page-head { padding-top: clamp(1.5rem, 4vw, 2.75rem); }

.page-title h1,
.cover-title h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  max-width: 22ch;
}

/* ---------- Diagrams ---------- */

svg g, svg path, svg rect, svg circle, svg ellipse { vector-effect: non-scaling-stroke; }
.diagram, .sessions, .body-outline, .tape-line, .icon, .first-step-icon { display: block; max-width: 100%; height: auto; }
.ink { fill: none; stroke: var(--fg-heading); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ink-soft { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; }
.ink.bulb { fill: var(--sheet); }
.accent { fill: none; stroke: var(--olive); stroke-width: 2.25; stroke-linecap: round; }
.dashed { stroke-dasharray: 3 5; }
.lime { fill: var(--lime); stroke: none; }
.beam { fill: var(--lime); opacity: 0.55; }
.track { fill: none; stroke: var(--olive); stroke-width: 3; stroke-linecap: round; }
.ink.bar { fill: var(--lime-wash); }
.ink.ticks { stroke-width: 1.5; }

/* ---------- Stepped prose: lime progress track with numbered stages ---------- */

.prose { max-width: 42rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--olive); }
.prose h3 { font-size: 1.2rem; margin: 2rem 0 0.6rem; }

.step-prose {
  counter-reset: stage;
  position: relative;
  padding-left: 3.1rem;
  margin-top: 2rem;
}

.step-prose::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--lime), var(--lime)) top / 100% 2.6rem no-repeat, var(--line-soft);
}

.step-prose h2 {
  counter-increment: stage;
  position: relative;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin: 2.6rem 0 0.8rem;
}

.step-prose h2::before {
  content: counter(stage);
  position: absolute;
  left: -3.1rem;
  top: -0.15rem;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink-dark);
  font-size: 1.05rem;
  line-height: 1;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: var(--sheet);
  border-radius: 0.6rem;
  overflow: hidden;
}

.prose th {
  text-align: left;
  font-family: var(--head);
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  border-bottom: 3px solid var(--lime);
}

.prose td { padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1.1rem;
  background: var(--sheet);
  border-left: 4px solid var(--lime);
  border-radius: 0 0.6rem 0.6rem 0;
}

.prose figure { margin: 1.8rem 0; }

.prose .photo-hero img,
.prose .photo-inline img {
  display: block;
  width: 100%;
  border-radius: 1rem;
}

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

/* ---------- Home: stepped panels ---------- */

.cover { padding-top: clamp(1.75rem, 5vw, 3.25rem); max-width: 46rem; }

.cover-title h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); max-width: 18ch; }

.cover-lines { margin-top: 1.25rem; }

.display-line {
  margin: 0 0 0.7rem;
  padding-left: 1rem;
  border-left: 4px solid var(--lime);
  font-size: 1.06rem;
  line-height: 1.6;
}

.step-panels {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.step-panel {
  position: relative;
  padding: 1.25rem 1.25rem 1rem 4rem;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
}

.step-no {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink-dark);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.step-panel .diagram { width: 100%; max-width: 14rem; }

.step-cap {
  margin: 0.5rem 0 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.02rem;
}

@media (min-width: 760px) {
  .step-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 1.5rem;
  }
  .step-panel { padding: 3.5rem 1.25rem 1.1rem; }
  .step-panel:nth-child(2) { margin-top: 3rem; }
  .step-panel:nth-child(3) { margin-top: 6rem; }
  .step-panel:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.07rem;
    left: 3.4rem;
    right: -1.5rem;
    border-top: 3px dotted var(--olive);
  }
}

.home-prose { margin-top: 3rem; }

/* ---------- Topic hub ---------- */

.icon-strip { display: flex; gap: 0.6rem; margin-bottom: 1rem; }

.icon-strip .icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.35rem;
  border-radius: 0.7rem;
  background: var(--sheet);
  border: 1px solid var(--line-soft);
}

.hub-items { max-width: 42rem; margin-top: 2.25rem; padding-left: 3.1rem; }

.hub-items ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 3px solid var(--lime);
}

.hub-items li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  border-bottom: 1px solid var(--line-soft);
}

.hub-items li::before {
  content: "\2713";
  position: absolute;
  left: 0.1rem;
  top: 0.78rem;
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--olive);
  border-radius: 0.3rem;
  color: var(--olive);
  font-size: 0.8rem;
  line-height: 1;
}

/* ---------- Article ---------- */

.article-guide .page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: end;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}

.sessions { width: 100%; max-width: 15rem; }

@media (min-width: 860px) {
  .article-guide .page-head { grid-template-columns: minmax(0, 1fr) 15rem; }
}

/* ---------- About ---------- */

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

.body-outline { width: 7rem; margin-top: 1.5rem; }

@media (min-width: 860px) {
  .about-split { grid-template-columns: 10rem minmax(0, 42rem); column-gap: 3rem; align-items: start; }
  .body-outline { width: 100%; position: sticky; top: 6rem; }
}

/* ---------- Contact ---------- */

.contact-guide { max-width: 42rem; padding-top: clamp(1.5rem, 4vw, 2.75rem); }

.tape-line { width: 13rem; margin-bottom: 1rem; }

.contact-guide .prose { margin-top: 1.25rem; }

.guide-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 1.25rem;
  margin-top: 2rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--line-soft);
  border-top: 4px solid var(--lime);
  border-radius: 1rem;
}

@media (min-width: 560px) {
  .guide-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-full { grid-column: 1 / -1; }

.field label { font-weight: 700; font-size: 0.92rem; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--fg-body);
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.6rem 0.7rem;
}

.field textarea { resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 1px; border-color: var(--olive); }

.form-button {
  font: inherit;
  font-weight: 700;
  color: var(--on-olive);
  background: var(--olive);
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  cursor: pointer;
}

.form-button:hover { background: var(--olive-deep); color: var(--on-olive); }

/* ---------- Thank you ---------- */

.next-steps { position: relative; max-width: 42rem; }

.first-step-icon {
  position: absolute;
  left: -0.05rem;
  top: 1.9rem;
  width: 2.25rem;
  z-index: 1;
}

.next-steps .step-prose > :first-child { padding-top: 0.2rem; min-height: 2.5rem; }

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

.site-footer { border-top: 4px solid var(--lime); }

.footer-row {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.footer-brand { font-family: var(--head); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.footer-brand:hover { color: var(--olive-deep); text-decoration: underline; }
.footer-line { margin: 0; font-size: 0.92rem; }

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