/* ============================================================
   Ketchup — link pages (go.spencer.st)
   The website's legal-page look (PromptWebsite styles/legal.css):
   warm white, ink text, hairlines, mono labels, first-light pill CTA.
   Shared by index.html and event.html.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500&family=JetBrains+Mono:wght@400;500&display=swap");

@font-face {
  font-family: "ABC Repro";
  src: url("/assets/fonts/ABCReproVariable-Trial.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #031504;
  --fg-1: var(--ink);
  --fg-2: rgba(3,21,4,0.80);
  --fg-3: rgba(3,21,4,0.60);
  --bg: #FEFFFD;
  --bg-paper: #F5F5F5;
  --line: #D3D3D8;
  --line-soft: #E8E8E8;
  --skywash: #B9C8D4;
  --cta-fill: #EBF3B7;          /* first-light */
  --cta-hover: #E7FAB8;
  --r-lg: 17px;
  --r-xl: 26px;
  --font: "ABC Repro", "Inter Tight", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html, body { margin: 0; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Masthead ──────────────────────────────────────────────── */

.top { border-bottom: 1px solid var(--line); }

.top .wrap { padding-block: 20px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

/* ── Page ──────────────────────────────────────────────────── */

main { flex: 1; }

.head { padding-block: clamp(40px, 8vw, 72px) clamp(28px, 5vw, 44px); }

.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-3);
}

h1 {
  margin: 16px 0 0;
  font-weight: 500;
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.intro {
  max-width: 52ch;
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--fg-2);
}

/* Event cover — the plan's own photo, or a calm Skywash block. */
.cover {
  aspect-ratio: 16 / 9;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--skywash) center / cover no-repeat;
}

/* When / Where / Host / Going — hairline rows, mono labels. */
.facts { margin: 32px 0 0; padding: 0; }

.facts div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--line-soft);
}

.facts div:last-child { border-bottom: 1px solid var(--line-soft); }

.facts dt {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.facts dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--fg-1);
  overflow-wrap: anywhere;
}

/* ── Download box ──────────────────────────────────────────── */

.get {
  margin-block: 8px clamp(56px, 10vw, 96px);
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-paper);
}

.get h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.get p {
  max-width: 52ch;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--fg-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* The visitor's own platform is filled; the other is outlined. */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cta-fill);
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease;
}

.cta:hover { background: var(--cta-hover); }

.cta.secondary {
  background: transparent;
}

.cta.secondary:hover { background: var(--bg); }

/* ── Footer ────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--line); }

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  font-size: 13px;
  color: var(--fg-3);
}

footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

footer nav a:hover { color: var(--fg-1); }

/* ── Loading ───────────────────────────────────────────────── */

.spinner {
  width: 28px;
  height: 28px;
  margin: 30vh auto;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

[hidden] { display: none !important; }

@media (max-width: 600px) {
  .top .wrap { padding-block: 16px; }
  .cta { width: 100%; }
  .facts div { grid-template-columns: 72px 1fr; }
}
