/* KiteFrame site — shared styles (minimal light, auto dark) */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --border: #e6e6e6;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: #fff3ea;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101418;
    --surface: #171b20;
    --text: #f2f2f2;
    --muted: #a3a3a3;
    --border: #2a2f36;
    --accent: #fb923c;
    --accent-hover: #fdba74;
    --accent-soft: #2a2018;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--accent);
}

/* Header ------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--text);
}

/* Hero -------------------------------------------------------------- */

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 1rem;
  max-width: 34rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 auto 2rem;
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* Sections ---------------------------------------------------------- */

.section {
  padding: 2.5rem 0 4.5rem;
}

.section h2 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

/* Extension cards ---------------------------------------------------- */

.extension-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.extension-card + .extension-card {
  margin-top: 1.25rem;
}

.extension-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.extension-card p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.extension-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Format chips ------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.125rem 0.625rem;
  font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

/* Buttons ------------------------------------------------------------ */

.button {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Page body (extension + privacy pages) ------------------------------ */

.page {
  padding: 3.5rem 0 4.5rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.back-link:hover {
  color: var(--accent);
}

.page h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 2rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* Prose (privacy policy) --------------------------------------------- */

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose .updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}
