:root {
  --bg: #f8f3ea;
  --parchment: #efe5d4;
  --ink: #2b211a;
  --muted: #65554a;
  --accent: #a8573b;
  --accent-dark: #7f3f29;
  --sage: #5f6f52;
  --line: #dccdb6;
  --white: #fffdf9;
  --walnut: #3a2a1f;
  --header-height: 4.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3, .brand {
  font-family: Georgia, "Iowan Old Style", Cambria, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
}

h1 { margin-bottom: 1.25rem; font-size: clamp(2.4rem, 5.5vw, 4.25rem); letter-spacing: -0.03em; }
h2 { margin-bottom: 1rem; color: var(--ink); font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.025em; }
h3 { margin-bottom: 0.55rem; font-size: 1.35rem; }
p { max-width: 70ch; }
a { color: var(--accent-dark); }
a:hover { color: #5f2f20; }

.container { width: min(100% - 2.5rem, 1040px); margin-inline: auto; }
.narrow { width: min(100%, 720px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(43, 33, 26, 0.14);
  background: rgba(248, 243, 234, 0.96);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-height); }
.brand { color: var(--ink); font-size: 1.1rem; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.35rem 1.25rem; }
.site-nav a { padding: 0.45rem 0.35rem; color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent-dark); }
.nav-cta { padding: 0.45rem 0.9rem !important; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent-dark) !important; }
.nav-cta:hover { color: var(--white) !important; background: var(--accent-dark); }

.hero { padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem); background: linear-gradient(145deg, var(--bg), var(--parchment)); }
.hero h1 { max-width: 16ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { min-width: 0; }
.hero-portrait { margin: 0; }
.hero-portrait img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 20px 40px rgba(60, 40, 20, 0.15); }
.eyebrow, .kicker { margin-bottom: 1rem; color: var(--sage); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.lead { max-width: 54ch; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 0.25rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--accent-dark); color: var(--white); }
.button-quiet { background: transparent; color: var(--accent-dark); }
.button-quiet:hover { background: var(--parchment); color: var(--accent-dark); }

.hero-figure { margin-top: 3rem; }
.hero-figure img { width: 100%; border-radius: 10px; box-shadow: 0 20px 40px rgba(60, 40, 20, 0.15); }
figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.86rem; text-align: center; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; scroll-margin-top: calc(var(--header-height) + 1rem); }
.section-alt { background: var(--parchment); }
.section-intro { max-width: 58ch; margin-bottom: 2.5rem; color: var(--muted); font-size: 1.12rem; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 2.5rem 0 0; list-style: none; }
.features li { padding: 1.35rem; border: 1px solid var(--line); background: var(--white); }
.features h3 { color: var(--accent-dark); }
.features p { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; }

.spotlights { display: grid; gap: 5rem; }
.spotlight { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem; }
.spotlight > img, .legacy img { width: 100%; border-radius: 10px; box-shadow: 0 20px 40px rgba(60, 40, 20, 0.15); }
.section-legacy :focus-visible { outline-color: #d9b98c; }
.spotlight-reverse > img { order: 2; }
.spotlight-text { min-width: 0; }
.spotlight-text-only { grid-template-columns: 1fr; }
.spotlight-text-only .spotlight-text { max-width: 62ch; text-align: left; }
.fine { color: var(--muted); font-size: 0.92rem; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding: 0; margin: 2.5rem 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-top: 3.25rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; display: grid; width: 2.3rem; height: 2.3rem; place-items: center; border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 700; }
.steps p { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; }
.note { margin: 2rem 0 0; padding: 1rem 1.25rem; border-left: 3px solid var(--sage); background: rgba(255,255,255,0.56); color: var(--muted); }
.signature { margin-top: 2rem; color: var(--accent-dark); font-family: Georgia, "Iowan Old Style", Cambria, "Times New Roman", serif; font-style: italic; }

.section-legacy { background: var(--walnut); color: var(--bg); }
.section-legacy h2 { color: var(--bg); }
.section-legacy .kicker { color: #d9b98c; }
.section-legacy p { color: #f1e5d8; }
.legacy { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 3rem; }

.section-contact { padding-bottom: clamp(5rem, 10vw, 8rem); }
.contact-card { margin-top: 2rem; padding: 2rem; border: 1px solid var(--line); background: var(--white); text-align: center; }
.contact-card p { margin-inline: auto; }
.contact-offer { margin-bottom: 0.65rem; color: var(--sage); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.contact-name { margin-bottom: 1.25rem; font-family: Georgia, "Iowan Old Style", Cambria, "Times New Roman", serif; font-size: 1.5rem; }
.contact-card a { font-size: 1.25rem; }
.contact-area { margin-top: 1.25rem; color: var(--muted); font-size: 0.95rem; }

img { display: block; max-width: 100%; height: auto; }
.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

@media (min-width: 861px) and (max-width: 1100px) {
  .hero-grid h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; }
}

@media (max-width: 800px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
  .spotlight, .legacy { grid-template-columns: 1fr; gap: 2rem; }
  .spotlight-reverse > img { order: 0; }
}

@media (max-width: 560px) {
  :root { --header-height: auto; }
  .container { width: min(100% - 1.5rem, 1040px); }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 0.85rem 0; }
  .site-nav { justify-content: flex-start; width: 100%; gap: 0.1rem 0.25rem; font-size: 0.92rem; }
  .site-nav a { padding-inline: 0.2rem; }
  .features, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.hero-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--walnut);
  box-shadow: 0 20px 40px rgba(60, 40, 20, 0.15);
}

.infographic { max-width: 1040px; margin: 0 auto; }
.infographic img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }

/* Guide / article pages */
.article-section { padding-top: clamp(3rem, 7vw, 5rem); }
.article h1 { max-width: 22ch; font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.article h2 { margin-top: 2.6rem; margin-bottom: 0.8rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.article p, .article li { max-width: 68ch; }
.article p { margin-bottom: 1.1rem; }
.article ul { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.article li { margin-bottom: 0.5rem; }
.article li::marker { color: var(--accent); }
.article code { padding: 0.08em 0.35em; border: 1px solid var(--line); border-radius: 0.2rem; background: var(--white); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.88em; overflow-wrap: anywhere; }
.site-footer .footer-links { margin-top: 0.6rem; }
