:root {
  --bg: #f5efe5;
  --surface: rgba(255, 252, 248, 0.94);
  --surface-strong: #fffcf7;
  --line: rgba(60, 40, 20, 0.12);
  --text: #1a130b;
  --muted: #6b5a46;
  --accent: #d04b1a;
  --accent-deep: #a03510;
  --accent-light: rgba(208, 75, 26, 0.15);
  --sage: #2d7a4a;
  --sage-light: rgba(45, 122, 74, 0.15);
  --gold: #c88b0a;
  --gold-light: rgba(200, 139, 10, 0.18);
  --dark: #1f1a14;
  --shadow: 0 22px 54px rgba(40, 25, 10, 0.12);
  --shadow-lg: 0 32px 72px rgba(40, 25, 10, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Source Sans 3", sans-serif;
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header,
.hero-block,
.wide-panel,
.cta-band,
.info-card,
.article-card,
.hero-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.88);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding-bottom: 2px;
  transition: color 150ms ease;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a.nav-active {
  color: var(--accent);
}

.site-nav a.nav-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.hero-block {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
  margin-top: 20px;
  padding: 28px;
  border-radius: 30px;
  border-left: 4px solid var(--accent);
  background: #fff;
}

.hero-block-simple {
  grid-template-columns: 1fr;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
}

.lead {
  max-width: 680px;
  margin: 16px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 74, 42, 0.3);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-secondary {
  background: rgba(74, 103, 65, 0.12);
  color: var(--sage);
  font-size: 0.95rem;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn-secondary:hover {
  background: rgba(74, 103, 65, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 103, 65, 0.18);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.hero-panel,
.wide-panel,
.info-card,
.article-card {
  border-radius: 24px;
  background: #fff;
}

.hero-panel {
  padding: 20px;
}

.panel-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.section-grid,
.article-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.article-card {
  padding: 22px;
  border-top: 3px solid var(--accent);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.info-card:nth-child(2) {
  border-top-color: var(--sage);
}

.info-card:nth-child(3) {
  border-top-color: var(--gold);
}

.info-card:hover,
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.info-card p,
.article-card p,
.wide-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.wide-panel {
  margin-top: 20px;
  padding: 28px;
  background: var(--surface-strong);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill {
  border-radius: 8px;
  padding: 6px 12px;
  background: rgba(200, 139, 10, 0.10);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.article-section {
  margin-top: 20px;
}

.section-heading {
  padding: 0 2px;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding: 28px;
  background: var(--dark);
  color: #fff;
  border-color: transparent;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
}

.cta-band .eyebrow {
  color: var(--gold);
}

.cta-band h2 {
  color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 26px;
  padding: 20px 24px;
  border-radius: 22px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 150ms ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a.nav-active {
  color: #fff;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms ease;
}

.article-body a:hover {
  color: var(--accent-deep);
}

.article-body .btn-primary {
  color: #fff;
  text-decoration: none;
}

.article-body .btn-primary:hover {
  color: #fff;
}

.article-body .btn-secondary {
  color: var(--sage);
  text-decoration: none;
}

.article-body .btn-secondary:hover {
  color: var(--sage);
}

.article-body .article-card a {
  color: inherit;
  text-decoration: none;
}

.article-body .article-card a:hover {
  color: inherit;
}

.article-body .article-card h3 {
  color: var(--text);
}

.article-body .article-card p {
  color: var(--muted);
}

.contact-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.contact-box p {
  margin: 8px 0 0;
  color: var(--muted);
}

.content-stack {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.section-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.feature-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Card icon system */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-icon-accent {
  background: var(--accent-light);
  color: var(--accent);
}

.card-icon-sage {
  background: var(--sage-light);
  color: var(--sage);
}

.card-icon-gold {
  background: var(--gold-light);
  color: var(--gold);
}

/* Article reading layout */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 4px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta .meta-dot::before {
  content: "\00b7";
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb .sep {
  opacity: 0.5;
}

.article-body h2 {
  margin: 40px 0 16px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.article-body h3 {
  margin: 28px 0 12px;
  font-size: 1.18rem;
}

.article-body p {
  margin: 0 0 18px;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--text);
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  font-size: 1.04rem;
  line-height: 1.62;
  color: var(--text);
}

.article-body li {
  padding-left: 4px;
}

.article-body strong {
  color: var(--text);
  font-weight: 700;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(216, 160, 58, 0.08);
  border-radius: 0 14px 14px 0;
  font-size: 1.04rem;
  line-height: 1.62;
  color: var(--muted);
}

.article-cta-box {
  margin: 40px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.article-cta-box p {
  margin: 10px 0 0;
  color: var(--muted);
}

.related-articles {
  margin-top: 32px;
}

.related-articles h2 {
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .hero-block,
  .section-grid,
  .feature-grid,
  .article-grid,
  .cta-band,
  .site-header,
  .related-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 100%);
  }

  .hero-block,
  .wide-panel,
  .cta-band,
  .info-card,
  .article-card,
  .site-header {
    padding: 18px;
    border-radius: 20px;
  }

  h1 {
    font-size: clamp(2.1rem, 8vw, 3.4rem);
  }
}
