:root {
  --paper: #fff9f0;
  --sand: #eee6d8;
  --ink: #1d1b18;
  --muted: #72695e;
  --gold: #b78a4d;
  --line: rgba(72, 57, 38, .14);
  --panel: rgba(255, 251, 245, .84);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #eee6d8;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, .89);
  backdrop-filter: blur(14px);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--ink); }
.brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.brand strong { display: block; color: var(--ink); font-size: 22px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.45);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.mobile-menu-toggle span,
.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.navlinks { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 15px; }
.navlinks a:hover, .navlinks a.active { color: var(--ink); }
.mobile-nav-actions { display: none; }
.nav-dropdown { position: relative; flex: 0 0 auto; }
.nav-dropdown > a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px;
  border: 1px solid rgba(183,138,77,.22); border-radius: 6px; background: rgba(255,255,255,.36);
  color: var(--ink); font-weight: 600; white-space: nowrap; transition: border-color .18s ease, background .18s ease;
}
.nav-dropdown > a::after {
  content: ""; width: 9px; height: 9px; margin-top: -4px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transition: transform .18s ease, margin .18s ease;
}
.nav-dropdown:hover > a, .nav-dropdown:focus-within > a { border-color: rgba(183,138,77,.52); background: rgba(255,255,255,.7); }
.nav-dropdown:hover > a::after, .nav-dropdown:focus-within > a::after { margin-top: 4px; transform: rotate(225deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: -18px; z-index: 30;
  width: 290px; display: grid; gap: 2px; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fffaf2; box-shadow: 0 18px 45px rgba(74, 53, 22, .14);
  opacity: 0; visibility: hidden; transform: translateY(-5px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-dropdown-menu a { padding: 11px 12px; border-radius: 5px; color: var(--muted); }
.nav-dropdown-menu a:hover { color: var(--ink); background: rgba(183, 138, 77, .1); }
.nav-menu-label {
  padding: 9px 12px 6px; color: var(--gold); font-size: 10px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.nav-menu-label.divider { margin-top: 6px; padding-top: 13px; border-top: 1px solid var(--line); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.actions { display: flex; flex: 0 0 auto; gap: 9px; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; white-space: nowrap; }
.button.quiet { background: rgba(255,255,255,.38); }
.button.primary { background: linear-gradient(180deg, #dba55e, #bd8245); color: #22170d; border-color: rgba(125, 77, 31, .28); }
.eyebrow { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 44px; height: 1px; margin: 0 14px 4px 0; background: currentColor; }
.blog-hero { padding: 88px 0 42px; }
.blog-hero h1 { max-width: 870px; margin: 18px 0; font-size: clamp(47px, 7vw, 96px); line-height: .94; letter-spacing: 0; text-transform: uppercase; }
.blog-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 20px; line-height: 1.55; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 48px; }
.article-card { overflow: hidden; min-height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 18px 44px rgba(74, 53, 22, .08); }
.article-card.featured { grid-column: 1 / -1; }
.article-card a { display: grid; height: 100%; grid-template-columns: 1fr; }
.article-card.featured a { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); }
.article-card img { width: 100%; height: 254px; object-fit: cover; }
.article-card.featured img { height: 100%; min-height: 360px; }
.card-copy { padding: 27px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card-copy h2 { margin: 17px 0 12px; font-size: clamp(25px, 3vw, 42px); line-height: 1.04; }
.article-card:not(.featured) h2 { font-size: 28px; }
.card-copy p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 17px; }
.read-link { display: inline-block; margin-top: 22px; font-weight: 800; color: #6b4827; }
.blog-note { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; padding: 34px 0 88px; border-top: 1px solid var(--line); }
.blog-note h2 { margin: 12px 0 0; font-size: 31px; line-height: 1.05; }
.blog-note p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.article-head { padding: 48px 0 30px; }
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); font-weight: 700; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.article-head h1 { max-width: 950px; margin: 18px 0; font-size: clamp(38px, 5vw, 69px); line-height: .99; letter-spacing: 0; }
.article-head h1, .card-copy h2, .article-body { overflow-wrap: anywhere; }
.article-lead { max-width: 790px; margin: 0; color: var(--muted); font-size: 22px; line-height: 1.52; }
.hero-image { margin: 38px 0 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.hero-image img { width: 100%; aspect-ratio: 16 / 8.2; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 58px; align-items: start; padding-bottom: 92px; }
.toc { position: sticky; top: 104px; padding-top: 8px; color: var(--muted); font-size: 14px; }
.toc strong { color: var(--ink); }
.toc ol { margin: 12px 0; padding-left: 19px; display: grid; gap: 9px; line-height: 1.35; }
.toc a:hover { color: var(--gold); }
.article-body section { margin: 0 0 46px; }
.article-body h2 { margin: 0 0 18px; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.article-body p { margin: 0 0 17px; color: #3f3932; font-size: 18px; line-height: 1.7; }
.checklist { display: grid; gap: 10px; margin: 24px 0; padding: 23px 25px; list-style: none; border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: rgba(255, 250, 243, .63); }
.checklist li::before { content: "✓"; margin-right: 10px; color: #1f8a59; font-weight: 900; }
.article-image { margin: 28px 0; }
.article-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.conclusion { padding: 28px; border: 1px solid rgba(183, 138, 77, .35); border-radius: var(--radius); background: rgba(255, 248, 238, .72); }
.conclusion h2 { color: #6b4827; }
.conclusion p { margin-bottom: 0; }
.sources { border-top: 1px solid var(--line); padding-top: 30px; }
.sources ul { padding-left: 19px; line-height: 1.55; }
.sources a { color: #6b4827; text-decoration: underline; text-underline-offset: 3px; }
.article-after { padding-bottom: 90px; }
.article-next-step {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin: 0 0 54px; padding: 28px; border: 1px solid rgba(183, 138, 77, .32);
  border-radius: var(--radius); background: rgba(255, 249, 240, .72);
}
.article-next-step span, .related-head span {
  color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.article-next-step h2 { max-width: 590px; margin: 8px 0 0; font-size: 30px; line-height: 1.05; }
.article-next-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.related-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.related-head h2 { margin: 0; font-size: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card {
  overflow: hidden; display: grid; align-content: start; min-height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.related-card img { width: 100%; height: 155px; object-fit: cover; }
.related-card span { padding: 17px 18px 0; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.related-card strong { padding: 9px 18px 20px; font-size: 18px; line-height: 1.24; }
footer { border-top: 1px solid var(--line); padding: 28px 0; background: rgba(255,255,255,.32); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); }
.footer-row strong, .footer-links a { color: var(--ink); }
.footer-links { display: flex; gap: 20px; font-weight: 700; }
@media (max-width: 940px) {
  .nav { flex-wrap: wrap; padding: 14px 0; }
  .navlinks { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 15px; }
  .actions { margin-left: auto; }
  .article-layout { grid-template-columns: 1fr; }
  .article-next-step { align-items: flex-start; flex-direction: column; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.35); }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .topbar { backdrop-filter: none; background: #fffaf2; }
  .nav { min-height: 64px; flex-wrap: nowrap; padding: 10px 0; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 9px; }
  .brand img { width: 42px; height: 42px; }
  .mobile-menu-toggle { display: block; margin-left: auto; flex: 0 0 44px; }
  .navlinks, .actions { display: none; }
  .topbar.menu-open .nav { flex-wrap: wrap; }
  .topbar.menu-open .navlinks,
  .topbar.menu-open .actions { display: flex; }
  .topbar.menu-open .mobile-menu-toggle span { opacity: 0; }
  .topbar.menu-open .mobile-menu-toggle::before { transform: translateY(6px) rotate(45deg); }
  .topbar.menu-open .mobile-menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }
  .navlinks { order: 3; align-items: stretch; justify-content: flex-start; text-align: left; }
  .navlinks > a, .nav-dropdown > a { min-height: 42px; display: flex; align-items: center; }
  .actions { order: 4; width: 100%; }
  .actions .button { flex: 1; padding: 0 10px; font-size: 13px; }
  .article-card.featured a { grid-template-columns: 1fr; }
  .article-card.featured img { min-height: 235px; height: 235px; }
  .article-grid, .blog-note { grid-template-columns: 1fr; }
  .blog-note { gap: 20px; }
  .article-head { padding-top: 32px; }
  .article-lead { font-size: 19px; }
  .article-layout { gap: 24px; padding-bottom: 58px; }
  .article-after { padding-bottom: 58px; }
  .related-grid { grid-template-columns: 1fr; }
  .nav-dropdown { width: 100%; text-align: left; }
  .nav-dropdown-menu { position: static; width: 100%; margin-top: 8px; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
  .toc ol { grid-template-columns: 1fr; }
  .footer-row { display: grid; }
}
