:root {
  --bg: #f6f3ed;
  --panel: #fffdf8;
  --panel-alt: #ebe2d4;
  --text: #1d1a17;
  --muted: #5b554e;
  --line: #d7cab6;
  --accent: #7a2f1c;
  --accent-dark: #4d1d12;
  --shadow: 0 18px 40px rgba(29, 26, 23, 0.08);
  --radius: 24px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 8px);
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible,
button:hover,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(122, 47, 28, 0.22);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: #fff;
  z-index: 20;
}

.skip-link:focus {
  top: 16px;
}

.alert-banner {
  background: #8d2018;
  color: #fff;
  padding: 12px 18px;
  text-align: center;
  font-size: 0.95rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 243, 237, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(215, 202, 182, 0.9);
}

.header-inner,
main,
.footer-grid {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand span {
  display: grid;
}

.brand small,
.meta,
.table-note,
.hero-meta,
.article-meta,
.article-kicker,
.eyebrow,
.section-tag,
.signature,
.form-note {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  text-decoration: none;
}

.site-nav .is-active {
  font-weight: 700;
}

.menu-toggle {
  display: none;
}

main {
  padding: 28px 0 96px;
}

section,
article,
.article-shell {
  margin-bottom: 64px;
}

.hero,
.page-hero,
.image-break,
.signal-band,
.contact-grid,
.footer-grid,
.split-page {
  display: grid;
  gap: 28px;
}

.hero-wide,
.split-page {
  grid-template-columns: 1.08fr 1.22fr;
  align-items: end;
}

.hero-copy,
.page-hero,
.section-intro,
.signal-note,
.contact-copy,
.legal-page,
.archive-list article,
.service-list article,
.not-found,
.placeholder-page,
.article-shell,
.observed-text,
.table-wrap,
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy,
.signal-note,
.contact-copy,
.legal-page,
.prose.long-form,
.archive-list article,
.service-list article,
.not-found,
.placeholder-page {
  padding: 28px;
}

.hero-media img,
.visual-column img,
.signal-media img,
.article-visual img {
  width: 100%;
  object-fit: cover;
}

.hero h1,
.page-hero h1,
.legal-page h1,
.article-header h1,
.not-found h1 {
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  max-width: 32rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.narrow-flow {
  width: min(calc(100% - 32px), 780px);
  margin-left: auto;
  margin-right: auto;
  padding: 34px;
}

.prose.long-form {
  width: min(100%, 860px);
  margin-left: auto;
  margin-right: auto;
}

.image-break {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.image-break-offset .copy-column {
  width: min(100%, 680px);
  padding-top: 70px;
}

.visual-column {
  margin-left: auto;
}

.tall-visual img {
  min-height: 720px;
}

.coverage-table .section-intro,
.featured-articles .section-intro,
.faq-stack .section-intro {
  max-width: 880px;
  padding: 26px 28px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.table-wrap {
  overflow-x: auto;
  padding: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.95rem;
}

.signal-band {
  grid-template-columns: 0.82fr 1.18fr;
}

.signature {
  font-style: italic;
}

.article-mosaic {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: start;
}

.feature-card {
  padding: 22px;
}

.feature-large {
  min-height: 280px;
}

.lower-card {
  margin-top: 48px;
}

.faq-stack details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 14px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.service-list {
  display: grid;
  gap: 24px;
}

.offset-panel {
  width: min(100%, 920px);
  margin-left: auto;
  background: var(--panel-alt);
}

.archive-list {
  display: grid;
  gap: 20px;
}

.article-shell {
  padding: 28px;
}

.article-summary,
.risk-note {
  max-width: 880px;
}

.risk-note {
  padding: 14px 18px;
  background: #f0e6d9;
  border-left: 4px solid var(--accent);
}

.article-body {
  width: min(100%, 860px);
  margin: 34px auto 0;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 22px;
  background: var(--panel-alt);
  border-left: 4px solid var(--accent);
  font-size: 1.15rem;
}

.article-footer-box {
  width: min(100%, 860px);
  margin: 34px auto 0;
  padding: 22px;
  background: #f0e6d9;
  border-radius: 18px;
}

.placeholder-page {
  width: min(100%, 920px);
  margin-left: auto;
  margin-right: auto;
}

.red-panel {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #8d2018;
  color: #fff;
  border-radius: 16px;
}

.contact-grid,
.footer-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-form {
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #a89984;
  border-radius: 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.legal-page {
  width: min(100%, 860px);
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
  background: #ece4d8;
}

.footer-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
  .hero-wide,
  .split-page,
  .image-break,
  .signal-band,
  .contact-grid,
  .footer-grid,
  .article-mosaic {
    grid-template-columns: 1fr;
  }

  .lower-card,
  .offset-panel {
    margin-top: 0;
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font: inherit;
  }

  .site-nav {
    position: absolute;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }
}
