@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

/* Layout: a pine-slat spa wall; content sits on white "mirror" panels and plain white rooms. Leaf-green type, black only for the precise details. */
:root {
  color-scheme: light;
  --white: #f4f3ef;     /* page, like the basins and walls */
  --panel: #fbfaf7;     /* mirror panels */
  --pine: #ecd6a8;      /* light pine */
  --honey: #a87e41;     /* deep wood: gaps, rules */
  --ink: #2e4a1a;       /* body text: deep leaf */
  --leaf: #4f7a1f;      /* headings, logo: leaf green */
  --ink-soft: #5a6b45;  /* secondary text */
  --black: #151514;     /* minimal details */
  --line: rgba(21,21,20,.16);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --measure: 38rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--black); }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  color: var(--leaf);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-weight: 330;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; font-weight: 420; }
p { margin: 0 0 1em; }

.wrap { max-width: 72rem; margin: 0 auto; padding-inline: 1.25rem; }
.col { max-width: var(--measure); }

/* header */
.site-head { padding: 1.1rem 1rem 0; background: var(--pine) url("img/slats.jpg") repeat; }
.site-head .wrap { background: var(--panel); border-radius: 999px; padding: .55rem 1.2rem; box-shadow: 0 6px 18px -10px rgba(80,55,20,.35); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--leaf); text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-variation-settings: "SOFT" 100; }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.98rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--black); text-underline-offset: 0.45em; }

/* hero: soft light through leaves */
.hero, .page-head {
  background: var(--pine) url("img/slats.jpg") repeat;
  padding: clamp(1.5rem, 5vw, 3.5rem) 1rem clamp(2.5rem, 6vw, 4.5rem);
}
.hero { text-align: center; }
.hero > .wrap, .page-head > .wrap {
  background: var(--panel);
  border: 1px solid rgba(21,21,20,.12);
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(80,55,20,.45), inset 0 0 0 6px rgba(255,255,255,.6);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.hero h1 { margin-bottom: 0.3em; }
.hero .lede { color: var(--ink-soft); font-size: 1.2rem; max-width: 34rem; margin: 0 auto 2.6rem; }

/* the instrument */
.listen { margin: 0 auto; max-width: 60rem; padding-top: 3.5rem; }
.ears { --ly: 75px; --ec: .75rem; position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; }
.ear { font-family: var(--serif); font-size: 1.3rem; color: var(--black); width: 1.5rem; transition: color .3s; }
.ear.on { color: var(--leaf); }
.track { position: relative; height: 150px; }
.wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.phones { position: absolute; left: 0; right: 0; top: calc(var(--ly) - 130px); height: 180px; pointer-events: none; opacity: 0; transition: opacity .9s ease; color: var(--black); }
.listen.playing .phones { opacity: .5; }
.phones .band { position: absolute; top: 0; left: var(--ec); width: calc(100% - 2 * var(--ec)); height: 88px; overflow: visible; }
.phones path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.phones .cup { position: absolute; top: 88px; width: 36px; height: 84px; margin-left: -18px; border: 3px solid currentColor; border-radius: 18px; }
.phones .cup.l { left: var(--ec); }
.phones .cup.r { left: calc(100% - var(--ec)); }
.ear { position: relative; z-index: 1; text-align: center; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--black); opacity: .7; }
.ticks { position: absolute; inset: calc(50% - 7px) 0 auto 0; height: 14px; display: flex; justify-content: space-between; pointer-events: none; }
.ticks i { width: 1px; height: 6px; margin-top: 4px; background: rgba(21,21,20,.35); }
.ticks i:nth-child(5n+1) { height: 14px; margin-top: 0; background: var(--black); }
.orb {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fdfff4 0 30%, #c3dc93 58%, rgba(123,151,43,0) 74%);
  box-shadow: 0 0 0 1px rgba(79,122,31,.35), 0 0 40px 14px rgba(123,151,43,.30), 0 6px 22px rgba(21,21,20,.15);
  will-change: transform;
}
.readout { display: flex; justify-content: center; gap: 2rem; margin: .4rem 0 0; font-size: .92rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.readout b { font-weight: 600; color: var(--black); }
.listen-controls { margin-top: 1.6rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.play {
  font: 500 1.05rem var(--sans); color: var(--panel); background: var(--black);
  border: 0; border-radius: 999px; padding: .85rem 1.6rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .6rem;
}
.play:hover { background: var(--leaf); }
.play svg { width: 16px; height: 16px; }
.now { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* sections */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section.band { background: var(--pine) url("img/pine.jpg") repeat; }
.section .intro { color: var(--ink-soft); }
.two { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .two { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.two > * { min-width: 0; }

.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 0 1.1rem 2.6rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; font-family: var(--serif); font-size: 1.6rem; color: var(--leaf); }

.sessions { list-style: none; padding: 0; margin: 2rem 0 0; }
.sessions li { border-top: 1px solid var(--line); }
.sessions li:last-child { border-bottom: 1px solid var(--line); }
.sessions a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.5rem; padding-block: 1.4rem; text-decoration: none; color: var(--ink); }
.sessions .name { color: var(--leaf); font-family: var(--serif); font-size: 1.6rem; font-variation-settings: "SOFT" 100; font-weight: 340; }
.sessions .what { color: var(--ink-soft); grid-column: 1; }
.sessions .go { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--leaf); font-size: .95rem; }
.sessions a:hover .name { color: var(--black); }

.album { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52rem) { .album { grid-template-columns: 15rem 1fr; gap: 3.5rem; } }
.cover { aspect-ratio: 1; max-width: 14rem; width: 100%; background: var(--pine) url("img/pine.jpg"); border: 1px solid var(--black); border-radius: 10px; display: grid; place-items: center; box-shadow: 0 18px 40px -20px rgba(21,21,20,.35); }
.cover img { width: 74%; filter: drop-shadow(0 8px 14px rgba(60,40,10,.25)); }
.links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.btn { display: inline-block; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; font-size: .98rem; }
.btn:hover { border-color: var(--black); color: var(--black); }
.btn.primary { background: var(--black); color: var(--panel); border-color: var(--black); }
.btn.primary:hover { background: var(--leaf); border-color: var(--leaf); color: var(--panel); }

.note { background: var(--panel); border: 1px solid var(--line); padding: 1.2rem 1.4rem; border-radius: 10px; color: var(--ink-soft); font-size: 1rem; }

/* prose pages */
.page-head .lede { color: var(--ink-soft); font-size: 1.2rem; max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2rem; font-size: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.meta { color: var(--ink-soft); font-size: .95rem; }

.posts { list-style: none; padding: 0; margin: 1rem 0 0; max-width: 46rem; }
.posts li { padding-block: 1.3rem; border-top: 1px solid var(--line); }
.posts a { font-family: var(--serif); font-size: 1.45rem; color: var(--leaf); text-decoration: none; font-variation-settings: "SOFT" 100; font-weight: 360; }
.posts a:hover { color: var(--black); }
.posts p { color: var(--ink-soft); margin: .3rem 0 0; }

details { border-top: 1px solid var(--line); padding-block: 1rem; max-width: var(--measure); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { color: var(--leaf); cursor: pointer; font-family: var(--serif); font-size: 1.25rem; font-variation-settings: "SOFT" 100; font-weight: 380; }
details p { margin: .8rem 0 0; color: var(--ink-soft); }

form.contact { display: grid; gap: 1rem; max-width: 32rem; margin-top: 1.5rem; }
label { display: grid; gap: .35rem; font-size: .98rem; color: var(--ink-soft); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px rgba(79,122,31,.18); }
.hidden { position: absolute; left: -9999px; }

.site-foot { background: var(--pine) url("img/pine.jpg") repeat; border-top: 1px solid var(--black); padding-block: 2.5rem 3rem; color: var(--ink-soft); font-size: .95rem; }
.site-foot .wrap { display: grid; gap: 1rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-foot a { color: var(--ink-soft); }

@media (max-width: 40rem) {
  .site-head .wrap { border-radius: 18px; }
  body { font-size: 1.0625rem; }
  .track { height: 120px; }
  .ears { --ly: 60px; --ec: .5rem; }
  .phones .cup { width: 30px; height: 70px; margin-left: -15px; top: 95px; }
  .phones .band { height: 95px; }
  .ear { font-size: 1.1rem; width: 1rem; }
  .site-nav { gap: .9rem; font-size: .92rem; }
  .ticks i:not(:nth-child(5n+1)) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ear, .phones { transition: none; } }

/* background music mini player */
.ambient {
  position: fixed; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 20;
  display: flex; align-items: center; gap: .6rem; max-width: calc(100vw - 2rem);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .5rem .35rem .35rem; box-shadow: 0 10px 30px -14px rgba(80,55,20,.45);
  font-size: .85rem; color: var(--ink-soft);
}
.ambient button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: var(--black); color: var(--panel); flex: none; }
.ambient .amb-next { background: transparent; color: var(--black); width: 28px; height: 28px; }
.ambient svg { width: 14px; height: 14px; }
.amb-text { display: grid; line-height: 1.2; min-width: 0; }
.amb-album { font-weight: 600; color: var(--leaf); }
.amb-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ambient.ducked .amb-title::after { content: " · paused while you listen"; }
@media (max-width: 40rem) { .ambient { left: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); } .ambient.ducked .amb-title::after { content: ""; } }

/* games */
.game { margin-top: 1.5rem; text-align: center; }
.game-modes { display: inline-flex; gap: .3rem; padding: .3rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); margin-bottom: 1rem; }
.game-modes button { font: 500 1rem var(--sans); border: 0; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; background: transparent; color: var(--ink); }
.game-modes button[aria-pressed="true"] { background: var(--black); color: var(--panel); }
.stage { position: relative; height: clamp(360px, 62vh, 620px); border-radius: 6px; overflow: hidden; border: 1px solid rgba(21,21,20,.35); touch-action: none; user-select: none; -webkit-user-select: none; background: #a7c3b1; }
.stage canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.game[data-mode="silk"] .stage { background: #18241a; }
.breath { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: .4rem; pointer-events: none; }
.breath-cat { width: clamp(64px, 12vw, 110px); transform: scale(.86); transition-property: transform, opacity; transition-timing-function: ease-in-out; opacity: .9; }
.breath[data-phase="in"] .breath-cat, .breath[data-phase="hold"] .breath-cat { transform: scale(1.14); }
.breath-word { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); background: rgba(251,250,247,.7); padding: .1rem .7rem; border-radius: 999px; }
.game[data-mode="silk"] .breath-cat { opacity: .75; }
.game[data-mode="silk"] .breath-word { background: rgba(24,36,26,.6); color: #e8efd2; }
.game-hint { margin: .8rem 0 .4rem; color: var(--ink-soft); }
.game-tools { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.game-tools .btn { cursor: pointer; font: inherit; font-size: .95rem; }
.game-tools .btn[aria-pressed="false"] { opacity: .65; }
.game[data-mode="pond"] .silk-only, .game[data-mode="silk"] .pond-only { display: none; }
.game .now { margin-top: .8rem; }
@media (prefers-reduced-motion: reduce) { .breath-cat { transition-duration: 0s !important; } }
.stage canvas[hidden] { display: none; }

/* contrast on pine surfaces (WCAG AA for small text) */
.section.band .what, .section.band .intro, .site-foot, .site-foot a { color: var(--ink); }
.section.band .sessions .go, .section.band a:not(.btn) { color: #2f5a12; }
.section.band .sessions .name { color: #3d6418; }

/* YouTube videos: nothing loads from YouTube until play is pressed */
.yt { max-width: 46rem; margin-top: 1.2rem; }
.yt-play, .yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--black); border-radius: 10px; }
.yt-play { position: relative; overflow: hidden; cursor: pointer; padding: 0; color: var(--panel); text-align: left;
  background: linear-gradient(180deg, rgba(21,21,20,.15), rgba(21,21,20,.72)), var(--pine) url("img/slats.jpg") center / cover; box-shadow: 0 18px 40px -22px rgba(21,21,20,.45); }
.yt-logo { position: absolute; top: 1rem; left: 1rem; width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.yt-icon { position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: grid; place-items: center; background: var(--black); transition: background .2s, transform .2s; }
.yt-icon svg { width: 24px; height: 24px; margin-left: 4px; }
.yt-play:hover .yt-icon, .yt-play:focus-visible .yt-icon { background: var(--leaf); transform: scale(1.06); }
.yt-title { position: absolute; left: 1rem; right: 1rem; bottom: 2.4rem; font-family: var(--serif); font-size: clamp(1.05rem, 2.6vw, 1.45rem); line-height: 1.2; }
.yt-len { position: absolute; left: 1rem; bottom: .9rem; font-size: .9rem; opacity: .85; }
.yt-note { font-size: .9rem; color: var(--ink-soft); margin: .5rem 0 0; }
.section.band .yt-note { color: var(--ink); }
.yt-grid { display: grid; gap: 1.6rem; margin: 1rem 0 1.6rem; }
@media (min-width: 52rem) { .yt-grid { grid-template-columns: 1fr 1fr; } }
.yt-grid .yt { margin-top: 0; }

/* Music page */
.releases { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: 1.2rem; }
@media (min-width: 52rem) { .releases { grid-template-columns: 1fr 1fr; } }
.release { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem 1.4rem; }
.release h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; margin: .2rem 0 .3rem; color: var(--leaf); }
.rel-kind { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--honey); margin: 0; }
.rel-meta { color: var(--ink-soft); font-size: .95rem; margin: 0 0 .6rem; }
.release .links { margin-top: .8rem; gap: .45rem; }
.release .btn { padding: .45rem .9rem; font-size: .9rem; }
