/* Beat the Game — Coming Soon. Direction B "All daylight" (see the Beat the Game design system).
   Fonts are self-hosted on purpose: loading them from Google would send every visitor's IP to Google. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --surface: #f2f2ee;
  --ink: #111118;
  --muted: #5a5a66;
  --accent: #2f4bff;
  --success: #1e7a45;
  --live: #1e9e55;
  --line: rgba(17, 17, 24, 0.12);
  --gutter: 20px;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; display: flex; flex-direction: column; }

/* Header */
.bar {
  height: 64px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.brand span {
  font-size: 16px;
  font-weight: 900;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.square { width: 8px; height: 8px; background: var(--accent); }
.brand span, .tag { white-space: nowrap; }
/* Small phones: the logo needs the whole bar; the headline already says "soon". */
@media (max-width: 419px) { .tag { display: none; } }

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px var(--gutter) 0;
  gap: 24px;
}
.copy { display: flex; flex-direction: column; gap: 20px; }
.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.rule { width: 28px; height: 2px; background: var(--accent); flex-shrink: 0; }
h1 {
  margin: 0;
  font-size: clamp(3.25rem, 1.9rem + 4.4vw, 5.5rem);
  line-height: 0.9;
  font-weight: 900;
  font-stretch: 112%;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
/* The outlined word falls back to solid accent where text-stroke is unsupported. */
.outline { color: var(--accent); }
@supports (-webkit-text-stroke: 1px) {
  .outline { color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
}
.lead {
  margin: 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.contact {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.contact a:hover { color: var(--accent); }
.contact a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The canal house sits on the status band's top border, like a street. */
.house {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 360px;
  margin-top: auto;
}
.house svg { display: block; width: 100%; height: auto; }
.sticker {
  position: absolute;
  left: 12.5%;
  top: 19%;
  transform: rotate(-5deg);
  padding: 8px 12px;
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Launch status */
.status {
  padding: 28px var(--gutter) 32px;
  background: var(--surface);
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.status ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.status li {
  padding: 16px;
  background: var(--white);
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.v.live { color: var(--success); }
.v.accent { color: var(--accent); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); flex-shrink: 0; }
.k {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Footer */
.foot {
  padding: 20px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Desktop */
@media (min-width: 900px) {
  :root { --gutter: 80px; }
  .bar { height: 88px; }
  .brand { gap: 12px; }
  .brand svg { width: 34px; height: 34px; }
  .brand span { font-size: 19px; }
  .tag { font-size: 12px; }
  .hero {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    padding-top: 48px;
  }
  .copy { flex: 0 1 720px; gap: 24px; padding-bottom: 40px; }
  .eyebrow { font-size: 12px; letter-spacing: 0.22em; gap: 14px; }
  .rule { width: 40px; }
  .outline { -webkit-text-stroke-width: 2px; }
  .lead { font-size: 19px; }
  .contact { font-size: 14px; }
  .house { flex: 0 1 560px; max-width: 560px; align-self: flex-end; }
  .sticker { font-size: 13px; padding: 10px 14px; box-shadow: 4px 4px 0 var(--ink); }
  .status { padding: 32px var(--gutter) 36px; gap: 20px; }
  .status ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .status li { padding: 20px 22px; gap: 12px; }
  .v { font-size: 30px; gap: 12px; }
  .dot { width: 12px; height: 12px; }
  .k { font-size: 12px; letter-spacing: 0.18em; }
  .foot { flex-direction: row; justify-content: space-between; font-size: 12px; }
}
