/* blindpick.net: the coming-soon page and the legal pages (scripts/build-site.mjs writes the HTML).
   Colours and type follow the app (src/ui/theme.ts): navy ground, blue accent, Barlow + Barlow Condensed. */

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/BarlowCondensed_800ExtraBold.ttf") format("truetype");
}
@font-face {
  font-family: "Barlow";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Barlow_400Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Barlow";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Barlow_600SemiBold.ttf") format("truetype");
}

:root {
  --bg: #070b14;
  --surface: #0c1220;
  --raised: #121a2b;
  --line: rgba(154, 178, 214, 0.12);
  --line-strong: rgba(154, 178, 214, 0.24);
  --text: #eef2f8;
  --muted: #8a97ad;
  --faint: #5b6880;
  --accent: #4c8dff;
  --accent-bright: #7fb0ff;
  --accent-soft: rgba(76, 141, 255, 0.16);
  --gold: #f2c14e;
  --gutter: 16px;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--accent-bright);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Top bar */
.bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  display: block;
  image-rendering: pixelated;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.2px;
  line-height: 1;
}
.wordmark span {
  color: var(--accent);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 16px;
}
.nav a {
  padding: 8px 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover {
  color: var(--accent-bright);
}

/* Hero: on phones the board sits above the text; from 900px the text sits in the empty hall on the left. */
.hero {
  position: relative;
}
.hero-art {
  display: block;
  position: relative;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0) 55%, var(--bg) 100%);
}
.hero-copy {
  position: relative;
  margin-top: -40px;
  padding-bottom: 8px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(44px, 12vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.5px;
}
.lede {
  margin: 18px 0 0;
  max-width: 34em;
  color: #c9d3e3;
  font-size: 18px;
}
.platforms {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
  }
  .hero {
    min-height: min(78vh, 680px);
    display: flex;
    align-items: center;
  }
  .hero-art {
    position: absolute;
    inset: 0;
  }
  .hero-art img {
    height: 100%;
    aspect-ratio: auto;
    object-position: 70% 50%;
  }
  .hero-art::after {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(7, 11, 20, 0.92) 34%, rgba(7, 11, 20, 0.5) 54%, rgba(7, 11, 20, 0) 72%),
      linear-gradient(180deg, rgba(7, 11, 20, 0) 70%, var(--bg) 100%);
  }
  .hero-copy {
    margin-top: 0;
    padding-top: 96px;
    padding-bottom: 120px;
  }
  .hero-copy > * {
    max-width: 520px;
  }
}

/* The three points */
.points {
  display: grid;
  gap: 14px;
  padding-top: 36px;
  padding-bottom: 56px;
}
.point {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--raised), var(--surface));
}
.num {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
}
.point h2 {
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.point p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.more {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
}
@media (min-width: 760px) {
  .points {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .more {
    grid-column: 1 / -1;
  }
}
/* From 900px the cards rise into the bottom of the artwork instead of sitting under an empty band. */
@media (min-width: 900px) {
  .points {
    position: relative;
    z-index: 1;
    margin-top: -96px;
    padding-top: 0;
  }
}

/* Text pages: How it works, FAQ, legal */
.article {
  max-width: 760px;
  padding-top: 24px;
  padding-bottom: 56px;
}
.article h1 {
  font-size: clamp(38px, 10vw, 64px);
  overflow-wrap: anywhere;
  hyphens: auto;
}
.article .updated {
  margin: 10px 0 8px;
  color: var(--faint);
  font-size: 14px;
}
.article .intro {
  margin: 14px 0 0;
  color: #c9d3e3;
  font-size: 18px;
}
.article section {
  margin-top: 28px;
}
.article h2 {
  font-size: 24px;
  line-height: 1.1;
}
.article p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  overflow-wrap: anywhere;
}
.article .more {
  margin-top: 32px;
}
@media (min-width: 900px) {
  .article {
    padding-top: 110px;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  color: var(--faint);
  font-size: 14px;
}
.footer p {
  margin: 0 0 14px;
}
.contact {
  color: var(--muted);
  font-size: 16px;
}
.legal-links {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}
.legal-links div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 18px;
}
.lang-tag {
  min-width: 64px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.legal-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--muted);
}
.legal-links a:hover {
  color: var(--text);
}
.disclaimer {
  max-width: 46em;
}
