:root {
  color-scheme: light;
  --paper: #f4efe5;
  --paper-deep: #e9e1d3;
  --surface: #fffdf8;
  --ink: #172a36;
  --ink-soft: #49545c;
  --muted: #71777b;
  --rule: #c9c1b4;
  --accent: #8b2f3f;
  --accent-dark: #6e2030;
  --gold: #a87319;
  --focus: #1769aa;
  --max: 1180px;
  --reading: 760px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.masthead {
  min-height: 84px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  background: var(--ink);
  color: #efd29b;
  border-radius: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-decoration: none;
}

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

.menu-button {
  display: none;
  min-height: 42px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 15px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--ink-soft);
}

.home-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 82px 28px 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 74px;
  align-items: end;
}

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.home-intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: 58px;
  line-height: 1.07;
}

.intro-copy p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.text-link {
  font-weight: 750;
}

.fact-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: 0.6fr 1.2fr 1fr;
}

.fact-strip div {
  min-height: 112px;
  padding: 23px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.fact-strip div:last-child {
  border-right: 0;
}

.fact-strip strong,
.fact-strip span {
  display: block;
}

.fact-strip strong {
  color: #f2d69f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.fact-strip span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.content-section,
.trust-section,
.utility-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 28px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  column-gap: 70px;
  align-items: end;
  margin-bottom: 40px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.utility-band h2,
.trust-section h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.18;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.guide-list {
  border-top: 2px solid var(--ink);
}

.guide-row {
  min-height: 134px;
  padding: 24px 4px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 40px;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.guide-row:hover {
  background: rgba(255, 253, 248, 0.55);
  color: var(--ink);
}

.guide-number {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.guide-copy,
.guide-copy small,
.guide-copy strong,
.guide-copy span {
  display: block;
}

.guide-copy small {
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-copy strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}

.guide-copy span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 14px;
}

.guide-arrow {
  color: var(--accent);
  font-size: 25px;
  text-align: right;
}

.utility-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.utility-links {
  border-top: 2px solid var(--ink);
}

.utility-links a {
  padding: 25px 0;
  display: block;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.utility-links strong,
.utility-links span {
  display: block;
}

.utility-links strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
}

.utility-links span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 14px;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
}

.trust-section p {
  margin-top: 0;
  color: var(--ink-soft);
}

.article-header,
.page-header {
  max-width: 930px;
  margin: 0 auto;
  padding: 68px 28px 48px;
}

.article-header.compact {
  padding-bottom: 35px;
}

.article-header h1,
.page-header h1 {
  max-width: 900px;
  margin: 0;
  font-size: 49px;
  line-height: 1.12;
}

.standfirst {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.48;
}

.article-meta {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.scope-note,
.review-callout {
  max-width: var(--reading);
  margin: 0 auto 42px;
  padding: 20px 23px;
  border: 1px solid var(--rule);
  border-left: 5px solid var(--accent);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
}

.prose {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 0 0 72px;
}

.prose h2 {
  margin: 52px 0 16px;
  padding-top: 9px;
  border-top: 2px solid var(--ink);
  font-size: 29px;
  line-height: 1.25;
}

.prose h3 {
  margin: 34px 0 10px;
  font-size: 22px;
  line-height: 1.32;
}

.prose p {
  margin: 0 0 1.25em;
  color: #2e3b43;
}

.prose ul,
.prose ol {
  margin: 0 0 1.55em;
  padding-left: 1.4em;
  color: #2e3b43;
}

.prose li {
  margin-bottom: 0.6em;
  padding-left: 0.25em;
}

.prose strong {
  color: var(--ink);
}

.prose blockquote {
  margin: 32px 0;
  padding: 2px 0 2px 24px;
  border-left: 4px solid var(--gold);
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.prose .decision-path {
  margin: 32px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--rule);
}

.prose .decision-path li {
  min-height: 74px;
  padding: 16px 0 16px 54px;
  position: relative;
  border-bottom: 1px solid var(--rule);
  counter-increment: step;
}

.prose .decision-path li::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.prose .example,
.prose .warning,
.prose .source-note {
  margin: 32px 0;
  padding: 20px 23px;
  background: var(--surface);
  border: 1px solid var(--rule);
}

.prose .example {
  border-top: 4px solid var(--gold);
}

.prose .warning {
  border-top: 4px solid var(--accent);
}

.prose .source-note {
  border-top: 4px solid var(--ink);
}

.prose .example h3,
.prose .warning h3,
.prose .source-note h2,
.prose .source-note h3 {
  margin-top: 0;
}

.table-scroll {
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--rule);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 14px;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-list {
  padding-left: 0 !important;
  list-style: none;
}

.source-list li {
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--rule);
}

.source-list a {
  overflow-wrap: anywhere;
}

.editor-box {
  max-width: var(--reading);
  margin: 0 auto 86px;
  padding: 25px 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.editor-initials {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #f2d69f;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.editor-box h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.editor-box p {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 14px;
}

.index-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 86px;
}

.index-main .page-header {
  max-width: 930px;
  margin-left: 0;
  padding-left: 0;
}

.index-main .review-callout {
  max-width: 100%;
  margin-top: 38px;
}

.not-found {
  max-width: 760px;
  min-height: 60vh;
  margin: 0 auto;
  padding: 90px 28px;
}

.not-found h1 {
  margin: 0 0 20px;
  font-size: 44px;
}

.not-found p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 19px;
}

.primary-action {
  min-height: 46px;
  margin-top: 18px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.primary-action:hover {
  background: var(--accent-dark);
  color: #fff;
}

.site-footer {
  margin-top: 0;
  padding: 52px 28px 28px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.footer-grid strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.footer-grid p {
  max-width: 530px;
  margin: 8px 0 0;
  font-size: 14px;
}

.footer-grid nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  align-content: start;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.footer-note {
  max-width: var(--max);
  margin: 38px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .masthead {
    min-height: 72px;
    padding: 12px 18px;
    flex-wrap: wrap;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 9px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    width: 100%;
    display: none;
    padding: 8px 0 4px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--rule);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--rule);
  }

  .breadcrumbs {
    padding: 12px 18px;
  }

  .home-intro {
    padding: 55px 20px 48px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-intro h1 {
    font-size: 40px;
  }

  .fact-strip {
    grid-template-columns: 1fr;
  }

  .fact-strip div {
    min-height: 88px;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .fact-strip div:last-child {
    border-bottom: 0;
  }

  .content-section,
  .trust-section,
  .utility-band {
    padding: 58px 20px;
  }

  .section-heading,
  .trust-section,
  .utility-band {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading h2,
  .utility-band h2,
  .trust-section h2 {
    font-size: 31px;
  }

  .guide-row {
    min-height: 120px;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    gap: 12px;
  }

  .guide-copy strong {
    font-size: 19px;
  }

  .guide-copy span {
    font-size: 13px;
  }

  .article-header,
  .page-header {
    padding: 48px 20px 38px;
  }

  .article-header h1,
  .page-header h1 {
    font-size: 36px;
  }

  .standfirst {
    font-size: 19px;
  }

  .scope-note,
  .review-callout,
  .prose,
  .editor-box {
    margin-left: 20px;
    margin-right: 20px;
  }

  .prose {
    padding-bottom: 52px;
  }

  .prose h2 {
    font-size: 25px;
  }

  .editor-box {
    margin-bottom: 62px;
  }

  .index-main {
    padding: 0 20px 58px;
  }

  .index-main .page-header {
    padding-left: 0;
    padding-right: 0;
  }

  .index-main .review-callout {
    margin-left: 0;
    margin-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand small {
    display: none;
  }

  .home-intro h1 {
    font-size: 34px;
  }

  .article-header h1,
  .page-header h1 {
    font-size: 31px;
  }

  .guide-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .guide-arrow {
    display: none;
  }

  .scope-note,
  .review-callout,
  .prose,
  .editor-box {
    margin-left: 16px;
    margin-right: 16px;
  }

  .editor-box {
    grid-template-columns: 1fr;
  }

  .footer-grid nav {
    grid-template-columns: 1fr;
  }
}

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