:root {
  color-scheme: light dark;
  --ink: #17202a;
  --muted: #5f6b76;
  --paper: #f7f6f2;
  --surface: rgba(255, 255, 255, 0.76);
  --line: rgba(23, 32, 42, 0.13);
  --brand: #175c52;
  --brand-strong: #0d453d;
  --accent: #d9874c;
  --shadow: 0 18px 55px rgba(23, 32, 42, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 8%, rgba(217, 135, 76, 0.16), transparent 28rem),
    radial-gradient(circle at 4% 34%, rgba(23, 92, 82, 0.12), transparent 30rem),
    var(--paper);
  line-height: 1.65;
}

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-strong); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }

.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .65rem 1rem; color: white; background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header, main, .site-footer { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 760; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: .7rem; color: white; background: var(--brand); font-size: .85rem; letter-spacing: .03em; }
nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem .8rem; margin: 0; padding: 0; list-style: none; }
nav a { padding: .35rem .1rem; color: var(--muted); font-size: .91rem; font-weight: 650; text-decoration: none; }
nav a[aria-current="page"] { color: var(--brand); }

main { padding-block: clamp(2.7rem, 7vw, 6rem); }
.hero { max-width: 53rem; padding-block: 1rem 3rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.1; letter-spacing: -.035em; }
h1 { max-width: 15ch; margin-bottom: 1.2rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 8vw, 5.8rem); font-weight: 500; }
h2 { margin-top: 2.8rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 500; }
h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.lede { max-width: 46rem; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 2.2vw, 1.35rem); }
.meta { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; margin-top: 1.3rem; color: var(--muted); font-size: .9rem; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card, .prose { border: 1px solid var(--line); border-radius: 1.3rem; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.card { display: flex; min-height: 12rem; flex-direction: column; padding: clamp(1.3rem, 3vw, 2rem); color: var(--ink); text-decoration: none; }
.card p { margin: 0; color: var(--muted); }
.card .arrow { margin-top: auto; padding-top: 1.5rem; color: var(--brand); font-weight: 750; }
.card:hover { border-color: rgba(23, 92, 82, .38); transform: translateY(-2px); }
.prose { max-width: 52rem; padding: clamp(1.4rem, 5vw, 3.5rem); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: #43505b; }
.prose strong { color: var(--ink); }
.prose section + section { padding-top: .2rem; }
.callout { margin-block: 2rem; padding: 1.1rem 1.2rem; border-left: 4px solid var(--accent); border-radius: 0 .7rem .7rem 0; background: rgba(217, 135, 76, .1); }
.steps { padding-left: 1.35rem; }
.steps li { margin-bottom: 1rem; padding-left: .35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; margin-top: .6rem; padding: .78rem 1.05rem; border-radius: .7rem; color: white; background: var(--brand); font-weight: 750; text-decoration: none; }
.button:hover { color: white; background: var(--brand-strong); }

.site-footer { display: flex; justify-content: space-between; gap: 1rem 2rem; padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }

@media (max-width: 700px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  nav ul { justify-content: flex-start; }
  .card-grid { grid-template-columns: 1fr; }
  main { padding-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (prefers-color-scheme: dark) {
  :root { --ink: #edf3ef; --muted: #acb8b2; --paper: #101714; --surface: rgba(25, 35, 31, .82); --line: rgba(237, 243, 239, .13); --brand: #7fc7b8; --brand-strong: #a8ded2; --shadow: 0 18px 55px rgba(0, 0, 0, .22); }
  .prose p, .prose li { color: #bdc8c2; }
  .button { color: #0c2923; background: #8cd3c4; }
  .button:hover { color: #071d18; background: #afe6da; }
}
