:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e0d5;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #ccfbf1;
  --accent: #c2410c;
  --shadow: 0 16px 40px rgba(28, 25, 23, 0.08);
  --radius: 16px;
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 45%, #f2eee6 100%);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 245, 241, 0.9);
  border-bottom: 1px solid rgba(231, 224, 213, 0.95);
}

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

.logo {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  color: var(--brand);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-dark) !important;
  border-color: var(--line);
}

.btn-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section {
  padding: 1.5rem 0 3rem;
}

.section h2 {
  font-family: var(--display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--brand);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f5f0e8;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.prose {
  max-width: 70ch;
}

.prose h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.prose h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose ul,
.prose ol {
  color: var(--ink);
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose .lede {
  font-size: 1.15rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
}

.affiliate-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  color: #9a3412;
  margin: 1.25rem 0 1.75rem;
}

.page-header {
  padding: 2.5rem 0 1rem;
}

.page-header h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.page-header p {
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 36rem;
}

.contact-box dt {
  font-weight: 700;
  margin-top: 0.85rem;
}

.contact-box dt:first-child {
  margin-top: 0;
}

.contact-box dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-end;
  }
}
