/* groovable.ai
   Theme: dark is the default (:root). Light is defined twice: once under the
   system preference (guarded so an explicit dark choice wins) and once under
   the explicit [data-theme="light"] attribute. Keep the two blocks identical. */

:root {
  --bg: #101218;
  --panel: #171a23;
  --panel2: #1e2230;
  --text: #ece9e1;
  --text-soft: #c9c6bd;
  --muted: #8d93a2;
  --line: #272b37;
  --accent: #ff7d4d;
  --accent-ink: #2a1208;
  --focus: rgba(255, 125, 77, 0.35);
  --display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, "Cascadia Mono", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f3f6;
    --panel: #ffffff;
    --panel2: #e8eaef;
    --text: #16181f;
    --text-soft: #3a3f4b;
    --muted: #5c6270;
    --line: #d9dce4;
    --accent: #dd4f1f;
    --accent-ink: #fff4ef;
    --focus: rgba(221, 79, 31, 0.35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f2f3f6;
  --panel: #ffffff;
  --panel2: #e8eaef;
  --text: #16181f;
  --text-soft: #3a3f4b;
  --muted: #5c6270;
  --line: #d9dce4;
  --accent: #dd4f1f;
  --accent-ink: #fff4ef;
  --focus: rgba(221, 79, 31, 0.35);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 500; line-height: 1.2; margin-bottom: 1.1rem; }
h3 { font-size: 1.02rem; font-weight: 500; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.prose { max-width: 62ch; color: var(--text-soft); }
.footnote { margin-top: 0.9rem; font-size: 0.86rem; color: var(--muted); max-width: 62ch; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 64px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark .tld { color: var(--muted); font-weight: 500; }
.mark { width: 26px; height: 26px; color: var(--muted); }
.mark-dot { fill: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 1.4rem; font-size: 0.95rem; }
.theme-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer;
}
.theme-btn:hover { color: var(--text); border-color: var(--muted); }
.theme-btn svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero-simple { padding: 4.5rem 0 3rem; }

/* ---------- sections ---------- */
.section { padding: 2.5rem 0 4.25rem; }

/* products list */
.family { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.family a {
  display: grid; gap: 0.3rem; padding-top: 0.9rem; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--text);
}
.family a:hover .fam-name { color: var(--accent); }
.fam-name { font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.fam-domain { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.fam-line { color: var(--text-soft); font-size: 0.95rem; margin-top: 0.35rem; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; }
.foot-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
}
.foot-links { display: flex; gap: 1.25rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .family { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
