/* getkaldi.app: Kaldi's website. Colours mirror theme/palette.ts. */

:root {
  --bg: #fbf7f0;
  --surface: #fffdf9;
  --surface-2: #f2eadf;
  --text: #2a2320;
  --muted: #6b5a4e;
  --faint: #a89888;
  --rule: #e3d8ca;
  --accent: #1d3b31;
  --on-accent: #fbf7f0;
  --mint: #e3edE6;
  --cherry: #a80f27;
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1512;
    --surface: #231d19;
    --surface-2: #2a231f;
    --text: #f3ece2;
    --muted: #bcae9f;
    --faint: #8a7c70;
    --rule: #3a312b;
    --accent: #4f8b5f;
    --on-accent: #fbf7f0;
    --mint: #22352b;
    --cherry: #f0566a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.serif { font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav .button { color: var(--on-accent); }

@media (max-width: 560px) {
  .nav a:not(.button) { display: none; }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}

.button.small { padding: 8px 14px; font-size: 15px; border-radius: 10px; }

.button.secondary {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.button.disabled {
  background: var(--surface-2);
  color: var(--muted);
  pointer-events: none;
}

/* Hero */

.hero {
  padding-top: 72px;
  padding-bottom: 56px;
  text-align: center;
}

.hero .icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 12px 32px rgb(29 59 49 / 0.25);
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 28px auto 16px;
  max-width: 14ch;
}

.hero .lede {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 36ch;
  margin: 0 auto 32px;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.note { color: var(--faint); font-size: 14px; margin-top: 16px; }

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 64px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.card .emoji { font-size: 32px; line-height: 1; }
.card h2 { font-size: 22px; margin: 16px 0 8px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.card li { margin-bottom: 6px; }

/* Bands */

.band {
  border-top: 1px solid var(--rule);
  padding: 56px 0;
}

.band h2 {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  margin: 0 0 12px;
}

.band p { color: var(--muted); max-width: 60ch; margin: 0 0 12px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
}

.compass {
  background: var(--mint);
  border-radius: var(--radius);
  padding: 24px;
  font-variant-numeric: tabular-nums;
}

.compass .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
}

.compass .row:last-child { border-bottom: 0; }
.compass .label { color: var(--muted); }
.compass .tip {
  margin-top: 16px;
  font-weight: 600;
  color: var(--accent);
}

/* Document pages (privacy, terms, support) */

.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 16px 72px;
}

.doc h1 { font-size: 40px; line-height: 1.1; margin: 0 0 6px; }
.doc h2 {
  font-size: 20px;
  margin: 36px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.doc p, .doc li { margin: 0 0 10px; }
.doc ul { padding-left: 20px; }
.doc .muted { color: var(--muted); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 48px;
  color: var(--faint);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
