/* Limitless Home: Coming Soon (shared by index.html and 404.html) */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: block; /* the intro waits for this font, so COMING SOON never swaps mid-animation */
  src: url("/fonts/cormorant-garamond-300.woff2") format("woff2");
}

:root {
  --espresso: #1F1511;
  --parchment: #F5F0EB;
  --sand: #E3D9CB; /* logo lettering: text on dark backgrounds */
  --faded-copper: #99715D; /* the house */
  --layer-extra: 12vh;
  --curve-depth: 14vh;
}

*, *::before, *::after { box-sizing: border-box; }

html { scrollbar-gutter: stable; }
html, body { margin: 0; }

body {
  background: var(--espresso);
  color: var(--sand);
  -webkit-font-smoothing: antialiased;
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Page: vertical logo and COMING SOON, centred. Mobile first. ---------- */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  overflow: hidden;
}

.page-inner { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 50%; }

.page-logo { display: block; width: min(44vw, 180px); height: auto; overflow: visible; }

.page-title {
  margin: 40px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-note {
  margin: 20px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: 20px;
  color: rgb(227 217 203 / .7);
}

@media (min-width: 768px) {
  .page-logo { width: 230px; }
  .page-title { margin-top: 52px; font-size: 56px; }
}

/* Phones held sideways: size by height so the logo and COMING SOON fit without scrolling */
@media (orientation: landscape) and (max-height: 500px) {
  .page { padding-top: 24px; padding-bottom: 24px; }
  .page-logo { width: min(44vh, 180px); }
  .page-title { margin-top: 6vh; font-size: min(9vh, 38px); }
}

/* COMING SOON write effect: pen outlines trace each letter, then the real letters fade in at the same spot */
.cs-write { position: relative; display: inline-block; vertical-align: top; width: 6.913em; height: 1em; letter-spacing: 0; }
.cs-svg { position: absolute; left: 0; top: 0; height: 1em; width: 100%; overflow: visible; }
.cs-char { position: absolute; top: 0; line-height: 1; }
.cs-trace { fill: none; stroke: var(--sand); stroke-width: 16; stroke-linejoin: round; opacity: 0; } /* only shown while writing */

/* ---------- Intro (only while html.intro is set) ---------- */
.intro-layer, .intro-icon { display: none; }

html.intro,
html.intro body { overflow: hidden; }

html.intro .intro-layer {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  height: calc(100vh + var(--layer-extra));
  height: calc(100dvh + var(--layer-extra));
  background: var(--parchment);
}

.intro-curve {
  position: absolute;
  left: -30%;
  width: 160%;
  top: calc(100% - var(--curve-depth));
  height: calc(var(--curve-depth) * 2);
  border-radius: 50%;
  background: var(--parchment);
  transform-origin: 50% 50%;
}

html.intro .intro-icon { display: block; position: fixed; z-index: 101; overflow: visible; pointer-events: none; transform-origin: 50% 50%; }

/* Page pieces wait behind the layer until the intro brings them in */
html.intro .page-icon,
html.intro .page-fade,
html.intro .cs-trace,
html.intro .cs-char { opacity: 0; }
