/* Design tokens */
:root {
  color-scheme: dark;
  --background: #090a0c;
  --text: #f2f4f7;
  --muted: #9299a3;
  --accent: #58a6ff;
  --line: #252a32;
  --page-padding: clamp(24px, 6vw, 112px);
  --font: "Unbounded", Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: "Unbounded";
  src: url("assets/fonts/Unbounded-wght.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}

/* Global */
* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background-color: var(--background);
  background-image: radial-gradient(circle at 15% 18%, rgb(88 166 255 / 7%), transparent 26rem), repeating-linear-gradient(0deg, rgb(255 255 255 / 2%) 0 1px, transparent 1px 5px);
  font-family: var(--font);
}

a { color: inherit; text-underline-offset: .3em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { color: var(--background); background: var(--accent); }

.page-padding { width: 100%; padding-inline: var(--page-padding); }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 12px; color: var(--background); background: var(--text); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Reusable page components */
site-header, site-footer { display: block; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 106px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.045em;
  text-decoration: none;
}

.wordmark__light { font-weight: 400; }
.accent-dot { color: var(--accent); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 83px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer small,
.site-footer a { font-size: 11px; }

.footer-navigation { display: flex; align-items: center; gap: 24px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { padding-block: 12px; }
.footer-links [aria-current="page"] { color: var(--text); }

/* Homepage */
.home {
  height: 100svh;
  overflow: hidden;
  background-image:
    linear-gradient(to top, var(--background) 16%, rgb(9 10 12 / 98%) 42%, rgb(9 10 12 / 78%) 66%, rgb(9 10 12 / 30%) 100%),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 2%) 0 1px, transparent 1px 5px),
    url("back.webp");
  background-position: center, center, center 40%;
  background-size: auto, auto, cover;
  background-repeat: repeat, repeat, no-repeat;
}

.hero {
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 0;
  padding-block: clamp(48px, 10vh, 120px);
}

.hero__content { transform: translateY(clamp(72px, 14vh, 156px)); }

.hero h1 {
  margin: 0 0 22px;
  font-family: var(--font);
  font-size: clamp(62px, 9vw, 145px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.04em;
  text-shadow: 0 4px 24px rgb(0 0 0 / 45%);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

/* Legal pages */
.legal-content {
  flex: 1;
  max-width: 960px;
  padding-block: 60px 80px;
}

.legal-content h1 {
  margin: 0 0 28px;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.legal-content h2 { margin-top: 36px; font-size: 20px; line-height: 1.35; }
.legal-content p,
.legal-content li,
.legal-content address { color: var(--muted); font-size: 15px; line-height: 1.8; }
.legal-content address { font-style: normal; overflow-wrap: anywhere; }
.notice { padding: 18px 22px; color: var(--text) !important; background: #141820; border-left: 3px solid var(--accent); }
.placeholder { color: #aecdff !important; }

/* Responsive */
@media (max-width: 640px) {
  :root { --page-padding: 20px; }

  .site-header { min-height: 80px; }
  .wordmark { font-size: 14px; }
  .hero { padding-block: 48px; }
  .hero__content { transform: translateY(76px); }
  .hero h1 { font-size: clamp(52px, 14vw, 78px); }
  .eyebrow { font-size: 10px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 5px; padding-block: 20px; }
  .footer-navigation { gap: 18px; }
  .legal-content { padding-block: 40px 60px; }
}
