/* Little by Little — the umbrella pages (landing, about, privacy, terms).
   Same tokens and type as the courses: navy ink on warm off-white; each course card
   carries its own colours (Spanish: red and gold from logo-es.svg). */

:root {
  color-scheme: light;
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3efe8;
  --border: #e6e0d6;
  --ink: #1f2a44;
  --ink-2: #4a5263;
  --ink-3: #6b7280;
  --link: #1c5cab;
  --es-red: #aa151b;
  --es-red-hover: #8f1117;
  --es-gold: #f1bf00;
  --shadow: 0 1px 2px rgb(31 42 68 / 0.06), 0 4px 16px rgb(31 42 68 / 0.06);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141a2a;
    --surface: #1c2438;
    --surface-2: #252e46;
    --border: #34405e;
    --ink: #eef0f5;
    --ink-2: #b4bac8;
    --ink-3: #8a93a8;
    --link: #86b6ef;
    --es-red: #d63a41;
    --es-red-hover: #e2535a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141a2a;
  --surface: #1c2438;
  --surface-2: #252e46;
  --border: #34405e;
  --ink: #eef0f5;
  --ink-2: #b4bac8;
  --ink-3: #8a93a8;
  --link: #86b6ef;
  --es-red: #d63a41;
  --es-red-hover: #e2535a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.25);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
}
a { color: var(--link); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }

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

.site-head { padding: 20px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wordmark { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.wordmark em { font-style: italic; font-weight: 400; color: var(--ink-2); }
.site-head nav { display: flex; gap: 16px; font-size: 0.95rem; }
.site-head nav a { color: var(--ink-2); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); text-decoration: underline; }

.hero { padding: 40px 0 24px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 12px; }
.hero p { font-size: 1.15rem; color: var(--ink-2); margin: 0; max-width: 34em; }

.features { display: grid; gap: 12px; padding: 0; margin: 28px 0; list-style: none; }
.features li { background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; }
.features strong { display: block; }
.features span { color: var(--ink-2); font-size: 0.95rem; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }

.courses h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.course {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
  position: relative;
}
.course::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(var(--es-red) 0 25%, var(--es-gold) 25% 75%, var(--es-red) 75% 100%); }
.course img { width: 64px; height: auto; flex: none; margin-left: 6px; }
.course-body { flex: 1; min-width: 0; }
.course h3 { margin: 0; font-size: 1.3rem; }
.course p { margin: 2px 0 0; color: var(--ink-2); font-size: 0.95rem; }
.course .btn { flex: none; }
@media (max-width: 520px) {
  .course { flex-wrap: wrap; }
  .course .btn { width: 100%; }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--es-red);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: var(--es-red-hover); }
.soon { color: var(--ink-3); font-size: 0.95rem; margin-top: 12px; }

/* Text pages (about, privacy, terms) */
.doc { padding: 24px 0 8px; }
.doc h1 { font-size: 2rem; margin: 0 0 4px; }
.doc .updated { color: var(--ink-3); font-size: 0.9rem; margin: 0 0 24px; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc ul { padding-left: 1.25em; }
.doc li { margin: 4px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.doc th { font-weight: 600; background: var(--surface-2); }
.summary { background: var(--surface-2); border-radius: var(--radius); padding: 14px 18px; }

.site-foot { margin-top: 48px; padding: 24px 0 40px; border-top: 1px solid var(--border); color: var(--ink-3); font-size: 0.9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--ink-2); }
