:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  font-synthesis: none;
  --background: #06110f;
  --surface: #0e1d1a;
  --surface-raised: #142722;
  --text: #f3faf6;
  --muted: #aebdb6;
  --line: #294038;
  --accent: #b7ed95;
  --accent-strong: #d5ffb7;
  --warning: #f6d486;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12rem, #294a40 0, transparent 34rem),
    var(--background);
  line-height: 1.72;
}

a { color: var(--accent-strong); }

a:hover { color: #ffffff; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  color: #07120e;
  background: var(--accent-strong);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: .12em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px #b7ed9533;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 6px;
  height: 6px;
  margin: auto;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 12px var(--accent);
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

main {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 34px 0 max(70px, env(safe-area-inset-bottom));
}

.hero { padding: 34px 0 28px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(34px, 8vw, 58px);
  letter-spacing: -.035em;
}

h2 {
  margin: 2.5rem 0 .75rem;
  font-size: clamp(21px, 4vw, 26px);
}

h3 { margin: 1.8rem 0 .5rem; }

.lede {
  max-width: 650px;
  margin: 18px 0 0;
  color: #d3ded8;
  font-size: clamp(17px, 3.5vw, 20px);
}

.updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--warning);
  background: #f6d48612;
  color: #f9e7bd;
}

.document,
.link-card,
.support-card {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 26px 80px #0000002e;
}

.document {
  padding: clamp(22px, 5vw, 46px);
  border-radius: 24px;
}

.document > :first-child { margin-top: 0; }

.document p,
.document li { color: #d7e1dc; }

.document li + li { margin-top: .45rem; }

.document strong { color: var(--text); }

.document code {
  padding: .12em .36em;
  border-radius: 5px;
  color: var(--warning);
  background: #ffffff0d;
  overflow-wrap: anywhere;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.link-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.link-card:hover {
  color: var(--text);
  border-color: #699079;
  background: var(--surface-raised);
  transform: translateY(-2px);
}

.link-card span {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.link-card h2 { margin: 20px 0 8px; }

.link-card p {
  margin: 0;
  color: var(--muted);
}

.support-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.support-card {
  padding: 18px 20px;
  border-radius: 16px;
}

.support-card summary {
  cursor: pointer;
  font-weight: 700;
}

.support-card p { margin: 12px 0 0; color: #d7e1dc; }

.site-footer {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 22px 0 max(34px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 10px;
}

.footer-links a { color: #c7d4ce; }

@media (max-width: 620px) {
  .site-header { align-items: flex-start; }
  main { padding-top: 18px; }
  .hero { padding-top: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .link-card { min-height: 0; }
  .document { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .link-card { transition: none; }
}

@media print {
  :root { color-scheme: light; }
  body { color: #111; background: #fff; }
  .site-header, .site-footer, .skip-link { display: none; }
  main { width: 100%; padding: 0; }
  .hero { padding-top: 0; }
  .eyebrow, .updated, .document p, .document li { color: #333; }
  .document { padding: 0; border: 0; box-shadow: none; }
  a { color: #111; }
}

/* Language controls remain visible on narrow screens. */
.site-header { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.language-switch { display:flex; gap:16px; align-items:center; font-size:14px; }
.language-switch a { padding:10px 0; }
.language-switch [aria-current] { opacity:.65; }
