:root {
  --bg: #f6f5f1;
  --paper: #fffdf8;
  --text: #121827;
  --muted: #5c6472;
  --line: #ded7c9;
  --accent: #b6792c;
  --accent-dark: #825017;
  --soft: #f1e8d9;
  --max: 920px;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: radial-gradient(circle at top, #fffaf0 0, var(--bg) 38%, #ebe7df 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:focus-visible, .table-scroll:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30;
  padding: 8px 16px;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(100% - 36px, var(--max)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 245, 241, 0.96);
  border-bottom: 1px solid rgba(18, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  color: var(--text);
  text-decoration: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: 1rem;
}
.logo::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(182, 121, 44, 0.12);
  vertical-align: 1px;
}
.top-nav {
  display: flex;
  gap: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.top-nav a:hover { color: var(--accent-dark); }
.article { padding: 34px 0 70px; background: transparent; display: flow-root; }
.hero-figure { margin: 0 0 42px; }
.hero-figure img {
  border-radius: 28px;
  box-shadow: 0 22px 65px rgba(20, 22, 30, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 900;
}
h1, h2, h3 {
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.2;
  overflow-wrap: break-word;
}
h1 {
  margin: 0 0 22px;
  font-size: clamp(2.12rem, 5.4vw, 3.8rem);
  max-width: 23ch;
  text-wrap: balance;
}
h2 { margin: 52px 0 17px; font-size: clamp(1.48rem, 4vw, 2.25rem); clear: both; }
h3 { margin: 28px 0 10px; font-size: 1.15rem; }
p, li { font-size: 1.08rem; color: var(--text); }
p { margin: 0 0 18px; }
strong { color: #0f172a; }
ul, ol { margin: 0 0 20px 1.45rem; padding: 0; }
li { margin-bottom: 8px; }
.article .lead { font-size: 1.22rem; color: #20283a; line-height: 1.68; }
.source-note { font-size: 0.92rem; color: var(--muted); overflow-wrap: anywhere; }
.article-image { margin: 34px 0; }
.article-image img {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 48px rgba(18, 24, 39, 0.14);
}
@media (min-width: 980px) {
  .article-image.align-right { float: right; width: 39%; margin: 8px 0 22px 34px; }
  .article-image.align-left { float: left; width: 39%; margin: 8px 34px 22px 0; }
  .article-image + h2 { clear: none; }
}
.table-scroll {
  width: 100%;
  clear: both;
  overflow-x: auto;
  margin: 24px 0 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 12px 34px rgba(18, 24, 39, 0.05);
}
table { width: 100%; min-width: 650px; border-collapse: collapse; }
th, td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: 0.98rem;
}
thead th {
  background: #1a2434;
  color: #fff7e9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
}
tbody tr:nth-child(even) { background: rgba(241, 232, 217, 0.42); }
tbody tr:last-child td { border-bottom: 0; }
.site-footer {
  clear: both;
  border-top: 1px solid rgba(18, 24, 39, 0.12);
  padding: 28px 0 40px;
  background: #121827;
}
.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}
.site-footer a { color: #f1cc91; }
@media (max-width: 720px) {
  .wrap { width: min(100% - 26px, var(--max)); }
  .header-inner { min-height: 62px; flex-wrap: wrap; gap: 0 16px; padding: 10px 0; }
  .logo { max-width: 100%; }
  .top-nav { gap: 18px; }
  .article { padding-top: 22px; }
  .hero-figure { margin-bottom: 30px; }
  .hero-figure img { border-radius: 20px; }
  h1 { max-width: 100%; }
  h2 { margin-top: 38px; }
  p, li { font-size: 1rem; line-height: 1.72; }
  .article .lead { font-size: 1.08rem; }
  .eyebrow { font-size: 0.78rem; }
  .source-note { font-size: 0.9rem; }
  th, td { padding: 13px 14px; }
  table { min-width: 600px; }
}
@media (max-width: 420px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .logo { font-size: 0.92rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  table { min-width: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
