/* BridgeRivalry marketing site. Palette and fonts mirror apps/web/theme/tokens.css
   (light = ivory table, dark = felt green). Fonts are self-hosted; no third-party requests. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/space-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/space-grotesk-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces Variable'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-latin-opsz-normal.woff2) format('woff2-variations'); }

:root {
  color-scheme: light dark;
  --bg: #fbf8f1;
  --surface: #f6f1e4;
  --surface-raised: #ece5d0;
  --border: #e2dccb;
  --text: #1b1b1b;
  --text-2: #4a4a44;
  --text-inverse: #f6f1e4;
  --primary: #0f3d2e;
  --primary-hover: #1a5a43;
  --accent: #0f6b5e;
  --gold: #c9a227;
  --focus: #0f3d2e;
  --shadow: 0 20px 50px rgba(27, 27, 27, 0.18);
  --logo-light: inline-block;
  --logo-dark: none;
  --font-sans: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces Variable', Georgia, 'Times New Roman', ui-serif, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f3d2e;
    --surface: #114030;
    --surface-raised: #144433;
    --border: rgba(246, 241, 228, 0.24);
    --text: #f6f1e4;
    --text-2: #c4cdc0;
    --text-inverse: #1b1b1b;
    --primary: #c9a227;
    --primary-hover: #ddb83a;
    --accent: #7fd6c2;
    --focus: #c9a227;
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    --logo-light: none;
    --logo-dark: inline-block;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 46rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.logo-light { display: var(--logo-light); }
.logo-dark { display: var(--logo-dark); }
.site-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; font-size: 0.9375rem; }
.site-nav a { color: var(--text-2); text-decoration: none; }
.site-nav a:hover { color: var(--primary); text-decoration: underline; }
.site-nav a.btn { color: var(--text-inverse); }

/* Buttons */
.btn { display: inline-block; background: var(--primary); color: var(--text-inverse); font-weight: 700; font-size: 1rem; padding: 0.7rem 1.4rem; border-radius: 9px; text-decoration: none; border: 1px solid var(--primary); }
.btn:hover { background: var(--primary-hover); color: var(--text-inverse); text-decoration: none; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.875rem; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface); color: var(--primary); }

/* Hero */
.hero { padding: 2.5rem 0 2rem; display: grid; gap: 2rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; color: var(--primary); margin: 0 0 0.5rem; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.25rem); font-weight: 800; }
.lede { font-size: 1.125rem; color: var(--text-2); max-width: 36rem; margin: 1rem 0 0; }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.soon { margin: 1rem 0 0; color: var(--text-2); font-size: 0.9375rem; }
.shot { border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.shot img { width: 100%; }

/* Sections */
section.block { padding: 2.5rem 0; border-top: 1px solid var(--border); }
section.block > .wrap > h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 700; }
.section-intro { color: var(--text-2); max-width: 40rem; margin: 0.75rem 0 0; }
.cards { display: grid; gap: 1rem; margin-top: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--text-2); }

/* Screenshot gallery */
.gallery { display: grid; gap: 2rem; margin-top: 1.5rem; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 0.75rem; color: var(--text-2); font-size: 0.9375rem; }
.gallery figcaption strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.15rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 0.9rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq details p { color: var(--text-2); margin: 0.6rem 0 0; max-width: 46rem; }

/* Prose pages (legal, support, delete account) */
main.prose { padding: 2rem 0 4rem; }
main.prose h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 700; }
main.prose .meta { margin: 0.5rem 0 0; color: var(--text-2); font-size: 0.875rem; }
main.prose .sections { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
main.prose section { display: flex; flex-direction: column; gap: 0.75rem; color: var(--text-2); }
main.prose h2 { font-size: 1.3rem; font-weight: 600; color: var(--text); font-family: var(--font-sans); }
main.prose p, main.prose ul, main.prose ol { margin: 0; }
main.prose ul, main.prose ol { padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
main.prose strong { color: var(--text); }
main.prose code { font-size: 0.9em; background: var(--surface); padding: 0.05em 0.3em; border-radius: 4px; }
.callout { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 3rem; color: var(--text-2); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--primary); }

/* 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 1rem; gap: 1rem; }
.notfound .code { font-family: var(--font-display); font-size: clamp(4.5rem, 20vw, 8rem); font-weight: 800; line-height: 1; color: var(--primary); }

@media (min-width: 48rem) {
  .wrap { padding: 0 1.5rem; }
  .hero { grid-template-columns: 1fr 1.1fr; padding: 4rem 0 3rem; gap: 3rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(4, 1fr); } }
