:root {
  color-scheme: light;
  --paper: #f1ebdd;
  --surface: #fff9ec;
  --ink: #1f211d;
  --muted: #746e62;
  --accent: #b84d3a;
  --line: #c9bca5;
  --wheat: #ddb86b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 86% 8%, rgb(221 184 107 / 18%), transparent 28rem),
    radial-gradient(circle at 4% 54%, rgb(184 77 58 / 9%), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
}

a { color: var(--accent); text-underline-offset: 0.2em; }

.site-header,
main,
.site-footer {
  width: min(920px, calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 23px;
}

nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--accent); }
nav a.active { color: var(--ink); }

.language-select {
  max-width: 178px;
  min-height: 34px;
  padding: 5px 30px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.hero {
  margin: 24px 0 18px;
  padding: clamp(28px, 6vw, 58px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 24px 64px rgb(40 32 22 / 10%);
}

.eyebrow {
  color: var(--wheat);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 { font-family: Georgia, "Songti SC", serif; line-height: 1.24; }
h1 { max-width: 740px; margin: 12px 0 10px; font-size: clamp(34px, 7vw, 58px); }
.hero p { max-width: 700px; margin: 0; color: #d7ccb8; font-size: 17px; }

.document,
.card-grid > article {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgb(255 249 236 / 92%);
}

.document { padding: clamp(24px, 5vw, 48px); }
.document h2 { margin: 2.1em 0 0.45em; font-size: 24px; }
.document h2:first-child { margin-top: 0; }
.document h3 { margin: 1.45em 0 0.25em; font-size: 18px; }
.document p, .document li { color: #4f4a42; }
.document ul { padding-left: 1.25em; }
.document strong { color: var(--ink); }

.summary {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: #f8e1d1;
  color: var(--ink) !important;
}

.lang-divider {
  margin: 44px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card-grid > article { padding: 22px; }
.card-grid h2 { margin: 0 0 8px; font-size: 21px; }
.card-grid p { color: var(--muted); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a { color: inherit; }
.support-note { color: var(--muted) !important; font-size: 14px; }

code { padding: 0.18em 0.42em; border-radius: 6px; background: #e4d4b9; }

@media (max-width: 720px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .card-grid { grid-template-columns: 1fr; }
  .language-select { max-width: min(100%, 220px); }
}
