/* umbra.masn.studio: white words on the eclipse's sky, which deepens into night as you scroll */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; src: url("/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("/fonts/newsreader-latin-ext-opsz-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --text: #fff;
  --soft: rgba(255, 255, 255, .76);
  --faint: rgba(255, 255, 255, .56);
  --line: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .08);
  --ink: #0a1d52;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: #020a24; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  /* (no WebGL: the same sky, still) */
  background: linear-gradient(#012f9d, #0b5fd3 46vh, #7fa2ec 66vh, #f3dcef 80vh, #fed166 90vh, #e94442 97vh, #ab284a 100vh, #020a24 100vh) no-repeat;
}
body.gl { background: none; }
/* the sky stays put; the sun's light is on a canvas that's part of the page, so the browser carries it as the page
   scrolls, in step with the words. Both as tall as the screen at its tallest: a phone's toolbar sliding away doesn't
   resize them */
#sky { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; }
#sun { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; pointer-events: none; }
body:not(.gl) #sky, body:not(.gl) #sun { display: none; }
/* the night, for the words further down (deepens with the scroll: site.js sets its opacity) */
.veil { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; background: linear-gradient(rgba(1, 6, 26, .2), rgba(1, 6, 26, .78) 60%, rgba(1, 4, 18, .9)); opacity: 0; }
a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: #fff; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .85); outline-offset: 3px; border-radius: 6px; }
code { font: 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); }

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(20px, 4vw, 40px); }
.top::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(2, 8, 28, .72), rgba(2, 8, 28, 0)); opacity: 0; transition: opacity .5s var(--ease); }
body.scrolled .top::before, body.doc .top::before { opacity: 1; }
.mark { font: 400 23px/1 var(--serif); letter-spacing: -.02em; text-decoration: none; opacity: 0; transition: opacity .6s var(--ease); }
body.scrolled .mark { opacity: 1; }
.top nav { display: flex; align-items: center; gap: 26px; }
.top .gh { display: flex; color: var(--soft); }
.top .gh svg { width: 19px; height: 19px; fill: currentColor; }
.top .gh:hover { color: #fff; }
.top nav a { font-size: 14.5px; color: var(--soft); text-decoration: none; }
.top nav a:hover { color: #fff; }

main, footer, .hero { position: relative; z-index: 2; }
.hero { height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: calc(30vh + max(14vmin, 104px)); text-align: center; }
h1 { margin: 0; font: 380 clamp(64px, 11vmin, 128px)/1 var(--serif); letter-spacing: -.03em; text-shadow: 0 2px 44px rgba(0, 14, 60, .35); }
.tag { margin: 16px 0 0; font-size: clamp(18px, 2.6vmin, 22px); color: #fff; }
.sub { margin: 8px 0 0; font-size: 15px; color: var(--soft); letter-spacing: .01em; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 34px; }
.free { font-size: 13.5px; color: var(--faint); letter-spacing: .01em; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border-radius: 24px; font: 500 15.5px/1 var(--sans); color: #fff; text-decoration: none; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .26); transition: background-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { background: rgba(255, 255, 255, .2); }
.btn:active { transform: scale(.97); }
.btn.main { background: #fff; color: var(--ink); border-color: #fff; font-weight: 600; box-shadow: 0 12px 40px rgba(0, 12, 50, .3); }
.btn.main:hover { background: #eef3ff; }
.btn.done { background: rgba(201, 247, 217, .16); border-color: rgba(201, 247, 217, .5); color: #dffbe9; box-shadow: none; }

.block { max-width: 1120px; margin: 0 auto; padding: 18vh clamp(22px, 5vw, 48px) 4vh; }
h2 { margin: 0 0 30px; font: 400 clamp(38px, 5vw, 60px)/1.04 var(--serif); letter-spacing: -.025em; }

/* Umbra, in action: a window rising out of the hero, the real look with an inbox that's made up */
.show { position: relative; max-width: 1180px; margin: -14vh auto 0; padding: 0 clamp(16px, 4vw, 40px); }
.window { position: relative; border-radius: 16px; overflow: hidden; background: #15161a; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 120px rgba(0, 8, 40, .55), 0 0 160px rgba(140, 160, 255, .12); transform: translateY(40px) scale(.97); opacity: 0; transition: transform 1.4s var(--ease), opacity 1.2s var(--ease); }
body.lit .window { transform: none; opacity: 1; transition-delay: .35s; }
.bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: #1c1d22; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.bar span { margin: 0 auto; transform: translateX(-28px); height: 24px; padding: 0 64px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .5); font-size: 12.5px; line-height: 24px; }
.screen { position: relative; width: 100%; aspect-ratio: 1280 / 800; overflow: hidden; }
.screen iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; }
.notes { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 34px; margin: 34px 0 0; padding: 0; color: var(--soft); font-size: 15.5px; }
.notes li { display: flex; align-items: center; gap: 10px; }
.notes li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: .7; box-shadow: 0 0 10px rgba(255, 255, 255, .8); }

.install { text-align: center; display: flex; flex-direction: column; align-items: center; }
.state { margin: 18px 0 0; font-size: 14.5px; color: #dffbe9; }
.state:empty { display: none; }
.how { margin: 22px 0 0; max-width: 520px; color: var(--faint); font-size: 14.5px; }

footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1120px; margin: 0 auto; padding: 12vh clamp(22px, 5vw, 48px) 44px; font-size: 14px; color: var(--faint); }

/* arriving: the name after the eclipse, the rest as it comes into view */
.in { opacity: 0; transform: translateY(14px); filter: blur(5px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 1.1s var(--ease); }
body.lit .in { opacity: 1; transform: none; filter: none; }
body.lit .tag.in { transition-delay: .12s; }
body.lit .sub.in { transition-delay: .2s; }
body.lit .cta.in { transition-delay: .3s; }
.block > * { transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.block:not(.seen) > * { opacity: 0; transform: translateY(18px); }
.block.seen > *:nth-child(2) { transition-delay: .08s; }
.block.seen > *:nth-child(3) { transition-delay: .16s; }
.block.seen > *:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .in, .block > * { transition: opacity .4s; transform: none !important; filter: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 820px) {
  .show { margin-top: -18vh; }
  .bar span { padding: 0 24px; }
  .hero { padding-top: calc(30vh + 100px); }
  .top nav { gap: 18px; }
}

/* the privacy page: the same night, words to read */
body.doc { background: #020a24; }
.doc main { max-width: 760px; margin: 0 auto; padding: 120px clamp(22px, 5vw, 40px) 40px; }
.doc h1 { font-size: clamp(42px, 6vw, 60px); text-shadow: none; margin-bottom: 28px; }
.doc h2 { font-size: 30px; margin: 52px 0 14px; }
.doc h3 { font-size: 20px; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--soft); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: #fff; font-weight: 600; }
.doc .mark { opacity: 1; }
.doc footer { padding-top: 60px; }
