@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/archivo-black-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Azeret Mono";
  src: url("/fonts/azeret-mono-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 800;
}

:root {
  color-scheme: light;
  --cobalt: #254bff;
  --paper: #f2f0e8;
  --ink: #141414;
  --quiet: #5f5e59;
  --hairline: rgba(20, 20, 20, 0.18);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--cobalt);
  color: var(--paper);
}

.landing {
  display: flex;
  flex-direction: column;
  width: min(100% - 40px, 1280px);
  min-height: 100svh;
  margin-inline: auto;
  padding: 32px 0 40px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  display: block;
  width: 44px;
  height: 44px;
}

.hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 12vh 0 9vh;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(3.45rem, 10vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.87;
}

h1 span {
  color: var(--cobalt);
}

.launch-date,
.countdown-label,
.countdown-status {
  font-family: "Azeret Mono", monospace;
  letter-spacing: 0.02em;
}

.launch-date {
  margin: 32px 0 0;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.5;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1040px;
  margin-top: 46px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.countdown-unit {
  min-width: 0;
  padding: 22px 20px 24px 0;
  border-right: 1px solid var(--hairline);
}

.countdown-unit:not(:first-child) {
  padding-left: 20px;
}

.countdown-unit:last-child {
  border-right: 0;
}

.countdown-value {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: "Azeret Mono", monospace;
  font-size: clamp(2.7rem, 7vw, 6.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.95;
}

.countdown-label {
  display: block;
  margin-top: 14px;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.4;
}

.countdown-status {
  margin: 22px 0 0;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.5;
}

.network-note {
  max-width: 48ch;
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.5;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 16px;
  color: var(--quiet);
  font-family: "Azeret Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.social-link:hover {
  color: var(--cobalt);
}

.social-link:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 4px;
}

.arrow {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.25;
}

body[data-launch-reached="true"] .countdown-value {
  color: var(--cobalt);
}

@media (max-width: 767px) {
  .landing {
    width: min(100% - 32px, 1280px);
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .hero {
    padding: 13vh 0 8vh;
  }

  h1 {
    font-size: clamp(3.25rem, 16.5vw, 6rem);
  }

  .launch-date {
    margin-top: 26px;
    font-size: 11px;
  }

  .countdown {
    margin-top: 38px;
  }

  .countdown-unit {
    padding: 16px 8px 18px 0;
  }

  .countdown-unit:not(:first-child) {
    padding-left: 8px;
  }

  .countdown-value {
    font-size: clamp(1.9rem, 9.9vw, 3.7rem);
    letter-spacing: -0.08em;
  }

  .countdown-label {
    margin-top: 10px;
    font-size: 8px;
  }
}

@media (max-width: 359px) {
  .countdown-value {
    font-size: clamp(1.75rem, 9.4vw, 3.2rem);
  }

  .countdown-label {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
