:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface-subtle: #f1efe9;
  --ink: #161b18;
  --ink-muted: #535c56;
  --line: #e2dfd7;
  --line-strong: #cfc9bd;
  --accent: #1d4d3c;
  --accent-hover: #153b2e;
  --accent-soft: #e7f0ec;
  --focus: #2a6f57;
  --radius: 10px;
  --maxw: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111513;
    --surface: #181e1b;
    --surface-subtle: #141916;
    --ink: #eff2f0;
    --ink-muted: #a1aba5;
    --line: #27302b;
    --line-strong: #37443d;
    --accent: #68b596;
    --accent-hover: #83c9ad;
    --accent-soft: #1b2c25;
    --focus: #83c9ad;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
  padding: 6px 0;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .logo-mark {
    color: #0f1613;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--ink-muted);
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--surface-subtle);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  min-height: 38px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .nav-cta {
    color: #0e1411;
  }
  .nav-cta:hover {
    color: #0e1411;
  }
}

/* Hero */
.hero {
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
}

.hero h1 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin: 0 0 20px;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #0e1411;
  }
  .btn-primary:hover {
    color: #0e1411;
  }
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.meta-item dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin: 0 0 4px;
}

.meta-item dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* Sections */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 36px;
}

.section-label {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 10px;
}

.section-head h2 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.principles-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles-list li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.principles-list h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.principles-list p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* Contact & Entity */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.info-list {
  margin: 0;
  display: grid;
  gap: 18px;
}

.info-row dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.info-row dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}

.info-row dd a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legal pages */
.legal-main {
  padding: 64px 0 80px;
}

.legal-article {
  max-width: 720px;
}

.legal-article h1 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 8px;
}

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

.legal-article h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 10px;
}

.legal-article p,
.legal-article li {
  color: var(--ink-muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.legal-article ul {
  padding-left: 20px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.footer-links a {
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: var(--ink);
}

/* Responsive */
@media (max-width: 860px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .section {
    padding: 52px 0;
  }
  .principles-list {
    grid-template-columns: 1fr;
  }
  .meta-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
