/* Sakin Mürekkep — same palette as the app's design tokens */
:root {
  --bg: #FAF7F2; --surface: #F2EDE4; --surface2: #FFFCF7; --border: #E4DCD0;
  --text: #241F1B; --text2: #554C42; --muted: #706558;
  --accent: #B8402A; --accent-pressed: #96311E; --accent-soft: #FBEEE7; --on-accent: #FFF9F5;
  --sage: #3E6B57; --sage-soft: #E8EEE7;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130F; --surface: #1E1A15; --surface2: #262119; --border: #352F26;
    --text: #F5EFE6; --text2: #CBBFB0; --muted: #9A8D7D;
    --accent: #F2674A; --accent-pressed: #D9573C; --accent-soft: #3A2019; --on-accent: #1A120E;
    --sage: #8FBFA3; --sage-soft: #1C2822;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.55;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--accent-pressed); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3 { font-family: "Newsreader", Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin-top: 2.5rem; }
h3 { font-size: 1.25rem; margin-top: 1.75rem; }
p { margin: 0.9rem 0; color: var(--text2); }
li { color: var(--text2); margin: 0.35rem 0; }
strong { color: var(--text); font-weight: 600; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: "Newsreader", Georgia, serif; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--accent); }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.95rem; }
nav a { color: var(--text2); text-decoration: none; }
nav a:hover { color: var(--accent); }
nav a.lang { color: var(--accent); font-weight: 500; }
main { padding: 40px 0 72px; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.lede { font-size: 1.2rem; color: var(--text2); max-width: 60ch; }
.meta { color: var(--muted); font-size: 0.95rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; margin-top: 18px; }
.card.sage { background: var(--sage-soft); border-color: transparent; }
.card h3 { margin-top: 0; }
.card .card-title { font-size: 1.25rem; margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.grid .card { margin-top: 0; }
.button { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; padding: 12px 20px; border-radius: 12px; font-weight: 600; }
.button:hover { background: var(--accent-pressed); color: var(--on-accent); }
.button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); }
.button.ghost:hover { background: var(--accent-soft); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.pill { display: inline-block; font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.toc { padding-left: 1.2rem; }
.toc a { text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text2); }
th { color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; }
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .site-header .wrap { flex-wrap: wrap; padding-block: 16px; }
  nav { gap: 12px 16px; }
}
