:root {
  --mist: #E9EFEA;
  --paper: #F9FAF7;
  --pine: #1D3B35;
  --ink: #18252A;
  --lantern: #D9922E;
  --lilac: #B9B3D9;
  --pine-soft: #4B6660;
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Literata", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mist: #12201D;
    --paper: #0D1816;
    --pine: #CFE3DB;
    --ink: #E4ECE8;
    --pine-soft: #93B0A7;
    --lilac: #6E689F;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pine); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--lantern);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header and footer */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  font-family: var(--head);
}
.site-header .mark { font-weight: 700; font-size: 1.15rem; color: var(--pine); text-decoration: none; }
.site-header nav a { margin-left: 1.25rem; font-size: 0.98rem; text-decoration: none; color: var(--pine-soft); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--pine); text-decoration: underline; }
footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font-family: var(--head);
  font-size: 0.95rem;
  color: var(--pine-soft);
  border-top: 1px solid color-mix(in srgb, var(--pine) 14%, transparent);
}

/* Hero with breathing orb */
.hero {
  background: var(--mist);
  border-bottom: 1px solid color-mix(in srgb, var(--pine) 14%, transparent);
}
.hero-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--pine);
  margin: 0 0 1.5rem;
}
.hero .byline, .hero .sub { margin: 0; font-family: var(--head); color: var(--pine-soft); font-size: 1.05rem; }
.hero .sub { font-size: 1.2rem; max-width: 28rem; }

.breath { display: grid; place-items: center; gap: 1.25rem; }
.orb-wrap { width: min(100%, 20rem); aspect-ratio: 1; display: grid; place-items: center; }
.orb {
  width: 100%; height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--lantern) 0 7%, transparent 7.5%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--lilac) 55%, var(--mist)) 0 62%, var(--lilac) 100%);
  border: 2px solid var(--pine);
  transform: scale(0.62);
  transition: transform 6s cubic-bezier(.45,.05,.55,.95);
}
.orb.in { transform: scale(1); transition-duration: 4s; }
.breath-label {
  font-family: var(--head);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--pine);
  min-height: 1.6em;
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .orb, .orb.in { transition: none; transform: scale(0.85); }
  html { scroll-behavior: auto; }
}

/* Story list on home */
.stories { max-width: 68rem; margin: 0 auto; padding: 4rem 1.25rem 2rem; }
.stories > h2, .page h1 {
  font-family: var(--head);
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--pine);
  margin: 0 0 1.5rem;
}
.story-card {
  display: block;
  max-width: 44rem;
  padding: 2rem;
  background: var(--mist);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid transparent;
}
.story-card:hover { border-color: var(--lantern); }
.story-card h3 {
  font-family: var(--head);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--pine);
  margin: 0 0 0.75rem;
}
.story-card p { margin: 0 0 1rem; }
.story-card .meta { font-family: var(--head); font-size: 0.95rem; color: var(--pine-soft); margin: 0; }
.coming {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  padding: 1.25rem 2rem;
  border: 2px dashed color-mix(in srgb, var(--pine) 35%, transparent);
  border-radius: 14px;
  color: var(--pine-soft);
}

/* Article and plain pages */
main { padding: 0 1.25rem; }
article, .page { max-width: 38rem; margin: 0 auto; padding: 4rem 0 2rem; }
article p, .page p { margin: 0 0 1.5rem; }
article p.lede { font-size: 1.4rem; line-height: 1.55; font-weight: 500; color: var(--pine); }
article h2, .page h2 {
  font-family: var(--head);
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--pine);
  margin: 3rem 0 1rem;
}
.page h1 { font-size: 2.6rem; }
.pull {
  margin: 2.5rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 4px solid var(--lantern);
  font-size: 1.5rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--pine);
}
.places {
  max-width: 38rem;
  margin: 1rem auto 0;
  padding: 1.75rem 1.75rem 1.25rem;
  background: var(--mist);
  border-radius: 14px;
}
.places h2 { font-family: var(--head); font-size: 1.25rem; margin: 0 0 0.75rem; color: var(--pine); }
.places ul { margin: 0; padding-left: 1.2rem; }
.places li { margin-bottom: 0.5rem; }

.survey {
  max-width: 38rem;
  margin: 4rem auto 5rem;
  padding: 2rem 0 0;
  border-top: 2px solid var(--pine);
}
.survey h2 { font-family: var(--head); font-size: 1.7rem; line-height: 1.2; margin: 0 0 0.75rem; color: var(--pine); }
.survey p { margin: 0 0 1.5rem; }
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--pine);
  color: var(--paper);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
}
.btn:hover { background: var(--ink); }
.back { font-family: var(--head); font-size: 0.98rem; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .orb-wrap { width: min(70%, 15rem); }
  body { font-size: 1.05rem; }
  article p.lede { font-size: 1.25rem; }
  .site-header nav a { margin-left: 0.9rem; }
  .story-card { padding: 1.5rem; }
  .story-card h3 { font-size: 1.6rem; }
  .page h1 { font-size: 2.1rem; }
}

/* ---- Blog additions. These use the theme tokens above. ---- */
[hidden] { display: none !important; }
:root[data-theme="light"] { --mist: #E9EFEA; --paper: #F9FAF7; --pine: #1D3B35; --ink: #18252A; --pine-soft: #4B6660; --lilac: #B9B3D9; color-scheme: light; }
:root[data-theme="dark"] { --mist: #12201D; --paper: #0D1816; --pine: #CFE3DB; --ink: #E4ECE8; --pine-soft: #93B0A7; --lilac: #6E689F; color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

.hero h1 em { font-style: normal; text-decoration: underline; text-decoration-color: var(--lantern); text-decoration-thickness: 0.07em; text-underline-offset: 0.12em; }
.hero .sub { max-width: 34rem; }
.hero--post h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); }
.hero--plain .hero-inner { grid-template-columns: minmax(0, 1fr); padding-bottom: 3.5rem; }
.hero--plain.hero--post .hero-inner { padding-bottom: 3rem; }
footer a { color: inherit; }
.page .survey { margin: 2rem 0 3rem; padding: 0; border-top: 0; }
.survey-banner { background: var(--mist); border-top: 1px solid color-mix(in srgb, var(--pine) 14%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--pine) 14%, transparent); }
.survey-banner-inner { max-width: 68rem; margin: 0 auto; padding: 1.25rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; border-left: 6px solid var(--lantern); }
.survey-banner p { margin: 0; flex: 1 1 18rem; font-size: 1.05rem; }
.survey-banner strong { font-family: var(--head); color: var(--pine); display: block; font-size: 1.15rem; }
.btn--lantern { background: var(--lantern); color: #18252A; }
.btn--lantern:hover { background: var(--ink); color: var(--paper); }
.btn .arr { margin-left: 0.4rem; }
.survey.survey--card { background: var(--mist); border: 2px solid var(--lantern); border-radius: 18px; padding: 1.75rem; margin: 2.5rem 0; }
.chip-survey { display: inline-block; margin-left: 0.6rem; padding: 0.1rem 0.65rem; border-radius: 999px; background: var(--lantern); color: #18252A; font-family: var(--head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; text-transform: none; }
.eyebrow { margin: 0 0 1rem; font-family: var(--head); font-size: 0.92rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--pine-soft); }
.hero .tags { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-family: var(--head); font-size: 0.9rem; color: var(--pine-soft); }
.hero .tags li { padding: 0.15rem 0.8rem; border: 1px solid color-mix(in srgb, var(--pine) 25%, transparent); border-radius: 999px; }

.stories + .stories { padding-top: 2rem; }
.stories .intro { max-width: 40rem; margin: -0.5rem 0 1.75rem; color: var(--pine-soft); }

.traitlist { max-width: 44rem; border-top: 1px solid color-mix(in srgb, var(--pine) 14%, transparent); }
.trait { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0.4rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid color-mix(in srgb, var(--pine) 14%, transparent); color: var(--ink); text-decoration: none; }
.trait h3 { margin: 0; font-family: var(--head); font-size: 1.25rem; line-height: 1.2; color: var(--pine); }
.trait:hover h3 { text-decoration: underline; text-decoration-color: var(--lantern); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.trait p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--pine-soft); }
.trait p span { display: block; margin-top: 0.4rem; font-family: var(--head); font-weight: 500; color: var(--pine); text-decoration: underline; text-decoration-color: var(--lantern); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.chip { padding: 0.35rem 0.95rem; font: 500 0.95rem var(--head); color: var(--ink); background: transparent; border: 1.5px solid color-mix(in srgb, var(--pine) 30%, transparent); border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--lantern); }
.chip[aria-pressed="true"] { color: var(--paper); background: var(--pine); border-color: var(--pine); }

.post-list { display: grid; gap: 1.25rem; }
.story-card .meta { margin: 0 0 0.6rem; }
.story-card .log { margin: 0 0 0.7rem; font-size: 0.98rem; line-height: 1.55; color: var(--pine-soft); }
.story-card .log:last-child { margin-bottom: 0; }
.story-card .log b { display: block; font-family: var(--head); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine); }

.places + .places { margin-top: 1.5rem; }
.places dl { display: grid; gap: 0.75rem; margin: 0; }
.places dt { font-family: var(--head); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine-soft); }
.places dd { margin: 0; }
.postnav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; max-width: 38rem; margin: 2rem auto 4rem; font-family: var(--head); font-size: 0.98rem; }

.facts { margin: 1rem 0 0; border-top: 1px solid color-mix(in srgb, var(--pine) 14%, transparent); }
.facts div { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid color-mix(in srgb, var(--pine) 14%, transparent); }
.facts dt { font-family: var(--head); font-weight: 700; color: var(--pine); }
.facts dd { margin: 0; }
.page .facts { margin-bottom: 2rem; }

/* ---- Story animations: the same circle as the breathing orb, one motion per story ---- */
.stage { position: relative; width: min(100%, 20rem); aspect-ratio: 1; container-type: size; overflow: hidden; border-radius: 50%; border: 2px solid var(--pine);
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--lilac) 38%, var(--mist)) 0 55%, color-mix(in srgb, var(--lilac) 75%, var(--mist)) 100%); }

/* collect, protect, understand */
.flow { position: absolute; left: 14cqw; right: 14cqw; top: 50%; height: 0; }
.flow .line { position: absolute; left: 6cqw; right: 6cqw; top: -0.4cqw; height: 0.8cqw; background: color-mix(in srgb, var(--pine) 35%, transparent); }
.flow .node { position: absolute; top: -6cqw; width: 12cqw; height: 12cqw; border-radius: 50%; background: var(--paper); border: 0.8cqw solid var(--pine); transition: background 0.6s, transform 0.6s; }
.flow .n1 { left: 0; }
.flow .n2 { left: calc(50% - 6cqw); }
.flow .n3 { right: 0; }
.flow .packet { position: absolute; top: -2cqw; left: 4cqw; width: 4cqw; height: 4cqw; border-radius: 50%; background: var(--lantern); transition: left 1.4s cubic-bezier(0.45, 0.05, 0.55, 0.95); }
.stage[data-step="1"] .packet { left: calc(50% - 2cqw); }
.stage[data-step="2"] .packet { left: calc(100% - 8cqw); }
.stage[data-step="0"] .n1, .stage[data-step="1"] .n2, .stage[data-step="2"] .n3 { background: var(--lantern); transform: scale(1.12); }

/* a drop and its ripples */
.drop { position: absolute; left: 50%; top: 12cqw; width: 5cqw; height: 6cqw; margin-left: -2.5cqw; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: var(--lantern); animation: drop-fall 4s ease-in infinite; }
@keyframes drop-fall { 0% { transform: translateY(0); opacity: 1; } 38% { transform: translateY(32cqw); opacity: 1; } 42%, 100% { transform: translateY(34cqw); opacity: 0; } }
.wave { position: absolute; left: 50%; top: 50%; width: 62cqw; height: 62cqw; margin: -31cqw 0 0 -31cqw; border-radius: 50%; border: 0.8cqw solid var(--pine); opacity: 0; transform: scale(0.05); animation: ripple 4s ease-out infinite; }
.wave:nth-of-type(3) { animation-delay: 0.35s; }
.wave:nth-of-type(4) { animation-delay: 0.7s; }
@keyframes ripple { 0%, 40% { transform: scale(0.05); opacity: 0; } 42% { opacity: 0.75; } 100% { transform: scale(1); opacity: 0; } }

/* people showing up, one after another */
.people { position: absolute; inset: 0; }
.people .dot { position: absolute; left: 50%; top: 50%; width: 7cqw; height: 7cqw; margin: -3.5cqw; border-radius: 50%; background: color-mix(in srgb, var(--pine) 18%, transparent); border: 0.6cqw solid color-mix(in srgb, var(--pine) 40%, transparent); transform: rotate(var(--a)) translateY(-31cqw); transition: background 0.4s, border-color 0.4s; }
.people .dot.on { background: var(--lantern); border-color: var(--pine); }

/* trying, slipping, trying again */
.stairs { position: absolute; left: 18cqw; right: 18cqw; bottom: 24cqw; height: 40cqw; display: flex; align-items: flex-end; gap: 2cqw; }
.stair { flex: 1; height: calc(var(--i) * 7cqw + 8cqw); border-radius: 1.5cqw 1.5cqw 0 0; background: var(--pine); opacity: 0.85; }
.climber { position: absolute; left: var(--x, 20.6cqw); bottom: var(--y, 32cqw); width: 6cqw; height: 6cqw; border-radius: 50%; background: var(--lantern); border: 0.6cqw solid var(--pine); transition: left 0.7s ease, bottom 0.7s cubic-bezier(0.3, 1.5, 0.6, 1); }
.stage[data-step="0"] { --x: 20.6cqw; --y: 32cqw; }
.stage[data-step="1"] { --x: 33.8cqw; --y: 39cqw; }
.stage[data-step="2"] { --x: 47cqw; --y: 46cqw; }
.stage[data-step="3"] { --x: 60.2cqw; --y: 53cqw; }
.stage[data-step="4"] { --x: 73.4cqw; --y: 60cqw; }

/* a voice finding its level */
.voice { position: absolute; left: 50%; top: 50%; height: 42cqw; display: flex; align-items: center; gap: 3cqw; transform: translate(-50%, -50%); }
.voice span { width: 5cqw; height: 100%; border-radius: 999px; background: var(--pine); transform: scaleY(0.2); animation: voice-bar var(--t, 1.6s) ease-in-out var(--d, 0s) infinite alternate; }
.voice span:nth-child(4) { background: var(--lantern); }
@keyframes voice-bar { from { transform: scaleY(0.18); } to { transform: scaleY(1); } }

/* a raga scale, note by note */
.notes { position: absolute; left: 16cqw; right: 16cqw; bottom: 26cqw; height: 46cqw; display: flex; align-items: flex-end; gap: 2.5cqw; }
.notes span { flex: 1; height: calc(var(--i) * 4.5cqw + 10cqw); border-radius: 999px; background: color-mix(in srgb, var(--pine) 30%, transparent); transition: background 0.35s, transform 0.35s; }
.notes span.on { background: var(--lantern); transform: translateY(-1.5cqw); }

/* sketch, build, test */
.build { position: absolute; left: 50%; top: 50%; width: 46cqw; height: 46cqw; transform: translate(-50%, -50%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; }
.build span { border-radius: 2cqw; border: 0.7cqw dashed color-mix(in srgb, var(--pine) 50%, transparent); transition: background 0.4s, border-color 0.4s; }
.build span.on { background: var(--pine); border-style: solid; border-color: var(--pine); }
.stage.testing .build span { animation: test-pulse 0.9s ease-in-out infinite alternate; }
.stage.testing .build span:nth-child(3n + 2) { animation-delay: 0.15s; }
.stage.testing .build span:nth-child(3n) { animation-delay: 0.3s; }
@keyframes test-pulse { to { background: var(--lantern); } }

@media (prefers-reduced-motion: reduce) {
  .stage *, .stage { animation: none !important; transition: none !important; }
  .voice span { transform: scaleY(0.6); }
  .wave { opacity: 0.5; transform: scale(0.6); }
  .drop { opacity: 0; }
}

@media (max-width: 760px) {
  .stage { width: min(70%, 15rem); }
  .trait { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}
