/* Shared layer for the landing page drafts. tokens.css and base.css load first; each variant's art direction lives in landing/<variant>.css. */
:root { --brand-gold: #f6cf7a; --brand-navy: var(--navy-800); }

[hidden] { display: none !important; }
.lp { overflow-x: clip; }
.lp img { display: block; max-width: 100%; height: auto; }
.lp :where(h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul) { margin: 0; }
.lp :where(ol, ul) { padding: 0; list-style: none; }
.lp :where(section[id], [id].anchor) { scroll-margin-top: 80px; }
.skip { position: absolute; z-index: 100; top: var(--space-2); left: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow-md); font-weight: 600; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The theme button offers the other theme; selectors mirror the dark rules in tokens.css. */
.theme-toggle-sun, :root[data-theme="dark"] .theme-toggle-moon { display: none; }
:root[data-theme="dark"] .theme-toggle-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle-sun { display: block; }
}

/* Before/after comparison. The second image is the result, shown right of --pos, like the gold divider in the brand mark. */
.compare { --pos: 50%; position: relative; overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.compare > img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare > img + img { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare-line { position: absolute; inset-block: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--compare-line, var(--brand-gold)); pointer-events: none; }
.compare-handle { position: absolute; top: 50%; left: var(--pos); display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--compare-handle, var(--brand-gold)); color: var(--compare-handle-ink, var(--brand-navy)); box-shadow: 0 6px 24px rgba(0, 0, 0, .28); pointer-events: none; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.compare:has(.compare-range:focus-visible) .compare-handle { outline: 2px solid var(--compare-line, var(--brand-gold)); outline-offset: 4px; }
.compare-tag { position: absolute; z-index: 1; pointer-events: none; }

/* Stacked images that crossfade when a [data-mood] button picks them. */
.mood-stack { display: grid; }
.mood-stack > * { grid-area: 1 / 1; opacity: 0; transition: opacity 700ms var(--ease); }
.mood-stack > .is-active { opacity: 1; }

/* One-shot entrance for elements marked data-reveal; content stays visible without JavaScript.
   data-reveal="draw" only receives .is-revealed, for variants that animate strokes instead of fading. */
.js [data-reveal]:not([data-reveal="draw"]) { transition: opacity 900ms var(--ease), translate 900ms var(--ease); }
.js [data-reveal]:not([data-reveal="draw"], .is-revealed) { opacity: 0; translate: 0 24px; }
