/* MailSequoia. Tokens, type and shapes are documented in ../../BRAND.md.
   One stylesheet, no framework, no third-party requests. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/assets/fonts/dm-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/assets/fonts/dm-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --fog: #EEF1EA;
  --paper: #FAFBF6;
  --needle: #103A2D;
  --needle-2: #1B5A45;
  --moss: #4D6359;
  --heartwood: #F2A58D;
  --heartwood-deep: #EC9478;
  --sapwood: #F8D8CB;
  --bark: #7C2A18;
  --lichen: #D9E667;
  --rule: #C5CFC2;

  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --wrap: 76rem;
  --measure: 35rem;
  --block: clamp(4rem, 9vw, 7.5rem);
}

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

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

body {
  margin: 0;
  background: var(--fog);
  color: var(--needle);
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--bark);
}
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible { outline: 3px solid var(--needle); outline-offset: 3px; border-radius: 3px; }
.dark :focus-visible { outline-color: var(--lichen); }

::selection { background: var(--lichen); color: var(--needle); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--needle); color: var(--fog); padding: 0.6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; }

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

/* ------------------------------------------------------------------ type */

h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; }

h1, h2, .display {
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(2.9rem, 7.4vw, 5.75rem); }
h2 { font-size: clamp(2.15rem, 4.7vw, 3.75rem); }
h3 { font-size: 1.5rem; font-stretch: 84%; font-weight: 700; line-height: 1.12; }
h4 { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
h1 + p, h2 + p, h2 + .lede { margin-top: 1.25rem; }

.lede { font-size: clamp(1.2rem, 1.85vw, 1.4375rem); line-height: 1.42; max-width: 36rem; }
.small { font-size: 0.9375rem; line-height: 1.5; }
.muted { color: var(--moss); }
.dark .muted { color: #B9CABF; }

code, kbd, .mono { font-family: var(--mono); font-size: 0.92em; }
p code, li code, td code {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 0.08em 0.36em;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- layout */

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.section { padding-block: var(--block); }
.section--flush-top { padding-top: 0; }
.dark { background: var(--needle); color: var(--fog); }
.dark a { text-decoration-color: var(--heartwood); }
.band-sap { background: var(--sapwood); }
.band-heart { background: var(--heartwood); }
.band-paper { background: var(--paper); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 46rem; }
.section-head p { margin-top: 1.25rem; }

/* ---------------------------------------------------------------- header */

.site-header { padding-block: 1.1rem; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.75rem;
  line-height: 1; letter-spacing: -0.01em; text-decoration: none;
}
.brand svg { width: 2.15rem; height: 2.15rem; flex: none; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); margin-left: auto; }
.nav a { font-weight: 500; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 0.12em; }
.nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-thickness: 0.16em; text-decoration-color: var(--heartwood-deep);
}

.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-weight: 600;
  border: 2px solid var(--needle); border-radius: 999px; padding: 0.4rem 1rem; min-height: 2.75rem;
  display: inline-flex; align-items: center;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--needle); color: var(--fog); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 10; width: min(19rem, 86vw);
  background: var(--paper); border: 2px solid var(--needle); border-radius: 14px; padding: 0.6rem;
  display: grid; gap: 0.1rem;
}
.menu-panel a { text-decoration: none; font-weight: 500; padding: 0.7rem 0.8rem; border-radius: 8px; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--fog); }
.menu-panel .btn { margin-top: 0.5rem; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3.1rem; padding: 0.7rem 1.45rem; border-radius: 999px;
  border: 2px solid var(--needle); background: var(--needle); color: var(--fog);
  font-weight: 650; font-size: 1.0625rem; line-height: 1.15; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--bark); border-color: var(--bark); color: var(--paper); }
.btn--small { min-height: 2.6rem; padding: 0.4rem 1.05rem; font-size: 1rem; }
.btn--ghost { background: transparent; color: var(--needle); }
.btn--ghost:hover { background: var(--needle); border-color: var(--needle); color: var(--fog); }
.btn--lichen { background: var(--lichen); border-color: var(--lichen); color: var(--needle); }
.btn--lichen:hover { background: var(--paper); border-color: var(--paper); color: var(--needle); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; margin-top: 2rem; }
.actions a:not(.btn) { font-weight: 600; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; overflow: clip; }
.hero-wrap {
  display: flex; align-items: center;
  min-height: calc(min(52vw, 47rem) + 3.5rem);
  padding-block: 1.5rem 3rem;
}
.hero-copy { position: relative; z-index: 2; width: min(100%, 36rem, 45vw); }
.hero h1 { font-size: clamp(3.3rem, 7.7vw, 7.1rem); line-height: 0.86; margin-bottom: 1.75rem; }
.hero .lede { max-width: 33rem; }

.slab {
  position: absolute; z-index: 1;
  width: min(52vw, 47rem); aspect-ratio: 1;
  top: 50%; right: max(-5vw, -4.5rem, calc((100vw - var(--wrap)) / 2 - 11.5rem)); transform: translateY(-50%);
  container-type: inline-size;
}
.slab-art { width: 100%; height: 100%; }
.slab-numbers { display: none; }
.slab-numbers circle { fill: var(--needle); stroke: var(--paper); stroke-width: 5; }
.slab-numbers text {
  fill: var(--paper); font-family: var(--display); font-weight: 800; font-size: 30px; text-anchor: middle;
}

.tag {
  position: absolute; width: 24.5%;
  background: var(--paper); border: 2px solid var(--needle); border-radius: 6px;
  padding: 0.5em 0.7em 0.6em; margin: 0;
  font-size: 0.82rem; font-size: clamp(0.7rem, 1.72cqw, 0.9rem); line-height: 1.28;
}
.tag strong { display: block; font-family: var(--display); font-stretch: 78%; font-weight: 800; font-size: 1.32em; line-height: 1.05; margin-bottom: 0.18em; }
.tag--tl { transform: translate(0, 0); }
.tag--tr { transform: translate(-100%, 0); }
.tag--bl { transform: translate(0, -100%); }
.tag--br { transform: translate(-100%, -100%); }

.legend { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .slab-art { animation: grow 1.5s cubic-bezier(0.2, 0.7, 0.15, 1) both; }
  .tag { animation: pin 0.45s ease-out both; }
  .tag--n1 { animation-delay: 0.55s; }
  .tag--n2 { animation-delay: 0.8s; }
  .tag--n3 { animation-delay: 1.05s; }
  .tag--n4 { animation-delay: 1.3s; }
  .tag--n5 { animation-delay: 1.55s; }
  .is-settled .slab-art, .is-settled .tag { animation: none; }
  @keyframes grow {
    from { clip-path: circle(0% at 46% 53%); }
    to { clip-path: circle(78% at 46% 53%); }
  }
  @keyframes pin {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media (max-width: 1000px) {
  .hero-wrap { display: block; min-height: 0; padding-bottom: 0; }
  .hero-copy { width: min(100%, 38rem); }
  .slab {
    position: relative; top: auto; right: auto; transform: none;
    width: min(100%, 46rem); margin: 2.5rem 0 3rem auto;
  }
}
@media (max-width: 700px) {
  .tag, .slab-leaders { display: none; }
  .slab-numbers { display: block; }
  .slab { width: 116%; margin: 2rem 0 0 var(--gutter); }
  .legend {
    display: grid; gap: 0.85rem; list-style: none; margin: 0; padding: 2rem 0 1rem; counter-reset: pin;
  }
  .legend li { position: relative; padding-left: 2.6rem; counter-increment: pin; line-height: 1.4; }
  .legend li::before {
    content: counter(pin); position: absolute; left: 0; top: 0.05rem;
    width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--needle); color: var(--paper);
    font-family: var(--display); font-weight: 800; font-size: 1rem; line-height: 1.8rem; text-align: center;
  }
  .legend strong { font-weight: 700; }
}

/* ---------------------------------------------------------- what you get */

.specs { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--needle); }
.specs li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0.6rem 3rem;
  align-items: baseline; padding-block: 1.55rem 1.7rem; border-top: 2px solid var(--needle);
}
.specs h3 { font-size: clamp(1.8rem, 3.1vw, 2.5rem); font-stretch: 75%; font-weight: 800; line-height: 1; }
.specs p { margin: 0; max-width: 37rem; font-size: 1.125rem; line-height: 1.55; }
@media (max-width: 720px) {
  .specs li { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------- the grove */

.grove-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.grove-copy p { margin-top: 1.4rem; }
.art { position: relative; margin: 0; }
.art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }

.trunk-tag {
  position: absolute; transform: translate(-50%, -50%) rotate(-2deg);
  background: var(--paper); color: var(--needle); border: 2px solid var(--needle); border-radius: 4px;
  font-family: var(--mono); font-weight: 500; font-size: clamp(0.72rem, 1.25vw, 0.95rem); line-height: 1;
  padding: 0.38em 0.55em 0.34em;
}
.trunk-tag::before {
  content: ""; position: absolute; left: 50%; top: -0.42em; width: 0.5em; height: 0.5em; margin-left: -0.25em;
  border-radius: 50%; background: var(--lichen); border: 2px solid var(--needle);
}
.trunk-tag.t1 { left: 12.5%; top: 47%; }
.trunk-tag.t2 { left: 33%; top: 38%; transform: translate(-50%, -50%) rotate(1.5deg); }
.trunk-tag.t3 { left: 60%; top: 52%; }
.trunk-tag.t4 { left: 80.5%; top: 41%; transform: translate(-50%, -50%) rotate(2deg); }
.trunk-tag.t5 { left: 92.5%; top: 55%; transform: translate(-50%, -50%) rotate(-1deg); }

@media (max-width: 860px) {
  .grove-grid { grid-template-columns: minmax(0, 1fr); }
  .grove-art { margin-inline: calc(-1 * var(--gutter)); }
  .grove-art img { border-radius: 0; }
}

/* ----------------------------------------------------------------- steps */

.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 2.75rem);
}
.steps li { counter-increment: step; border-top: 2px solid var(--needle); padding-top: 1rem; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 4.5rem; line-height: 0.95;
  color: var(--bark); margin-bottom: 0.9rem;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { margin: 0; }
.steps--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps, .steps--five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps, .steps--five { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------------- core sample */

.report-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.core-fig { margin: 0; }
.core {
  display: flex; height: clamp(4rem, 9vw, 6rem);
  background: var(--heartwood); border: 3px solid var(--bark); border-radius: 999px; overflow: hidden;
}
.core span { border-right: 3px solid var(--bark); flex-basis: 0; }
.core span:nth-child(odd) { background: var(--heartwood-deep); }
.core span:last-child { border-right: 0; background: var(--lichen); }
.core-days { display: flex; margin-top: 0.6rem; padding-inline: 3px; font-size: 0.875rem; color: var(--bark); font-weight: 600; }
.core-days span { flex-basis: 0; text-align: center; overflow: hidden; }
.w1 { flex-grow: 1; } .w2 { flex-grow: 2; } .w3 { flex-grow: 3; } .w4 { flex-grow: 4; }
.w5 { flex-grow: 5; } .w6 { flex-grow: 6; } .w7 { flex-grow: 7; } .w8 { flex-grow: 8; }
.core-fig figcaption { margin-top: 1.1rem; font-size: 0.9375rem; line-height: 1.45; color: var(--bark); max-width: 34rem; }
@media (max-width: 860px) { .report-grid { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------------------- rules */

.rules-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); }
.ringlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.ringlist li { position: relative; padding-left: 2.4rem; font-size: 1.25rem; line-height: 1.35; max-width: 34rem; }
.ringlist li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: radial-gradient(circle, var(--bark) 0 16%, var(--heartwood) 17% 42%, var(--bark) 43% 56%, var(--heartwood) 57% 100%);
  border: 2.5px solid var(--bark);
}
.ringlist--small li { font-size: 1.0625rem; line-height: 1.5; padding-left: 2.1rem; }
.ringlist--small li::before { width: 1.15rem; height: 1.15rem; top: 0.22em; }
@media (max-width: 860px) { .rules-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------- cta */

.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cta-grid h2 { font-size: clamp(2.6rem, 6.4vw, 5.25rem); }
.cta-grid p { margin-top: 1.4rem; font-size: 1.1875rem; line-height: 1.5; }
.round { margin: 0; justify-self: end; width: min(100%, 25rem); }
.round img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 0% 50%; border-radius: 50%; border: 6px solid var(--bark); }
.round--mailbox img { object-position: 78% 50%; }
@media (max-width: 860px) {
  .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .round { justify-self: start; width: min(78%, 20rem); }
}

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

.site-footer { padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 2.5rem 2rem; }
.footer-brand .brand { font-size: 2.1rem; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; }
.site-footer h2 {
  font-family: var(--text); font-stretch: 100%; font-weight: 700; font-size: 1rem; line-height: 1.4; letter-spacing: 0;
  margin-bottom: 0.7rem; color: var(--heartwood);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.25rem; border-top: 1px solid #2C5747;
  font-size: 0.9375rem; color: #B9CABF;
}
.footer-base p { margin: 0; max-width: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ page heads */

.page-head { position: relative; overflow: clip; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: min(12em, calc(100% - clamp(6rem, 21vw, 20rem) + var(--gutter))); }
.page-head .lede { margin-top: 1.6rem; }
.page-head::after {
  content: ""; position: absolute; top: 0; right: 0; z-index: 0;
  width: clamp(6rem, 21vw, 20rem); aspect-ratio: 1;
  border-radius: 0 0 0 100%;
  border-left: clamp(8px, 1.3vw, 18px) solid var(--bark); border-bottom: clamp(8px, 1.3vw, 18px) solid var(--bark);
  background:
    radial-gradient(circle farthest-side at 100% 0, transparent 0 94.5%, var(--lichen) 95% 100%),
    repeating-radial-gradient(circle farthest-side at 100% 0,
      var(--heartwood-deep) 0 5.4%, var(--bark) 5.5% 6%,
      var(--heartwood) 6.1% 9.4%, var(--bark) 9.5% 9.9%,
      var(--heartwood) 10% 16.2%, var(--bark) 16.3% 16.9%,
      var(--heartwood-deep) 17% 19%, var(--bark) 19.1% 19.5%);
}
.page-head--plain::after { display: none; }
.updated { margin-top: 1.25rem; color: var(--moss); font-size: 0.9375rem; }

/* ---------------------------------------------------------------- splits */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 2px solid var(--needle); }
.split:last-of-type { border-bottom: 2px solid var(--needle); }
.split h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.split-body > :not(:first-child) { margin-top: 1.1rem; }
.split-body p { margin-bottom: 0; }
.split .art { margin-top: 1.75rem; }
@media (max-width: 800px) { .split { grid-template-columns: minmax(0, 1fr); } }

.deflist { margin: 0; display: grid; gap: 0.9rem; max-width: 38rem; }
.deflist div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 0.25rem 1.25rem; }
.deflist dt { font-weight: 700; }
.deflist dd { margin: 0; }
@media (max-width: 520px) { .deflist div { grid-template-columns: minmax(0, 1fr); } }

.settings { border: 2px solid var(--needle); border-radius: 10px; background: var(--paper); max-width: 30rem; margin: 0; overflow: hidden; }
.settings div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.65rem 1rem; border-top: 1px solid var(--rule); }
.settings div:first-child { border-top: 0; }
.settings dt { font-weight: 600; color: var(--moss); }
.settings dd { margin: 0; font-family: var(--mono); font-size: 0.95rem; overflow-wrap: anywhere; }
.settings dd.plain { font-family: var(--text); font-size: 1rem; }

.plainlist { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.5rem; max-width: 37rem; }
.plainlist li::marker { color: var(--bark); }

/* ------------------------------------------------------------------ flow */

.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.lane { border: 2px solid var(--fog); border-radius: 14px; padding: 1.5rem 1.4rem 1.6rem; }
.lane h3 { margin-bottom: 1.1rem; }
.lane ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lane li { position: relative; padding: 0 0 1.5rem 1.7rem; }
.lane li:last-child { padding-bottom: 0; }
.lane li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--heartwood); }
.lane li::after { content: ""; position: absolute; left: calc(0.4rem - 1px); top: 1.35em; bottom: -0.25em; width: 2px; background: #3C6957; }
.lane li:last-child::after { display: none; }
.lane li:last-child::before { background: var(--lichen); }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- records */

.records { width: 100%; border-collapse: collapse; border: 2px solid var(--needle); background: var(--paper); border-radius: 10px; overflow: hidden; border-spacing: 0; }
.table-wrap { border: 2px solid var(--needle); border-radius: 10px; overflow: hidden; background: var(--paper); }
.table-wrap .records { border: 0; border-radius: 0; }
.records th, .records td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-top: 1px solid var(--rule); }
.records thead th { border-top: 0; background: var(--needle); color: var(--fog); font-weight: 600; font-size: 0.9375rem; }
.records td.mono { font-size: 0.9rem; overflow-wrap: anywhere; }
.records th[scope="row"] { font-weight: 700; white-space: nowrap; }
.records td.name { white-space: nowrap; }
.records .copy { margin-left: 0.5rem; }
@media (max-width: 760px) {
  .records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .records, .records tbody, .records tr, .records td, .records th { display: block; }
  .records tr { border-top: 2px solid var(--needle); padding: 0.7rem 0; }
  .records tr:first-child { border-top: 0; }
  .records th, .records td { border-top: 0; padding: 0.2rem 1rem; }
  .records td[data-label]::before { content: attr(data-label); display: block; font-family: var(--text); font-size: 0.8125rem; font-weight: 600; color: var(--moss); margin-top: 0.35rem; }
  .records th[scope="row"], .records td.name { white-space: normal; }
}

.code {
  position: relative; margin: 0; background: var(--needle); color: var(--fog); border-radius: 10px;
  padding: 1.1rem 1.25rem; font-family: var(--mono); font-size: 0.9rem; line-height: 1.7; overflow-x: auto;
}
.code code { font-size: inherit; white-space: pre; }
.code .out { color: var(--heartwood); }
.code-block { position: relative; }
.code-block .copy { position: absolute; top: 0.6rem; right: 0.6rem; background: var(--needle-2); color: var(--fog); border-color: var(--needle-2); }

.copy {
  font: inherit; font-family: var(--text); font-size: 0.8125rem; font-weight: 600; line-height: 1;
  border: 1.5px solid var(--needle); background: transparent; color: var(--needle);
  border-radius: 999px; padding: 0.32rem 0.65rem; cursor: pointer; vertical-align: middle;
}
.copy:hover { background: var(--needle); color: var(--fog); }
.code-block .copy:hover { background: var(--lichen); border-color: var(--lichen); color: var(--needle); }
.no-js .copy { display: none; }

/* ------------------------------------------------------------------ docs */

.docs-grid { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.toc { position: sticky; top: 1.5rem; border-top: 2px solid var(--needle); padding-top: 1rem; }
.toc h2 { font-family: var(--text); font-stretch: 100%; font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; margin-bottom: 0.6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}

.prose { max-width: 44rem; }
.prose > :not(:first-child) { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.prose > h2:not(:first-child) { margin-top: 3.25rem; }
.prose > h3:not(:first-child) { margin-top: 2.2rem; }
.prose p, .prose li { max-width: 40rem; }
.prose p { margin-bottom: 0; }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--bark); font-weight: 700; }
.prose > .table-wrap, .prose > .code-block, .prose > .settings, .prose > .note { margin-top: 1.4rem; }
.docs-grid .prose { max-width: 50rem; }

.note { border-left: 6px solid var(--heartwood-deep); background: var(--paper); padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; max-width: 40rem; }
.note p { margin: 0; }

/* ----------------------------------------------------------------- plans */

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--needle); border-radius: 18px; overflow: hidden; background: var(--paper); }
.tier { padding: clamp(1.5rem, 3vw, 2.4rem); border-left: 2px solid var(--needle); display: flex; flex-direction: column; }
.tier:first-child { border-left: 0; }
.tier svg { width: var(--ring, 4rem); height: var(--ring, 4rem); margin-bottom: 1.5rem; }
.tier--1 { --ring: 3.25rem; }
.tier--2 { --ring: 5rem; }
.tier--3 { --ring: 7rem; }
.tier-art { height: 7rem; display: flex; align-items: flex-end; margin-bottom: 1.5rem; }
.tier-art svg { margin: 0; }
.tier h2 { font-size: clamp(2.2rem, 4vw, 3.1rem); }
.tier .volume { font-weight: 700; margin: 0.9rem 0 0.6rem; font-size: 1.125rem; line-height: 1.35; }
.tier p { margin-bottom: 0; }
.tier .btn { margin-top: 1.75rem; align-self: flex-start; }
.tier .push { flex: 1; }
@media (max-width: 860px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier { border-left: 0; border-top: 2px solid var(--needle); }
  .tier:first-child { border-top: 0; }
  .tier-art { height: auto; }
}

.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

.faq { border-bottom: 2px solid var(--needle); max-width: 44rem; }
.faq details { border-top: 2px solid var(--needle); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-family: var(--display); font-stretch: 84%; font-weight: 700; font-size: 1.3125rem; line-height: 1.2; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-52%); font-size: 1.75rem; font-weight: 500; color: var(--bark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.3rem; }

/* --------------------------------------------------------------- contact */

.contact-list { display: grid; gap: 0; border-bottom: 2px solid var(--needle); }
.contact-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 0.75rem 2.5rem; align-items: start; padding-block: 1.7rem; border-top: 2px solid var(--needle); }
.contact-row h2 { font-size: clamp(1.8rem, 3.1vw, 2.5rem); }
.contact-row p { margin: 0; }
.contact-row .addr { font-weight: 700; font-size: 1.125rem; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-row { grid-template-columns: minmax(0, 1fr); } }

.bigmail { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: clamp(1.9rem, 5.6vw, 4rem); line-height: 1; overflow-wrap: anywhere; text-decoration-thickness: 0.07em; text-underline-offset: 0.14em; }

/* ------------------------------------------------------------------- 404 */

.lost { text-align: left; }
.lost .cta-grid { align-items: center; }

/* hero label positions, generated by build.py from src/slab.py */
.tag--core{left:58.4%;top:61.8%}.tag--signed{left:26.2%;top:38.8%}.tag--bounce{left:33.8%;top:81.8%}.tag--reply{left:35.2%;top:12.0%}.tag--today{left:14.6%;top:58.2%}
