:root {
  --ink: #10283a;
  --paper: #f7f2e8;
  --paper-deep: #eee5d6;
  --line: #cfc5b5;
  --red: #ca3b2f;
  --blue: #244ea0;
  --green: #174d45;
  --muted: #53616b;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 40, 58, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 40, 58, .055) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  color: white;
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.editorial-nav {
  border-bottom: 1px solid rgba(16, 40, 58, .25);
  background: rgba(247, 242, 232, .95);
  backdrop-filter: blur(12px);
}

.editorial-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.editorial-nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.editorial-brand,
.editorial-nav-links a,
.eyebrow,
.article-meta,
.button,
.fact-label,
.footer-links {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.editorial-brand {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.editorial-brand::before {
  width: 18px;
  height: 18px;
  content: "";
  border: 2px solid var(--ink);
  box-shadow: inset 7px 0 var(--red);
}

.editorial-nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.editorial-nav-links a {
  font-size: .75rem;
  text-decoration: none;
}

.article-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--red);
  font-size: .77rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: .98;
  letter-spacing: -.045em;
}

h1 {
  max-width: 900px;
  margin-bottom: 1.5rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
}

h2 {
  margin-bottom: 1.4rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
}

h3 {
  margin-bottom: .75rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.08;
}

.hero-summary {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.hero-fact-card {
  padding: 1.6rem;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, .62);
  box-shadow: 12px 12px 0 rgba(16, 40, 58, .12);
}

.fact-label {
  color: var(--red);
  font-size: .7rem;
  font-weight: 700;
}

.hero-fact-card strong {
  display: block;
  margin: .4rem 0 1rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  line-height: 1.2;
}

.hero-fact-card p {
  margin: 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.article-body {
  max-width: 780px;
}

.article-body > p,
.article-body li {
  font-size: 1.08rem;
}

.article-body section {
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}

.article-body section:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-body blockquote,
.definition-box,
.download-box,
.standard-box {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--red);
  background: #fffaf1;
}

.definition-box strong,
.download-box strong {
  display: block;
  margin-bottom: .35rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
}

.step-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  position: relative;
  min-height: 72px;
  padding: 1.2rem 1.2rem 1.2rem 5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
  counter-increment: steps;
}

.step-list li::before {
  position: absolute;
  left: 1.2rem;
  top: 1.1rem;
  content: counter(steps, decimal-leading-zero);
  color: var(--red);
  font: 700 1.35rem/1 Consolas, monospace;
}

.step-list strong {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
}

.comparison {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  background: rgba(255, 255, 255, .7);
}

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

.comparison th {
  color: white;
  background: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .85rem 1.1rem;
  border: 1px solid var(--red);
  color: white;
  background: var(--red);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: white;
  background: #a62b23;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.article-meta {
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  font-size: .67rem;
}

.article-meta div + div {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.article-meta strong {
  display: block;
  margin-top: .25rem;
  color: var(--ink);
  font-size: .77rem;
}

.source-list {
  padding-left: 1.2rem;
}

.source-list li + li {
  margin-top: .7rem;
}

.faq-stack {
  display: grid;
  gap: .75rem;
}

.faq-stack details {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .62);
}

.faq-stack summary {
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.editorial-footer {
  padding: 2rem 0;
  color: var(--paper);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .7rem;
}

.footer-links a {
  color: var(--paper);
  text-decoration: none;
}

@media (max-width: 780px) {
  .editorial-nav-links a:not(:last-child) {
    display: none;
  }

  .article-hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
    order: -1;
  }

  .comparison {
    display: block;
    overflow-x: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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