/* v3 one-pager. Values at 390 and 1440 match the Figma frames; in between they interpolate. */
@property --t {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  --ink: #0b0c0e;
  --paper: #f2efe8;
  --wordmark-w: 196px;
  --human-w: 183.664px;
  --network-size: 21.87px;
  --network-tracking: 0.417em;
  --gap-ink: 14.376px;
  --gap-body-footer: 48px;
  --body-size: 14px;
  --body-leading: 24px;
  --footer-size: 12px;
  --t: clamp(0, (100vw - 390px) / 1050px, 1);
  --pad-y: clamp(48px, calc(48px + (100vw - 390px) * 16 / 1050), 64px);
  --pad-x: clamp(32px, calc(32px + (100vw - 390px) * 32 / 1050), 64px);
  --hand: clamp(300px, calc(300px + (100vw - 390px) * 132 / 1050), 432px);
  --gap-header-hand: clamp(112px, calc(112px + (100vw - 390px) * 8 / 1050), 120px);
  --gap-hand-body: clamp(152px, calc(152px + (100vw - 390px) * 8 / 1050), 160px);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--pad-y) var(--pad-x);
}

.lockup {
  width: var(--wordmark-w);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
}

.lockup svg {
  display: block;
  width: var(--wordmark-w);
  max-width: 100%;
  height: auto;
}

.network {
  box-sizing: content-box;
  margin: var(--gap-ink) 0 0;
  width: var(--human-w);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 300;
  font-size: var(--network-size);
  line-height: 1;
  letter-spacing: var(--network-tracking);
  text-transform: uppercase;
  text-align: center;
  color: var(--paper);
  /* Hug the cap height so --gap-ink is the ink-to-ink gap from the human line */
  text-box: trim-start cap alphabetic;
  text-box-trim: trim-start;
  text-box-edge: cap alphabetic;
  /* CSS letter-spacing includes a trailing gap; shift by half of it so the glyphs stay centered on human */
  margin-left: calc(var(--network-tracking) / 2);
  margin-right: calc(-1 * var(--network-tracking) / 2);
}

.hand-wrap {
  margin-top: var(--gap-header-hand);
  width: min(var(--hand), calc(100vw - 2 * var(--pad-x)));
  flex: 0 0 auto;
}

.hand-mark {
  display: block;
  width: 100%;
  height: auto;
}

.grow {
  flex: 1 1 auto;
  margin-top: var(--gap-hand-body);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.body-copy {
  margin: 0;
  max-width: 324px;
  width: 100%;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--body-size);
  line-height: var(--body-leading);
  text-align: center;
  color: var(--paper);
}

.footer {
  margin: var(--gap-body-footer) 0 0;
  width: 100%;
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 400;
  font-size: var(--footer-size);
  line-height: 1;
  text-align: center;
  color: var(--paper);
  flex: 0 0 auto;
}

@media (max-width: 389px) {
  :root {
    --t: 0;
    --hand: min(300px, calc(100vw - 64px));
  }
}

@media (min-width: 1440px) {
  :root { --t: 1; }
}
