:root {
  --page: #f3efe7;
  --paper: #fffdf8;
  --ink: #191d1e;
  --muted: #66645e;
  --line: #d9d2c6;
  --accent: #9b7342;
  --accent-dark: #674825;
  --dark: #171b1d;
  --content: 780px;
  --wide: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(155, 115, 66, 0.09), transparent 30rem),
    linear-gradient(180deg, #faf8f3 0, var(--page) 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-dark);
  text-decoration-color: rgba(103, 72, 37, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #3f2b16;
  text-decoration-color: currentColor;
}

a:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid rgba(155, 115, 66, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.8rem;
  background: var(--dark);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(25, 29, 30, 0.13);
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(var(--wide), calc(100% - 2.5rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 1.24rem;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  overflow-x: auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-nav a {
  flex: 0 0 auto;
  color: #4f504d;
  text-decoration: none;
}

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

.article {
  width: min(var(--content), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0 6rem;
}

.article-header {
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.15rem, 7vw, 5.6rem);
  line-height: 0.98;
}

h2 {
  margin: 5rem 0 1.35rem;
  padding-top: 0.25rem;
  font-size: clamp(2.05rem, 4.5vw, 3.15rem);
  line-height: 1.07;
}

h3 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.42rem, 2.4vw, 1.9rem);
  line-height: 1.18;
}

p {
  margin: 0 0 1.45rem;
}

.standfirst {
  max-width: 68ch;
  margin: 2rem 0 1.5rem;
  color: #3f4444;
  font-size: clamp(1.16rem, 2.2vw, 1.42rem);
  line-height: 1.58;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.035em;
}

.editorial-image {
  width: min(var(--wide), calc(100vw - 2.5rem));
  margin: 4.5rem 0 4.5rem 50%;
  transform: translateX(-50%);
}

.editorial-image img {
  width: 100%;
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 24px 70px rgba(21, 22, 21, 0.12);
}

.hero-image {
  margin-top: 2.25rem;
}

.editor-note {
  margin: 2.25rem 0 3rem;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.96rem;
  font-style: italic;
}

section {
  scroll-margin-top: 6rem;
}

ul,
ol {
  margin: 0.5rem 0 1.8rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.6rem;
  padding-left: 0.35rem;
}

li::marker {
  color: var(--accent);
}

dfn {
  color: #2f2d29;
  font-style: normal;
  font-weight: 700;
}

.table-scroll {
  width: 100%;
  margin: 2.2rem 0 2.35rem;
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  line-height: 1.5;
}

caption {
  padding: 0.85rem 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
  text-align: left;
}

th,
td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: #444540;
  font-size: 0.69rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

tbody th {
  width: 36%;
  color: #40413d;
  font-weight: 700;
}

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

.calculation {
  margin: 2rem 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: clamp(1.16rem, 2.4vw, 1.45rem);
}

.calculation span {
  display: block;
}

.responsible-section {
  margin-top: 5rem;
  padding-top: 0.25rem;
  border-top: 2px solid var(--ink);
}

.responsible-section h2 {
  margin-top: 2rem;
}

.faq-section h3 {
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.faq-section h3:first-of-type {
  margin-top: 1.5rem;
}

.site-footer {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  line-height: 1.55;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  margin-right: 0.5rem;
  color: var(--ink);
  font-weight: 800;
}

.site-footer a {
  flex: 0 0 auto;
}

@media (max-width: 800px) {
  body {
    font-size: 17px;
    line-height: 1.72;
  }

  .header-inner {
    width: 100%;
    min-height: auto;
    padding: 0.85rem 1.15rem 0.75rem;
    display: block;
  }

  .wordmark {
    display: inline-block;
    margin-bottom: 0.45rem;
  }

  .primary-nav {
    width: 100%;
    padding-bottom: 0.15rem;
    gap: 1rem;
  }

  .article {
    width: min(var(--content), calc(100% - 2rem));
    padding-top: 3.3rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.75rem, 13vw, 4.25rem);
  }

  h2 {
    margin-top: 4.2rem;
  }

  .editorial-image {
    width: calc(100vw - 1.25rem);
    margin-top: 3.3rem;
    margin-bottom: 3.5rem;
  }

  .editorial-image img {
    min-height: 250px;
  }

  .table-scroll {
    width: calc(100vw - 1rem);
    margin-left: calc(50% - 50vw + 0.5rem);
    padding: 0 0.5rem;
  }

  .site-footer {
    width: calc(100% - 2rem);
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .article {
    width: calc(100% - 1.5rem);
  }

  .eyebrow {
    font-size: 0.66rem;
  }

  .standfirst {
    font-size: 1.12rem;
  }

  .article-meta {
    display: block;
  }

  .article-meta span {
    display: block;
    margin-bottom: 0.35rem;
  }

  .editorial-image {
    width: calc(100vw - 0.75rem);
  }

  .editorial-image img {
    min-height: 220px;
  }

  .table-scroll {
    width: calc(100vw - 0.5rem);
    margin-left: calc(50% - 50vw + 0.25rem);
    padding: 0 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .skip-link,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .article {
    width: 100%;
    padding: 0;
  }

  .editorial-image {
    width: 100%;
    margin: 2rem 0;
    transform: none;
  }

  a {
    color: #000;
  }
}
