:root {
  color-scheme: light dark;
  --paper: #f5f0df;
  --paper-2: #ebe3cc;
  --ink: #302f25;
  --muted: #6f6d5e;
  --line: rgba(48, 47, 37, 0.16);
  --accent: #81935c;
  --accent-ink: #17200d;
  --surface: rgba(255, 253, 245, 0.74);
  --shadow: 0 20px 50px rgba(56, 51, 35, 0.12);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 2%, rgba(129, 147, 92, 0.22), transparent 31rem),
    radial-gradient(circle at 100% 32%, rgba(190, 157, 110, 0.18), transparent 28rem),
    var(--paper);
  line-height: 1.65;
}

a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-ink); }

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  background: #171810;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
}

.nav {
  width: min(1100px, calc(100% - 32px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #81935c, #b49565);
  box-shadow: 0 8px 18px rgba(82, 93, 56, 0.24);
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface); }

.page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.hero { margin-bottom: 32px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { margin: 0; font-size: clamp(2.55rem, 8vw, 5.4rem); letter-spacing: -0.055em; }
h2 { margin: 2.4rem 0 0.8rem; font-size: clamp(1.55rem, 4vw, 2.2rem); letter-spacing: -0.025em; }
h3 { margin: 1.65rem 0 0.45rem; font-size: 1.25rem; }

.lede { max-width: 700px; margin: 20px 0 0; color: var(--muted); font-size: 1.14rem; }
.updated { margin-top: 14px; color: var(--muted); font-size: 0.88rem; }

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  padding: 7px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.language-switcher button {
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}
.language-switcher button[aria-pressed="true"] { color: #fff; background: var(--ink); }

.notice, .legal-card, .link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.notice { margin: 24px 0; padding: 18px 22px; }
.notice strong { display: block; margin-bottom: 4px; }
.legal-card { padding: clamp(22px, 5vw, 46px); }
.legal-card > :first-child { margin-top: 0; }

.summary-grid, .link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.link-card { display: block; padding: 24px; text-decoration: none; transition: transform 160ms ease, border-color 160ms ease; }
.link-card:hover { transform: translateY(-2px); border-color: rgba(48, 47, 37, 0.34); }
.link-card h2 { margin: 0 0 8px; font-size: 1.45rem; }
.link-card p { margin: 0; color: var(--muted); }
.link-arrow { display: inline-block; margin-top: 20px; font-weight: 800; }

.callout {
  margin: 1.4rem 0;
  padding: 18px 20px;
  border-inline-start: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(129, 147, 92, 0.12);
}

ul, ol { padding-inline-start: 1.35rem; }
li + li { margin-top: 0.35rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.button:hover { color: #fff; background: var(--accent-ink); }
.button.secondary { color: var(--ink); background: transparent; border: 1px solid var(--line); }

.meta-list { display: grid; gap: 12px; margin: 24px 0; }
.meta-row { display: grid; grid-template-columns: 155px 1fr; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.meta-row dt { color: var(--muted); font-weight: 700; }
.meta-row dd { margin: 0; }

.site-footer {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 9px; }

[data-language][hidden] { display: none !important; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14150f;
    --paper-2: #1d1f15;
    --ink: #f0ead7;
    --muted: #aaa793;
    --line: rgba(240, 234, 215, 0.15);
    --accent: #9eb374;
    --accent-ink: #dbe9bc;
    --surface: rgba(35, 37, 26, 0.76);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  }
  .language-switcher button[aria-pressed="true"], .button { color: #171810; background: #e8e1cc; }
  .button:hover { color: #171810; background: #fff8e6; }
  .button.secondary { color: var(--ink); background: transparent; }
}

@media (max-width: 720px) {
  .nav { min-height: 64px; }
  .nav-links a:not(:last-child) { display: none; }
  .page { padding-top: 44px; }
  .summary-grid, .link-grid { grid-template-columns: 1fr; }
  .meta-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 520px) {
  .language-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .language-switcher button { width: 100%; padding-inline: 8px; }
  .legal-card { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
