/* ══ Home, calendar and paths ═════════════════════════════
   Ordinary scrolling pages, unlike the fixed app panes of the timeline and the trees.
   They share the looks and tokens of style.css; only layout and components live here. */
:root[data-look] body.spage { display: block; height: auto; min-height: 100%; overflow: visible; padding: 0 0 48px; position: static; }
html:has(body.spage) { height: auto; }
.spage > :not(.backdrop) { position: relative; z-index: 1; }
:root[data-look] body.spage main { position: relative; inset: auto; display: block; }   /* liquid.css floats the timeline's main; not here */
.spage .backdrop { position: fixed; }
:root[data-look] .spage > .site-head { position: sticky; top: 10px; z-index: 30; margin: 10px; padding: 9px 16px; }
:root[data-look="liquid"] .spage > .site-head { padding: 8px 12px 8px 20px; border-color: transparent; }
:root[data-look="indigo"] .spage > .site-head, :root[data-look="stone"] .spage > .site-head { top: 0; margin: 0 0 10px; }
:root[data-look="liquid"] .spage > .site-head::before, :root[data-look="liquid"] .today::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .1) 28%, rgba(255, 255, 255, .04) 64%, rgba(255, 255, 255, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
:root[data-look="liquid"] .spage .panel { --panel: rgba(22, 24, 31, .46); --blur: blur(26px) saturate(170%); }
:root[data-look="liquid"] .spage .backdrop::after { background: rgba(8, 9, 13, .25); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.eyebrow { font: 600 12px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lede { font: 400 18px/1.6 var(--read); color: var(--muted); max-width: 58ch; margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: max(min(var(--r-s), 14px), 6px); background: var(--raise); color: var(--text); text-decoration: none; font: 500 15px var(--ui); white-space: nowrap; }
:root[data-look="liquid"] .btn { border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn:hover { background: var(--sel); }
.btn.primary { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.quiet { background: none; color: var(--muted); padding-inline: 8px; }
.btn.quiet:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.b-link { font: 500 14.5px var(--ui); text-decoration: none; white-space: nowrap; }
.b-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* sections */
.block { margin-top: clamp(44px, 7vw, 76px); }
.spage :is(section, .cal-top, .dayp) { scroll-margin-top: 80px; }
.b-head { margin-bottom: 16px; }
.b-head.row { display: flex; align-items: end; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.b-head h2 { font: 600 clamp(24px, 3vw, 30px)/1.15 var(--ui); font-stretch: 88%; margin: 0 0 4px; text-wrap: balance; }
.b-head p { color: var(--muted); margin: 0; max-width: 64ch; }

/* picture frames: never cropped. The whole picture sits on a blurred copy of itself. */
.eod-pic, .pc-pic, .pl-pic, .pd-pic { position: relative; display: block; overflow: hidden; background: #111318; isolation: isolate; }
.eod-pic::before, .pc-pic::before, .pl-pic::before, .pd-pic::before { content: ""; position: absolute; inset: -30px; background: var(--u) center / cover; filter: blur(22px) brightness(.55) saturate(1.2); z-index: -1; }
.eod-pic img, .pc-pic img, .pl-pic img, .pd-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ── Home: hero ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(18px, 4vw, 48px) 0 0; }
.hero h1 { font: 500 clamp(34px, 4.7vw, 60px)/1.06 var(--read); letter-spacing: -.012em; margin: 0 0 20px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hsearch { display: flex; align-items: center; gap: 10px; margin: 28px 0 16px; padding: 6px 6px 6px 18px; height: 56px; max-width: 560px;
  background: var(--raise); border-radius: max(min(var(--r-s), 18px), 6px); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-look="liquid"] .hsearch { border-radius: 999px; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.hsearch:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.hsearch svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.hsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; }
.hsearch input::placeholder { color: var(--muted); }
.hsearch button { height: 100%; padding: 0 20px; border-radius: inherit; background: var(--text); color: var(--panel-solid); font-weight: 600; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* today card */
.today { padding: 22px 24px 18px; border-radius: max(var(--r), 0px); }
:root[data-look="liquid"] .today { border-color: transparent; }
.t-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.t-top h2 { font: 600 12px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0; }
.t-top span { color: var(--muted); font-size: 14px; }
.t-main { display: flex; gap: 16px; align-items: center; }
.moon { flex: none; color: var(--text); }
:root[data-look="stone"] .moon path { fill: #c99a2e; }
:root[data-look="stone"] .cd .mo.full { background: #c99a2e; box-shadow: none; }
.t-big { font: 500 30px/1.1 var(--read); }
.t-month { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.t-dev { font: 500 19px/1.5 var(--deva); color: var(--accent); }
.t-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 16px 0 4px; border-top: 1px solid var(--line); }
.t-facts div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.t-facts dt { font-size: 12px; color: var(--muted); }
.t-facts dd { margin: 0; font-weight: 550; font-variant-numeric: tabular-nums; }
.t-sub { font: 600 12.5px var(--ui); color: var(--muted); margin: 16px 0 6px; }
.t-fest { list-style: none; margin: 0; padding: 0; }
.t-fest li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; }
.tf-d { display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-radius: 10px; background: var(--raise); padding: 5px 0; }
.tf-d b { font: 600 18px var(--ui); color: var(--text); letter-spacing: 0; }
.tf-n { font-weight: 550; line-height: 1.3; }
.tf-in { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.t-more { display: inline-block; margin-top: 12px; font: 500 14.5px var(--ui); text-decoration: none; }
.t-more:hover { text-decoration: underline; }
.t-links { display: flex; flex-wrap: wrap; gap: 0 22px; }

/* cycles as bars */
.cycles-bars { padding: 10px 24px 14px; }
.cy { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(0, 2.2fr) minmax(150px, .8fr); gap: 8px 28px; align-items: center; padding: 10px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); }
.cy-l b { display: block; font-weight: 600; }
.cy-l small, .cy-r small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: block; }
/* gauge: a thick track whose fill runs into a round knob carrying the figure */
.cy { --q: 0; --kw: 62px; border-radius: 16px; transition: background-color .3s; }
.cy.in { --q: var(--p); }
.cy-gauge { position: relative; height: 46px; display: flex; align-items: center; }
.cy-gauge::before { content: ""; position: absolute; left: 0; right: 0; height: 14px; border-radius: 99px; background: color-mix(in srgb, var(--c) 13%, transparent); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.cy-fill { position: absolute; left: 0; height: 14px; border-radius: 99px; overflow: hidden;
  width: max(calc(var(--kw) / 2), calc(var(--q) * 1%)); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent), var(--c));
  transition: width 1.3s cubic-bezier(.22, 1, .36, 1) var(--delay, 0ms); }
.cy-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); }
.cy-knob { position: absolute; top: 50%; left: clamp(0px, calc(var(--q) * 1% - var(--kw) / 2), calc(100% - var(--kw))); width: var(--kw); height: 40px; translate: 0 -50%;
  display: flex; align-items: baseline; justify-content: center; padding-top: 9px; border-radius: 99px; background: var(--c); color: #16130f;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent), 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: left 1.3s cubic-bezier(.22, 1, .36, 1) var(--delay, 0ms), scale .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s; }
.cy-knob b { font: 700 15px/1 var(--ui); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cy-knob i { font: 600 10.5px/1 var(--ui); font-style: normal; margin-left: 1px; opacity: .75; }
.cy-r { text-align: right; }
.cy:hover { background: color-mix(in srgb, var(--c) 7%, transparent); }
.cy:hover .cy-knob { scale: 1.12; box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 26%, transparent), 0 0 28px color-mix(in srgb, var(--c) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6); }
.cy:hover .cy-fill::after { animation: sheen 1.1s ease-out; }
.cy:hover .cy-l b { color: var(--c); }
.cy-l b { transition: color .25s; }
@keyframes sheen { to { transform: translateX(120%); } }
:root[data-look="stone"] .cy-knob, :root[data-look="stone"] .cy-fill { filter: saturate(1.3) brightness(.85); }
@media (prefers-reduced-motion: reduce) { .cy-fill, .cy-knob { transition: none; } .cy:hover .cy-fill::after { animation: none; } }
.cy-more { display: inline-block; margin-top: 12px; font: 500 14px var(--ui); text-decoration: none; }

/* event of the day */
.eod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); overflow: hidden; }
.eod-pic { aspect-ratio: 4 / 3.2; height: 100%; max-height: 520px; border-radius: 0; }
.eod-text { padding: clamp(20px, 3vw, 36px); align-self: center; }
.eod-when { font: 600 15px var(--ui); color: var(--accent); }
.eod h3 { font: 500 clamp(26px, 3vw, 36px)/1.12 var(--read); margin: 6px 0 4px; text-wrap: balance; }
.eod h3 a { color: var(--text); text-decoration: none; }
.eod h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.eod-sk { font: 500 18px var(--deva); color: var(--muted); margin-bottom: 10px; }
.eod p { font: 400 16.5px/1.65 var(--read); margin: 10px 0 16px; max-width: 62ch; }

/* path cards */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; color: var(--text); text-decoration: none; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.pcard:hover { transform: translateY(-3px); }
.pc-pic { aspect-ratio: 16 / 10; }
.pc-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; position: relative; }
.pc-body b { font: 600 18px/1.2 var(--ui); padding-right: 60px; }
.pc-sk { position: absolute; right: 14px; top: 15px; font: 500 15px var(--deva); color: var(--accent); }
.pc-body small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.pc-body em { font-style: normal; color: var(--accent); font-size: 13px; margin-top: 4px; }

/* explore tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.tile { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 20px; color: var(--text); text-decoration: none; transition: background-color .2s; }
.tile:hover { background: color-mix(in srgb, var(--panel) 60%, var(--sel)); }
.tile svg { grid-row: 1 / span 3; width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile svg .f { fill: var(--accent); }
.tile b { font: 600 19px/1.2 var(--ui); }
.tile .n { font-size: 13px; color: var(--accent); }
.tile small { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 4px; }

/* footer */
.sfoot { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; color: var(--muted); font-size: 14px; }
.sfoot b { color: var(--text); }
.sfoot p { margin: 6px 0 0; max-width: 64ch; line-height: 1.55; }
.sfoot nav { display: flex; flex-direction: column; gap: 6px; }
.sfoot nav a { text-decoration: none; }
.sfoot nav a:hover { text-decoration: underline; }

/* ── Page heads (calendar, paths) ── */
.pg-head { padding: clamp(16px, 3vw, 36px) 0 6px; }
.pg-head h1 { font: 500 clamp(32px, 4.2vw, 52px)/1.08 var(--read); letter-spacing: -.01em; margin: 0 0 12px; text-wrap: balance; }

/* ── Calendar ── */
.cal-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 14px; margin-top: 26px; align-items: start; }
.month { padding: 14px 16px 16px; }
.m-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.m-head h2 { font: 600 22px/1.15 var(--ui); font-stretch: 90%; margin: 0; }
.m-head h2 small { display: block; font: 400 13px var(--ui); color: var(--muted); font-stretch: 100%; }
.m-title { flex: 1; min-width: 160px; }
.m-nav { display: flex; gap: 4px; }
.m-nav button { min-width: 36px; height: 34px; padding: 0 10px; border-radius: max(min(var(--r-s), 12px), 4px); background: var(--raise); font-size: 14px; }
.m-nav button:hover { background: var(--sel); }
.wk, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wk span { text-align: center; font: 600 11.5px var(--ui); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding: 4px 0; }
.cd { position: relative; min-height: 84px; padding: 6px 7px; text-align: left; border-radius: 12px; background: color-mix(in srgb, var(--raise) 60%, transparent); display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
:root[data-look="indigo"] .cd, :root[data-look="stone"] .cd { border-radius: 4px; }
.cd:hover { background: var(--sel); }
.cd.out { opacity: .38; }
.cd .dn { font: 600 17px/1 var(--ui); font-variant-numeric: tabular-nums; }
.cd .ti { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.cd .fe { font-size: 11px; line-height: 1.2; color: var(--accent); font-weight: 550; margin-top: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd .mo { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; }
.cd .mo.full { background: #f4e7c3; box-shadow: 0 0 8px rgba(244, 231, 195, .6); }
.cd .mo.new { border: 1.5px solid var(--muted); }
.cd .ek { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cd.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cd[aria-pressed="true"] { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--text); }
.cd.today[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.m-key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.m-key span { display: inline-flex; align-items: center; gap: 6px; }
.m-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }

.dayp { padding: 20px 22px; position: sticky; top: 84px; }
.dayp h2 { font: 600 12px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 4px; }
.dayp .dd { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.dayp .t-main { margin-bottom: 4px; }
.dayp dl { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; margin: 14px 0 0; border-top: 1px solid var(--line); }
.dayp dt, .dayp dd { padding: 7px 0; border-bottom: 1px solid var(--line); margin: 0; }
.dayp dt { color: var(--muted); font-size: 13px; }
.dayp dd { font-weight: 500; font-size: 14.5px; }
.dayp dd span[lang] { font-family: var(--deva); color: var(--muted); font-weight: 400; }
.dayp dd.bad { color: #ff9a8a; font-variant-numeric: tabular-nums; }
.dayp dd.good { color: #8fd8a8; font-variant-numeric: tabular-nums; }

/* the place the calendar is worked out for */
.place-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 0; padding: 8px 12px 8px 10px; width: fit-content; max-width: 100%;
  border-radius: 16px; background: var(--raise); border: 1px solid var(--line); font-size: 14px; }
.place-pick svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.place-pick label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.place-pick select { background: var(--panel-solid, #16181f); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font: 500 14.5px var(--ui); max-width: 60vw; }
.place-pick .pl-utc { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.place-pick button { padding: 6px 12px; border-radius: 10px; background: rgba(255, 179, 138, .14); color: var(--accent); font: 500 13.5px var(--ui); border: 0; }
.place-pick button:hover { background: rgba(255, 179, 138, .24); }
.place-pick .pl-msg { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.place-pick .pl-msg:empty { display: none; }
.dayp .mu-link { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--accent); text-decoration: none; }
.dayp .mu-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dayp .note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.dfest { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.dfest b { display: block; color: var(--accent); }
.dfest p { margin: 2px 0 6px; font-size: 13.5px; color: var(--muted); }
.evlinks { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; }
.evlinks a { text-decoration: none; }
.evlinks a:hover { text-decoration: underline; }

.fyear { padding: 6px 22px 12px; }
.fyear h3 { font: 600 13px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 4px; }
.fyear ol { list-style: none; margin: 0; padding: 0; }
.fyear li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.fyear li:last-child { border-bottom: 0; }
.fy-d b { display: block; font: 600 22px/1 var(--ui); font-variant-numeric: tabular-nums; }
.fy-d small { color: var(--muted); font-size: 12.5px; }
.fy-n b { font-weight: 600; font-size: 16px; }
.fy-n span[lang] { color: var(--muted); font-family: var(--deva); margin-left: 6px; }
.fy-n p { margin: 2px 0 4px; color: var(--muted); font-size: 14px; }
.fy-in { color: var(--muted); font-size: 13px; white-space: nowrap; }

.how { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.how article { padding: 18px 20px; }
.how h3 { font: 600 18px var(--ui); margin: 0 0 2px; }
.how h3 span { font: 500 16px var(--deva); color: var(--accent); margin-left: 8px; }
.how p { font: 400 15px/1.6 var(--read); margin: 8px 0 0; color: color-mix(in srgb, var(--text) 88%, transparent); }
.how svg { display: block; width: 100%; height: auto; max-height: 96px; margin: 10px 0 2px; color: var(--muted); }
.method { font-size: 13.5px; color: var(--muted); max-width: 80ch; margin: 18px 0 0; line-height: 1.55; }

/* ── Paths ── */
.cont { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 14px 20px; margin-top: 22px; }
.cont p { margin: 0; flex: 1; min-width: 220px; }
.cont p small { display: block; color: var(--muted); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px; margin-top: 26px; }
.pl { display: grid; grid-template-columns: minmax(130px, 38%) minmax(0, 1fr); overflow: hidden; }
.pl-pic { min-height: 210px; height: 100%; }
.pl-body { padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.pl-body h2 { font: 600 22px/1.15 var(--ui); font-stretch: 92%; margin: 0; padding-right: 70px; }
.pl-body h2 a { color: var(--text); text-decoration: none; }
.pl-sk { position: absolute; right: 18px; top: 20px; font: 500 17px var(--deva); color: var(--accent); }
.pl-body p { margin: 0; font: 400 15px/1.55 var(--read); color: color-mix(in srgb, var(--text) 86%, transparent); }
.pl-meta { font-size: 13px; color: var(--muted); }
.pl-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.pl-acts .btn { padding: 8px 15px; font-size: 14px; }

.pd-back { display: inline-block; margin-top: 18px; font: 500 14.5px var(--ui); text-decoration: none; }
.pd-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); overflow: hidden; margin-top: 14px; }
.pd-pic { aspect-ratio: 4 / 3; height: 100%; max-height: 440px; }
.pd-text { padding: clamp(20px, 3vw, 36px); align-self: center; }
.pd-text h1 { font: 500 clamp(30px, 4vw, 48px)/1.08 var(--read); margin: 0 0 4px; }
.pd-sk { font: 500 20px var(--deva); color: var(--accent); }
.pd-text p { font: 400 17px/1.6 var(--read); margin: 14px 0; max-width: 56ch; }
.pd-meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.route { list-style: none; margin: 30px 0 0; padding: 0; position: relative; counter-reset: stop; }
.route::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); border-radius: 2px; }
.route li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 112px; gap: 18px; align-items: start; padding: 10px 0 18px; }
.r-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 15px var(--ui); background: var(--panel-solid); border: 2px solid var(--accent); color: var(--text); position: relative; z-index: 1; }
.route li.done .r-num { background: var(--accent); color: var(--on-accent); }
.route li.here .r-num { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent); }
.r-body { padding-top: 2px; }
.r-when { font: 600 13px var(--ui); color: var(--accent); }
.r-body h3 { font: 500 21px/1.2 var(--read); margin: 2px 0 4px; }
.r-body h3 a { color: var(--text); text-decoration: none; }
.r-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.r-body p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 70ch; }
.r-note { font: italic 400 14.5px/1.5 var(--read); color: var(--text); margin: 0 0 6px !important; padding: 6px 12px; border-left: 2px solid var(--accent); }
.r-pic { width: 112px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.r-pic.pd-pic { max-height: none; }
.route li.nopic { grid-template-columns: 44px minmax(0, 1fr); }

/* ══ Motion and hover ═══════════════════════════════════
   Springy lifts, a light that follows the pointer across cards, images that drift closer,
   arrows that nudge forward. All of it switches off for reduced motion. */
:root { --spring: cubic-bezier(.3, 1.45, .5, 1); --ease: cubic-bezier(.22, 1, .36, 1); --accent-2: #ff8f9b; }

/* headings catch the light: white fading to grey, the italic phrase in apricot */
:root:not([data-look="stone"]) :is(.hero h1, .pg-head h1, .b-head h2, .pd-text h1) {
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .62)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em { background: linear-gradient(95deg, #ffd6bf, var(--accent) 45%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
:root[data-look="stone"] .hero h1 em { background: none; color: var(--accent); }

/* pointer light: set by site.js as --mx/--my on anything marked .glow */
.glow { --mx: 50%; --my: 50%; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .09), transparent 45%); }
.glow:hover::after { opacity: 1; }
:root[data-look="stone"] .glow::after { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(168, 40, 31, .07), transparent 45%); }

/* cards lift, their edge warms, their picture drifts closer */
.pcard, .tile, .pl, .how article, .eod, .today { transition: transform .45s var(--spring), box-shadow .35s, border-color .35s, background-color .25s; }
.pcard:hover, .tile:hover, .pl:hover { transform: translateY(-5px); box-shadow: var(--sheen), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 22px 50px rgba(0, 0, 0, .42); }
.how article:hover { transform: translateY(-3px); box-shadow: var(--sheen), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 18px 40px rgba(0, 0, 0, .35); }
.pcard:active, .tile:active, .pl:active { transform: translateY(-2px) scale(.985); }
:is(.pc-pic, .pl-pic, .eod-pic, .pd-pic) img { transition: scale .8s var(--ease), filter .5s; }
.pcard:hover .pc-pic img, .pl:hover .pl-pic img, .eod:hover .eod-pic img, .route li:hover .r-pic img { scale: 1.06; }
.pc-body b, .pl-body h2 a, .eod h3 a, .tile b { transition: color .25s; }
.pcard:hover .pc-body b, .pl:hover .pl-body h2 a, .tile:hover b { color: var(--accent); }
.pc-sk, .pl-sk { transition: transform .45s var(--spring), opacity .3s; }
.pcard:hover .pc-sk, .pl:hover .pl-sk { transform: translateY(-2px) scale(1.08); }

/* tile icons spring and their strokes redraw */
.tile svg { transition: transform .5s var(--spring); }
.tile:hover svg { transform: scale(1.12) rotate(-6deg); }
.tile svg :is(path, circle) { stroke-dasharray: 120; stroke-dashoffset: 0; }
.tile:hover svg :is(path, circle):not(.f) { animation: draw .9s var(--ease); }
@keyframes draw { from { stroke-dashoffset: 120; } }

/* arrows nudge forward */
:is(.b-link, .t-more, .cy-more, .pd-back) span[aria-hidden], .btn span[aria-hidden] { display: inline-block; transition: transform .35s var(--spring); }
:is(.b-link, .t-more, .cy-more, .btn):hover span[aria-hidden] { transform: translateX(5px); }
.pd-back { transition: transform .35s var(--spring); }
.pd-back:hover { transform: translateX(-4px); }

/* buttons: a press, and a band of light across the primary */
.btn { position: relative; overflow: hidden; transition: transform .3s var(--spring), background-color .2s, box-shadow .3s, filter .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(135deg, #ffd8c2, var(--accent) 55%, color-mix(in srgb, var(--accent) 70%, var(--accent-2))); box-shadow: 0 6px 22px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6); }
:root[data-look="stone"] .btn.primary, :root[data-look="indigo"] .btn.primary { background: var(--accent); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-110%); }
.btn.primary:hover::after { transition: transform .75s var(--ease); transform: translateX(110%); }
.btn.primary:hover { box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 42%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6); filter: none; }
.hsearch button { transition: transform .3s var(--spring), background-color .2s; }
.hsearch button:hover { background: var(--accent); color: var(--on-accent); }
.hsearch button:active { transform: scale(.95); }
.hsearch { transition: box-shadow .3s, background-color .3s; }
.hsearch:hover { background: color-mix(in srgb, var(--raise) 100%, rgba(255, 255, 255, .04)); }

/* the header's section links */
.site-nav a { transition: color .2s, background-color .25s, transform .3s var(--spring); }
.site-nav a:active { transform: scale(.94); }

/* today card: festival rows and the moon */
.t-fest li { border-radius: 12px; margin: 0 -8px; padding: 6px 8px; transition: background-color .2s; }
.t-fest li:hover { background: var(--raise); }
.t-fest li:hover .tf-d { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.tf-d { transition: background-color .25s; }
.moon { transition: transform .6s var(--spring), filter .4s; }
.today:hover .moon, .dayp:hover .moon { transform: rotate(-12deg) scale(1.06); filter: drop-shadow(0 0 14px rgba(244, 231, 195, .35)); }

/* calendar */
.cd { transition: transform .3s var(--spring), background-color .2s, box-shadow .25s; }
.cd:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .35); z-index: 1; }
.cd:active { transform: scale(.96); }
.m-nav button { transition: transform .3s var(--spring), background-color .2s; }
.m-nav button:active { transform: scale(.9); }
.fyear li { border-radius: 14px; margin: 0 -10px; padding-inline: 10px; transition: background-color .2s; }
.fyear li:hover { background: color-mix(in srgb, var(--raise) 70%, transparent); }
.fy-d b { transition: color .2s, transform .35s var(--spring); display: inline-block; }
.fyear li:hover .fy-d b { color: var(--accent); transform: scale(1.12); }

/* the route of a path */
.route li { border-radius: 18px; transition: background-color .25s; }
.route li:hover { background: color-mix(in srgb, var(--raise) 55%, transparent); }
.r-num { transition: transform .4s var(--spring), box-shadow .3s; }
.route li:hover .r-num { transform: scale(1.12); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.r-pic { transition: transform .45s var(--spring); }
.route li:hover .r-pic { transform: rotate(2deg); }

@media (prefers-reduced-motion: reduce) {
  .spage *, .spage *::before, .spage *::after { transition-duration: 0s !important; animation: none !important; }
  .pcard:hover, .tile:hover, .pl:hover, .how article:hover, .cd:hover { transform: none; }
}
@media (hover: none) { .glow::after { display: none; } }

/* ── Narrow screens ── */
@media (max-width: 900px) {
  .hero, .cal-top { grid-template-columns: minmax(0, 1fr); }
  .dayp { position: static; }
  .eod, .pd-hero { grid-template-columns: minmax(0, 1fr); }
  .eod-pic, .pd-pic { max-height: 340px; aspect-ratio: 16 / 10; height: auto; }
}
@media (max-width: 640px) {
  .cy { grid-template-columns: minmax(0, 1fr) auto; }
  .cy-gauge { grid-column: 1 / -1; grid-row: 2; }
  .cy { --kw: 58px; }
  .cd { min-height: 58px; padding: 4px 4px; border-radius: 8px; }
  .cd .dn { font-size: 14px; }
  .cd .ti { font-size: 10px; }
  .cd .fe { display: none; }
  .cd.has-fe::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--accent); }
  .wk span { font-size: 10px; letter-spacing: 0; }
  .month { padding: 12px 8px; }
  .pl { grid-template-columns: minmax(0, 1fr); }
  .pl-pic { min-height: 0; aspect-ratio: 16 / 9; }
  .route li { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
  .route::before { left: 17px; }
  .r-num { width: 36px; height: 36px; font-size: 13px; }
  .r-pic { display: none; }
  .fyear li { grid-template-columns: 52px minmax(0, 1fr); }
  .fy-in { grid-column: 2; }
  .sfoot { grid-template-columns: minmax(0, 1fr); }
  .today { padding: 18px 16px 14px; }
}
@media (prefers-reduced-motion: reduce) { .pcard { transition: none; } .pcard:hover { transform: none; } }

/* reminders */
.remind { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.rm-part { padding: 18px 20px; }
.rm-part + .rm-part { border-left: 1px solid var(--line); }
.rm-part h3 { margin: 0 0 10px; font: 600 16px var(--ui); }
.rm-row, .rm-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rm-chk { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; }
.rm-chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.rm-btn { display: inline-block; padding: 9px 15px; border-radius: 12px; border: 0; background: var(--accent); color: #1c1209; font: 600 14.5px var(--ui); text-decoration: none; cursor: pointer; }
.rm-btn.on { background: var(--raise); color: var(--text); }
.rm-btn:disabled { opacity: .5; cursor: default; }
.rm-links .rm-btn { background: var(--raise); color: var(--text); font-weight: 500; }
.rm-links .rm-btn:hover { background: var(--sel); }
.rm-link { color: var(--accent); font-size: 14px; }
.rm-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.rm-links + .rm-note, .rm-part > .rm-note:first-of-type { margin-top: 0; margin-bottom: 12px; }
.rm-msg { margin: 8px 0 0; font-size: 14px; color: var(--accent); }
.rm-msg:empty { display: none; }
@media (max-width: 760px) { .remind { grid-template-columns: 1fr; } .rm-part + .rm-part { border-left: 0; border-top: 1px solid var(--line); } }
