/* UPNORTH holding page. Near-black, white and greys, Archivo only, Volt only on the one action.
   Wordmark and socials on one line; the message centred, with the email as the action; under it
   "Sneak peek", a film playing inside the letters; the name at the foot. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #060606;
  --white: #ffffff;
  --light: #cccccc;
  --mid: #787878;    /* 4.6:1: small print only */
  --volt: #ceff00;
  --ink: #060606;    /* text on Volt */
  --gutter: 16px;
  --peek-ratio: 278.65 / 90.15; /* the lettering's frame (assets/sneak-peek.svg viewBox) */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  background: var(--black);
  color: var(--white);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--volt); color: var(--ink); }
:focus-visible { outline: 1px solid var(--white); outline-offset: 3px; }

/* --- Top line: wordmark, socials as icons -------------------------------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 76px;
  padding-top: env(safe-area-inset-top, 0px);
}
.mark { display: block; color: var(--white); }
.mark svg { height: 18px; width: auto; }
.social { display: flex; align-items: center; margin-right: -8px; }
.social a {
  display: grid; place-items: center;
  width: 32px; height: 40px; /* tap targets around small icons; the glyphs sit 32px apart, as in the mockup */
  color: var(--white);
  transition: opacity 167ms linear;
}
.social a:hover { opacity: 0.75; }
.social__ig { width: 17px; height: 17px; }
.social__be { width: 16px; height: auto; aspect-ratio: 641 / 401; }

/* --- The message ---------------------------------------------------------- */
.main {
  flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(64px, 15svh, 150px);
  padding: 24px 0 32px;
  text-align: center;
}
.lead { display: flex; flex-direction: column; align-items: center; }
.lead__title {
  font-weight: 300;
  font-size: clamp(32px, 4vw, 80px); line-height: 1.05; letter-spacing: -0.015em;
  text-wrap: balance;
}
.lead__sub {
  margin-top: 0.5em;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 30px); line-height: 1.25;
  color: var(--light);
}

/* the one action: the site's primary button, a full pill outlined in Volt that fills under the pointer */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: clamp(44px, 2.9vw, 56px); padding: 0 clamp(22px, 1.7vw, 32px); margin-top: clamp(32px, 6svh, 56px);
  border-radius: 999px;
  font-size: clamp(16px, 0.95vw, 18px); line-height: 1; font-weight: 400; /* the site's button size, growing to the mockup's on wide screens */
  color: var(--volt);
  box-shadow: inset 0 0 0 1.5px var(--volt);
  transition: background-color 167ms linear, color 167ms linear;
}
.pill:active { background: var(--volt); color: var(--ink); }
@media (hover: hover) { .pill:hover { background: var(--volt); color: var(--ink); } }

/* --- Sneak peek: the film inside the letters ------------------------------ */
.peek { position: relative; width: min(70vw, max(26vw, 300px), 620px); } /* 70vw leaves room for the ring on small phones */
.peek__video {
  display: block;
  width: 100%; aspect-ratio: var(--peek-ratio);
  object-fit: cover; object-position: 50% 50%;
  background: var(--black);
  -webkit-mask: url("/assets/sneak-peek.svg") center / 100% 100% no-repeat;
  mask: url("/assets/sneak-peek.svg") center / 100% 100% no-repeat;
}
/* the pause ring: the site's own video control, docked just right of PEEK, the lettering's last line
   (PEEK ends at 87.9% of the lettering's width) */
.ring {
  position: absolute; left: calc(87.9% + 12px); bottom: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  color: var(--white);
  transition: background-color 167ms linear;
}
.ring[hidden] { display: none; }
.ring svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ring__circle { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.25; opacity: 0.2; transition: opacity 167ms linear; }
.ring__pause, .ring__play { width: 10px; height: 10px; fill: currentColor; opacity: 0.5; transition: opacity 167ms linear; }
.ring__play { display: none; }
.ring[data-state="paused"] .ring__pause { display: none; }
.ring[data-state="paused"] .ring__play { display: block; }
.ring:hover { background: rgba(255, 255, 255, 0.1); }
.ring:hover .ring__circle { opacity: 0.05; }
.ring:hover svg:not(.ring__circle) { opacity: 1; }
.ring:focus-visible { outline-offset: 2px; }

.foot {
  padding: 16px 0 max(16px, env(safe-area-inset-bottom, 0px));
  font-size: 12px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--mid);
}

/* --- Computers and tablets on their side: placed as in the mockup (headline at about a quarter of the
   screen height, the email near the middle, the lettering at about 70%), rather than centred --- */
@media (orientation: landscape) and (min-height: 600px) {
  .main { justify-content: flex-start; padding-top: calc(24svh - 60px); gap: clamp(64px, 19svh, 220px); }
  .pill { margin-top: clamp(32px, 7svh, 72px); }
}

/* --- Tablets upright (iPad portrait): a tall screen, so the message and the lettering grow with its width --- */
@media (orientation: portrait) and (min-width: 600px) {
  .lead__title { font-size: min(6vw, 64px); }
  .lead__sub { font-size: min(2.6vw, 26px); }
  .pill { min-height: 48px; padding: 0 26px; font-size: 16px; }
  .peek { width: min(52vw, 560px); }
}

/* --- Short landscape screens (phones on their side): tighter, so it all fits in one screen --- */
@media (orientation: landscape) and (max-height: 520px) {
  .top { min-height: 56px; }
  .main { gap: 28px; padding: 4px 0 12px; }
  .lead__title { font-size: clamp(28px, 4.4vw, 40px); }
  .lead__sub { font-size: 16px; }
  .pill { margin-top: 18px; min-height: 44px; }
  .peek { width: min(36vw, 340px); }
}
