/* The public website (DESIGN.md "Website"): one long centered page on one picture of a snowy mountain range that runs the
   length of it. Colors come only from the tokens in tokens.css, which the build copies from src/app/theme.css; nothing here
   is a color of its own. /fonts/sora-latin-wght-normal.fa26406eed.woff2 and /images/cobalt-peaks.4541736538.webp are file names the build fills in. */

@font-face {
  font-family: Sora;
  src: url('/fonts/sora-latin-wght-normal.fa26406eed.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.65 Sora, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 999px; }
h1, h2, p { margin: 0; }

/* The world: the page and its picture. The picture is as wide as the page and as tall as itself (2 by 3), from the top; the
   fades over it keep the words their ground and melt its foot into the canvas. */
/* overflow: clip, not hidden: hidden would make .world a scroll container and the fade-up below would follow it instead of the page. */
.world { position: relative; isolation: isolate; overflow: clip; min-height: 100vh; }
.world-picture { position: absolute; top: 0; left: 0; right: 0; height: min(100%, 150vw); z-index: -2; }
.world-picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% top; }
.world-picture::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--canvas-clear) 80%, var(--canvas) 100%);
}
.world::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 18% at 72% 57%, var(--canvas-95) 12%, var(--canvas-80) 55%, var(--canvas-clear) 100%),
    radial-gradient(ellipse 55% 20% at 26% 87%, var(--canvas-95) 10%, var(--canvas-75) 55%, var(--canvas-clear) 100%);
}

.inner { width: min(86%, 1300px); margin: auto; }

.site-header { display: flex; justify-content: space-between; align-items: center; padding: 32px 0; }
.site-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 27px; font-weight: 620; letter-spacing: -0.065em; }
.site-brand svg { width: 40px; height: auto; color: var(--brand); }
.site-pill {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 520;
  transition: border-color 0.15s;
}
.site-pill-large { height: 50px; padding: 0 28px; font-size: 15px; }
/* The closing Sign in is the page's one call to action: the app's primary button (accent fill, light label), not the pale header pill. */
.site-pill-solid { border-color: var(--accent); background: var(--accent); color: var(--surface); font-weight: 560; transition: background-color 0.15s; }
@media (hover: hover) {
  .site-pill:hover { border-color: var(--accent); }
  .site-pill-solid:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
}

main { text-align: center; }
.hero, .story { position: relative; isolation: isolate; width: 100%; margin-inline: auto; }
.hero { min-height: clamp(660px, 70vw, 1120px); padding-top: clamp(44px, 7vh, 100px); }
h1, h2 { font-weight: 570; letter-spacing: -0.065em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(53px, 7vw, 112px); }
h1 span { color: var(--accent); }
h2 { font-size: clamp(39px, 4.3vw, 72px); }
main p { max-width: 40ch; margin: 23px auto 0; text-wrap: pretty; }
/* The hero lede is three lines: balanced, so the last line is never a word or two on its own. */
.hero p { max-width: 44ch; text-wrap: balance; }
.story { padding: 3vw 0 max(110px, 9vw); }
/* A soft veil of the canvas behind each block of words below the hero, so they read whatever the picture is doing there. */
.story::before {
  content: '';
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, var(--canvas-95) 10%, var(--canvas-80) 32%, var(--canvas-clear) 70%);
}
.closing { padding-bottom: max(80px, 7vw); }
.closing .site-pill, .hero-short .site-pill { margin-top: 34px; }
/* The page-not-found page: the hero, shorter. */
.hero-short { min-height: clamp(420px, 50vw, 640px); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer .site-brand { margin-right: auto; font-size: 19px; color: var(--text); }
.site-footer .site-brand svg { width: 26px; }
/* Room for a short row of links (Privacy, Terms, Subprocessors) between the mark and the year: it wraps under them on a phone. */
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-muted); }
@media (hover: hover) {
  .site-footer nav a:hover { color: var(--text); text-decoration: underline; }
}

/* Each part below the hero fades up as it is first scrolled into view. Only where the browser can tie an animation to
   scrolling, and never under reduced motion or in print: elsewhere the page is simply whole, with no script at all. */
@keyframes site-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @media not print {
      .story { animation: site-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    }
  }
}

@media (max-width: 700px) {
  .inner { width: 87%; }
  .site-header { padding: 20px 0; }
  .site-brand { font-size: 23px; }
  .site-brand svg { width: 34px; }
  .world-picture { height: min(100%, 380vw); }
  .world-picture img { object-position: 94% top; }
  .hero { min-height: clamp(630px, 84svh, 750px); padding-top: 44px; }
  main p { max-width: 29ch; font-size: 16px; }
  .story { padding: 40px 0 110px; }
  .closing { padding-bottom: 70px; }
  .story::before { inset: -22% -25%; }
  /* On a phone the headline falls over the dark rock of the peak, so it gets the same veil as the words below it. */
  .hero::before {
    content: '';
    position: absolute;
    inset: -4% -25% 38%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, var(--canvas-95) 10%, var(--canvas-80) 40%, var(--canvas-clear) 72%);
  }
  .site-footer { padding-bottom: 32px; }
  .site-footer .site-brand { font-size: 19px; }
  .site-footer nav { order: 3; width: 100%; }
}
