/* grbx.dev — hand-written, no build step. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --text: #14161a;
  --text-muted: #5b616e;
  --border: #e3e5ea;
  --accent: #3048d9;
  --accent-hover: #2236b0;
  --accent-contrast: #ffffff;
  --accent-soft: #eef0fd;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.04), 0 1px 3px rgb(16 24 40 / 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --bg-alt: #15181d;
    --surface: #181b21;
    --text: #eceef2;
    --text-muted: #a0a6b2;
    --border: #2a2e36;
    --accent: #8b9bff;
    --accent-hover: #aab6ff;
    --accent-contrast: #0e1013;
    --accent-soft: #1d2242;
    --shadow: none;
    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(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.75rem); font-weight: 750; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--accent); color: var(--accent-contrast);
  padding: 0.5rem 1rem; border-radius: 8px; z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky; top: 0; z-index: 5;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }

.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-size: 1.25rem; letter-spacing: 0.08em;
  color: var(--text); text-decoration: none;
}
.wordmark:hover { color: var(--text); }
.wordmark-mark { width: 1.6rem; height: 1.6rem; color: var(--accent); flex: none; }

.nav, .footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Sections */
.hero { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem); }
.hero h1 { max-width: 16ch; }
.eyebrow {
  color: var(--accent); font-weight: 650; font-size: 0.875rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem;
}
.lede { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3rem); color: var(--text-muted); max-width: 40rem; }
.muted { color: var(--text-muted); }

.page-head { padding: clamp(3rem, 7vw, 5rem) 0 1rem; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { margin-bottom: 1.5rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button {
  display: inline-block; padding: 0.75rem 1.4rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-contrast);
  font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
  transition: background-color 0.15s, border-color 0.15s;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-contrast); }
.button-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button-secondary:hover { background: var(--bg-alt); color: var(--text); border-color: var(--text-muted); }

/* Grids and cards */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.feature h3 { margin-bottom: 0.4rem; }
.feature p { color: var(--text-muted); margin: 0; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card h2 { font-size: 1.3rem; margin-bottom: 1rem; }

.product-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.25rem; }
.product-head h3 { font-size: 1.5rem; margin: 0; }
.product-tagline { font-weight: 600; }

.badge {
  font-size: 0.8rem; font-weight: 600; white-space: nowrap;
  padding: 0.2rem 0.65rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}

.tags { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  font-size: 0.85rem; padding: 0.15rem 0.6rem; border-radius: 6px;
  border: 1px solid var(--border); color: var(--text-muted);
}

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.email { font-size: 1.25rem; font-weight: 650; word-break: break-all; }

.details { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.25rem; margin: 0; }
.details dt { color: var(--text-muted); }
.details dd { margin: 0; }
.details address { font-style: normal; }

/* Long-form legal text */
.prose h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }

.error-page { padding-bottom: clamp(4rem, 10vw, 8rem); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; font-size: 0.9rem; color: var(--text-muted); }
.footer-nav { margin-bottom: 1.25rem; }
.footer-nav a { color: var(--text-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.legal { margin: 0 0 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
