/* Solé's welcome page: a warm sun with a few lights in orbit (drawn by landing.js), pinned behind the page,
   and a short, typographic read scrolling over it. Headlines in Fraunces with italic accents; text in Inter.

   Type: one fluid scale, each step a size at a 390px phone and at a 1440px screen. Use only these.
     --t-small 14→15   --t-body 17→19   --t-lede 19→23   --t-h3 34→52   --t-h2 44→96   --t-h1 52→136
   Space: one unit (8px) and its multiples; every section has the same breathing room above and below. */

body.lp { overflow-x: clip; padding-top: 0; }   /* the welcome page runs under the status bar; its bar keeps clear */
/* iPad/iPhone bounce past the end of the page and show the root background there; the pinned sky doesn't
   stretch into that, so give the root the sky's own edge colour instead of the cream page colour. The page
   itself must then be transparent, or its background would paint over the sky. */
html:has(body.lp-home) { background: #F5E0D3; }
body.lp-home { background: transparent; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]):has(body.lp-home) { background: #20141A; } }
html[data-theme="dark"]:has(body.lp-home) { background: #20141A; }
.lp {
  --em: #A96300;                                     /* italic accents; 4.6:1 on the lightest sky */
  --t-small: clamp(14px, .1vw + 13.6px, 15px);
  --t-body: clamp(17px, .19vw + 16.3px, 19px);
  --t-lede: clamp(19px, .38vw + 17.5px, 23px);
  --t-h3: clamp(34px, 1.71vw + 27.3px, 52px);
  --t-h2: clamp(44px, 4.95vw + 24.7px, 96px);
  --t-h1: clamp(52px, 8.19vw + 20px, 136px);
  --u: 8px;
  --section: clamp(calc(var(--u) * 12), 10vw, calc(var(--u) * 20));   /* 96 → 160 */
  --column: min(720px, 52vw);
}
/* dark: the evening sky is bright behind the column's right edge, so the grey is lighter and the veil deeper */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp { --em: var(--sun); --fg-2: #D3CCBD; --veil: 84%; } }
:root[data-theme="dark"] .lp { --em: var(--sun); --fg-2: #D3CCBD; --veil: 84%; }

.lp h1, .lp h2, .lp h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.025em; text-wrap: balance; }
.lp h1 em, .lp h2 em, .lp h3 em { font-style: italic; color: var(--em); }
.lp .lp-lede { font-size: var(--t-lede); line-height: 1.5; color: var(--fg-2); margin: 0; max-width: 32em; }

/* bar: clear over the hero, frosted once you scroll */
.lp-bar { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--u) * 2 + env(safe-area-inset-top, 0px)) var(--gutter) calc(var(--u) * 2); transition: background .3s, box-shadow .3s; }
.lp-bar.lp-solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); }
.lp-bar .brand { font-size: 26px; }
.lp-bar .brand::before { display: none; }
.lp-bar-login { font-size: var(--t-small); font-weight: 500; padding: var(--u) calc(var(--u) * 2.25); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.lp-bar-login:hover { background: var(--sun); box-shadow: none; color: var(--ink-on-sun); }

/* the sky is pinned to the screen behind everything, and the page scrolls straight over it.
   lvh, so it doesn't jump when a phone's toolbar hides. A fixed veil on the left keeps the words readable;
   the sun sits on the right, in the clear, and everything below the hero keeps to the left column. */
.lp-sky { position: fixed; top: 0; left: 0; width: 100%; height: 100lvh; display: block; z-index: -1; animation: lp-dawn 2.4s ease-out both; }
@keyframes lp-dawn { from { opacity: 0; } }
/* the veil eases off along an S-curve: a straight two-step fade has a kink where its slope changes, and the eye
   sees that kink as a vertical line down the middle of the page (worst on the dark sky) */
body.lp::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; --v: var(--veil, 70%);
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--bg) var(--v), transparent) 0,
    color-mix(in srgb, var(--bg) calc(var(--v) * .97), transparent) 30%,
    color-mix(in srgb, var(--bg) calc(var(--v) * .92), transparent) 40%,
    color-mix(in srgb, var(--bg) calc(var(--v) * .84), transparent) 48%,
    color-mix(in srgb, var(--bg) calc(var(--v) * .72), transparent) 55%,
    color-mix(in srgb, var(--bg) calc(var(--v) * .57), transparent) 61%,
    color-mix(in srgb, var(--bg) calc(var(--v) * .42), transparent) 66%,
    color-mix(in srgb, var(--bg) calc(var(--v) * .27), transparent) 71%,
    color-mix(in srgb, var(--bg) calc(var(--v) * .14), transparent) 76%,
    color-mix(in srgb, var(--bg) calc(var(--v) * .05), transparent) 81%,
    transparent 86%); }
.lp-sheet > section { max-width: calc(var(--gutter) + var(--column)); }

/* hero: the words sit low on the left */
.lp-hero { position: relative; min-height: 100svh; display: grid; align-items: end; }
.lp-hero-copy { padding: calc(var(--u) * 18) var(--gutter) clamp(calc(var(--u) * 7), 11vh, calc(var(--u) * 16)); }
.lp-hero h1 { font-size: var(--t-h1); line-height: .94; margin: 0 0 calc(var(--u) * 4); max-width: 10.5ch; font-variation-settings: "opsz" 144; }
.lp-actions { display: flex; align-items: center; gap: calc(var(--u) * 3); margin-top: calc(var(--u) * 5); }
.lp-more { color: var(--fg-2); font-size: var(--t-body); }
.lp-more:hover { color: var(--fg); }
.lp-hero-copy > * { animation: lp-rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.lp-hero-copy > :nth-child(2) { animation-delay: .12s; }
.lp-hero-copy > :nth-child(3) { animation-delay: .24s; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(22px); } }

/* every section: the same room above and below */
.lp-what, .lp-dates, .lp-end { padding: var(--section) var(--gutter); }

/* what it does: three short pieces, one under another, each under a hairline */
.lp-what { display: grid; gap: calc(var(--u) * 8); }
.lp-what article { border-top: 1px solid var(--line-strong); padding-top: calc(var(--u) * 3); }
.lp-what h2 { font-size: var(--t-h3); line-height: 1.04; margin: 0 0 calc(var(--u) * 2); }
.lp-what p { margin: 0; font-size: var(--t-body); line-height: 1.6; color: var(--fg-2); max-width: 32em; }

/* dates: a big line and a few real-looking dates */
.lp-dates h2, .lp-end h2 { font-size: var(--t-h2); line-height: .98; margin: 0 0 calc(var(--u) * 3); }
.lp-dates .lp-lede { margin-bottom: calc(var(--u) * 6); }
.lp-list { list-style: none; margin: 0; padding: 0; }
.lp-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: calc(var(--u) * 2.5); align-items: baseline; padding: calc(var(--u) * 2.5) 0;
  border-bottom: 1px solid var(--line); font-size: var(--t-body); }
.lp-list li:first-child { border-top: 1px solid var(--line); }
.lp-when { font-family: var(--display); font-style: italic; font-size: 1.3em; color: var(--em); }

/* end: the invitation */
/* the last panel is a whole screen of its own: the sun radiating, the invitation beside it (or under it) */
.lp-end { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: calc(var(--u) * 3); }
.lp-end h2 { margin: 0; max-width: 12ch; }
/* the name in running text, set like the wordmark in the bar */
.lp-name { font-family: var(--display); font-weight: 500; font-size: 1.12em; letter-spacing: -.01em; color: var(--fg); }
.lp-safe { margin: var(--u) 0 0; font-size: var(--t-small); color: var(--fg-2); max-width: 34em; }
.lp-safe a, .lp-doc a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--sun-deep); text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* footer */
.lp-foot { display: flex; justify-content: space-between; align-items: center; gap: calc(var(--u) * 2.5); padding: calc(var(--u) * 3.5) var(--gutter);
  font-size: var(--t-small); }
.lp-foot .brand { font-size: 20px; }
.lp-foot .brand::before { display: none; }
.lp-foot nav { display: flex; gap: calc(var(--u) * 3); color: var(--fg-2); }
.lp-foot nav a:hover { color: var(--fg); }

/* privacy page */
.lp-doc { max-width: 720px; margin: 0 auto; padding: calc(var(--u) * 16) var(--gutter) calc(var(--u) * 11); }
.lp-doc h1 { font-size: clamp(48px, 8vw, 88px); line-height: 1; margin: 0 0 calc(var(--u) * 2.5); }
.lp-doc .lp-lede { margin-bottom: calc(var(--u) * 7); }
.lp-doc h2 { font-size: 28px; margin: calc(var(--u) * 6.5) 0 calc(var(--u) * 1.5); line-height: 1.15; }
.lp-doc p, .lp-doc li { font-size: 17px; line-height: 1.65; color: var(--fg-2); }
.lp-doc ul { padding-left: 20px; }
.lp-doc li { margin: 6px 0; }
.lp-doc strong { color: var(--fg); }
.lp-updated { margin-top: calc(var(--u) * 7); font-size: 14px !important; color: var(--fg-2) !important; }
.lp:has(.lp-doc) .lp-bar { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lp:has(.lp-doc)::after { display: none; }

/* phones: the sun sits up top, the words below it */
@media (max-width: 820px) {
  /* the veil is drawn by landing.js on phones, so it can deepen as you scroll past the hero */
  body.lp::after { display: none; }
  .lp { --section: calc(var(--u) * 9); }                 /* 72px: a phone screen is short, keep the read moving */
  /* phones and tablets upright: the words sit low, under the sun, like the hero */
  .lp-end { align-content: end; padding-bottom: calc(var(--u) * 8); }
  .lp-sheet > section { max-width: none; }
  .lp-hero-copy { padding-top: 46svh; }
  .lp-hero h1 { margin-bottom: calc(var(--u) * 2.5); }
  .lp-list li { grid-template-columns: 7.5em 1fr; }
  .lp-actions { gap: calc(var(--u) * 2.5); margin-top: calc(var(--u) * 3.5); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-copy > *, .lp-sky { animation: none; }
}
