:root {
  color-scheme: light;
  --background: #f4f6f1;
  --surface: #ffffff;
  --text: #1d2922;
  --muted: #5d6a62;
  --accent: #176b52;
  --accent-dark: #0f513d;
  --border: #dce4dc;
  --notice-background: #fff8e7;
  --notice-border: #d49b2a;
  --shadow: 0 18px 50px rgba(28, 52, 40, 0.07);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-wrap: break-word;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

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

a:focus-visible {
  border-radius: 0.2rem;
  outline: 3px solid rgba(23, 107, 82, 0.35);
  outline-offset: 3px;
}

.skip-link {
  background: var(--text);
  border-radius: 0 0 0.35rem 0;
  color: #ffffff;
  left: 0;
  padding: 0.65rem 1rem;
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  transition: transform 0.1s ease;
  z-index: 10;
}

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

.site-shell {
  margin: 0 auto;
  max-width: 74rem;
  padding: 0 1.25rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}

.header-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.brand {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.language-indicator {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

main {
  min-height: calc(100vh - 15rem);
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  margin: 2.5rem auto;
  max-width: 50rem;
  padding: clamp(1.4rem, 4vw, 3.75rem);
}

.content-card--compact {
  max-width: 42rem;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--text);
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.15rem);
  letter-spacing: -0.04em;
  margin: 0;
}

h2 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  margin: 2.6rem 0 0.7rem;
}

p,
li {
  max-width: 70ch;
}

p {
  margin: 0.8rem 0;
}

ul,
ol {
  padding-left: 1.45rem;
}

li + li {
  margin-top: 0.55rem;
}

.page-meta {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  margin: 1rem 0 2rem;
  padding-bottom: 1.4rem;
}

.page-meta p {
  margin: 0.15rem 0;
}

.review-notice {
  background: var(--notice-background);
  border-left: 4px solid var(--notice-border);
  border-radius: 0.4rem;
  color: #4f3a12;
  margin: 1.5rem 0 2rem;
  padding: 0.9rem 1rem;
}

.review-notice strong {
  display: block;
  margin-bottom: 0.2rem;
}

.placeholder {
  background: var(--notice-background);
  border: 1px solid var(--notice-border);
  border-radius: 0.25rem;
  color: #4f3a12;
  font-weight: 700;
  overflow-wrap: anywhere;
  padding: 0.1rem 0.3rem;
}

.link-list {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.link-list a {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  display: flex;
  font-weight: 650;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  text-decoration: none;
}

.link-list a::after {
  content: "→";
}

.link-list a:hover {
  background: var(--background);
  border-color: #b7c8bc;
}

.support-box {
  border-top: 1px solid var(--border);
  margin-top: 2.75rem;
  padding-top: 1.35rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.8rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}

.footer-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 36rem) {
  .site-shell {
    padding: 0 0.9rem;
  }

  .content-card {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin: 1.2rem -0.9rem;
    padding: 1.4rem 1.15rem 2rem;
  }

  .footer-inner {
    display: block;
  }

  .footer-nav {
    margin-top: 0.8rem;
  }
}

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

  .skip-link {
    transition: none;
  }
}
