:root{color-scheme:dark;--bg:#111310;--sheet:#181b16;--line:#35392e;--cream:#f4f1de;--muted:#b1b3a3;--faint:#939886;--orange:#ff7043;--sage:#b5c88a;--mono:"IBM Plex Mono","DejaVu Sans Mono",monospace;--sans:"Inter","Arial",sans-serif;--serif:"Instrument Serif",Georgia,"Times New Roman",serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--cream);font:16px/1.5 var(--sans)}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #f6ba7d;outline-offset:4px}button:disabled{cursor:default}button{color:inherit}button:hover:not(:disabled){filter:brightness(1.14)}[hidden]{display:none!important}.icon{width:20px;height:20px;display:inline-flex;flex:none}.icon svg{width:100%;height:100%}
.mast{border-bottom:1px solid var(--line);background:#141612}.mast-in,main{max-width:1600px;margin:auto;padding:0 clamp(16px,4.1vw,78px)}.mast-in{height:75px;display:flex;align-items:center;gap:clamp(22px,5vw,84px)}.wordmark{display:flex;align-items:center;gap:10px;color:var(--cream);text-decoration:none;font-size:1.55rem;font-weight:950;font-style:italic;letter-spacing:-1.4px;line-height:1}.wordmark img{width:35px;height:35px;object-fit:contain}.mast nav{display:flex;align-self:stretch;gap:29px}.mast nav button{border:0;border-bottom:2px solid transparent;background:none;padding:3px 0 0;font-size:.9rem;color:var(--muted)}.mast nav button[aria-current=page]{color:var(--cream);border-bottom-color:var(--orange)}.mast-right{margin-left:auto;display:flex;align-items:center;gap:19px}.sound,.share,.close{display:grid;place-items:center;background:transparent;border:1px solid var(--line)}.sound{width:35px;height:35px;border-radius:50%}.sound .icon{width:16px}.mast-right #system{font:12px var(--mono);color:var(--muted);display:flex;align-items:center;gap:8px}.mast-right i,.stage-label i{width:6px;height:6px;border-radius:50%;background:#989b8f}.mast-right .on i{background:var(--sage);box-shadow:0 0 8px #b5c88a50}.section-bar{display:flex;align-items:center;justify-content:space-between;min-height:60px;gap:12px;font:12px var(--mono);letter-spacing:.09em;color:var(--faint)}.section-bar>span{display:flex;align-items:center;gap:11px}.section-bar .icon{width:15px;height:15px}.section-bar b{font-weight:400;color:#62695a}.section-bar strong{font-weight:500;color:#d4d6c5}.flight-id{font-variant-numeric:tabular-nums}
.scene{isolation:isolate;position:relative;overflow:hidden;border:1px solid #45473b;border-radius:6px 6px 0 0;height:clamp(435px,35vw,560px);background:radial-gradient(ellipse at 70% 48%,#342b1d 0%,#202219 40%,#181b15 77%);touch-action:pan-x pinch-zoom}
#sky,.scene-grid{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.scene-grid{background-image:linear-gradient(90deg,#c5b58b0c 1px,transparent 1px),linear-gradient(#c5b58b0c 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(90deg,#0002,#000b);z-index:0}
.hero{position:absolute;left:clamp(24px,3.8vw,67px);top:50%;transform:translateY(-50%);z-index:3;pointer-events:none}.hero button{pointer-events:auto}.eyebrow,.meter-label,.quiettag,.stage-label{font:12px/1.3 var(--mono);letter-spacing:.13em}.eyebrow{display:flex;align-items:center;gap:10px;color:#d8cd99}.signalmark{display:flex;align-items:center;height:13px;gap:2px}.signalmark i{width:2px;background:var(--orange);height:5px}.signalmark i:nth-child(2){height:10px}.signalmark i:nth-child(3){height:14px}.signalmark i:nth-child(4){height:8px}
h1,h2,p{margin:0}.hero h1{font-size:clamp(72px,6.5vw,110px);letter-spacing:-.073em;line-height:.85;margin:27px 0 19px;font-weight:650}.hero h1 em,.archive-top em{font-family:var(--serif);font-weight:normal;color:var(--orange);letter-spacing:-.074em}.hero h1 em{font-size:1.17em;line-height:.88}.hero p{color:#cacbb8;line-height:1.45;font-size:clamp(16px,1.16vw,19px)}.actions{display:flex;gap:9px;align-items:center;margin-top:23px}.gust,.quiet-button{border:0;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:700}.gust{color:#21180e;background:var(--orange);padding:12px 19px;min-height:45px}.gust:disabled{background:#3a3d31;color:#cbceba}.share{height:45px;width:45px;border-radius:4px;background:#1b1d17;border-color:#565a48}.share .icon{width:17px}.key-hint{display:block;color:#a9ad99;font:12px/1.4 var(--mono);margin-top:12px}.key-hint kbd{font:10px var(--mono);border:1px solid #606350;border-radius:3px;padding:1px 5px;letter-spacing:.06em;color:#dbdac9}.touch-hint{display:none}
#tracker{position:absolute;left:68%;top:43%;width:clamp(145px,17.2vw,285px);aspect-ratio:1;transform:translate(-50%,-50%);z-index:2;pointer-events:none}#leaf{height:100%;width:100%;object-fit:contain;filter:drop-shadow(-6px 15px 15px #0009);will-change:transform}.orbit{position:absolute;inset:-15%;border:1px dashed #c2ac6d31;border-radius:50%;transform:scaleX(1.28) rotate(-24deg)}.orbit:before,.orbit:after{position:absolute;content:"+";font:18px var(--mono);color:#c6ae75a0;line-height:1}.orbit:before{left:12%;top:12%}.orbit:after{right:12%;bottom:10%}.alt-scale{position:absolute;right:13px;top:18%;bottom:21%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;background:repeating-linear-gradient(to bottom,#e0ce983f 0 1px,transparent 1px 5%);background-size:4px 100%;background-repeat:no-repeat;background-position:right;font:10px var(--mono);letter-spacing:.08em;color:#c4bd98}.alt-scale span{padding-right:11px}.stage-label{position:absolute;right:22px;bottom:16px;display:flex;gap:7px;align-items:center;font-size:10px;color:#cac4a3;background:#1c1e17df;border:1px solid #635e44;padding:5px 8px;border-radius:2px}.stage-label i{width:5px;height:5px;background:var(--orange)}
.instruments{display:grid;grid-template-columns:repeat(4,1fr);padding:20px 0 21px;border:1px solid var(--line);border-top:0;border-radius:0 0 5px 5px;background:var(--sheet)}.meter{padding:0 clamp(15px,2.1vw,38px);border-left:1px solid var(--line)}.meter:first-child{border:0}.meter-label{display:flex;align-items:center;gap:9px;color:#b3b7a2;font-size:11px}.meter-label .icon{width:15px;height:15px;color:#b9bca6}.meter-val{font:clamp(24px,2.45vw,41px)/1.15 var(--mono);letter-spacing:-.07em;font-variant-numeric:tabular-nums;margin:8px 0 4px}.meter-val small{font-size:.52em;color:var(--muted)}.status-val{font:italic clamp(28px,2.8vw,46px)/1 var(--serif);letter-spacing:-.055em;color:var(--sage)}.meter-extra{font-size:.78rem;color:var(--faint)}.below{display:grid;grid-template-columns:1.17fr 1fr;gap:30px;margin:27px 0 20px}.panel-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:12px;gap:8px}.panel-head h2{display:flex;align-items:center;gap:10px;font-size:1.12rem;font-weight:550;letter-spacing:-.035em}.panel-head h2 .icon{width:18px;color:var(--orange)}.quiettag,.text-button{font:12px var(--mono);letter-spacing:.02em;color:var(--faint)}.text-button{background:transparent;padding:4px 0;border:0;color:#d4c7a0;text-decoration:underline;text-underline-offset:4px}#feed{list-style:none;padding:0;margin:0}.log-row,.empty,.archive-peek{display:flex;gap:10px;align-items:center;min-height:55px;color:var(--muted);font-size:.88rem}.log-row{justify-content:space-between;border-bottom:1px solid #2f3329}.log-row time{font:12px var(--mono);color:var(--faint)}.empty:before{content:"";width:16px;height:1px;background:#6a705c}.archive-peek img{width:34px;height:34px;object-fit:contain}.archive-peek button{background:transparent;border:0;padding:0;color:var(--cream);text-align:left}.archive-peek img{filter:saturate(.8)}
footer{display:flex;justify-content:space-between;align-items:center;margin:25px 0 0;border-top:1px solid var(--line);padding:17px 0 24px;color:var(--faint);font:12px var(--mono)}footer span:first-child{display:flex;align-items:center;gap:7px;letter-spacing:.06em}.mini-leaf{width:15px;height:15px;background:url('/assets/maple.webp') center/contain no-repeat;filter:grayscale(1);opacity:.8}
dialog{width:min(500px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid #565949;background:#1c2019;color:var(--cream);padding:24px;border-radius:8px;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#080b08c9}.modal-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.close{font:23px/1 var(--sans);border-radius:50%;width:33px;height:33px}.modal-top .eyebrow{font-size:11px}.modal-top+h2{font:italic 2.5rem/1.1 var(--serif);margin:12px 0 17px}.guide-steps{margin:0;padding-left:25px}.guide-steps li{padding:6px 0 9px 4px}.guide-steps li::marker{color:var(--orange);font:13px var(--mono)}.guide-steps p{color:var(--muted);font-size:.92rem;margin-top:3px}#name-form{border-top:1px solid var(--line);padding-top:15px;margin-top:12px}#name-form label{font-weight:650}#name-form>div,.spec-actions{display:flex;gap:9px;margin-top:8px}input{min-width:0;color:var(--cream);background:#12150f;padding:10px;border:1px solid #525745;border-radius:4px;flex:1}#manual-link{width:100%}#name-status{color:var(--sage)}.quiet-button{background:#2b3026;border:1px solid #505642;padding:8px 13px;color:#e0e2d1}.quiet-button:disabled{opacity:.5}
#specimen{width:min(620px,calc(100vw - 26px))}#print{width:100%;height:auto;display:block;border:1px solid #4b4e3f}.spec-actions{flex-wrap:wrap;margin-top:16px}.archive-top{padding:35px 0;border-bottom:1px solid var(--line)}.archive-top h1{font-size:clamp(44px,6vw,84px);line-height:1;letter-spacing:-.07em;margin:16px 0}.archive-top p,.archive-empty p{color:var(--muted)}#collection{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:15px;padding:25px 0}.archive-empty{grid-column:1/-1;padding:36px 16px;text-align:center;background:var(--sheet);border:1px solid var(--line);border-radius:4px}.archive-empty img{width:80px;filter:saturate(.6);margin-bottom:9px}.archive-empty h2{font:italic 2rem var(--serif);margin-bottom:6px}.spec-card{background:var(--sheet);border:1px solid var(--line);border-radius:4px;padding:17px;text-align:left}.spec-card .caption{font:12px var(--mono);color:var(--faint)}.spec-card strong{display:block;font:italic 1.8rem var(--serif);margin:8px 0}.spec-card img{float:right;width:50px}.spec-card p{font-size:.88rem;color:var(--muted)}
#notice{position:fixed;z-index:20;bottom:24px;left:50%;transform:translateX(-50%);padding:10px 16px;border:1px solid #7b8067;border-radius:5px;background:#252b20;color:var(--cream);max-width:90vw;width:max-content;font-size:.88rem;box-shadow:0 7px 30px #0006;pointer-events:none}#notice:empty{display:none}
@media(max-width:800px){.mast-in{gap:24px}.mast nav{gap:16px}.mast-right{gap:8px}.mast-right #system span{display:none}.hero h1{font-size:74px}.meter-label{letter-spacing:.05em}.below{gap:20px}.hero{left:28px}.scene{height:440px}.meter-extra{font-size:.73rem}.key-hint{font-size:11px}}
@media(max-width:610px){.mast-in{height:62px;gap:14px}.mast nav{gap:13px}.mast nav button{font-size:13px}.wordmark{gap:4px;font-size:19px}.wordmark img{width:26px;height:26px}.mast-right #system{display:none}.sound{width:29px;height:29px}.mast-right{margin-left:auto}.mast-in,main{padding-inline:13px}.section-bar{min-height:44px;font-size:10px}.section-bar>span{gap:7px}.scene{height:535px;background:radial-gradient(ellipse at 64% 32%,#3b3020,#1b2018 65%)}.hero{top:auto;bottom:21px;left:20px;transform:none}.hero .eyebrow{font-size:10px}.hero h1{font-size:58px;margin:13px 0 9px;line-height:.85}.hero h1 br{display:none}.hero h1 em:before{content:" "}.hero h1 em{font-size:1.08em}.hero p{font-size:15px;line-height:1.38}.actions{margin-top:14px}.key-hint{margin-top:8px}.touch-hint{display:inline}.desktop-hint{display:none}#tracker{width:37%;left:55%;top:27%}.alt-scale{top:11%;bottom:55%;right:10px}.stage-label{bottom:auto;top:12px;right:12px;font-size:9px}.instruments{grid-template-columns:1fr 1fr;padding:0}.meter,.meter:first-child{border:0;padding:14px 17px}.meter:nth-child(2n){border-left:1px solid var(--line)}.meter:nth-child(n+3){border-top:1px solid var(--line)}.meter-val{font-size:26px}.status-val{font-size:29px}.below{grid-template-columns:1fr;gap:18px;margin-top:21px}.meter-extra{font-size:12px}.archive-top{padding-top:19px}}
@media(max-width:375px){.mast-in{gap:10px}.mast nav{gap:9px}.mast nav button{font-size:12px}.scene{height:505px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
#token-row{margin-top:16px}#token-row a{color:#e7cf93;text-underline-offset:4px}

.community-tree{margin-top:24px;padding:clamp(14px,3vw,28px);border:1px solid var(--line);border-radius:4px;background:var(--sheet)}
.tree-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px}
.tree-heading h2{font:italic clamp(25px,4vw,36px)/1 var(--serif)}
.tree-heading p,#tree-hint{color:var(--muted);font-size:.88rem}
.tree-canopy{position:relative;width:min(100%,760px);aspect-ratio:2/1;margin:auto}
#tree-branches,#tree-leaves{position:absolute;inset:0;width:100%;height:100%}
.tree-leaf{position:absolute;display:grid;place-items:center;width:clamp(32px,7vw,58px);aspect-ratio:1;padding:4px;border:1px solid transparent;border-radius:50%;background:transparent;transform:translate(-50%,-50%);transition:background .15s,border-color .15s}
.tree-leaf img{display:block;width:100%;height:auto}
.tree-leaf:hover,.tree-leaf:focus-visible{z-index:1;border-color:var(--orange);background:var(--sheet)}
#tree-hint{text-align:center}

.invite-growth{display:grid;gap:8px;max-width:480px;margin:18px auto 0;color:var(--muted);font-size:.88rem}
.invite-growth progress{width:100%;accent-color:var(--orange)}

/* Leaf Relay */
.relay-site {
  color-scheme:light;
  --bg:#f4eee3;
  --sheet:#fffaf1;
  --line:#d9ccba;
  --cream:#211a16;
  --muted:#594b41;
  --faint:#665749;
  --orange:#a53323;
  --sage:#52724d;
}
.relay-site .mast {background:#f4eee3}
.relay-site .mast-in,.relay-site main {max-width:1360px}
.relay-site .mast-in {height:76px;gap:clamp(22px,4vw,65px)}
.relay-site .wordmark {flex-shrink:0;gap:10px;font:700 1.45rem/1 var(--serif);letter-spacing:-.045em;white-space:nowrap}
.relay-site .wordmark img {width:34px;height:34px;border-radius:50%}
.relay-site .mast nav button {font-weight:600}
.relay-site .sound,.relay-site .close {background:var(--sheet);color:var(--cream)}
.relay-site .section-bar {color:var(--faint)}
.relay-site .section-bar strong {color:var(--cream)}
.relay-site a {color:var(--orange)}
.relay-site .wordmark {color:var(--cream)}
.relay-hero {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.24fr);gap:clamp(28px,5vw,76px);align-items:center;padding:clamp(30px,5vw,68px) 0 32px}
.relay-site .hero {position:static;transform:none;pointer-events:auto;max-width:none}
.relay-site .hero .eyebrow {color:var(--orange);font-weight:700;font-size:.73rem;letter-spacing:.15em}
.relay-site .hero h1 {font:600 clamp(58px,7.4vw,108px)/.85 var(--serif);letter-spacing:-.078em;margin:19px 0}
.relay-site .hero h1 em {font:italic 1em/.85 var(--serif);letter-spacing:inherit;color:var(--orange)}
.relay-site .hero p {color:var(--muted);font:clamp(16px,1.55vw,21px)/1.55 var(--sans);max-width:34ch}
.relay-site .gust {color:#fffaf1;background:#a53323;border-radius:6px;min-height:48px}
.relay-site .gust:disabled {color:#413a32;background:#d9ccba}
.relay-site .share {width:48px;height:48px;color:var(--cream);background:var(--sheet);border-color:var(--line);border-radius:6px}
.relay-site .key-hint {color:var(--faint)}
.relay-site .key-hint kbd {color:var(--cream);border-color:var(--line)}
.flight-panel {overflow:hidden;border:1px solid #382a22;border-radius:12px;background:#211711;box-shadow:0 21px 40px #45251226;color:#fff2db}
.relay-site .flight-panel .section-bar {min-height:48px;padding-inline:16px;color:#d6beaa}
.relay-site .flight-panel .section-bar strong {color:#fff2db}
.relay-site .scene {border:0;border-radius:0;height:clamp(290px,29vw,440px);background:radial-gradient(ellipse at 50% 32%,#693a29,#372719 65%,#211711)}
.relay-site #tracker {width:clamp(140px,16vw,230px)}
.relay-site .instruments {border:1px solid var(--line);border-radius:8px;background:var(--sheet)}
.relay-site .meter-label,.relay-site .meter-label .icon {color:var(--muted)}
.relay-site .quiet-button {background:#f0e3d3;border:1px solid #d2bfaa;color:#44261c;border-radius:6px}
.relay-site #shared-specimen {margin-top:15px}
.relay-site .feed,.relay-site .spec-entry,.relay-site .community-tree,.relay-site .spec-card,.relay-site .archive-empty {background:var(--sheet);color:var(--cream);border-color:var(--line);border-radius:8px}
.relay-site .text-button {color:var(--orange)}
.relay-site .quiettag {color:var(--faint)}
.relay-site dialog {background:var(--sheet);color:var(--cream);border-color:var(--line)}
.relay-site dialog input {background:#fffaf1;color:var(--cream);border-color:var(--line)}
.relay-site dialog .eyebrow {color:var(--orange)}
.relay-site .relay-guide {padding:32px 0 26px;border-block:1px solid var(--line);margin-top:38px}
.relay-guide h2,.relay-story h2,.relay-treasury h2 {font:600 clamp(32px,4vw,56px)/.95 var(--serif);letter-spacing:-.055em}
.relay-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,3vw,36px);margin:23px 0 0;padding-left:26px}
.relay-steps li {padding-left:5px}
.relay-steps li::marker {color:var(--orange);font-family:var(--mono);font-weight:700}
.relay-steps strong {font-size:1.04rem}
.relay-steps p,.relay-story p,.relay-treasury p {color:var(--muted);margin-top:6px;max-width:58ch}
.relay-story,.relay-treasury {display:flex;align-items:center;gap:clamp(18px,4vw,42px);padding:clamp(19px,3vw,34px);margin-top:22px;border:1px solid var(--line);border-radius:8px}
.relay-story {background:#e9d9c3}
.relay-story img {width:clamp(78px,13vw,145px);height:auto;border-radius:50%;flex:none}
.relay-story .quiet-button {margin-top:14px}
.relay-treasury {justify-content:space-between;flex-wrap:wrap;background:var(--sheet)}
.relay-treasury .quiet-button {text-decoration:none}
.treasury-page .feed {padding:18px;margin:15px 0;border:1px solid var(--line)}
.treasury-page .feed h2 {font:600 1.55rem/1.1 var(--serif);margin-bottom:8px}
@media(max-width:800px) {
  .relay-hero {grid-template-columns:1fr;gap:25px}
  .relay-site .hero h1 {font-size:clamp(60px,12vw,90px)}
}
@media(max-width:610px) {
  .relay-site .mast-in {height:auto;min-height:58px;flex-wrap:wrap;gap:0}
  .relay-site .mast nav {order:3;width:100%;min-height:37px;gap:22px}
  .relay-site .mast nav button {padding:4px 0 7px}
  .relay-site .hero h1 br {display:initial}
  .relay-site .hero h1 em:before {content:none}
  .relay-site .hero h1 {margin:14px 0}
  .relay-site .scene {height:250px}
  .relay-site .flight-panel .section-bar {min-height:38px}
  .relay-site #tracker {width:128px}
  .relay-site .alt-scale {top:12%;bottom:26%}
  .relay-site .stage-label {top:auto;bottom:10px}
  .relay-steps {grid-template-columns:1fr;gap:13px}
  .relay-story,.relay-treasury {align-items:flex-start}
}

.relay-hero {grid-template-columns:minmax(0,.87fr) minmax(0,1.28fr);gap:clamp(28px,5vw,78px)}
.relay-site .hero h1 {font-size:clamp(60px,7.8vw,113px);text-wrap:balance}
.relay-site .hero h1 em {color:#9c3024}
.relay-site .hero p {max-width:34ch}
.relay-site .hero .actions {margin-top:28px}
.relay-site .flight-panel {border-color:#543525;background:#251811}
.relay-site .flight-panel .section-bar {padding-inline:18px}
.relay-site .scene {
  height:clamp(315px,33vw,480px);
  background:#684434 url("/assets/autumn-valley.jpg") center 54% / cover no-repeat;
}
.relay-site .scene-grid {display:none}
.relay-site .scene::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to bottom,#24150b25 0%,transparent 28%,transparent 62%,#1c0f0bc9 100%);
  z-index:1;
}
.relay-site #tracker img {filter:drop-shadow(0 11px 15px #40140fd4) drop-shadow(0 0 16px #ffc48270)}
.relay-site .alt-scale {right:16px;color:#fff2dc;text-shadow:0 1px 5px #250f0a}
.relay-site .stage-label {
  z-index:4;left:17px;right:17px;bottom:15px;top:auto;min-height:39px;
  border:1px solid #f6d5ac66;border-radius:6px;padding:7px 11px;color:#fff3dc;
  background:#281610e8;font-weight:700;letter-spacing:.1em;
}
.stage-countdown {margin-left:auto;font-variant-numeric:tabular-nums;color:#ffe0b5;letter-spacing:.02em}
.stage-timer-track {position:absolute;z-index:4;left:18px;right:18px;bottom:15px;height:2px;pointer-events:none}
.stage-timer-track::before {content:"";display:block;width:var(--flight-progress,0%);height:100%;background:#ffae70;border-radius:3px}
@media(max-width:800px){
  .relay-hero {grid-template-columns:1fr}
  .relay-site .hero h1 {font-size:clamp(58px,12vw,94px)}
}
@media(max-width:610px){
  .relay-site .scene {height:278px}
  .relay-site .hero .actions {margin-top:19px}
  .relay-site .stage-label {bottom:10px;left:10px;right:10px}
  .stage-timer-track {bottom:10px;left:11px;right:11px}
}
