/* The page's own rules. The values are the app's stet.css, which the build copies beside this sheet.
   With script (html.js) the page is one stage --stage wide, from 1440 to 1600, scaled by --k,
   which is never above 1, and centred on a wider screen. The hero and the ending stand under the bar on
   every screen; on one taller than 900 a section's words stand --drop / 2 lower. On a narrow screen
   (html.phone) phone.css lays the stage out again; without script, still.css does. */

:root { --stage: clamp(1440px, 100vw, 1600px); --k: min(1, tan(atan2(100vw, 1440px))); --drop: max(0px, (100vh / var(--k) - 900px) * .4); --lift: rgba(0, 0, 0, .08); --deep: rgba(0, 0, 0, .35);
  /* The second hand's ink, and a title's second half. The margin's own slate is dim at a headline's size on dark paper. */
  --slate: #4f7192; }
@media (prefers-color-scheme: dark) { :root { --lift: rgba(0, 0, 0, .4); --deep: rgba(0, 0, 0, .7); --slate: #8fb0cf; } }
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--face-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h4, h5, p { margin: 0; font: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--whisper); outline-offset: 2px; }

.caret { display: inline-block; flex: none; width: 2px; height: 20px; background: var(--whisper); vertical-align: -3px; margin: 0 1px; }
/* The cursor blinks only where a visitor would write: the ending's field. */
.emailfield .caret { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
kbd { display: inline-block; border: 1px solid var(--hairline); border-radius: 4px; background: var(--panel); font: 500 13px/normal var(--face-sans); color: var(--muted); }

/* ---- the page's bar ---- */
.sitebar { position: sticky; top: 0; z-index: 10; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--paper); border-bottom: 1px solid var(--hairline); }
.sitebar .logo img { display: block; width: auto; height: 30px; }
.sitebar .joinlink { font-size: 13px; font-weight: 500; color: var(--ink-strong); text-underline-offset: 4px; }
html.js .sitebar { position: fixed; left: max(0px, (100% - var(--stage)) / 2); top: 0; width: var(--stage); height: 55px; padding: 0 36px; border-bottom-color: transparent; transform: scale(var(--k)); transform-origin: 0 0; }
html.js .sitebar.ruled { border-bottom-color: var(--hairline); }
html.js .sitebar .logo img { height: 34px; }

/* ---- the words ---- */
.second { color: var(--slate); }
.heads .line { font-size: 34px; line-height: 1.4; font-weight: 600; letter-spacing: -0.012em; color: var(--ink-strong); }
.heads .under { font-size: 18px; line-height: 26px; color: var(--muted); }
.kinds { display: flex; flex-wrap: wrap; gap: 0 20px; justify-content: center; font-size: 15px; line-height: 22px; color: var(--muted); }
.endhead .line { font-size: 44px; line-height: 1.2; font-weight: 600; letter-spacing: -0.014em; color: var(--ink-strong); }
.endhead .under { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--muted); }
/* Balanced, so that no word of it stands alone on a narrow screen. */
.endhead .under span { display: block; text-wrap: balance; }
.kinds i { font-style: normal; color: var(--faint); margin-right: 6px; }
.kinds button { padding: 0; border: 0; background: none; line-height: inherit; cursor: pointer; }
.kinds button:hover { color: var(--ink-strong); }
.kinds .lit { color: var(--ink-strong); font-weight: 600; }
.words .line { font-size: 34px; line-height: 1.18; font-weight: 600; letter-spacing: -0.012em; color: var(--ink-strong); }
.words .desc { margin-top: 18px; font-size: 17px; line-height: 1.6; text-wrap: pretty; }
/* A dash is 2.5 px high in a place to press 24 px high; hover washes that place one step. It fills with ink as its
   step plays (--fill), and where nothing more will come by itself a sign stands after them. */
.ticks { margin-top: 19px; display: flex; gap: 8px; }
.ticks button { position: relative; width: 32px; height: 24px; padding: 0; border: 0; border-radius: 2px; background: none; cursor: pointer; }
.ticks button:hover { background: var(--hairline); }
.ticks [data-go]::before, .ticks [data-go]::after { content: ""; position: absolute; left: 0; right: 0; top: 10.75px; height: 2.5px; border-radius: 1.25px; background: var(--faint); opacity: .45; }
.ticks [data-go]::after { background: var(--ink-strong); opacity: 1; clip-path: inset(0 calc(100% - var(--fill, 0) * 100%) 0 0); }
.ticks .next { width: 24px; margin-left: 2px; font-size: 15px; line-height: 24px; color: var(--muted); opacity: 0; transition: opacity var(--duration) linear; }
[data-still="true"] .ticks .next { opacity: 1; }

/* A feature's words come in one part after another: the title's two lines, the description, the dashes. The stage says how far as --come. */
.words .part { opacity: clamp(0, var(--come, 1) * 1.9 - var(--i) * .3, 1); }

/* Words that are heard and not seen. */
.unseen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.handwriting .hand { position: absolute; left: var(--x); top: var(--y); overflow: visible; }
.handwriting .hand.ink { stroke: var(--ink-strong); }
.handwriting .hand.upright { font-size: 1.31em; stroke: var(--slate); }
.handwriting .hand .stroke { fill: none; stroke-linecap: round; stroke-linejoin: round; }

.emailfield { position: relative; display: flex; align-items: center; width: min(520px, 100%); height: 56px; margin: 40px auto 0; border-bottom: 1.5px solid var(--faint); }
.emailfield:focus-within { border-bottom-color: var(--ink-strong); }
.emailfield .caret { height: 22px; margin: 0 3px 0 0; }
.emailfield:is(:focus-within, :has(input:not(:placeholder-shown))) .caret { display: none; }
.emailfield input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; font: 400 20px/1 var(--face-sans); color: var(--ink-strong); caret-color: var(--whisper); }
.emailfield input::placeholder { color: var(--faint); opacity: 1; }
.joinbtn { flex: none; height: 36px; padding: 0 16px; border: 1px solid var(--hairline); border-radius: 8px; background: none; color: var(--muted); font: 600 14px/1 var(--face-sans); }
/* Offered once something is typed. While a try is on its way it is drawn as when it is not offered. */
.joinbtn:enabled:not([aria-disabled="true"]) { border-color: var(--whisper); background: var(--whisper); color: var(--paper); cursor: pointer; }
.fieldsays { min-height: 26px; width: min(520px, 100%); margin: 14px auto 0; font-size: 16px; line-height: 1.7; color: var(--muted); text-align: left; }
.privacy { width: min(520px, 100%); margin: 10px auto 0; font-size: 13px; line-height: 1.55; color: var(--muted); text-align: left; }
.foot { font-size: 14px; line-height: 1.6; color: var(--muted); text-align: center; }
.foot b { color: var(--ink-strong); font-weight: 500; }
.foot small { display: block; margin-top: 18px; font-size: 12px; }
.foot small span { display: block; text-wrap: balance; }
.foot a { color: inherit; text-underline-offset: 3px; }

/* Until the script has drawn the first moment, nothing is shown: by opacity, since a part made visible inside a hidden one shows. */
html.js:not(.playing) :is(.sitebar, .view) { opacity: 0; }

/* ---- one stage, held on the screen over a seat of scroll for each screen (stage/seats.js) ---- */
html.js .track { height: calc(var(--seats) * 100vh); }
html.js .view { position: sticky; top: 0; height: 100vh; overflow: clip; }
html.js .stage { position: relative; left: max(0px, (100% - var(--stage)) / 2); width: var(--stage); height: calc(100vh / var(--k)); transform: scale(var(--k)); transform-origin: 0 0; overflow: clip; }
/* On a wider screen a section's window is cut by the stage's edge, and a line says where that is. */
html.js .sitebar.ruled ~ .track .stage { box-shadow: -1px 0 var(--hairline), 1px 0 var(--hairline); }
html.js .screen { position: absolute; inset: 0; pointer-events: none; }
/* Every control can be reached by the Tab key, and only those of the screen that stands can be pressed. */
html.js .words[style*="auto"] .ticks { pointer-events: auto; }

/* Each domain's window stands in a slot of its own, one over another, and the chosen one's shows. It comes over
   the one it replaces in one change of opacity, so the window's frame never fades and only what stands in it
   changes. */
html.js .slot { position: absolute; inset: 0; z-index: 1; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0s linear .35s, visibility 0s linear .35s; }
html.js .slot.active { z-index: 2; opacity: 1; visibility: visible; transition: opacity .35s linear; }
/* A window that is not shown is neither styled nor laid out, so that a change of state costs one window however many
   the page holds. The one a choice replaces stays until the other has come over it (domainChoice.js), and all are
   while the stage says it is measuring them (stage/stage.js, stage/phoneFraming.js). */
html.js .slot:not(.active, .leaving) { content-visibility: hidden; }
html.js .stage.measuring > .slot { content-visibility: visible; }
/* The window is held as one layer only while the camera moves, so no frame draws it again, and only the window
   that shows. At rest it is drawn at the size it stands at, which keeps its type sharp; a layer held all the time
   is soft at every size but one. */
html.js .stage[data-moving="camera"] > .slot.active > .cam { will-change: transform; }
html.js .stage[data-moving="camera"] .heads { will-change: transform, opacity; }
html.js .kinds { pointer-events: none; }
.wordsback { display: none; }
/* As tall as a phone's screen is while its browser's bars show; main.js lays the page out by it. */
.smallscreen { position: fixed; left: 0; top: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }

html.js .ground { position: absolute; left: 0; top: 0; z-index: 1; opacity: 0; pointer-events: none; }
/* The hands' size, and the headline's baseline, in the room the window leaves over it; a short screen leaves less. */
html.js .heads { --hand: calc(min(88px, 1020px / var(--ems)) * max(.68, tan(atan2(var(--hero-top) - 55px, 342px)))); --base: calc(55px + (var(--hero-top) - 99px) / 2 + var(--hand) * .04); position: absolute; left: 0; top: 0; width: var(--stage); z-index: 4; text-align: center; }
/* Centred without a transform, which the ground's reading of their places would not count. */
html.js .heads > * { position: absolute; left: 0; right: 0; width: max-content; margin: 0 auto; }
html.js .heads .line { top: 0; width: auto; }
html.js .handwriting { position: absolute; left: calc(var(--stage) / 2 - var(--ems) * var(--hand) / 2); top: var(--base); width: calc(var(--ems) * 1em); height: 0; font-size: var(--hand); letter-spacing: 0; }
html.js .heads .under { top: calc(var(--base) + min(var(--hand) * .86, 78px)); }
html.js .kinds { top: calc(var(--hero-top) - 38px); }

html.js .words { position: absolute; top: 55px; height: min(845px + var(--drop), 100% - 55px); z-index: 4; display: flex; flex-direction: column; justify-content: center; opacity: 0; }
html.js .words[data-side="lefty"] { left: calc(var(--stage) - 398px); width: 366px; }
html.js .words[data-side="righty"] { left: 32px; width: 448px; }

html.js .ending > * { opacity: 0; }
/* A third of the way down, and higher on a screen so low that with the field's longest answer the privacy line would
   run into the foot: 462px holds both and what is between them. It never goes up under the bar. */
html.js .endhead { position: absolute; left: 0; top: max(75px, min(round(100% / 3, 1px), 100% - 462px)); width: var(--stage); z-index: 4; text-align: center; }
html.js .foot { position: absolute; left: 0; bottom: 40px; width: var(--stage); z-index: 4; }

@media (prefers-reduced-motion: reduce) {
  .emailfield .caret { animation: none; }
  .ticks .next { transition: none; }
  html.js .slot, html.js .slot.active { transition: none; }
}
