:root {
  color-scheme: light dark;
  --canvas: #f7f1e8;
  --card: #fffaf2;
  --ink: #2e241d;
  --muted: #6f6258;
  --brand: #b7562d;
  --line: rgba(91, 66, 49, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

header, section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 5vw, 42px);
}

section { margin-top: 18px; }

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.25;
  text-wrap: balance;
}

h1 { font-family: ui-serif, Georgia, serif; font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: 1.45rem; margin-bottom: 1.2rem; }
h3 { font-size: 1.05rem; margin: 1.7rem 0 0.35rem; }
p, ul, ol { margin: 0.7rem 0; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 0.45rem; }

a { color: var(--brand); text-underline-offset: 3px; }

.eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary { font-size: 1.08rem; }
.meta { color: var(--muted); font-size: 0.9rem; }
.language-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.language-links a { font-weight: 650; }

footer {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px 4px 0;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #17130f;
    --card: #211b16;
    --ink: #f2e9df;
    --muted: #baaa9c;
    --brand: #e88958;
    --line: rgba(255, 236, 218, 0.14);
  }
}

@media (max-width: 520px) {
  main { width: min(100% - 20px, 760px); padding-top: 18px; }
  header, section { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
