/* ============================================================
   Grove Learning Company, v0.2.0: the clearing
   A forest clearing with paths (Oct 15 call). Painted layers are
   static pictures; only opacity and transform ever animate, so
   phones stay smooth (v0.1.0 drew the forest live and stuttered).
   ============================================================ */

:root {
  --ink: #f4ecd8;
  --ink-soft: #d8cfb6;
  --ink-dim: #a69d85;
  --leaf: #6aa65c;
  --leaf-bright: #9bd486;
  --moss: #2e4a33;
  --amber: #f0b45a;
  --ember: #e9874a;
  --pearl: #e4eef6;
  --bark: #3a291b;
  --bark-dark: #24190f;
  --floor: #0f1d16;
  --deep: #0b1510;
  --night: #070f0c;
  --head: 60px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: var(--head); }
body {
  margin: 0; background: var(--floor); color: var(--ink);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.6;
  overflow-x: clip; -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amber); color: #1a1208; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }

/* ============ header ============ */
.top {
  position: fixed; inset: 0 0 auto; height: var(--head); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  background: linear-gradient(180deg, rgba(8, 16, 12, .92), rgba(8, 16, 12, .78));
  border-bottom: 1px solid rgba(240, 180, 90, .14);
}
.brand img { height: 26px; width: auto; }
.top-tools { display: flex; align-items: center; gap: 10px; }
.stones-count { display: flex; align-items: center; padding: 8px; text-decoration: none; border-radius: 20px; }
.sc-dots { display: flex; gap: 5px; }
.sc-dots i {
  width: 9px; height: 7px; border-radius: 50%;
  border: 1px solid rgba(228, 238, 246, .45); transition: background .5s, box-shadow .5s;
}
.sc-dots i.on { background: var(--pearl); box-shadow: 0 0 8px rgba(200, 225, 255, .9); border-color: var(--pearl); }
.menu-btn {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px;
  background: rgba(58, 41, 27, .55); border: 1px solid rgba(240, 180, 90, .35); border-radius: 22px; cursor: pointer;
  font-weight: 700; letter-spacing: .04em;
}
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round; }

/* ============ Ogham glyphs ============ */
.og-svg, .og-big { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.og-svg { width: 18px; height: 26px; }
.og-stem { stroke-width: 2.8; }
.og {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 40px; margin-right: 8px;
  background: none; border: 1px solid rgba(240, 180, 90, .35); border-radius: 12px 12px 4px 4px;
  color: var(--amber); cursor: pointer; vertical-align: middle; padding: 0;
}
.og:hover { background: rgba(240, 180, 90, .12); }

/* ============ paths menu ============ */
.paths-menu {
  position: fixed; inset: var(--head) 0 0; z-index: 29; overflow-y: auto;
  background: radial-gradient(120% 80% at 50% 0%, #17281e, #070f0c 75%);
  padding: 28px 20px 40px;
}
.paths-menu[hidden] { display: none; }
.pm-inner { max-width: 30rem; margin: 0 auto; }
.pm-intro { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 16px; color: var(--amber); }
.pm-list { list-style: none; margin: 0; padding: 0; border-left: 2px dashed rgba(240, 180, 90, .35); }
.pm-list a {
  display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px;
  padding: 12px 10px 12px 16px; text-decoration: none; min-height: 56px; border-radius: 0 12px 12px 0;
}
.pm-list a:hover, .pm-list a:focus-visible { background: rgba(240, 180, 90, .08); }
.pm-list .og-svg { color: var(--amber); width: 22px; height: 32px; justify-self: center; }
.pm-name { display: block; font-size: 1.2rem; font-weight: 700; }
.pm-tree { display: block; font-size: .95rem; color: var(--ink-dim); }
.pm-foot { margin-top: 24px; color: var(--ink-soft); font-size: 1rem; }
.pm-why { background: none; border: 0; padding: 0; color: var(--amber); text-decoration: underline; cursor: pointer; font-size: 1rem; }

/* ============ Ogham card ============ */
.og-card {
  max-width: min(26rem, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(240, 180, 90, .4); border-radius: 18px;
  background: linear-gradient(160deg, #22301f, #121c14); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.og-card::backdrop { background: rgba(4, 9, 7, .72); }
.og-card[open] { display: grid; grid-template-columns: 70px 1fr; }
.ogc-glyph { display: flex; align-items: center; justify-content: center; color: var(--amber); background: repeating-linear-gradient(90deg, #2c2016 0 6px, #33251a 6px 9px); border-radius: 18px 0 0 18px; }
.ogc-glyph svg { width: 34px; height: 60px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ogc-words { padding: 18px 18px 16px; }
.ogc-kicker { margin: 0; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.og-card h3 { font-family: var(--serif); font-size: 1.5rem; margin: 2px 0 8px; }
.og-card p { margin: 0 0 10px; }
.ogc-system { font-size: .9rem; color: var(--ink-dim); }
.ogc-close { min-height: 44px; padding: 8px 16px; background: var(--amber); color: #1d1408; border: 0; border-radius: 22px; font-weight: 700; cursor: pointer; }

/* ============ the clearing (hero) ============ */
main { padding-top: var(--head); }
.hero {
  position: relative; height: calc(100svh - var(--head)); min-height: 540px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; isolation: isolate;
}
.hero-sky {
  position: absolute; inset: 0; z-index: -6;
  background:
    radial-gradient(70% 40% at 50% 74%, rgba(255, 196, 118, .55), rgba(255, 170, 90, 0) 70%),
    linear-gradient(180deg, #0d1b24 0%, #1d3540 26%, #4f5f58 48%, #a9875c 66%, #e7b26c 78%, #f2cd8c 86%);
}
.hero-stars { position: absolute; inset: 0 0 50%; background: url(../img/stars.svg) center top / 800px auto repeat; opacity: .75;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.ray { position: absolute; top: -10%; width: 16vw; min-width: 90px; height: 120%; transform-origin: top center;
  background: linear-gradient(180deg, rgba(255, 226, 160, .26), rgba(255, 226, 160, 0) 80%); opacity: .5;
  animation: ray 11s ease-in-out infinite alternate; }
.r1 { left: 30%; transform: rotate(18deg); }
.r2 { left: 46%; transform: rotate(12deg); width: 8vw; animation-delay: -4s; }
.r3 { left: 60%; transform: rotate(6deg); width: 11vw; animation-delay: -7s; }
@keyframes ray { from { opacity: .18; } to { opacity: .6; } }

.hero-far, .hero-mid { position: absolute; left: 0; right: 0; background-repeat: repeat-x; background-position: center bottom; }
.hero-far { z-index: -5; bottom: 16%; height: 34%; background-image: url(../img/forest-far.svg); background-size: auto 100%; opacity: .92; }
.hero-mid { z-index: -4; bottom: 6%; height: 40%; background-image: url(../img/forest-mid.svg); background-size: auto 100%; background-position: 30% bottom; }
.hero-near { position: absolute; top: 0; bottom: 0; z-index: -2; width: max(120px, 26vw); max-width: 460px; background-repeat: no-repeat; background-size: cover; }
.hl { left: 0; background-image: url(../img/forest-near-left.svg); background-position: left bottom; }
.hr { right: 0; background-image: url(../img/forest-near-right.svg); background-position: right bottom; }
.hero-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; z-index: -1;
  background: radial-gradient(60% 90% at 50% 0%, rgba(240, 160, 80, .22), transparent 70%), linear-gradient(180deg, #13241a, var(--floor)); }

.hearth { position: absolute; z-index: 0; left: 50%; bottom: 7%; width: min(64vw, 40svh, 360px); transform: translateX(-50%); overflow: visible; }
.h-glow { animation: glow 3.2s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .7; } to { opacity: 1; } }
.h-fire g { transform-box: fill-box; transform-origin: 50% 100%; }
.f1 { animation: flick 1.6s ease-in-out infinite alternate; }
.f2 { animation: flick 1.1s ease-in-out infinite alternate-reverse; }
@keyframes flick { from { transform: scale(1, .9); } to { transform: scale(.96, 1.07); } }
.h-arch-stars { animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

.hero-words { margin-top: clamp(28px, 9svh, 110px); text-align: center; padding: 0 20px; }
.hero h1 { margin: 0; }
.hero-mark { width: min(520px, 74vw); height: auto; margin: 0 auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .45)); }
.hero-sub { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1rem, 2.6vw, 1.4rem); letter-spacing: .42em; text-transform: uppercase; margin-top: 10px; color: var(--ink-soft); padding-left: .42em; }
.hero-line { font-family: var(--serif); font-size: clamp(1.35rem, 4.4vw, 2.1rem); margin: 16px 0 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.enter {
  position: absolute; bottom: calc(7% + min(64vw, 40svh, 360px) * .78); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-weight: 700;
  padding: 10px 18px; border-radius: 26px; background: rgba(12, 22, 16, .55); border: 1px solid rgba(240, 180, 90, .45);
  white-space: nowrap;
}
.enter svg { width: 14px; height: 22px; fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* one or two leaves, descending gently */
.leaves { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.leaf { position: absolute; top: -40px; animation: fall 19s linear infinite; }
.l1 { left: 22%; }
.l2 { left: 68%; animation-delay: -9s; animation-duration: 23s; }
.leaf b { display: block; width: 14px; height: 20px; border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, #e7a64a, #a8562a); animation: sway 4.6s ease-in-out infinite alternate; }
.l2 b { background: linear-gradient(135deg, #c9b25a, #7d6a2a); animation-duration: 5.4s; }
@keyframes fall { from { transform: translateY(0); } to { transform: translateY(calc(100svh + 40px)); } }
@keyframes sway { from { transform: translateX(-34px) rotate(-30deg); } to { transform: translateX(34px) rotate(26deg); } }

/* ============ moonstones ============ */
.moonstone {
  position: absolute; z-index: 4; width: 30px; height: 22px; padding: 0; border: 0; cursor: pointer; border-radius: 50%;
  background: radial-gradient(60% 55% at 38% 34%, #ffffff, #dbe8f3 40%, #9fb5c9 75%, #6f8396);
  box-shadow: 0 0 14px rgba(200, 225, 255, .55), 0 2px 3px rgba(0, 0, 0, .5);
  animation: glimmer 3.6s ease-in-out infinite alternate;
}
.moonstone::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; } /* bigger tap area */
@keyframes glimmer { from { box-shadow: 0 0 6px rgba(200, 225, 255, .35), 0 2px 3px rgba(0, 0, 0, .5); } to { box-shadow: 0 0 20px rgba(210, 232, 255, .9), 0 2px 3px rgba(0, 0, 0, .5); } }
.moonstone.got { animation: rise .9s ease-in forwards; pointer-events: none; }
@keyframes rise { to { transform: translateY(-60px) scale(.4); opacity: 0; } }
.ms-hero { left: calc(50% + min(24vw, 140px)); bottom: 13%; }
.ms-today { right: 9%; bottom: 40px; }
.ms-app { left: 7%; bottom: 46px; }
.ms-share { right: 12%; top: 46%; }
.ms-tend { left: 50%; bottom: 36px; }
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 40; transform: translate(-50%, 30px); opacity: 0;
  background: #1b2a33; border: 1px solid rgba(228, 238, 246, .5); color: var(--pearl);
  padding: 10px 18px; border-radius: 22px; transition: opacity .4s, transform .4s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ the glades (sections) ============ */
.glade { position: relative; padding: 110px 20px 120px; background: var(--floor); }
.glade + .glade { background: linear-gradient(180deg, var(--floor), var(--deep)); }
#today { background: linear-gradient(180deg, #0f1d16, #102019); }
#app { background: linear-gradient(180deg, #0e1b14, #0c1711); }
#share { background: linear-gradient(180deg, #0c1711, #0b1510); }
#tend { background: linear-gradient(180deg, #0b1510, #09120e); }
.treeline {
  position: absolute; left: 0; right: 0; top: -64px; height: 72px; pointer-events: none; z-index: 1;
  background: url(../img/forest-mid.svg) 0 bottom / auto 100% repeat-x;
}
#today .treeline { background-position: 40% bottom; }
#app .treeline { background-position: 70% bottom; height: 90px; top: -80px; }
#share .treeline { background-position: 15% bottom; }
#tend .treeline { background-position: 55% bottom; }
.words { max-width: 40rem; margin: 0 auto; position: relative; z-index: 2; }
.kicker { display: flex; align-items: center; margin: 0 0 6px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; color: var(--amber); }
.glade h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.12; margin: 0 0 16px; }
.words p { color: var(--ink-soft); }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---- choose a path: trail signs ---- */
.fork { display: block; width: min(600px, 100%); height: 110px; margin: 24px auto -6px; fill: none; stroke: rgba(240, 180, 90, .4); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.signs { list-style: none; margin: 0 auto; padding: 0; max-width: 60rem; display: grid; gap: 18px; }
@media (min-width: 760px) { .signs { grid-template-columns: repeat(3, 1fr); } }
.sign {
  position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px;
  padding: 16px 30px 16px 14px; text-decoration: none; min-height: 100px; transform: rotate(var(--tilt));
  background:
    repeating-linear-gradient(176deg, rgba(0, 0, 0, 0) 0 7px, rgba(0, 0, 0, .14) 7px 8px),
    linear-gradient(180deg, #5a4128, #3e2b1a);
  clip-path: polygon(0 4%, 90% 0, 100% 50%, 90% 100%, 0 96%);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .12);
  transition: transform .3s;
}
.sign:hover, .sign:focus-visible { transform: rotate(0) translateX(4px); }
.sign-og { grid-row: 1 / 3; align-self: center; color: #f3c77c; display: flex; justify-content: center; }
.sign-og .og-svg { width: 24px; height: 36px; }
.sign-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; color: #fbe8c3; }
.sign-tell { font-size: 1rem; color: #e1cfab; }

/* ---- today: the tree ring and the gift box ---- */
.today { max-width: 60rem; margin: 26px auto 0; display: grid; gap: 26px; position: relative; z-index: 2; }
@media (min-width: 860px) { .today { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.tree-day { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.td-glyph {
  width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #3a2414;
  background: repeating-radial-gradient(circle at 46% 52%, #d9b07a 0 3px, #c49460 3px 5px, #d4a874 5px 9px);
  box-shadow: 0 0 0 4px #4d3420, 0 6px 18px rgba(0, 0, 0, .5);
}
.td-glyph svg { width: 36px; height: 56px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.td-name { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 6px; color: var(--leaf-bright); }
.td-name small { display: block; font-family: var(--sans); font-size: .9rem; color: var(--ink-dim); letter-spacing: .06em; }
.td-note { margin: 0 0 10px; }
.td-ask { margin: 0; font-style: italic; color: var(--amber); }

.gift-box {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; padding: 18px 10px 14px;
  background: none; border: 1px dashed rgba(240, 180, 90, .4); border-radius: 18px; cursor: pointer; min-height: 160px;
}
.gb-lid, .gb-body { display: block; width: 110px; border-radius: 6px; }
.gb-lid { height: 18px; background: linear-gradient(180deg, #7a5432, #5a3c22); border-bottom: 3px solid #f0b45a; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.gb-body { height: 56px; margin-top: -10px; background: repeating-linear-gradient(90deg, #4e3520 0 10px, #563a23 10px 12px); border: 2px solid #2b1c10;
  box-shadow: inset 0 0 0 9px transparent, inset 46px 0 0 -40px #f0b45a, inset -46px 0 0 -40px #f0b45a; }
.gift-box:hover .gb-lid { transform: translateY(-6px) rotate(-5deg); }
.gift-box[aria-expanded="true"] .gb-lid { transform: translate(-30px, -16px) rotate(-24deg); }
.gb-word { font-weight: 700; color: var(--amber); }
.gift-in {
  margin-top: 14px; padding: 18px 18px 16px; border-radius: 4px 18px 4px 18px; position: relative;
  background: linear-gradient(170deg, #1d2a1f, #142017); border-left: 4px solid var(--leaf);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.gift-in::before { content: ""; position: absolute; right: 14px; top: 14px; width: 18px; height: 24px; border-radius: 0 100% 0 100%; background: var(--leaf); opacity: .5; }
.gi-kind { margin: 0; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.gi-title { font-family: var(--serif); font-size: 1.45rem; margin: 2px 0 0; }
.gi-by { margin: 0 0 10px; color: var(--ink-dim); font-size: 1rem; }
.gi-body p { margin: 0 0 10px; }
.gi-body .verse { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.5; border-left: 2px solid rgba(240, 180, 90, .5); padding-left: 12px; }
.gi-link { margin: 0 0 12px; }
.gi-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gi-ask p { width: 100%; margin: 0; color: var(--ink-soft); }
.gi-ask button { min-height: 44px; padding: 8px 18px; border-radius: 22px; cursor: pointer; background: rgba(106, 166, 92, .18); border: 1px solid rgba(155, 212, 134, .5); }
.gi-ask button[data-liked="no"] { background: transparent; border-color: rgba(216, 207, 182, .35); }
.gi-thanks { color: var(--leaf-bright); margin: 6px 0 0; }

/* ---- the Grove app: trailheads ---- */
.ways { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ways li { display: flex; gap: 12px; align-items: baseline; }
.way-mark { flex: none; width: 30px; font-family: var(--serif); font-style: italic; color: var(--amber); text-align: right; }
.trailheads { max-width: 60rem; margin: 30px auto 0; display: grid; gap: 18px; position: relative; z-index: 2; }
@media (min-width: 760px) { .trailheads { grid-template-columns: 1fr 1fr; } }
.trailhead {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 18px 18px 18px 16px;
  border-radius: 46% 54% 40% 60% / 18% 22% 78% 82%;
  background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--glow) 22%, transparent), transparent 60%), linear-gradient(160deg, #26322a, #18221b);
  border: 1px solid color-mix(in srgb, var(--glow) 40%, transparent);
}
.th-mark { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow) 35%, #0b1510), #0b1510 70%); box-shadow: 0 0 22px color-mix(in srgb, var(--glow) 40%, transparent); }
.th-mark svg { width: 36px; height: 36px; fill: none; stroke: var(--glow); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.th-name { font-family: var(--serif); font-size: 1.35rem; margin: 0; }
.th-short { margin: 0; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--glow); }
.th-tell { margin: 6px 0 4px; color: var(--ink-soft); font-size: 1rem; }
.th-made { margin: 0; font-size: .9rem; color: var(--ink-dim); }
.app-go, .share-go { text-align: center; margin: 34px 0 0; position: relative; z-index: 2; }
.lantern {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 1.15rem;
  color: #1d1408; background: radial-gradient(120% 140% at 50% 0%, #ffd892, #f0b45a 55%, #d98a3c);
  box-shadow: 0 0 28px rgba(240, 180, 90, .45);
}
.lantern::before { content: ""; width: 12px; height: 16px; border-radius: 0 100% 0 100%; background: #2d5a27; }
.glow-link { color: var(--amber); font-weight: 700; text-underline-offset: 4px; }

/* ---- bring your path: stepping stones ---- */
.stones { list-style: none; padding: 0; margin: 30px auto 0; max-width: 60rem; display: grid; gap: 16px; position: relative; z-index: 2; counter-reset: s; }
@media (min-width: 760px) { .stones { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.stone {
  padding: 22px 20px 20px; display: grid; gap: 4px;
  border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%;
  background: radial-gradient(80% 70% at 30% 25%, #59625a, #3a423b 60%, #2a302b);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .25), 0 8px 0 rgba(30, 60, 70, .35), 0 14px 26px rgba(0, 0, 0, .35);
}
.stone:nth-child(2) { border-radius: 44% 56% 46% 54% / 56% 44% 56% 44%; }
.stone:nth-child(3) { border-radius: 52% 48% 60% 40% / 48% 52% 48% 52%; }
.stone-face { font-family: var(--serif); font-size: 1.6rem; color: var(--amber); line-height: 1; }
.stone-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.stone-tell { font-size: 1rem; color: var(--ink-soft); }

/* ---- who tends the grove: bark panels ---- */
.tenders { max-width: 52rem; margin: 30px auto 0; display: grid; gap: 20px; position: relative; z-index: 2; }
@media (min-width: 760px) { .tenders { grid-template-columns: 1fr 1fr; } }
.tender {
  position: relative; padding: 22px 20px 16px 26px; border-radius: 6px 22px 6px 22px;
  background: repeating-linear-gradient(92deg, rgba(0, 0, 0, 0) 0 9px, rgba(0, 0, 0, .12) 9px 11px), linear-gradient(180deg, #33261a, #22180f);
  box-shadow: inset 4px 0 0 var(--hue), 0 10px 26px rgba(0, 0, 0, .35);
}
.tender h3 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 6px; color: var(--hue); }
.tender p { margin: 0 0 10px; color: #e4d6b8; }

/* ---- the hearth at night: say hello ---- */
.night { background: linear-gradient(180deg, #09120e, var(--night)); padding-bottom: 90px; overflow: hidden; }
.night-sky { position: absolute; inset: 0; background: url(../img/stars.svg) center / 800px auto repeat; opacity: .5;
  -webkit-mask-image: linear-gradient(transparent, #000 25%, transparent 85%); mask-image: linear-gradient(transparent, #000 25%, transparent 85%); }
.night::after { content: ""; position: absolute; left: 50%; bottom: -180px; width: 700px; height: 360px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(240, 150, 70, .3), transparent); transition: opacity 1.2s; opacity: .5; }
body.all-stones .night::after { opacity: 1; }
.word { max-width: 34rem; margin: 26px auto 0; display: grid; gap: 16px; position: relative; z-index: 2; }
.hp { display: none; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-weight: 700; color: var(--ink-soft); padding: 0; margin-bottom: 6px; }
.field input:not([type=radio]), .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; min-height: 48px;
  background: rgba(10, 20, 15, .8); border: 1px solid rgba(216, 207, 182, .3); border-radius: 10px;
}
.field input:focus, .field textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(240, 180, 90, .25); }
.who { display: flex; flex-wrap: wrap; gap: 8px; }
.who legend { width: 100%; }
.who label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 22px; border: 1px solid rgba(216, 207, 182, .3); cursor: pointer; }
.who label:has(input:checked) { border-color: var(--amber); background: rgba(240, 180, 90, .14); }
.who input { accent-color: var(--amber); width: 18px; height: 18px; }
.send {
  justify-self: start; min-height: 52px; padding: 12px 26px; border-radius: 30px; border: 0; cursor: pointer; font-weight: 700; font-size: 1.1rem;
  color: #1d1408; background: radial-gradient(120% 140% at 50% 0%, #ffd892, #f0b45a 55%, #d98a3c);
}
.sent { color: var(--leaf-bright); font-weight: 700; }
.stones-note { max-width: 34rem; margin: 40px auto 0; position: relative; z-index: 2; padding-top: 20px; border-top: 1px dashed rgba(228, 238, 246, .3); color: var(--ink-soft); }
.stones-note b { color: var(--pearl); }

.foot { background: var(--night); text-align: center; padding: 30px 20px 40px; color: var(--ink-dim); }
.foot img { width: 120px; height: auto; margin: 0 auto 8px; opacity: .8; }
.foot p { margin: 4px 0; }
.foot-line { font-family: var(--serif); color: var(--ink-soft); }

@media (min-width: 1025px) {
  .glade { padding: 140px 40px 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .leaves { display: none; }
  .rv { opacity: 1; transform: none; }
}

/* ---- the podcast: a fire ring (Mat, Oct 15: YEV's podcast is the podcast of the grove) ---- */
#podcast { background: linear-gradient(180deg, #0b1510, #0a1410); }
#podcast .treeline { background-position: 85% bottom; }
.cast { max-width: 60rem; margin: 0 auto; display: grid; gap: 10px; align-items: center; position: relative; z-index: 2; }
@media (min-width: 860px) { .cast { grid-template-columns: 1.3fr 1fr; } }
.fire-ring { width: min(320px, 80%); margin: 0 auto; display: block; overflow: visible; }
.fr-glow { animation: glow 3.4s ease-in-out infinite alternate; }
.fr-fire { transform-box: fill-box; transform-origin: 50% 100%; animation: flick 1.5s ease-in-out infinite alternate; }
.fr-fire.f-in { animation-duration: 1.05s; animation-direction: alternate-reverse; }
