:root {
  --ink: #14231f;
  --muted: #60716b;
  --paper: #f8f7f2;
  --panel: #ffffff;
  --line: #dce2db;
  --accent: #0d6b4f;
  --accent-dark: #07513b;
  --warm: #e7a85e;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

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

a { color: var(--accent-dark); }
a:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(248, 247, 242, .92); }
.site-nav, .site-main, .site-footer { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.site-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 760; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: white; background: var(--accent); font-family: Georgia, serif; font-size: 1.1rem; }
.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 650; text-decoration: none; }
.nav-links a:hover { color: var(--accent-dark); }

.site-main { padding: 4.5rem 0 5rem; }
.hero { max-width: 830px; padding: clamp(2rem, 5vw, 4.5rem); border-radius: 24px; color: white; background: radial-gradient(circle at 88% 14%, #398e70 0, transparent 25%), linear-gradient(135deg, #0a4d3b, #12382f); box-shadow: 0 20px 45px rgba(20, 35, 31, .14); }
.eyebrow { margin: 0 0 .85rem; color: var(--warm); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1, .page-heading h1, .error-page h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.08; letter-spacing: -.045em; }
.hero-copy { max-width: 610px; margin: 1.4rem 0 0; color: #dcece5; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1rem; border-radius: 8px; font-weight: 750; text-decoration: none; }
.button-primary { color: #083f30; background: #f4c77d; }
.button-primary:hover { background: #ffd995; }
.button-secondary { border: 1px solid rgba(255,255,255,.55); color: white; }
.button-secondary:hover { background: rgba(255,255,255,.12); }

.feature-grid, .detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.feature-card, .detail-grid article, .callout { padding: 1.6rem; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.feature-number { color: var(--accent); font-size: .8rem; font-weight: 850; letter-spacing: .08em; }
.feature-card h2, .detail-grid h2, .callout h2 { margin: .45rem 0 .45rem; font-size: 1.08rem; }
.feature-card p, .detail-grid p, .callout p, .page-heading > p, .error-page > p { margin: 0; color: var(--muted); }
.page-heading { max-width: 780px; }
.page-heading .eyebrow, .error-page .eyebrow { color: var(--accent); }
.page-heading h1, .error-page h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
.page-heading > p { max-width: 670px; margin-top: 1.15rem; font-size: 1.1rem; }
.detail-grid { grid-template-columns: repeat(2, 1fr); }
.callout { margin-top: 1.25rem; border-left: 5px solid var(--warm); }
.error-page { max-width: 680px; padding: clamp(2rem, 5vw, 4rem); border-radius: 20px; background: var(--panel); box-shadow: 0 14px 34px rgba(20, 35, 31, .08); }
.error-page > p { margin-top: 1rem; }
.request-id { display: flex; flex-direction: column; gap: .2rem; margin: 1.5rem 0 !important; padding: .75rem 1rem; border-radius: 8px; background: #f1f4ef; font-size: .9rem; }
.request-id code, .detail-grid code { color: #21463b; overflow-wrap: anywhere; }

.site-footer { padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-footer p { margin: 0; }

@media (max-width: 680px) {
  .site-nav { min-height: 68px; }
  .nav-links { gap: .85rem; }
  .site-main { padding: 2rem 0 3rem; }
  .feature-grid, .detail-grid { grid-template-columns: 1fr; }
  .feature-grid { margin-top: 1rem; }
}
