/* Marram — site styles.
   A field guide to a grass: paper, ink, specimens, roots.
   No external requests: fonts are self-hosted (see fonts/), nothing is fetched at runtime. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/caveat-latin-500-normal.woff2') format('woff2');
}

:root {
  --paper: #f6f2e9;
  --card: #fdfcf8;
  --line: #e4dcca;
  --ink: #292420;
  --ink2: #6d6557;
  --muted: #766d5a;
  --spruce: #2c5d52;
  --spruce-deep: #1e463d;
  --tint: #dce9e1;
  --lime: #66732b;
  --sand: #e9dcc0;
  --soil: #d5c098;
  --dune-far: #efe6d2;
  --dune-near: #e6d9bd;
  --blade: #5f8a73;
  --blade-back: #93b39d;
  --blade-back-edge: #5b8672;
  --blade-edge: #2c5d52;
  --straw: #d8c690;
  --straw-edge: #a28b52;
  --sheath: #e7ddc2;
  --seed: #dcc891;
  --seed-edge: #9c8650;
  --seed-dark: #c4aa68;
  --root: #7a6648;
  --root-light: #d9caa8;
  --shadow: rgba(41, 36, 32, 0.16);
  --grain: 0.5;

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #201d18;
    --card: #2b2721;
    --line: #3b352b;
    --ink: #efeae0;
    --ink2: #a79f91;
    --muted: #a0978a;
    --spruce: #6fb3a0;
    --spruce-deep: #a9d6c8;
    --tint: #2a3b34;
    --lime: #c9d794;
    --sand: #2a251e;
    --soil: #33291f;
    --dune-far: #2a251e;
    --dune-near: #322b22;
    --blade: #6f9a85;
    --blade-back: #4a6c5d;
    --blade-back-edge: #7da894;
    --blade-edge: #a9d6c8;
    --straw: #b9a56d;
    --straw-edge: #d8c690;
    --sheath: #4a4235;
    --seed: #b9a56d;
    --seed-edge: #e0cf9a;
    --seed-dark: #9e8a52;
    --root: #b8a37e;
    --root-light: #5a4d3a;
    --shadow: rgba(0, 0, 0, 0.5);
    --grain: 0.35;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* paper grain, one tiny tile, painted once */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  /* plain alpha noise: no blend mode, so the browser never has to read back the page under it */
  opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .22  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-color-scheme: dark) {
  body::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .95  0 0 0 0 .92  0 0 0 0 .86  0 0 0 .1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--spruce);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--spruce);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- little type kit ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hand {
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  line-height: 1.15;
  color: var(--ink2);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 0.98;
}
h1 em,
h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--spruce);
}
.lede {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.32;
  color: var(--ink2);
  max-width: 34ch;
}
.plain {
  color: var(--ink2);
  max-width: 46ch;
}

/* ---------- top bar ---------- */
.top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #e3eda5, #a8c98f 45%, #4e8574 78%, #2c5d52);
  box-shadow: 0 0 0 1px rgba(44, 93, 82, 0.25);
}
.top nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  font-size: 0.93rem;
}
.top nav a {
  text-decoration: none;
  color: var(--ink2);
}
.top nav a:hover {
  color: var(--ink);
}
.top nav .get {
  color: var(--paper);
  background: var(--spruce);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.top nav .get:hover {
  background: var(--spruce-deep);
  color: var(--paper);
}
@media (max-width: 640px) {
  .top nav a:not(.get) {
    display: none;
  }
}

/* ---------- hero: plate I ---------- */
.hero {
  position: relative;
  padding-block: clamp(24px, 5vw, 56px) clamp(40px, 7vw, 90px);
}
.contours {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  width: 100%;
  z-index: 0;
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.8;
  opacity: 0.1;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%);
  mask-image: linear-gradient(to bottom, transparent, #000 38%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(3.1rem, 8.1vw, 7.6rem);
  line-height: 1.07;
  margin-block: 14px 26px;
}
.hero .lede {
  margin-bottom: 30px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}
.store-badge {
  display: inline-block;
  line-height: 0;
  padding: 6px;
}
.store-badge img {
  display: block;
  height: 54px;
  width: auto;
}
.cta-note {
  transform: rotate(-3deg);
  max-width: 17ch;
}
.try-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--spruce);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
}

.plate {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}
.plate svg.art {
  width: 100%;
  height: auto;
  overflow: visible;
}
.plate .legend {
  list-style: none;
  margin-top: 6px;
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink2);
}
.plate .legend li {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: start;
}
.plate .legend b {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--spruce);
}
.plate figcaption {
  margin-top: 14px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 1.02rem;
}

/* the grass: each blade is a lit half, a shaded half, veins, and sometimes a dry tip */
.bl {
  transform-box: view-box;
  transform-origin: 235px 575px;
}
.bl .b {
  fill: var(--blade);
  stroke: var(--blade-edge);
  stroke-width: 0.8;
  stroke-linejoin: round;
}
.bl .s {
  fill: var(--blade-edge);
  opacity: 0.2;
}
.bl .v {
  fill: none;
  stroke: var(--blade-edge);
  stroke-width: 0.45;
  opacity: 0.42;
}
.bl .t {
  fill: var(--straw);
  opacity: 0.72;
}
.bl.back .b {
  fill: var(--blade-back);
  stroke: var(--blade-back-edge);
  stroke-width: 0.6;
}
.bl.back .s {
  opacity: 0.1;
}
.bl.back .v {
  opacity: 0.25;
  stroke: var(--blade-back-edge);
}
.bl.dead .b {
  fill: var(--straw);
  stroke: var(--straw-edge);
  stroke-width: 0.7;
}
.bl.dead .s {
  fill: var(--straw-edge);
  opacity: 0.25;
}
.bl.dead .v {
  stroke: var(--straw-edge);
  opacity: 0.5;
}
.sheath path {
  fill: var(--sheath);
  stroke: var(--blade-edge);
  stroke-width: 0.6;
  stroke-linejoin: round;
}
.sheath-lines {
  fill: none;
  stroke: var(--blade-edge);
  stroke-width: 0.5;
  opacity: 0.35;
}
.sp .culm {
  fill: var(--blade-edge);
  opacity: 0.85;
}
.sp .nodes {
  fill: none;
  stroke: var(--blade-edge);
  stroke-width: 1;
}
.sp .flag .b {
  fill: var(--blade);
  stroke: var(--blade-edge);
  stroke-width: 0.6;
}
.sp .flag .s {
  fill: var(--blade-edge);
  opacity: 0.2;
}
.panicle .g1 {
  fill: var(--seed);
  stroke: var(--seed-edge);
  stroke-width: 0.4;
  stroke-linejoin: round;
}
.panicle .g2 {
  fill: var(--seed-dark);
  stroke: var(--seed-edge);
  stroke-width: 0.4;
  stroke-linejoin: round;
}
.awns {
  fill: none;
  stroke: var(--seed-edge);
  stroke-width: 0.5;
  opacity: 0.7;
}
.hatch {
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.6;
  opacity: 0.32;
}
.ripples {
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.5;
  opacity: 0.2;
}
.stipple {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.3;
}
.rhizome .rz {
  fill: var(--root);
  stroke: var(--root);
  stroke-width: 0.3;
  stroke-linejoin: round;
}
.rhizome .rz-nodes {
  fill: var(--root-light);
  stroke: var(--root);
  stroke-width: 0.8;
  stroke-linejoin: round;
}
.rhizome .rz-hairs {
  fill: none;
  stroke: var(--root);
  stroke-width: 0.6;
  stroke-linecap: round;
  opacity: 0.75;
}
.young .b {
  fill: var(--blade);
  stroke: var(--blade-edge);
  stroke-width: 0.6;
}
.young .s {
  fill: var(--blade-edge);
  opacity: 0.2;
}
.ground-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.1;
  stroke-dasharray: 1 5;
  stroke-linecap: round;
  opacity: 0.55;
}
.pin-ring {
  fill: none;
  stroke: var(--spruce);
  stroke-width: 1.3;
}
.pin-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  fill: var(--spruce);
}
.hairline {
  fill: none;
  stroke: var(--spruce);
  stroke-width: 1;
  opacity: 0.8;
}
.orb-g {
  transform-box: fill-box;
  transform-origin: center;
  animation: breathe 12s ease-in-out infinite;
}
@keyframes breathe {
  0% {
    transform: scale(1);
  }
  33.3% {
    transform: scale(1.14);
  }
  50% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(calc(var(--i) * 0.07deg - 0.5deg));
  }
  50% {
    transform: rotate(calc(var(--i) * -0.06deg + 0.7deg));
  }
}
@media (prefers-reduced-motion: no-preference) {
  .bl {
    animation: sway calc(7s + var(--i) * 0.45s) ease-in-out infinite;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .plate {
    max-width: 420px;
  }
}

/* ---------- sections ---------- */
.sec {
  position: relative;
  padding-block: clamp(70px, 11vw, 150px);
}
.sec-head {
  max-width: 34ch;
}
.sec-head h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  margin-block: 12px 20px;
}
.sec-head p {
  color: var(--ink2);
  max-width: 44ch;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- plate II: the live card ---------- */
.try-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.facts {
  list-style: none;
  margin-top: 30px;
  display: grid;
  gap: 14px;
  max-width: 420px;
}
.facts li {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
  font-size: 0.95rem;
}
.facts b {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.card-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 26px 8px 40px;
}
.card-wrap {
  position: relative;
  width: min(100%, 410px);
  filter: drop-shadow(0 22px 22px var(--shadow)) drop-shadow(0 2px 2px var(--shadow));
  transform: rotate(-1.1deg);
}
.paper {
  background: var(--card);
  clip-path: var(--torn-card);
  padding: 34px 26px 32px;
  min-height: 440px;
  position: relative;
}
.tape {
  position: absolute;
  z-index: 2;
  width: 112px;
  height: 30px;
  top: -12px;
  left: 50%;
  margin-left: -56px;
  background: rgba(206, 156, 62, 0.42);
  transform: rotate(2.5deg);
  box-shadow: 0 1px 2px var(--shadow);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 100% 0, 96% 50%, 100% 100%, 8% 100%, 4% 90%, 0 100%, 3% 50%);
}
.greet {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
}
.prompt {
  color: var(--ink2);
  font-size: 0.98rem;
  margin-top: 4px;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}
.meta-row span:first-child {
  background: #edf1d4;
  color: #66732b;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
@media (prefers-color-scheme: dark) {
  .meta-row span:first-child {
    background: #3a4026;
    color: #c9d794;
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip {
  --tint: #fdfcf8;
  --deep: #888;
  --on: var(--ink);
  --bd: var(--line);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.95rem;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--deep);
}
.chip[aria-pressed='true'] {
  /* deeper colour = stronger feeling, as in the app */
  background: color-mix(in srgb, var(--deep) calc(14% + var(--lvl, 5) * 4.5%), var(--card));
  border-color: var(--deep);
  color: var(--ink);
  font-weight: 600;
}
.chip[aria-pressed='true'] i {
  display: none;
}
.chip[data-active='true'] {
  outline: 2px solid var(--deep);
  outline-offset: 1px;
}
.scale {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px 12px;
  min-height: 112px;
}
.scale-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink2);
}
.scale-head b {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
}
.ladder {
  display: flex;
  gap: 4px;
  margin-block: 10px 8px;
  padding-block: 8px;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ladder i {
  flex: 1;
  height: 22px;
  border-radius: 7px;
  background: var(--line);
  opacity: 0.7;
  transition: background 0.18s ease;
}
.ladder-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--muted);
}
.scale-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding-block: 18px 0;
}
.save {
  margin-top: 16px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: var(--spruce);
  color: var(--paper);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
@media (prefers-color-scheme: dark) {
  .save {
    color: #132019;
  }
}
.save:hover:not(:disabled) {
  background: var(--spruce-deep);
}
.save:disabled {
  opacity: 0.45;
  cursor: default;
}
.save-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  min-height: 1.2em;
}
.saved {
  display: grid;
  place-content: center;
  text-align: center;
  gap: 14px;
  min-height: 400px;
}
.saved[hidden] {
  display: none;
}
.stamp {
  justify-self: center;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--spruce);
  border: 3px solid var(--spruce);
  border-radius: 8px;
  padding: 8px 18px 8px 22px;
  transform: rotate(-7deg);
  opacity: 0.92;
}
.saved.in .stamp {
  animation: stamp 0.34s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes stamp {
  from {
    transform: rotate(-7deg) scale(1.7);
    opacity: 0;
  }
  to {
    transform: rotate(-7deg) scale(1);
    opacity: 0.92;
  }
}
.saved p.msg {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.12;
}
.saved p.small {
  color: var(--ink2);
  font-size: 0.88rem;
  max-width: 28ch;
  margin-inline: auto;
}
.again {
  justify-self: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--spruce);
  font-weight: 600;
  border-bottom: 1.5px solid currentColor;
  padding: 0 0 1px;
}

/* margin notes around the card */
.note {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.note svg {
  width: 74px;
  height: 46px;
  fill: none;
  stroke: var(--ink2);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.n1 {
  top: 112px;
  right: -6px;
  transform: rotate(4deg);
}
.n2 {
  top: 318px;
  left: -58px;
  transform: rotate(-4deg);
  text-align: right;
}
.n3 {
  bottom: -2px;
  right: 6px;
  transform: rotate(-2deg);
}
@media (max-width: 1100px) {
  .n1 {
    right: 4px;
    top: 86px;
  }
  .n2 {
    left: 4px;
  }
}
@media (max-width: 900px) {
  .try-grid {
    grid-template-columns: 1fr;
  }
  .n1,
  .n2 {
    display: none;
  }
  .note.n3 {
    position: static;
    order: 3;
    transform: rotate(-1.5deg);
    margin-top: 18px;
    text-align: center;
  }
}

/* ---------- plate III: under the surface ---------- */
.under {
  position: relative;
  background: linear-gradient(to bottom, var(--sand), var(--soil) 100%);
  padding-bottom: clamp(60px, 9vw, 120px);
}
.surface-line {
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 26px;
  z-index: 1;
  pointer-events: none;
}
.surface-line .horizon {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-opacity: 0.45;
  stroke-dasharray: 1 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.roots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.roots path,
.roots ellipse {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.roots .trunk {
  fill: none;
  stroke: var(--root);
}
.roots .branch {
  fill: var(--root);
  stroke: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.roots .branch.on {
  opacity: 1;
}
.roots .fine {
  fill: var(--root);
  stroke: none;
  opacity: 0;
  transition: opacity 0.9s ease 0.2s;
}
.roots .fine.on {
  opacity: 0.92;
}
.roots .hair {
  fill: none;
  stroke: var(--root);
  stroke-width: 0.6;
  opacity: 0;
  transition: opacity 1.1s ease 0.35s;
}
.roots .hair.on {
  opacity: 0.7;
}
.roots .nod {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.roots .nod.on {
  opacity: 1;
}
.roots .nod ellipse {
  fill: var(--root-light);
  stroke: var(--root);
  stroke-width: 1.2;
}
.roots .nod path {
  fill: none;
  stroke: var(--root);
  stroke-width: 0.8;
  opacity: 0.6;
}
.roots .grain {
  fill: none;
  stroke: var(--root);
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: 0.2;
}
.roots .pebble {
  fill: var(--root-light);
  stroke: var(--root);
  stroke-width: 0.6;
  opacity: 0.55;
}
html:not(.js) .roots {
  display: none;
}
.under .wrap {
  position: relative;
  z-index: 1;
}
.under-head {
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.tubers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(90px, 14vw, 190px);
  row-gap: clamp(36px, 6vw, 80px);
}
.tuber {
  position: relative;
  width: min(100%, 330px);
  display: grid;
  align-content: start; /* a taller neighbour must not stretch the frame, or the rings slide off their targets */
  gap: 14px;
}
.tuber:nth-child(odd) {
  justify-self: end;
}
.tuber:nth-child(even) {
  justify-self: start;
  margin-top: clamp(60px, 11vw, 160px);
}
.shot {
  position: relative;
  transform: rotate(var(--rot, -1.2deg));
  border-radius: 26px;
  box-shadow: 0 16px 28px -6px var(--shadow), 0 1px 2px var(--shadow);
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card);
}
.shot .ring {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  overflow: visible;
}
.shot .ring ellipse {
  fill: none;
  stroke: var(--spruce);
  stroke-width: 2;
  stroke-linecap: round;
}
.shot .ring text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  fill: var(--spruce);
}
.fig-cap {
  display: grid;
  gap: 6px;
  padding-inline: 4px;
}
.fig-cap .t {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.05;
}
.fig-cap p {
  color: var(--ink2);
  font-size: 0.93rem;
}
.fig-cap .hand {
  font-size: 1.3rem;
  transform: rotate(-1.5deg);
  transform-origin: left;
}
.fig-cap .hand b {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--spruce);
  margin-right: 4px;
}
/* the knot where the figure hangs from its root */
.knot-pt {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 1px;
  height: 1px;
}

/* the weekly card as a specimen sheet */
.sheet-wrap {
  filter: drop-shadow(0 16px 18px var(--shadow)) drop-shadow(0 1px 1px var(--shadow));
  transform: rotate(1.4deg);
}
.sheet {
  clip-path: var(--torn-pdf);
  background: var(--card);
  padding: 22px 16px 22px;
  font-size: 0.7rem;
}
.sheet h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.1;
}
.sheet .sub {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.grid {
  display: grid;
  grid-template-columns: 54px repeat(7, 1fr);
  gap: 2px;
  align-items: center;
}
.grid span {
  text-align: center;
  padding: 4px 0;
  border-radius: 3px;
  color: var(--ink2);
}
.grid .rl {
  text-align: left;
  padding-left: 0;
  color: var(--ink);
  font-weight: 600;
}
.grid .dh {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--muted);
}
.grid .c {
  background: color-mix(in srgb, var(--c) calc(var(--v) * 8%), transparent);
  color: var(--ink);
  font-weight: 600;
}
.grid .e {
  background: transparent;
}
.grid .sep {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--line);
  margin-block: 4px;
  padding: 0;
}
.sheet .foot {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.6rem;
}

.tuber.wide {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 0;
  width: min(100%, 380px);
}
@media (max-width: 820px) {
  /* the root runs down the left edge here, so the text steps aside for it */
  .under .wrap {
    padding-left: 50px;
  }
  .tubers {
    grid-template-columns: 1fr;
  }
  .tuber:nth-child(odd),
  .tuber:nth-child(even) {
    justify-self: center;
    margin-top: 0;
  }
}

/* ---------- nothing leaves ---------- */
.leaves {
  position: relative;
  z-index: 1;
  padding-block: clamp(60px, 10vw, 130px) clamp(70px, 10vw, 140px);
}
.strike-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(18px, 4vw, 44px);
  margin-block: 26px 22px;
}
.strike-list li {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.2vw, 5.2rem);
  font-weight: 500;
  line-height: 1.04;
  color: var(--ink);
}
.strike-list svg {
  position: absolute;
  left: -4%;
  top: 50%;
  width: 108%;
  height: 22px;
  margin-top: -11px;
  fill: none;
  stroke: var(--spruce);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.6, 0, 0.2, 1);
}
.strike-list li.in svg {
  stroke-dashoffset: 0;
}
html:not(.js) .strike-list svg,
.no-motion .strike-list svg {
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: reduce) {
  .strike-list svg {
    stroke-dashoffset: 0;
    transition: none;
  }
}
.leaves .after {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  color: var(--spruce);
  margin-bottom: 18px;
}
.leaves .plain a {
  color: var(--spruce);
  font-weight: 600;
}

/* what we left out on purpose */
.leftout {
  margin-top: clamp(48px, 7vw, 90px);
}
.lo-head {
  font-size: 1.6rem;
  color: var(--ink2);
  transform: rotate(-1.5deg);
  margin-bottom: 22px;
}
.leftout ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px clamp(24px, 3.5vw, 48px);
}
.leftout li {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.lo-t {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}
.lo-t svg {
  position: absolute;
  left: -4%;
  top: 50%;
  width: 108%;
  height: 16px;
  margin-top: -8px;
  fill: none;
  stroke: var(--spruce);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.6, 0, 0.2, 1) 0.25s;
}
.leftout.in .lo-t svg,
html:not(.js) .lo-t svg,
.no-motion .lo-t svg {
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: reduce) {
  .lo-t svg {
    stroke-dashoffset: 0;
    transition: none;
  }
}
.leftout li p {
  margin-top: 10px;
  color: var(--ink2);
  font-size: 0.95rem;
  max-width: 30ch;
}

/* ---------- plate V: night ---------- */
.night {
  position: relative;
  background: linear-gradient(
    to bottom,
    var(--paper) 0,
    color-mix(in srgb, var(--paper) 55%, var(--soil)) 50px,
    var(--soil) 130px,
    #5d604d 230px,
    #26352f 380px,
    #17231f 680px,
    #0f1815 100%
  );
  color: #efeae0;
  padding-block: clamp(170px, 18vw, 250px) clamp(80px, 11vw, 150px);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .night {
    background: linear-gradient(
      to bottom,
      var(--paper) 0,
      color-mix(in srgb, var(--paper) 55%, var(--soil)) 50px,
      var(--soil) 130px,
      #3a3a2f 230px,
      #1f2b26 380px,
      #131d19 680px,
      #0c1311 100%
    );
  }
}
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 24%, #fff, transparent),
    radial-gradient(1px 1px at 28% 60%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 44% 18%, #fff, transparent),
    radial-gradient(1px 1px at 63% 44%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 78% 22%, #fff, transparent),
    radial-gradient(1px 1px at 90% 66%, #fff, transparent),
    radial-gradient(1px 1px at 6% 78%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 52% 82%, #fff, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
}
.night .mono {
  color: #8fb3a7;
}
.night h2 em {
  color: #a9d6c8;
}
.night .plain {
  color: #c4cbc4;
}
.night-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.night-copy .sec-head p {
  color: #c4cbc4;
}
.breath {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
}
.breath .halo {
  position: relative;
  width: clamp(190px, 24vw, 280px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.breath .halo::before {
  content: '';
  position: absolute;
  inset: -34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 190, 158, 0.5), rgba(143, 190, 158, 0) 62%);
  animation: halo 12s ease-in-out infinite;
}
@keyframes halo {
  0% {
    transform: scale(0.8);
    opacity: 0.25;
  }
  33.3% {
    transform: scale(1.18);
    opacity: 1;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.25;
  }
}
.breath .ball {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #e3eda5 0%, #a8c98f 45%, #4e8574 78%, #2c5d52 100%);
  box-shadow: 0 14px 40px rgba(78, 133, 116, 0.35);
  animation: breathe 12s ease-in-out infinite;
}
.breath .ball::after {
  /* print-like grain on the orb, so it is an object and not a glow */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: radial-gradient(rgba(15, 24, 21, 0.28) 0.8px, transparent 1.1px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(circle at 70% 78%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 70% 78%, #000, transparent 70%);
}
.cue {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.cue-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fb3a7;
}
.night-shots {
  position: relative;
  display: grid;
  min-height: 560px;
}
.night-shots img {
  position: absolute;
  width: 58%;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.night-shots img:first-child {
  left: 0;
  top: 0;
  transform: rotate(-4deg);
}
.night-shots img:last-child {
  right: 0;
  top: 90px;
  transform: rotate(3.5deg);
}
.helpline {
  margin-top: 22px;
  font-size: 0.86rem;
  color: #9fb0a8;
  max-width: 40ch;
}
.helpline a {
  color: #a9d6c8;
}
@media (max-width: 1000px) {
  .night-grid {
    grid-template-columns: 1fr;
  }
  .night-shots {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .night-shots img {
    position: static;
    width: 100%;
  }
  .night-shots img:last-child {
    margin-top: 40px;
  }
}

/* ---------- get ---------- */
.get-sec {
  background: #0f1815;
  color: #efeae0;
  text-align: center;
  padding-block: clamp(70px, 10vw, 130px) clamp(60px, 8vw, 100px);
}
.get-sec h2 {
  font-size: clamp(3rem, 9vw, 8rem);
  margin-bottom: 24px;
}
.get-sec h2 em {
  color: #a9d6c8;
}
.get-sec .plain {
  margin: 0 auto 26px;
  color: #c4cbc4;
}
.get-sec .store-badge {
  padding: 8px;
}
.get-sec .fine {
  margin: 26px auto 0;
  max-width: 52ch;
  font-size: 0.82rem;
  color: #8e9d96;
}

/* ---------- colophon ---------- */
.colophon {
  background: #0f1815;
  color: #8e9d96;
  padding-block: 0 46px;
  font-size: 0.82rem;
}
.colophon .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 30px;
  align-items: end;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.colophon a {
  color: #c4cbc4;
}
.colophon .links {
  display: flex;
  gap: 22px;
}
@media (max-width: 700px) {
  .colophon .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- privacy / article pages ---------- */
.article-page .top {
  padding-bottom: 6px;
}
.article {
  max-width: 720px;
  padding: clamp(28px, 6vw, 70px) var(--gutter) 90px;
  margin-inline: auto;
}
.article .back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--spruce);
  text-decoration: none;
  font-weight: 600;
}
.article h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  margin-bottom: 8px;
}
.article .updated {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}
.article .lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink2);
  margin-bottom: 26px;
}
.article .lead strong {
  color: var(--ink);
}
.article h2 {
  font-size: 2rem;
  margin: 38px 0 10px;
  line-height: 1.05;
}
.article p {
  color: var(--ink2);
  margin-bottom: 14px;
}
.article ul {
  margin: 0 0 16px 1.2em;
  color: var(--ink2);
}
.article li {
  margin-bottom: 8px;
}
.article strong {
  color: var(--ink);
}
.article hr {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 30px 0;
}
.article .foot {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
}
.article a {
  color: var(--spruce);
}

/* small additions */
.endcap {
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.74rem;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.endcap:hover {
  color: var(--ink2);
}
.roots .tuft path {
  fill: var(--blade);
  stroke: var(--blade-edge);
  stroke-width: 0.5;
  opacity: 0.95;
}
