:root {
  --ink: #101820;
  --ink-soft: #243447;
  --paper: #eef1f4;
  --panel: #f7f8fa;
  --white: #ffffff;
  --accent: #1f6b4a;
  --accent-bright: #2a8f63;
  --gold: #c2a14a;
  --muted: #5c6b78;
  --line: rgba(16, 24, 32, 0.12);
  --shadow: 0 28px 70px rgba(16, 24, 32, 0.28);
  --font-display: "Newsreader", "Palatino Linotype", Palatino, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(31, 107, 74, 0.09), transparent 55%),
    radial-gradient(800px 380px at 100% 10%, rgba(194, 161, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #e9eef2 0%, var(--paper) 45%, #e5eaee 100%);
  line-height: 1.6;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem;
}
.skip:focus { left: 0; z-index: 100; }
.wrap { width: min(var(--max), calc(100% - 2.25rem)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(247, 248, 250, 0.88);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.1rem;
}
.brand {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.05rem; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: 0.95rem;
}
.site-nav a[aria-current="page"],
.site-nav a:hover { color: var(--accent); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; padding: 0.45rem 0.9rem; font: inherit; font-weight: 600;
}
.domain-strip {
  background: var(--ink);
  color: rgba(255,255,255,0.86);
  font-size: 0.88rem;
  padding: 0.55rem 0;
}
.domain-strip a { color: var(--gold); font-weight: 550; }

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(120deg, rgba(16,24,32,0.82) 10%, rgba(16,24,32,0.45) 55%, rgba(31,107,74,0.35) 100%),
    url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-glow {
  position: absolute; inset: auto 0 0 0; height: 45%; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(16,24,32,0.55));
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
.hero-copy {
  width: min(var(--max), calc(100% - 2.25rem));
  margin: 0 auto;
  padding: 4.5rem 0 3.4rem;
  animation: riseIn 0.9s ease both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  max-width: 14ch;
  text-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  max-width: 38rem;
  margin: 0 0 1.5rem;
  color: rgba(255,255,255,0.92);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.78rem 1.2rem; border-radius: 8px; font-weight: 650;
  text-decoration: none; border: 1px solid transparent; transition: 0.18s ease;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #d4b45c; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); color: #fff; }

.section { padding: 4.2rem 0; }
.section-head { margin-bottom: 1.6rem; max-width: 40rem; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  font-weight: 650; color: var(--accent); margin: 0 0 0.45rem;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 0 0 0.55rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }

.page-hero { padding: 3.2rem 0 1rem; }
.page-hero p { max-width: 42rem; color: var(--muted); font-size: 1.08rem; }

.path-grid, .article-grid, .resource-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.path, .article-card, .resource-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.path:hover, a.article-card:hover, a.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(31, 107, 74, 0.35);
  color: inherit;
}
.path strong, .article-card strong { display: block; font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.4rem; }
.path span, .article-card p, .resource-card p { color: var(--muted); margin: 0; }
.article-meta, .tag {
  display: inline-block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.45rem;
}
.tag {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.55rem; margin-right: 0.25rem;
}
.split {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr; align-items: start;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
}
.prose { max-width: 42rem; }
.prose p { font-size: 1.08rem; }
.prose p + p { margin-top: 1rem; }

.form label { display: block; font-weight: 550; margin-bottom: 0.85rem; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 0.35rem;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.8rem;
  font: inherit; background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form-msg { padding: 0.75rem 0.9rem; border-radius: 8px; margin-bottom: 1rem; }
.form-msg.ok { background: rgba(31,107,74,0.12); color: var(--accent); }
.form-msg.err { background: rgba(160,40,40,0.1); color: #8a2222; }

.site-footer {
  margin-top: 2rem;
  background: var(--ink);
  color: rgba(255,255,255,0.88);
  padding: 3rem 0 1.5rem;
}
.footer-brand { font-family: var(--font-display); font-size: 1.35rem; display: block; margin-bottom: 0.5rem; }
.site-footer a { color: var(--gold); }
.site-footer .muted { color: rgba(255,255,255,0.65); }
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  margin-bottom: 2rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 0.35rem; }
.footer-base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1rem; font-size: 0.9rem;
}

@media (max-width: 860px) {
  .path-grid, .article-grid, .resource-grid, .split, .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; padding-bottom: 0.85rem;
  }
  .site-nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
}
