/* Option B, "The hill": sky, spruce and sun, round edges, one expressive face. */
:root {
  --bg: #f5f6f1; --surface: #d3e6ee; --paper: #ffffff; --ink: #0c1f16; --accent: #10261c; --accent-ink: #ffffff;
  --band: #ffc933; --band-ink: #0c1f16; --dark: #10261c; --dark-ink: #f2f7ea; --leaf: #d9e86a;
  --field: #ffffff; --face: "Bricolage", system-ui, sans-serif; --hw: 750; --track: -0.03em; --r: 20px; --rb: 999px;
  --dot-pass: #22603a; --dot-fail: #b3bdb4; --dot-line: #0c1f16; --axis: #3c5145; --grid: #e1e8df;
}
.btn:hover { background: var(--leaf); color: var(--accent); }
.opener:not(.product) { background: var(--surface); }
.products { background: var(--surface); }
.research-block { background: var(--bg); }

.hill { position: relative; height: calc(100svh - 150px); min-height: 600px; max-height: 860px; overflow: hidden; background: var(--sky, var(--surface)); }
.home .top, .top { background: var(--sky, var(--surface)); }
.scene { position: absolute; inset: 0; }
.scene > canvas, .still { position: absolute; inset: 0; width: 100%; height: 100%; }
.still { top: auto; height: 52%; object-fit: cover; object-position: 50% 100%; }
.heavens, .near { pointer-events: none; }
.near { opacity: 0; transition: opacity 0.9s; }
.hill.live .near { opacity: 1; }
.land { touch-action: pan-y; cursor: ew-resize; opacity: 0; transition: opacity 0.9s; }
.hill.live .land { opacity: 1; }
.hill.live .still { visibility: hidden; }
.night .still { filter: brightness(0.5) saturate(0.55) hue-rotate(75deg); }
.title { position: relative; z-index: 2; padding: clamp(24px, 5vh, 72px) var(--edge) 0; display: grid; gap: 20px; justify-items: start; pointer-events: none; }
.title h1 { font-size: 14.6vw; letter-spacing: -0.028em; line-height: 0.84; white-space: nowrap; margin-left: -0.04em; }
.title > p { font-size: clamp(1.35rem, 0.9rem + 1.4vw, 2.1rem); font-weight: 550; letter-spacing: -0.015em; line-height: 1.2; max-width: 19ch; }
/* Controls: one slim see-through row along the foot of the picture, clear of the mountain. */
.view { position: absolute; z-index: 3; left: var(--edge); right: var(--edge); bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 10px 14px; border-radius: 18px; background: rgb(6 20 13 / 0.58); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); color: #fff; font-size: 0.875rem; --focus: var(--leaf); --ink: #ffffff; --bg: #10261c; } /* taste-skill-ignore: see-through bar, asked for */
.view .caption { flex: 1 1 280px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; line-height: 1.35; }
.view .caption strong { flex-basis: 100%; }
.view .caption > span { font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.view .a-time { font-weight: 700; color: var(--leaf); }
.view .a-zone, .view .a-moon { display: none; }
[data-almanac] > span + span:not(.a-zone, .a-moon)::before { content: " · "; }
.view [data-controls] { flex: 0 1 600px; display: flex; align-items: center; gap: 8px; }
.view [data-controls][hidden] { display: none; }
.view .transport { display: contents; }
.view [data-play] { order: 1; flex: none; position: relative; width: 36px; height: 36px; padding: 0; border-radius: 999px; background: rgb(255 255 255 / 0.92); font-size: 0; }
.view [data-play]::before { content: ""; position: absolute; left: calc(50% - 4px); top: calc(50% - 6px); width: 11px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.view [data-play][aria-pressed="true"]::before { left: calc(50% - 5.5px); clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.sunline { order: 2; flex: 1; min-width: 0; display: flex; font-size: 0; }
.sunline output { display: none; }
.sunline input { width: 100%; min-width: 0; height: 36px; accent-color: var(--leaf); }
.dateline { order: 3; flex: none; position: relative; display: flex; font-size: 0; }
.dateline input { height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.92); color: var(--accent); font: inherit; font-size: 0.8125rem; font-weight: 600; }
.dateline output { display: none; }
.view .seasons { display: none; }
.season-pick { order: 4; flex: none; -webkit-appearance: none; appearance: none; width: 88px; height: 36px; padding: 0 22px 0 14px; border: 0; border-radius: 999px; background: var(--leaf) url("/assets/img/updown.svg") no-repeat right 9px center; color: var(--accent); font: inherit; font-size: 0.8125rem; font-weight: 700; }
.view .reset { order: 5; flex: none; display: flex; align-items: center; height: 36px; padding: 0 4px; font-size: 0; font-weight: 650; color: var(--leaf); }
.view .reset::after { content: "Now"; font-size: 0.8125rem; }
.view .reset:disabled { opacity: 0.45; cursor: default; }
/* After dark the headline and navigation turn light, easing across. */
.title, .home .top, .home .top .btn { transition: color 1.2s ease, background-color 1.2s ease; }
/* Pure black by day and pure white after dark keep 4.5:1 against the sky all through dusk. */
.hill .title { color: #000; }
body.night.home .top, .night .hill .title { color: #fff; }
body.home:not(.night) .top { color: #000; }
body.night.home .top .btn { background: var(--leaf); color: var(--accent); }
.view .motion { margin-left: auto; min-height: 28px; padding: 0; font-size: 0.8125rem; font-weight: 650; color: var(--leaf); text-decoration: underline; text-underline-offset: 0.25em; }
.view .motion[hidden] { display: none; }
.feature h3 { font-size: var(--head); }
.invite { background: var(--dark); color: var(--dark-ink); --focus: var(--dark-ink); }
.invite .btn { background: var(--leaf); color: var(--accent); }
.invite .btn:hover { background: #fff; }

@media (max-width: 900px) {
  /* The picture and its controls fit the first screen, under the two-line header. */
  .hill { min-height: 0; max-height: none; height: max(520px, calc(100svh - 170px)); }
  .still { height: 40%; }
  .title { padding-top: 12px; gap: 14px; }
  .title h1 { font-size: 21vw; white-space: normal; max-width: 5.2em; line-height: 0.86; }
  .title > p { font-size: 1.15rem; }
  .view { left: 8px; right: 8px; bottom: 8px; display: block; padding: 8px 10px; border-radius: 16px; font-size: 0.8125rem; }
  .view .caption { gap: 0 5px; margin-bottom: 6px; line-height: 1.3; font-size: 0.75rem; }
  .view .motion { position: absolute; right: 12px; top: 4px; font-size: 0.6875rem; }
  .view .caption > span { font-size: 0.6875rem; }
  .view [data-controls] { gap: 6px; }
  .view [data-play], .sunline input, .view .reset { height: 34px; }
  .view [data-play] { width: 34px; }
  .dateline input { position: absolute; inset: 0; width: 100%; height: 34px; opacity: 0; font-size: 16px; }
  .dateline output { display: grid; place-items: center; height: 34px; min-width: 54px; padding: 0 8px; border-radius: 999px; background: rgb(255 255 255 / 0.92); color: var(--accent); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
  .dateline:focus-within output { outline: 2px solid var(--leaf); outline-offset: 2px; }
  .season-pick { width: 80px; height: 34px; padding-left: 12px; font-size: 0.75rem; }
}
