/* World Days Calendar — a night-sky instrument (dial + map) above a paper almanac (year list + guide). */
:root{
  --night:#070b1c; --night2:#0b1230; --night3:#131c45;
  --cream:#ece6d4; --dim:#a3abcf; --faint:#636c9a;
  --brass:#e8b04a; --brass2:#ffd98d; --brass3:#9a6a1c;
  --paper:#f2e9d4; --paper2:#fbf6ea; --ink:#1c1a2e; --ink2:#575269; --rule:#d8caa8;
  --f-d:"Fraunces",Georgia,serif; --f-u:"Hanken Grotesk",system-ui,-apple-system,sans-serif; --f-m:"DM Mono",ui-monospace,Consolas,monospace;
}
*{ box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
[hidden]{ display:none !important; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{ font-family:var(--f-u); background:var(--night); color:var(--cream); line-height:1.5; min-height:100vh; display:flex; flex-direction:column; }
button{ font:inherit; color:inherit; cursor:pointer; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
:focus-visible{ outline:2px solid var(--brass2); outline-offset:3px; }

/* ---------- site header, on the night sky ---------- */
body > header{ display:flex; align-items:center; justify-content:space-between; padding:14px 18px; background:var(--night); border-bottom:1px solid rgba(232,176,74,.16); position:relative; z-index:2; }
body > header .brand{ font-family:var(--f-d); font-weight:900; font-size:20px; letter-spacing:-.02em; color:var(--cream); text-decoration:none; }
body > header .brand span{ color:var(--brass); }
body > header .back{ font-size:13px; font-weight:700; color:var(--cream); text-decoration:none; opacity:.85; }
body > header .back:hover{ opacity:1; color:var(--brass2); }

/* ---------- the sky ---------- */
.sky, .globe{ position:relative; isolation:isolate; overflow:hidden; }
.sky{ background:
  radial-gradient(900px 620px at 24% 18%, rgba(70,98,210,.30), transparent 62%),
  radial-gradient(760px 560px at 82% 34%, rgba(232,176,74,.10), transparent 62%),
  radial-gradient(1200px 800px at 50% 120%, rgba(40,58,140,.35), transparent 60%),
  linear-gradient(180deg, var(--night) 0%, var(--night2) 55%, #0a1029 100%); }
.sky::before, .globe::before{ content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.75;
  background-image:
    radial-gradient(1.2px 1.2px at 22px 34px, #fff, transparent 70%),
    radial-gradient(1px 1px at 140px 92px, rgba(255,255,255,.8), transparent 70%),
    radial-gradient(1.6px 1.6px at 210px 160px, rgba(255,232,180,.9), transparent 70%),
    radial-gradient(1px 1px at 64px 210px, rgba(255,255,255,.6), transparent 70%),
    radial-gradient(1px 1px at 180px 18px, rgba(200,215,255,.8), transparent 70%),
    radial-gradient(1.3px 1.3px at 300px 260px, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(1px 1px at 330px 60px, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(1px 1px at 96px 330px, rgba(210,220,255,.7), transparent 70%),
    radial-gradient(1.8px 1.8px at 400px 140px, rgba(255,240,210,.85), transparent 70%),
    radial-gradient(1px 1px at 250px 390px, rgba(255,255,255,.6), transparent 70%);
  background-size:260px 260px, 260px 260px, 260px 260px, 260px 260px, 260px 260px, 430px 430px, 430px 430px, 430px 430px, 520px 520px, 520px 520px; }
.sky::after{ content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.18; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sky-in{ max-width:1240px; margin:0 auto; padding:34px 20px 34px; }

.kicker{ font-family:var(--f-m); font-size:12px; letter-spacing:.22em; text-transform:uppercase; color:var(--brass); display:flex; align-items:center; gap:10px; }
.kicker .dot{ width:7px; height:7px; border-radius:50%; background:var(--brass2); box-shadow:0 0 0 0 rgba(255,217,141,.7); animation:beat 2.4s ease-out infinite; }
@keyframes beat{ 0%{ box-shadow:0 0 0 0 rgba(255,217,141,.65); } 70%{ box-shadow:0 0 0 10px rgba(255,217,141,0); } 100%{ box-shadow:0 0 0 0 rgba(255,217,141,0); } }
.intro h1{ font-family:var(--f-d); font-weight:800; font-size:clamp(40px, 6.4vw, 80px); line-height:.98; letter-spacing:-.035em; margin:12px 0 12px; color:var(--cream); font-variation-settings:"opsz" 144; }
.intro h1 em{ font-style:italic; font-weight:300; color:var(--brass2); letter-spacing:-.02em; }
.lede{ max-width:620px; font-size:17px; color:var(--dim); }
.intro{ animation:rise .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }

/* ---------- stage: dial + day sheet ---------- */
.stage{ display:grid; grid-template-columns:minmax(0, 1.08fr) minmax(0, .92fr); gap:44px; align-items:start; margin-top:26px; }
.dial-col{ position:sticky; top:12px; }
.dial-wrap{ position:relative; width:100%; max-width:620px; aspect-ratio:1; margin:0 auto; container-type:inline-size; animation:rise 1s .1s cubic-bezier(.2,.7,.2,1) both; }
#dial{ width:100%; height:100%; display:block; touch-action:pan-y; cursor:grab; user-select:none; -webkit-user-select:none; overflow:visible; border-radius:50%; }
#dial:active{ cursor:grabbing; }
#dial:focus-visible{ outline:none; }
#dial:focus-visible .bezel{ stroke:var(--brass2); stroke-width:3; }
.bezel{ fill:none; stroke:url(#gBrass); stroke-width:2; }
.bezel2{ fill:none; stroke:rgba(232,176,74,.28); stroke-width:1; }
.face{ fill:url(#gFace); }
.mring{ fill:none; stroke:rgba(255,255,255,.035); stroke-width:40; }
.disc{ fill:url(#gDisc); stroke:rgba(232,176,74,.22); stroke-width:1; }
.disc-r{ fill:none; stroke:rgba(255,255,255,.06); stroke-width:1; }
.engrave{ font-family:var(--f-m); font-size:12.5px; letter-spacing:5.2px; fill:rgba(236,230,212,.32); }
.msep{ stroke:rgba(232,176,74,.22); stroke-width:1.1; }
.mtext{ font-family:var(--f-m); font-size:21px; letter-spacing:5px; fill:var(--cream); opacity:.82; font-weight:500; }
.ticks{ stroke:rgba(236,230,212,.22); stroke-width:1.1; }
.ticks1{ stroke:rgba(232,176,74,.75); stroke-width:1.6; }
.pill{ fill:none; stroke-linecap:round; stroke-width:4.4; opacity:.86; }
.pill.on{ stroke-width:6.4; opacity:1; filter:drop-shadow(0 0 5px currentColor); }
.natdot{ fill:none; stroke:var(--brass); stroke-linecap:round; stroke-width:6.5; }
.warc{ fill:none; stroke-linecap:round; stroke-width:4; opacity:.55; }
.todaymk{ fill:var(--brass2); filter:drop-shadow(0 0 6px rgba(255,217,141,.9)); }
#rot{ opacity:0; transition:opacity .8s ease; }
#dial.ready #rot{ opacity:1; }
.lens{ fill:url(#gLens); stroke:rgba(255,217,141,.55); stroke-width:1.2; pointer-events:none; }
.pointer{ fill:var(--brass2); filter:drop-shadow(0 0 6px rgba(255,217,141,.8)); }

.core{ position:absolute; left:50%; top:50%; width:46%; transform:translate(-50%, -50%); text-align:center; pointer-events:none; display:flex; flex-direction:column; align-items:center; }
.core-wd{ font-family:var(--f-m); font-size:clamp(9px, 2.1cqw, 12.5px); letter-spacing:.32em; text-transform:uppercase; color:var(--brass); padding-left:.32em; }
.core-d{ font-family:var(--f-d); font-style:italic; font-weight:300; font-size:clamp(52px, 22cqw, 136px); line-height:.86; letter-spacing:-.04em; color:var(--cream); font-variation-settings:"opsz" 144; margin:4px 0 2px; text-shadow:0 0 40px rgba(120,150,255,.25); }
.core-m{ font-family:var(--f-d); font-weight:500; font-size:clamp(13px, 3.6cqw, 22px); color:var(--cream); letter-spacing:-.01em; }
.core-c{ margin-top:clamp(5px, 1.6cqw, 10px); padding-top:clamp(5px, 1.5cqw, 9px); border-top:1px solid rgba(232,176,74,.3); font-size:clamp(10px, 2.2cqw, 13px); line-height:1.35; color:var(--dim); min-width:70%; max-width:92%; }
@container (max-width: 480px){
  .engrave{ display:none; }
  .mtext{ font-size:27px; letter-spacing:4px; }
  .core{ width:56%; }
}
.core.tick .core-d{ animation:dIn .32s cubic-bezier(.2,.8,.2,1); }
@keyframes dIn{ from{ opacity:.25; transform:translateY(7px); filter:blur(3px); } to{ opacity:1; transform:none; filter:none; } }

.tip{ position:absolute; z-index:5; pointer-events:none; min-width:150px; max-width:250px; padding:9px 11px; border-radius:10px; background:rgba(9,14,38,.94); border:1px solid rgba(232,176,74,.35); box-shadow:0 12px 30px -10px #000; font-size:12.5px; line-height:1.35; }
.tip b{ display:block; font-family:var(--f-m); font-weight:500; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--brass); margin-bottom:4px; }
.tip span{ display:block; padding-left:12px; position:relative; color:var(--cream); }
.tip span::before{ content:""; position:absolute; left:0; top:.45em; width:6px; height:6px; border-radius:50%; background:var(--c, var(--brass)); }
.tip em{ display:block; font-style:normal; color:var(--dim); margin-top:3px; }

.deck{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; margin-top:16px; }
.deck button, .deck .yr, .pick{ height:40px; min-width:40px; padding:0 14px; border-radius:999px; border:1px solid rgba(232,176,74,.34); background:rgba(255,255,255,.035); color:var(--cream); font-weight:600; font-size:14px; display:inline-flex; align-items:center; justify-content:center; gap:6px; transition:border-color .15s, background .15s, color .15s; }
.deck button:hover{ border-color:var(--brass); background:rgba(232,176,74,.12); color:var(--brass2); }
.deck .ic{ padding:0; width:40px; font-size:20px; line-height:1; }
.deck #todayBtn{ font-family:var(--f-m); font-weight:500; letter-spacing:.14em; text-transform:uppercase; font-size:12px; }
.deck .yr{ padding:0 4px; gap:0; }
.deck .yr button{ border:0; background:none; height:38px; width:34px; min-width:0; padding:0; font-size:18px; }
.deck .yr span{ font-family:var(--f-m); font-size:14px; letter-spacing:.08em; min-width:46px; text-align:center; }
.pick{ padding:0 10px; position:relative; }
.pick input{ background:none; border:0; color:var(--cream); font:500 13px var(--f-m); color-scheme:dark; width:128px; }
.hint{ text-align:center; font-size:12.5px; color:var(--faint); margin-top:10px; }

.filters{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:30px auto 0; max-width:980px; }
.chip{ display:inline-flex; align-items:center; gap:8px; height:34px; padding:0 13px 0 11px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.03); font-size:13px; font-weight:600; color:var(--cream); transition:opacity .15s, border-color .15s, background .15s; }
.chip i{ width:10px; height:10px; border-radius:50%; background:var(--c); box-shadow:0 0 10px var(--c); }
.chip small{ font-family:var(--f-m); font-size:11px; color:var(--dim); font-weight:400; }
.chip:hover{ border-color:var(--c); }
.chip[aria-pressed="false"]{ opacity:.42; }
.chip[aria-pressed="false"] i{ background:transparent; box-shadow:inset 0 0 0 1.5px var(--c); }
.chip.nat{ --c:var(--brass); }

/* ---------- day sheet: world days as postage stamps ---------- */
.sheet{ min-width:0; padding-top:6px; }
.sh-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:14px; padding-bottom:14px; margin-bottom:18px; border-bottom:1px solid rgba(232,176,74,.22); }
.sh-wd{ font-family:var(--f-m); font-size:12px; letter-spacing:.24em; text-transform:uppercase; color:var(--brass); }
.sh-date{ font-family:var(--f-d); font-weight:700; font-size:clamp(28px, 3.2vw, 40px); line-height:1.05; letter-spacing:-.025em; color:var(--cream); }
.sh-date span{ font-weight:300; font-style:italic; color:var(--dim); }
.sh-rel{ flex:none; font-family:var(--f-m); font-size:11px; letter-spacing:.16em; text-transform:uppercase; padding:6px 10px; border-radius:999px; border:1px solid rgba(232,176,74,.4); color:var(--brass2); white-space:nowrap; }
.sh-rel.now{ background:var(--brass); color:var(--night); border-color:var(--brass); font-weight:500; }
.sh-weeks{ list-style:none; display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.sh-weeks li{ font-size:13.5px; padding:7px 12px; border-radius:8px; background:linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent), transparent 80%); border-left:3px solid var(--c); color:var(--cream); }
.sh-weeks li span{ color:var(--dim); font-family:var(--f-m); font-size:11.5px; margin-left:6px; }

.stamps{ list-style:none; display:flex; flex-direction:column; gap:14px; }
.stamp{ position:relative; background:var(--paper2); color:var(--ink); border:7px dotted #0a112d; padding:2px; margin:0 -3px;
  box-shadow:0 18px 30px -18px rgba(0,0,0,.8); animation:stampIn .5s calc(var(--n) * 70ms) cubic-bezier(.2,.8,.2,1) both; transform-origin:30% 50%; }
.stamp:nth-child(odd){ --tilt:-.35deg; } .stamp:nth-child(even){ --tilt:.3deg; }
.stamp{ transform:rotate(var(--tilt)); }
@keyframes stampIn{ from{ opacity:0; transform:translateY(12px) rotate(calc(var(--tilt) - 2deg)) scale(.98); } to{ opacity:1; transform:rotate(var(--tilt)); } }
.stamp.flash .st-in{ animation:flash 1.6s ease; }
@keyframes flash{ 0%,40%{ box-shadow:inset 0 0 0 3px var(--c); } 100%{ box-shadow:inset 0 0 0 0 var(--c); } }
.st-in{ position:relative; display:grid; grid-template-columns:58px minmax(0,1fr); gap:14px; padding:12px 14px 12px 12px; border:1.5px solid var(--c);
  background:repeating-linear-gradient(0deg, transparent 0 3px, rgba(28,26,46,.018) 3px 4px), linear-gradient(135deg, #fffaf0, var(--paper2)); }
.st-ic{ width:58px; height:70px; background:var(--c); color:var(--night); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; position:relative; box-shadow:inset 0 0 0 3px rgba(255,255,255,.35); }
.st-ic svg{ width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.st-ic span{ font-family:var(--f-m); font-size:8.5px; letter-spacing:.08em; font-weight:500; max-width:52px; overflow:hidden; text-overflow:clip; white-space:nowrap; }
.st-cat{ font-family:var(--f-m); font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:color-mix(in srgb, var(--c) 55%, #1c1a2e); font-weight:500; }
.stamp h3{ font-family:var(--f-d); font-weight:650; font-size:19px; line-height:1.18; letter-spacing:-.015em; margin:2px 0 5px; color:var(--ink); padding-right:56px; }
.st-s{ font-size:14px; line-height:1.5; color:var(--ink2); }
.st-meta{ font-family:var(--f-m); font-size:11px; color:#7b7488; margin-top:7px; line-height:1.45; }
.st-act{ display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:8px; }
.st-act button{ border:0; background:none; padding:2px 0; font-size:12.5px; font-weight:700; color:var(--ink); border-bottom:1.5px solid color-mix(in srgb, var(--c) 70%, #1c1a2e); }
.st-act button:hover{ color:color-mix(in srgb, var(--c) 45%, #1c1a2e); }
.postmark{ position:absolute; top:-34px; right:-26px; width:96px; height:96px; transform:rotate(-13deg); pointer-events:none; overflow:visible; opacity:.62; mix-blend-mode:multiply; }
.postmark circle, .postmark path{ fill:none; stroke:#2b2a5a; stroke-width:1.6; }
.postmark text{ fill:#2b2a5a; font-family:var(--f-m); font-size:9.5px; letter-spacing:1.6px; }
.postmark .pm-d{ font-size:15px; letter-spacing:1px; text-anchor:middle; font-weight:500; }
.postmark .pm-y{ font-size:11px; text-anchor:middle; }

.sh-hidden{ font-size:13px; color:var(--dim); margin:14px 2px 0; }
.sh-hidden button, .quiet button{ border:0; background:none; color:var(--brass2); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.quiet{ padding:28px 4px; }
.quiet p:first-child{ font-family:var(--f-d); font-style:italic; font-weight:300; font-size:28px; line-height:1.2; color:var(--cream); margin-bottom:8px; }
.quiet p{ color:var(--dim); font-size:15px; }
.quiet .next{ margin-top:16px; display:inline-flex; flex-direction:column; align-items:flex-start; gap:2px; text-align:left; text-decoration:none; padding:12px 16px; border-radius:12px; border:1px solid rgba(232,176,74,.35); background:rgba(232,176,74,.06); color:var(--cream); font-size:15px; }
.quiet .next small{ font-family:var(--f-m); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--brass); }

.nat{ margin-top:24px; padding:16px 16px 6px; border-radius:16px; border:1px solid rgba(232,176,74,.22); background:linear-gradient(160deg, rgba(232,176,74,.09), rgba(255,255,255,.015) 60%); }
.nat h3{ display:flex; align-items:center; gap:8px; font-family:var(--f-m); font-weight:500; font-size:11.5px; letter-spacing:.2em; text-transform:uppercase; color:var(--brass); margin-bottom:8px; }
.nat h3 svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.6; }
.nat ul{ list-style:none; }
.nat li{ display:grid; grid-template-columns:38px minmax(0,1fr); gap:10px; align-items:start; padding:10px 0; border-top:1px solid rgba(255,255,255,.07); }
.nat li:first-child{ border-top:0; }
.nat .flag{ font-size:27px; line-height:1.1; text-align:center; }
.nat .cc{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:24px; border-radius:4px; background:rgba(232,176,74,.16); border:1px solid rgba(232,176,74,.45); color:var(--brass2); font:500 11.5px var(--f-m); letter-spacing:.06em; margin-top:3px; }
.nat b{ font-weight:700; color:var(--cream); font-size:15px; }
.nat .nd-n{ color:var(--brass2); font-size:14px; }
.nat small{ display:block; color:var(--dim); font-size:13px; line-height:1.45; margin-top:1px; }

/* ---------- globe ---------- */
.globe{ background:radial-gradient(900px 520px at 50% 40%, rgba(32,52,140,.42), transparent 70%), linear-gradient(180deg, #0a1029, var(--night) 70%); border-top:1px solid rgba(232,176,74,.1); }
.globe-in{ max-width:1240px; margin:0 auto; padding:52px 20px 44px; }
.globe-head{ max-width:820px; }
.globe h2{ font-family:var(--f-d); font-weight:750; font-size:clamp(28px, 4vw, 48px); line-height:1.06; letter-spacing:-.03em; margin:10px 0 12px; }
.globe h2 span{ font-style:italic; font-weight:300; color:var(--brass2); }
.g-status{ font-size:16.5px; color:var(--dim); min-height:3em; }
.g-status b{ color:var(--cream); font-weight:700; }
.g-status .big{ font-family:var(--f-d); font-style:italic; font-weight:400; color:var(--brass2); font-size:1.15em; }
.map-wrap{ position:relative; margin:22px -8px 0; }
#map{ width:100%; height:auto; display:block; overflow:visible; }
.m-sphere{ fill:rgba(40,60,150,.10); stroke:rgba(232,176,74,.28); stroke-width:1; }
.m-grat{ fill:none; stroke:rgba(160,180,255,.08); stroke-width:.8; }
.m-eq{ fill:none; stroke:rgba(232,176,74,.22); stroke-width:.9; stroke-dasharray:3 5; }
.dots path{ fill:none; stroke-linecap:round; stroke-width:3.5; stroke:rgba(140,160,220,.42); transition:stroke .45s ease; }
.dots path.on{ stroke:#ffd47e; }
.dots path.pre{ stroke:rgba(150,170,232,.46); }
.dots path.post{ stroke:rgba(120,134,190,.24); }
.dots path:hover{ stroke:#fff; }
.sun-core{ fill:#fff6d6; }
.mk-dot{ fill:var(--brass2); stroke:var(--night); stroke-width:1.5; }
.mk-pulse{ fill:none; stroke:var(--brass2); stroke-width:1.5; transform-box:fill-box; transform-origin:center; animation:ping 2.2s ease-out infinite; }
.mk.hot .mk-dot{ fill:#fff; }
.mk.hot .mk-t{ fill:#fff; }
@keyframes ping{ from{ transform:scale(.5); opacity:.95; } to{ transform:scale(2.6); opacity:0; } }
.mk-t{ font-family:var(--f-u); font-weight:700; font-size:13px; fill:var(--brass2); paint-order:stroke; stroke:var(--night); stroke-width:4px; stroke-linejoin:round; }
.mtip{ position:absolute; z-index:5; pointer-events:none; padding:7px 10px; border-radius:9px; background:rgba(9,14,38,.94); border:1px solid rgba(232,176,74,.35); font-size:12.5px; line-height:1.35; white-space:nowrap; }
.mtip b{ display:block; color:var(--cream); }
.mtip span{ font-family:var(--f-m); font-size:11.5px; color:var(--brass2); }

.scrub{ display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:16px; margin-top:18px; padding:12px 14px; border-radius:16px; border:1px solid rgba(232,176,74,.2); background:rgba(255,255,255,.03); }
.play{ display:inline-flex; align-items:center; gap:10px; height:42px; padding:0 18px 0 14px; border-radius:999px; border:1px solid var(--brass); background:linear-gradient(180deg, rgba(232,176,74,.2), rgba(232,176,74,.06)); color:var(--brass2); font-weight:700; font-size:14px; white-space:nowrap; }
.play:hover{ background:rgba(232,176,74,.26); }
.play svg{ width:16px; height:16px; fill:currentColor; }
#scrub{ -webkit-appearance:none; appearance:none; width:100%; height:26px; background:transparent; cursor:pointer; }
#scrub::-webkit-slider-runnable-track{ height:4px; border-radius:4px; background:linear-gradient(90deg, var(--brass) var(--p,0%), rgba(255,255,255,.12) var(--p,0%)); }
#scrub::-moz-range-track{ height:4px; border-radius:4px; background:rgba(255,255,255,.12); }
#scrub::-moz-range-progress{ height:4px; border-radius:4px; background:var(--brass); }
#scrub::-webkit-slider-thumb{ -webkit-appearance:none; width:18px; height:18px; margin-top:-7px; border-radius:50%; background:var(--brass2); border:3px solid var(--night); box-shadow:0 0 0 1px var(--brass), 0 0 12px rgba(255,217,141,.7); }
#scrub::-moz-range-thumb{ width:14px; height:14px; border-radius:50%; background:var(--brass2); border:3px solid var(--night); box-shadow:0 0 0 1px var(--brass); }
.clock{ display:flex; flex-direction:column; font-family:var(--f-m); font-size:12px; line-height:1.4; color:var(--dim); white-space:nowrap; text-align:right; }
.clock span:first-child{ color:var(--cream); font-size:13px; }
.live{ height:36px; padding:0 14px; border-radius:999px; border:1px solid rgba(255,255,255,.18); background:none; font-size:13px; font-weight:600; }
.live:hover{ border-color:var(--brass); color:var(--brass2); }
.map-key{ list-style:none; display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:14px; font-size:13px; color:var(--dim); }
.map-key li{ display:flex; align-items:center; gap:8px; }
.map-key i{ width:9px; height:9px; border-radius:50%; display:inline-block; }
.k-on{ background:#ffd47e; box-shadow:0 0 8px #ffd47e; } .k-pre{ background:rgba(150,170,232,.6); } .k-post{ background:rgba(120,134,190,.32); }
.k-mk{ background:var(--brass2); box-shadow:0 0 0 3px rgba(255,217,141,.3); }
.k-sun{ background:#fff6d6; box-shadow:0 0 10px 3px rgba(255,220,140,.6); }
.map-note{ font-size:12.5px; color:var(--faint); margin-top:10px; max-width:820px; }

/* perforated edge where the night sky meets the paper */
.perf{ height:16px; margin-top:-1px; background:radial-gradient(circle at 11px 0, var(--night) 7px, transparent 7.6px) 0 0 / 22px 16px repeat-x, var(--paper); }

/* ---------- paper almanac ---------- */
.paper{ background:var(--paper); color:var(--ink); position:relative; }
.paper::before{ content:""; position:absolute; inset:0; pointer-events:none; opacity:.35; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .25  0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); }
.paper-in{ position:relative; max-width:1240px; margin:0 auto; padding:46px 20px 40px; }
.year-head{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px 30px; align-items:end; }
.year-head h2{ font-family:var(--f-d); font-weight:800; font-size:clamp(30px, 4.4vw, 54px); line-height:1; letter-spacing:-.035em; color:var(--ink); }
.year-head h2 em{ font-style:italic; font-weight:300; color:var(--brass3); }
.year-head .sub{ color:var(--ink2); font-size:15.5px; margin-top:10px; max-width:620px; }
.tools{ display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.btn{ height:40px; padding:0 16px; border-radius:999px; border:1.5px solid var(--ink); background:transparent; color:var(--ink); font-weight:700; font-size:13.5px; display:inline-flex; align-items:center; gap:8px; }
.btn svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.btn:hover{ background:var(--ink); color:var(--paper2); }
.btn.solid{ background:var(--ink); color:var(--paper2); }
.btn.solid:hover{ background:#2d2a48; }
.search{ position:relative; grid-column:1 / -1; margin-top:8px; }
.search svg{ position:absolute; left:2px; top:50%; transform:translateY(-50%); width:22px; height:22px; fill:none; stroke:var(--ink2); stroke-width:1.8; }
.search input{ width:100%; border:0; border-bottom:2px solid var(--ink); background:transparent; padding:12px 6px 12px 34px; font:italic 400 clamp(18px, 2.2vw, 24px) var(--f-d); color:var(--ink); border-radius:0; }
.search input::placeholder{ color:#8d8597; }
.search input:focus{ outline:none; border-bottom-color:var(--brass3); }
.results{ grid-column:1 / -1; list-style:none; margin-top:4px; border:1.5px solid var(--ink); border-radius:14px; background:var(--paper2); overflow:hidden; box-shadow:0 20px 40px -24px rgba(28,26,46,.5); }
.results li + li{ border-top:1px solid var(--rule); }
.results button{ width:100%; display:grid; grid-template-columns:86px minmax(0,1fr); gap:12px; align-items:baseline; text-align:left; padding:11px 14px; border:0; background:none; }
.results button:hover, .results button.kb{ background:rgba(232,176,74,.16); }
.results time{ font-family:var(--f-m); font-size:12px; color:var(--ink2); }
.results b{ font-weight:700; display:block; }
.results small{ color:var(--ink2); font-size:12.5px; }
.results .none{ padding:14px; color:var(--ink2); font-size:14px; }

.soon{ margin-top:34px; }
.soon h3, .months-h{ font-family:var(--f-m); font-weight:500; font-size:12px; letter-spacing:.22em; text-transform:uppercase; color:var(--brass3); margin-bottom:12px; }
.soon ol{ list-style:none; display:flex; gap:12px; overflow-x:auto; padding:4px 2px 14px; scroll-snap-type:x proximity; scrollbar-width:thin; }
.soon li{ flex:none; width:224px; scroll-snap-align:start; }
.soon button{ width:100%; height:100%; display:grid; grid-template-columns:54px minmax(0,1fr); gap:12px; text-align:left; padding:12px; border-radius:14px; border:1.5px solid var(--rule); background:var(--paper2); transition:transform .2s, border-color .2s, box-shadow .2s; }
.soon button:hover{ transform:translateY(-2px); border-color:var(--ink); box-shadow:0 12px 24px -18px rgba(28,26,46,.6); }
.soon .d{ display:flex; flex-direction:column; align-items:center; justify-content:center; border-right:1px dashed var(--rule); padding-right:10px; }
.soon .d b{ font-family:var(--f-d); font-weight:300; font-style:italic; font-size:34px; line-height:1; }
.soon .d small{ font-family:var(--f-m); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink2); }
.soon .w{ min-width:0; font-size:13.5px; line-height:1.35; }
.soon .w em{ display:block; font-style:normal; font-family:var(--f-m); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--brass3); margin-bottom:3px; }
.soon .w span{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-weight:600; padding-left:11px; position:relative; margin-bottom:2px; }
.soon .w span::before{ content:""; position:absolute; left:0; top:.5em; width:6px; height:6px; border-radius:50%; background:var(--c); }
.soon .w i{ display:block; font-style:normal; color:var(--ink2); font-size:12px; margin-top:2px; }

.months-h{ margin-top:30px; }
.months{ columns:3 320px; column-gap:40px; }
.mon{ break-inside:avoid; margin-bottom:28px; }
.mon h3{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding-bottom:6px; margin-bottom:6px; border-bottom:2px solid var(--ink); }
.mon h3 span{ font-family:var(--f-d); font-style:italic; font-weight:400; font-size:30px; letter-spacing:-.02em; line-height:1.1; }
.mon h3 small{ font-family:var(--f-m); font-size:11px; letter-spacing:.1em; color:var(--ink2); text-transform:uppercase; }
.rows{ list-style:none; }
.rows li{ display:grid; grid-template-columns:52px minmax(0,1fr); gap:8px; padding:7px 6px; border-bottom:1px solid var(--rule); border-radius:6px; transition:background .2s; }
.rows li.sel{ background:rgba(232,176,74,.22); }
.rows li.today time b{ color:var(--brass3); }
.rows time{ font-family:var(--f-m); font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink2); line-height:1.25; }
.rows time b{ display:block; font-family:var(--f-d); font-weight:600; font-size:19px; letter-spacing:0; color:var(--ink); }
.li-day{ display:block; position:relative; padding-left:13px; font-size:14px; line-height:1.38; margin:1px 0 3px; color:var(--ink); text-decoration:none; }
.li-day::before{ content:""; position:absolute; left:0; top:.48em; width:7px; height:7px; border-radius:50%; background:var(--c); box-shadow:0 0 0 1.5px color-mix(in srgb, var(--c) 40%, #1c1a2e); }
.li-day:hover{ text-decoration:underline; text-underline-offset:2px; }
.li-wk{ display:block; font-size:12.5px; color:var(--ink2); padding-left:13px; font-style:italic; }
.li-nat{ display:block; font-size:12.5px; color:var(--ink2); line-height:1.45; padding-left:13px; margin-top:2px; }
.li-nat a{ color:var(--brass3); font-weight:700; text-decoration:none; }
.li-nat a:hover{ text-decoration:underline; }
.list-note{ font-size:13px; color:var(--ink2); margin-top:4px; }

.guide-wrap{ padding-bottom:10px; }
.guide-wrap .paper-in{ max-width:820px; padding-top:20px; }
.guide-wrap .mh-guide{ --paper:#fbf6ea; --line:#d8caa8; --ink:#1c1a2e; --maroon:#7a4f12; --golddeep:#7a4f12; --gold:#b98a2e; color:#3a3546; }
.faq{ margin-top:24px; }
.faq h2{ font-family:var(--f-d); font-weight:700; font-size:22px; color:var(--ink); margin-bottom:8px; }
.faq details{ border-top:1px solid var(--rule); padding:12px 2px; }
.faq details:last-child{ border-bottom:1px solid var(--rule); }
.faq summary{ cursor:pointer; font-weight:700; font-size:15.5px; color:var(--ink); list-style-position:outside; }
.faq details p{ margin-top:8px; font-size:15px; color:#3a3546; line-height:1.6; }
.faq a{ color:#7a4f12; font-weight:700; }

/* related strip and footer sit on paper */
.paper-foot{ background:var(--paper); padding:10px 0 0; position:relative; }
footer{ background:var(--paper); color:var(--ink2); text-align:center; font-size:13px; padding:22px 16px 30px; }
footer a{ color:#7a4f12; font-weight:600; text-decoration:none; }
footer a:hover{ text-decoration:underline; }

.toast{ position:fixed; left:50%; bottom:22px; transform:translate(-50%, 24px); opacity:0; visibility:hidden; z-index:50; max-width:min(92vw, 460px); padding:12px 18px; border-radius:12px; background:var(--ink); color:var(--paper2); font-size:14px; font-weight:600; box-shadow:0 18px 40px -16px rgba(0,0,0,.6); transition:transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s, visibility .25s; }
.toast.show{ transform:translate(-50%, 0); opacity:1; visibility:visible; }

/* ---------- small screens ---------- */
@media (max-width: 940px){
  .stage{ grid-template-columns:minmax(0,1fr); gap:26px; }
  .dial-col{ position:static; }
  .dial-wrap{ max-width:560px; }
  .year-head{ grid-template-columns:minmax(0,1fr); }
  .tools{ justify-content:flex-start; }
}
@media (max-width: 640px){
  .sky-in{ padding:24px 16px 28px; }
  .lede{ font-size:15.5px; }
  .stage{ margin-top:18px; }
  .deck{ gap:6px; }
  .deck button, .deck .yr, .pick{ height:38px; }
  .pick input{ width:118px; }
  .st-in{ grid-template-columns:46px minmax(0,1fr); gap:11px; padding:11px 11px 11px 10px; }
  .st-ic{ width:46px; height:58px; }
  .st-ic svg{ width:24px; height:24px; }
  .st-ic span{ font-size:7.5px; max-width:42px; }
  .stamp h3{ font-size:17px; padding-right:40px; }
  .postmark{ width:72px; height:72px; top:-24px; right:-4px; }
  .globe-in{ padding:38px 16px 32px; }
  .map-wrap{ margin:16px -10px 0; }
  .scrub{ grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; }
  .scrub .play{ grid-column:1 / -1; justify-self:stretch; justify-content:center; }
  .scrub #scrub{ grid-column:1 / -1; }
  .scrub .clock{ text-align:left; }
  .scrub .live{ justify-self:end; }
  .dots path{ stroke-width:4.3; }
  .mk-s{ transform:scale(2.1); }
  .paper-in{ padding:34px 16px 30px; }
  .soon li{ width:200px; }
  .filters{ margin-top:22px; gap:6px; }
  .chip{ height:32px; font-size:12.5px; padding:0 11px 0 9px; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* ---------- print: only the year list ---------- */
@media print{
  @page{ margin:14mm; }
  body{ background:#fff; color:#000; display:block; }
  header, .sky, .globe, .perf, .guide-wrap, .mh-related, footer, .toast, .tools, .search, .results, .soon, .paper::before, .paper-foot{ display:none !important; }
  .paper{ background:#fff; }
  .paper-in{ padding:0; max-width:none; }
  .year-head h2{ font-size:26pt; color:#000; }
  .year-head .sub{ color:#333; }
  .months{ columns:2; column-gap:10mm; }
  .mon h3{ border-color:#000; }
  .rows li{ border-color:#bbb; padding:3px 0; }
  .rows li.sel{ background:none; }
  .li-day{ font-size:10pt; color:#000; }
  .li-day::before{ print-color-adjust:exact; -webkit-print-color-adjust:exact; }
  .li-nat, .li-nat a{ color:#333; font-size:9pt; }
}
