/* Flurry website: shared styles. Cobalt & Bubblegum, rounded like the app. */
:root {
  --cobalt: #174DA8;
  --cobalt-deep: #123B85;
  --ink: #0B1F44;
  --muted: #4F5D78;
  --bubblegum: #FFB9DD;
  --blush: #FFF0F7;
  --powder: #DCEBFF;
  --powder-tint: #F4F8FF;
  --white: #FFFFFF;
  --ground: #FFFFFF;
  --line: #DCEBFF;

  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;

  --measure: 34rem;
  --page: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EEF3FF;
    --muted: #A9B6D3;
    --blush: #2A1A2A;
    --powder: #22355A;
    --powder-tint: #111E36;
    --ground: #0B1426;
    --line: #22355A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--body);
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--bubblegum);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3 {
  font-family: var(--rounded);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--rounded); font-weight: 800; font-size: 1.35rem; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 0.6rem; }
.site-nav { display: flex; gap: 0.25rem; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.55rem 0.8rem; border-radius: 999px; }
.site-nav a:hover { background: rgba(255, 255, 255, 0.14); }

/* Plain pages (support, privacy) */
.page-header { background: var(--cobalt); color: var(--white); }
.page-header .site-header { position: static; }
.page-header .intro { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.page-header h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.page-header p { margin: 0.75rem 0 0; max-width: var(--measure); color: rgba(255, 255, 255, 0.86); font-size: 1.1rem; }

.prose { max-width: 44rem; padding-top: 3rem; padding-bottom: 4rem; }
.prose h2 { font-size: 1.6rem; margin: 2.75rem 0 0.75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 0.4rem; }
.prose p, .prose li { color: var(--ink); }
.prose a { color: var(--cobalt); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .prose a { color: #A9C3FF; }
}
