:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --paper-deep: #e9e2d3;
  --ink: #1d2924;
  --muted: #5f6a64;
  --sage: #587468;
  --sage-dark: #314a40;
  --amber: #d58a47;
  --white: #fffdf8;
  --line: rgba(29, 41, 36, 0.14);
  --shadow: 0 28px 70px rgba(42, 56, 49, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

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

.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 242, 233, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 750; letter-spacing: -0.02em; }

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-dark);
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 19px;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.hero { padding: 46px 0 34px; }
.hero-card { position: relative; min-height: 620px; overflow: hidden; border-radius: 32px; background: #d9d1c0; box-shadow: var(--shadow); }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 31, 27, .73) 0%, rgba(21, 31, 27, .45) 37%, rgba(21, 31, 27, 0) 68%); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: relative; z-index: 1; max-width: 600px; padding: 110px 72px; color: var(--white); }
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
h1 { margin-bottom: 22px; font-size: clamp(48px, 7vw, 88px); }
.hero-copy p { max-width: 480px; margin: 0 0 34px; color: rgba(255,255,255,.86); font-size: 18px; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; background: var(--amber); color: #23170d; font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: #e39a58; }

.intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; padding: 100px 0 72px; }
.section-label { color: var(--sage); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.intro h2, .page-hero h1 { font-size: clamp(38px, 5vw, 64px); }
.intro-copy { color: var(--muted); font-size: 18px; }
.intro-copy p:first-child { margin-top: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px 0 110px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.72); }
.card-number { display: inline-grid; width: 40px; height: 40px; place-items: center; margin-bottom: 52px; border: 1px solid var(--line); border-radius: 50%; color: var(--sage); font-size: 13px; font-weight: 800; }
.card h3 { margin-bottom: 12px; font-size: 26px; }
.card p { margin: 0; color: var(--muted); }

.note { margin-bottom: 110px; padding: 52px; border-radius: 26px; background: var(--sage-dark); color: var(--white); }
.note p { max-width: 760px; margin: 0; color: rgba(255,255,255,.78); font-size: 17px; }

.page-hero { max-width: 850px; padding: 105px 0 72px; }
.page-hero p { max-width: 680px; color: var(--muted); font-size: 19px; }
.article-grid { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding-bottom: 110px; }
.article-nav { position: sticky; top: 100px; align-self: start; display: grid; gap: 10px; }
.article-nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.article-nav a:hover { color: var(--ink); }
.prose { max-width: 760px; }
.prose section { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: 38px; }
.prose h3 { margin: 28px 0 8px; font-family: inherit; font-size: 18px; font-weight: 750; letter-spacing: 0; }
.prose p, .prose li { color: var(--muted); }
.prose li + li { margin-top: 8px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding: 34px 0 44px; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; }

.error-page { min-height: calc(100vh - 151px); display: grid; place-items: center; text-align: center; }
.error-page h1 { margin-bottom: 12px; font-size: clamp(88px, 18vw, 180px); color: var(--sage-dark); }
.error-page p { margin-bottom: 26px; color: var(--muted); }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1160px); }
  .nav { min-height: 64px; }
  .nav-links { gap: 14px; }
  .nav-links a:first-child { display: none; }
  .hero { padding-top: 20px; }
  .hero-card { min-height: 640px; border-radius: 22px; }
  .hero-card::after { background: linear-gradient(0deg, rgba(21,31,27,.82) 0%, rgba(21,31,27,.5) 56%, rgba(21,31,27,.08) 100%); }
  .hero-image { object-position: 64% center; }
  .hero-copy { position: absolute; inset: auto 0 0; padding: 46px 26px; }
  h1 { font-size: 52px; }
  .intro { grid-template-columns: 1fr; gap: 16px; padding-top: 76px; }
  .cards { grid-template-columns: 1fr; padding-bottom: 76px; }
  .card-number { margin-bottom: 30px; }
  .note { margin-bottom: 76px; padding: 34px 26px; }
  .page-hero { padding-top: 76px; }
  .article-grid { grid-template-columns: 1fr; gap: 34px; }
  .article-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: column; }
}
