:root {
  --bg: #f6f1e8;
  --paper: #fffaf1;
  --ink: #1b2222;
  --muted: #69706c;
  --line: #ded4c3;
  --accent: #2f766d;
  --accent-dark: #1e514b;
  --gold: #b58a45;
  --shadow: 0 22px 80px rgba(25, 31, 29, 0.08);
  --content: 780px;
  --wide: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 118, 109, 0.12), transparent 28rem),
    radial-gradient(circle at top right, rgba(181, 138, 69, 0.12), transparent 30rem),
    var(--bg);
  color: var(--ink);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(27, 34, 34, 0.035) 1px, transparent 1px);
  background-size: 100% 42px;
  opacity: 0.35;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(246, 241, 232, 0.84);
  border-bottom: 1px solid rgba(222, 212, 195, 0.75);
  backdrop-filter: blur(18px);
}

.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.brand::after {
  content: ".";
  color: var(--gold);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.top-nav a {
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.article-shell {
  width: min(100% - 32px, var(--wide));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 96px) 0 56px;
}

article {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.05em;
}

h1 {
  max-width: 920px;
  margin: 0 0 24px;
  font-size: clamp(2.45rem, 8vw, 5.4rem);
  font-weight: 900;
}

h2 {
  margin: clamp(52px, 8vw, 84px) 0 18px;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  font-weight: 850;
}

h3 {
  margin: 32px 0 10px;
  font-size: clamp(1.18rem, 2.7vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

p,
li {
  font-size: clamp(1.02rem, 2.2vw, 1.13rem);
}

p {
  margin: 0 0 20px;
}

.lead {
  margin-bottom: 24px;
  color: #303b39;
  font-size: clamp(1.28rem, 3.5vw, 1.72rem);
  line-height: 1.44;
  letter-spacing: -0.025em;
}

strong {
  color: var(--accent-dark);
  font-weight: 780;
}

ul {
  margin: 12px 0 26px;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 10px;
}

figure {
  width: min(100vw - 32px, var(--wide));
  margin: clamp(32px, 7vw, 64px) 50% clamp(40px, 8vw, 72px);
  transform: translateX(-50%);
}

img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow);
}

figcaption {
  max-width: var(--content);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.quote-line {
  position: relative;
  margin: 32px 0;
  padding: 22px 0 22px 28px;
  border-left: 4px solid var(--gold);
  color: #16201f;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.table-wrap {
  width: min(100vw - 32px, 980px);
  margin: 28px 50% 34px;
  transform: translateX(-50%);
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 18px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid rgba(222, 212, 195, 0.85);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  font-size: 1rem;
}

td:first-child {
  font-weight: 750;
  color: #26302f;
}

.site-footer {
  width: min(100% - 32px, var(--content));
  margin: 0 auto;
  padding: 32px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .top-nav {
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .article-shell {
    width: min(100% - 24px, var(--wide));
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.8rem);
  }

  h2 {
    margin-top: 48px;
  }

  figure {
    width: calc(100vw - 24px);
    margin-top: 30px;
    margin-bottom: 44px;
  }

  img {
    border-radius: 24px;
  }

  .table-wrap {
    width: calc(100vw - 24px);
  }

  th,
  td {
    padding: 15px 14px;
  }

  .quote-line {
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  body {
    line-height: 1.66;
  }

  .top-nav {
    gap: 8px 14px;
  }

  p,
  li {
    font-size: 1rem;
  }

  .lead {
    font-size: 1.2rem;
  }

  table {
    min-width: 620px;
  }

  th,
  td {
    font-size: 0.94rem;
  }
}
