/* Aestii — shared base for all homepage variations */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 300 600;
  font-stretch: 100% 125%;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-stretch: 100% 125%;
  font-display: swap;
  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;
}

:root {
  /* brand: taken from the logo files */
  --ink: #121212;
  --pale: #d8d8d8;
  /* page tones */
  --salt: #eceeeb;
  --sea: #1a1e1f;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: 0.9375rem;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font);
  font-stretch: 112%;
  font-weight: 400;
  font-size: var(--text);
  line-height: 1.45;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }

h1 { margin: 0; font: inherit; }

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

/* ---- background video ---- */
.sea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* fade the video in once its first frame is ready (only when JS runs) */
.js .sea { opacity: 0; transition: opacity 2s ease; }
.js.is-ready .sea { opacity: 1; }

/* ---- page chrome: pause control ---- */
.chrome {
  position: fixed;
  z-index: 5;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }

.motion-toggle {
  appearance: none;
  flex: none;
  width: 40px;
  height: 40px;
  margin: 0 -10px -10px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.motion-toggle:hover { opacity: 1; }
.motion-toggle:focus-visible { outline: 1.5px solid currentColor; outline-offset: 2px; opacity: 1; }
.motion-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.motion-toggle .icon-play { display: none; }
.is-paused .motion-toggle .icon-play { display: block; }
.is-paused .motion-toggle .icon-pause { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
