/* Site chrome: header, menus, page hero paper, cover band, footer, newsletter. */

/* ---------- The site ---------- */
.site { container: site / inline-size; position: relative; overflow-x: clip; background: var(--parchment-50); color: var(--ink); font-size: 16px; line-height: 1.6; }
/* The gutter, and the red margin line: one position and shade for the page and
   the phone menu (which sits outside .site), so they line up. On phones the
   line sits about 12px clear of the words. */
.site, .mnav { --g: clamp(24px, 5cqi, 40px); --mx: max(10px, var(--g) * 0.42, (100% - 1180px) / 2 + var(--g) - 72px); --mx-o: 0.45; }

/* Header */
.sh { position: sticky; top: 0; z-index: 20; background: transparent; transition: background-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease); }
.sh.is-scrolled { background: var(--parchment-50); box-shadow: 0 1px 0 rgba(31, 42, 36, 0.14); }
.sh-in { max-width: 1180px; margin-inline: auto; padding-inline: var(--g); height: 64px; display: flex; align-items: center; gap: 12px; }
.sl { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 21px; color: var(--forest); font-variation-settings: "SOFT" 100; text-decoration: none; white-space: nowrap; min-height: 44px; transform-origin: 0 50%; transition: transform var(--t-hover) var(--ease); }
.sl svg { width: 24px; height: 25px; fill: var(--forest); }
/* The header logo: the sprout beside the name on two lines, every word the same size. */
.sl-two { font-size: 20px; gap: 8px; }
.sl-two svg { width: 1.72em; height: 1.76em; }
.sl-name { display: grid; line-height: 1.06; }
.sh.is-scrolled .sl { transform: scale(0.94); }
.nav { display: none; align-items: center; gap: 2px; margin-left: 18px; }
.nl { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 0; background: none; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--forest); text-decoration: none; white-space: nowrap; }
.nl span { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nl:hover span { text-decoration-color: var(--clay); text-decoration-style: wavy; }
.nl[aria-current] span { text-decoration-color: var(--clay); text-decoration-style: solid; }
.nl[aria-expanded="true"] span { text-decoration-color: var(--clay); text-decoration-style: wavy; }
.nl .chev { width: 16px; height: 16px; transition: transform var(--t-hover) var(--ease); }
.nl[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nl.is-focus { outline: 3px solid var(--clay-ink); outline-offset: 2px; }
.sh-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nl-quiet { display: none; }
.menu-btn { width: 44px; min-height: 44px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.skip { position: absolute; left: var(--g); top: -64px; z-index: 60; }
.skip:focus-visible, .skip.is-shown { top: 10px; }
@container site (max-width: 400px) {
  .sh-in { gap: 8px; }
  .sl { font-size: 19px; gap: 7px; }
  .sl:not(.sl-two) svg { width: 21px; height: 22px; }
  .sh-cta { gap: 8px; }
  .sh-cta .btn-sm { padding-inline: 13px; }
}
@container site (min-width: 900px) {
  .sh-in { height: 76px; }
  .sl-two { font-size: 25px; gap: 10px; }
  .nav { display: flex; }
  .nl-quiet { display: inline-flex; }
  .sh .menu-btn { display: none; }
}

/* Dropdowns */
.dd { position: relative; }
.ddp { position: absolute; top: calc(100% + 10px); left: -8px; z-index: 30; background: var(--parchment-50); border: 1.5px solid var(--forest); border-radius: var(--r-panel); box-shadow: 5px 5px 0 var(--parchment-100), 0 18px 40px -24px rgba(31, 42, 36, 0.35); padding: 8px; }
/* An invisible bridge over the gap under the button, so moving the mouse
   down into an open menu doesn't leave it. */
.ddp::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.ddp ul { list-style: none; display: grid; gap: 2px; }
.ddp-tools { width: 360px; }
.ddp-guides { width: 620px; }
.ddp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ddp-h { font-size: 13px; font-weight: 600; color: var(--clay-ink); padding: 10px 12px 4px; }
.ddp-more { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 2px 0 0 12px; font-size: 14px; font-weight: 600; color: var(--clay-ink); text-decoration: none; }
.ddp-more svg { width: 16px; height: 16px; }
.ddp-more:hover { text-decoration: underline wavy; text-underline-offset: 4px; }
.ddi { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background-color var(--t-hover) var(--ease); }
.ddi:hover { background: var(--parchment); }
.ddi-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--parchment); border: 1.5px solid var(--parchment-100); display: grid; place-items: center; }
.ddi-ic svg { width: 18px; height: 18px; color: var(--forest); }
.ddi:hover .ddi-ic { background: var(--parchment-50); }
.ddi b { display: block; font-size: 15px; font-weight: 600; color: var(--forest); line-height: 1.3; }
.ddi b + span { display: block; font-size: 14px; color: var(--ash-600); line-height: 1.4; margin-top: 2px; }
.ddp-foot { display: flex; align-items: center; gap: 6px; margin: 6px 4px 2px; padding: 10px 8px 4px; border-top: 1.5px dashed var(--stone); font-size: 14px; font-weight: 600; color: var(--clay-ink); text-decoration: none; }
.ddp-foot svg { width: 16px; height: 16px; }
.ddp-foot:hover { text-decoration: underline wavy; text-underline-offset: 4px; }

/* Phone menu */
.mnav { position: fixed; inset: 64px 0 0 0; z-index: 35; overflow: auto; background: var(--parchment-50); border-top: 1px solid rgba(31, 42, 36, 0.14); padding: 6px var(--g) 24px; display: grid; align-content: start; }
.mnav::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--mx); width: 2px; background: var(--clay); opacity: var(--mx-o); }
.mg { border-bottom: 1.5px dashed var(--stone); }
.mg > button, .mlink { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0; border: 0; background: none; font-family: var(--serif); font-weight: 560; font-size: 22px; color: var(--forest); font-variation-settings: "SOFT" 100, "WONK" 1; text-decoration: none; text-align: left; }
.mlink { border-bottom: 1.5px dashed var(--stone); }
.mg > button .chev { width: 20px; height: 20px; transition: transform var(--t-hover) var(--ease); }
.mg > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mg ul { list-style: none; display: grid; padding-bottom: 12px; }
.mg li a { display: flex; align-items: center; gap: 12px; min-height: 46px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; }
.mg li a svg { width: 18px; height: 18px; color: var(--forest); }
.mg .mg-sub { font-size: 13px; font-weight: 600; color: var(--clay-ink); padding-top: 8px; }
.mg li a.mg-more { color: var(--clay-ink); font-size: 15px; font-weight: 600; min-height: 44px; }
.mg li a.mg-more svg { color: var(--clay-ink); width: 16px; height: 16px; }
.macts { display: grid; gap: 12px; padding-top: 22px; }
@media (min-width: 900px) { .mnav { display: none !important; } }

/* Page stub */
.pg { outline: none; }
.pg-hero { position: relative; isolation: isolate; margin-top: -64px; padding: 96px 0 56px; }
.pg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--line) 35px 36px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 97%); mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 97%); }
.pg-hero::after { content: ""; position: absolute; top: 0; bottom: 6%; left: var(--mx); width: 2px; z-index: -1; background: var(--clay); opacity: var(--mx-o); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%); }
.pg-in { max-width: 1180px; margin-inline: auto; padding-inline: var(--g); display: grid; gap: 32px; align-items: center; }
.pg-copy { display: grid; gap: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ash-600); }
/* The links reach past their words (to 44px) without moving anything. */
.crumbs a { padding: 11px 7px; margin: -11px -7px; color: var(--forest); text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 4px; }
.pg h1 { font-family: var(--serif); font-weight: 580; font-size: clamp(2.25rem, 1.6rem + 2.6cqi, 3.5rem); line-height: 1.05; letter-spacing: -0.018em; color: var(--forest); font-variation-settings: "SOFT" 100, "WONK" 1; }
.pg-lede { font-size: clamp(1.0625rem, 1rem + 0.4cqi, 1.25rem); color: var(--ash-600); max-width: 42ch; line-height: 1.55; }
.pg-card .icard { transform: rotate(-0.8deg); box-shadow: var(--shadow-lift); }
.pg-card .t-prompt { font-size: clamp(1.25rem, 1.1rem + 0.8cqi, 1.625rem); }
.pg-body { max-width: 680px; margin-inline: auto; padding: 8px var(--g) 64px; display: grid; gap: 14px; box-sizing: content-box; }
.pg-body h2 { font-family: var(--serif); font-weight: 560; font-size: clamp(1.5rem, 1.3rem + 1cqi, 2rem); line-height: 1.15; color: var(--forest); font-variation-settings: "SOFT" 100, "WONK" 1; margin-top: 18px; }
.pg-body p { font-size: clamp(1rem, 0.95rem + 0.25cqi, 1.125rem); line-height: 1.65; }
.pg-body a { color: var(--forest); font-weight: 500; text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pg-body a:hover { text-decoration-style: wavy; }
@container site (min-width: 900px) {
  .pg-hero { margin-top: -76px; padding: 124px 0 72px; }
  .pg-in { grid-template-columns: 1fr 0.95fr; }
}

/* Cover band */
.sc { position: relative; overflow: hidden; background: var(--forest-deep); color: var(--parchment-50); }
.sc-stamp { position: absolute; right: calc(max(0px, (100% - 1180px) / 2) - 30px); bottom: -40px; width: clamp(150px, 26cqi, 270px); height: clamp(154px, 26.6cqi, 277px); fill: var(--stamp); }
.sc-in { position: relative; max-width: 1180px; margin-inline: auto; padding: clamp(44px, 7cqi, 80px) var(--g); display: grid; gap: 16px; justify-items: start; }
.sc h2 { font-family: var(--serif); font-weight: 560; font-size: clamp(1.875rem, 1.4rem + 2.6cqi, 3.125rem); line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; max-width: 16ch; }
.sc p { color: var(--cover-text); max-width: 46ch; font-size: clamp(1.0625rem, 1rem + 0.3cqi, 1.1875rem); line-height: 1.55; }
.sc .btn:focus-visible::after { border-color: var(--butter); }

/* Footer */
.sf { background: var(--parchment); border-top: 1px solid var(--parchment-100); }
.sf-in { max-width: 1180px; margin-inline: auto; padding: 52px var(--g) 28px; display: grid; gap: 36px; }
.sf-top { display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; }
.sf-brand { grid-column: 1 / -1; display: grid; gap: 14px; align-content: start; max-width: 460px; }
.sf-brand .nf { margin-top: 12px; gap: 8px; }
.sf-line { font-size: 15px; color: var(--ash-600); max-width: 36ch; }
.sf-col h2 { font-size: 14px; font-weight: 600; color: var(--clay-ink); margin-bottom: 8px; }
.sf-col ul { list-style: none; display: grid; }
.sf-col a { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--forest); text-decoration: none; }
.sf-col a:hover { text-decoration: underline wavy var(--clay); text-underline-offset: 5px; }
.sf-base { display: grid; gap: 8px; padding-top: 20px; border-top: 1.5px dashed var(--stone); font-size: 13px; color: var(--ash-600); line-height: 1.5; }
.sf-base p { max-width: 90ch; }
.sf-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 4px; }
.sf-legal a, .sf-legal button { display: inline-flex; align-items: center; min-height: 36px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--forest); text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 4px; cursor: pointer; }
.sf-legal a:hover, .sf-legal button:hover { text-decoration-style: wavy; }
@container site (min-width: 900px) {
  /* The brand column gets room for the sign-up, and clear space before the links. */
  .sf-top { grid-template-columns: minmax(0, 1.9fr) 1fr 1fr 0.8fr; column-gap: 40px; }
  .sf-brand { grid-column: auto; padding-right: clamp(16px, 4cqi, 56px); }
}

/* Newsletter */
.nf { display: grid; gap: 6px; }
.nf-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nf-row .input { flex: 1 1 160px; width: auto; min-width: 0; }
.nf-row .btn { flex: none; }
/* Turnstile: takes no room unless it asks for a click. */
.ts-box.is-asking { margin-block: 4px 6px; }
.nf-done .ok { padding: 12px 14px; border-radius: 12px; background: var(--note-info); border: 1.5px solid var(--moss); }

/* Phone menu open: the page behind stays still, and the header carries the
   margin line down into the menu whether or not the page has scrolled. */
@media (max-width: 899px) {
    html.menu-open { overflow: hidden; }
    html.menu-open .sh { background: var(--parchment-50); }
    html.menu-open .sh::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--mx); width: 2px; background: var(--clay); opacity: var(--mx-o); pointer-events: none; }
}
