/* ICONO coming-soon page. Versioned file name: /assets/* is served immutable,
   so bump -vN (and the <link> in the HTML) on every change. */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-var-latin-v1.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #0d0d0d;
  color: #f2f2f2;
  font: 400 1rem/1.6 "Jost", system-ui, sans-serif;
}

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

/* --- home ----------------------------------------------------------------- */

/* The poster <img> sits under the video: visible while the video loads and
   the only image with prefers-reduced-motion. The blur is baked into the
   files (tools/build-video.sh); the CSS never names them, so a new blur does
   not need a new CSS version. */
/* Sized to the large viewport (100lvh: the screen with the browser's
   toolbars hidden), not inset: 0. With inset: 0 the stage ends where iOS
   Safari's bottom address bar begins, and the translucent bar showed the
   black page behind it instead of the video. On desktop lvh = vh. */
.stage {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  background: #000;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .15);
}
.stage img,
.stage video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .stage video { display: none; }
}

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right))
           1.5rem max(1.5rem, env(safe-area-inset-left));
}
.hero h1 { margin: 0; line-height: 0; }

/* Phones: 80vw. Desktop: 38.33vw, the logo's share of the 1920px layout
   (736px there; the logo is an SVG, sharp at any size). Capped by
   viewport height so it fits on landscape phones. */
.logo {
  display: block;
  height: auto;
  width: min(max(38.33vw, min(80vw, 480px)), 110vh);
  width: min(max(38.33vw, min(80vw, 480px)), 110dvh);
}

/* --- footer (all pages) --------------------------------------------------- */

.site-footer {
  padding: .75rem max(1rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom))
           max(1rem, env(safe-area-inset-left));
  font-size: max(.8125rem, .5vw); /* grows past 2600px, e.g. 4K TVs */
  font-weight: 300;
  letter-spacing: .06em;
  text-shadow: 0 0 .5em rgba(0, 0, 0, .6);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li + li::before {
  content: "·";
  padding-inline: .5em;
  opacity: .7;
}
.site-footer a {
  display: inline-block;
  padding-block: .5rem; /* touch target */
  text-decoration: none;
}
.site-footer a:hover,
.site-footer a[aria-current="page"] { text-decoration: underline; }

/* --- legal pages and 404 -------------------------------------------------- */

.page-header,
.page main {
  width: min(100% - 3rem - env(safe-area-inset-left) - env(safe-area-inset-right), 46rem);
  margin-inline: auto;
}
.page-header { padding-top: max(1.5rem, env(safe-area-inset-top)); }
.page-header img { display: block; width: 9rem; height: auto; }

.page main {
  flex: 1;
  padding-block: 2rem 4rem;
  font-weight: 300;
  hyphens: auto;
  overflow-wrap: break-word;
}
.page main a { overflow-wrap: anywhere; }
.page .back { margin: 0 0 2rem; font-weight: 400; }

.page h1, .page h2, .page h3 { line-height: 1.25; hyphens: manual; }
.page h1 { margin: 0 0 1.5rem; font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem); font-weight: 300; }
.page h2 { margin: 2.5rem 0 .75rem; font-size: 1.375rem; font-weight: 500; }
.page h3 { margin: 2rem 0 .5rem; font-size: 1.125rem; font-weight: 500; }
.page p, .page ul { margin: 0 0 1rem; }
.page ul { padding-left: 1.25rem; }
.page strong { font-weight: 500; }
.page .site-footer { border-top: 1px solid rgba(255, 255, 255, .15); }
