:root {
  --bg: #eef1f4;
  --bg-elev: #fafbfc;
  --ink: #141820;
  --muted: #5a6573;
  --line: #d5dbe3;
  --signal: #c81e3a;
  --signal-ink: #8f1428;
  --teal: #1a6b63;
  --teal-soft: #d7ebe8;
  --wash: #1b2a41;
  --radius: 4px;
  --shadow: 0 1px 0 rgba(20, 24, 32, 0.06);
  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.65 var(--font-body);
  background:
    linear-gradient(180deg, #e8edf2 0%, var(--bg) 180px),
    var(--bg);
}

img, svg { max-width: 100%; display: block; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--wash); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 18px 80px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 22px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }

.lang-switch {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 4px 8px;
}
.lang-switch:hover { background: var(--ink); color: #fff; }

.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--signal); }

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  margin: 8px 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav-mobile { display: flex; }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 10px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 650;
  margin: 0 0 14px;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 34px 0 10px;
}

h3 {
  font-size: 1.02rem;
  margin: 22px 0 6px;
  font-weight: 700;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 38rem;
}

.muted { color: var(--muted); font-size: 0.95rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
}
.btn-primary {
  background: var(--signal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--signal-ink);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

.hero-art {
  background: var(--wash);
  color: #f4f1ea;
  min-height: 220px;
  padding: 20px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.hero-art svg { width: 100%; height: auto; opacity: 1; }

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 18px 0;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

.callout {
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  padding: 16px 18px;
  margin: 22px 0;
}

.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.2rem; }
.prose li { margin-bottom: 6px; }

.table-wrap { overflow-x: auto; margin: 18px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.product-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.product-list a { font-weight: 650; text-decoration: none; color: var(--ink); }
.product-list a:hover { color: var(--signal); }
.product-list span { color: var(--muted); font-size: 0.92rem; }

.quiz-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  padding: 20px;
  margin: 12px 0 24px;
}
.quiz-options {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.option {
  display: block;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  border-radius: var(--radius);
}
.option:hover {
  border-color: var(--signal);
  color: var(--signal-ink);
  background: #fff7f8;
}

.related {
  margin: 40px 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.related h2 { margin-top: 0; font-size: 1.2rem; }
.related a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.related a:hover { color: var(--signal); }

.site-footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--signal); }

.nav-mobile {
  display: none;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: -12px 0 24px;
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
}
.nav-mobile a { color: var(--muted); text-decoration: none; }

.rule {
  height: 1px;
  background: var(--line);
  margin: 28px 0;
  border: 0;
}
