/* Static content pages (/learn/, /guides/, /compare/, /about/) —
   "Structured Joy" collateral palette per ADR-0032 (teal / coral / marigold on
   warm paper, DM Serif Display + DM Sans). Deliberately not the in-app theme:
   these pages are marketing collateral, and ADR-0034 keeps the app on v7 indigo
   until the post-launch re-theme. */

:root {
  --teal: #0d7377;
  --teal-deep: #0a5c5f;
  --coral: #e8635a;
  --marigold: #e5a100;
  --paper: #f5f2ed;
  --card: #fffdf9;
  --ink: #1a1c1d;
  --ink-soft: #4a4f52;
  --line: rgba(13, 115, 119, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--teal-deep);
}

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

.site-header .inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--teal);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

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

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.crumbs {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.crumbs a {
  color: var(--ink-soft);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.meta-line {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.pacing-note {
  background: rgba(229, 161, 0, 0.09);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.concept-list,
.topic-list {
  padding-left: 1.25rem;
}

.concept-list li,
.topic-list li {
  margin-bottom: 0.35rem;
}

.example {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.example h3 {
  margin-top: 0;
  color: var(--teal-deep);
}

.example details {
  margin-top: 0.75rem;
}

.example summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
}

.cta {
  background: var(--teal);
  color: #fffdf9;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 3rem 0 0;
}

.cta h2 {
  color: #fffdf9;
  margin-top: 0;
  font-size: 1.4rem;
}

.cta p {
  color: rgba(255, 253, 249, 0.9);
}

.cta a.button {
  display: inline-block;
  background: var(--coral);
  color: #fffdf9;
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  margin-top: 0.25rem;
}

.cta a.button:hover {
  filter: brightness(1.06);
  color: #fffdf9;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--teal-deep);
}

td,
th {
  font-variant-numeric: tabular-nums;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
}

.site-footer .inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--ink-soft);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16191a;
    --card: #1e2224;
    --ink: #f0ede8;
    --ink-soft: #b3aea6;
    --teal: #4db8bc;
    --teal-deep: #6fcdd0;
    --line: rgba(77, 184, 188, 0.18);
  }

  .cta {
    background: #0a5c5f;
  }
}
