:root {
  color-scheme: light;
  --ink: #17283a;
  --ink-soft: #435367;
  --paper: #f5eddf;
  --paper-light: #fffaf2;
  --paper-deep: #eadbc6;
  --line: #d7c7b1;
  --red: #c72d38;
  --orange: #c24b2f;
  --green: #247453;
  --amber: #87630b;
  --muted: #6f6a61;
  --shadow: 0 24px 70px rgba(54, 43, 31, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 2%, rgba(232,99,59,.16), transparent 31rem),
    radial-gradient(circle at 4% 42%, rgba(44,138,101,.09), transparent 26rem),
    linear-gradient(180deg, #fbf7ef 0, var(--paper) 46%, #eee1cd 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(23,40,58,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,40,58,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ink);
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}
.mark {
  position: relative;
  width: 27px;
  height: 27px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(194,75,47,.08);
}
.mark::before, .mark::after { content: ""; position: absolute; background: var(--orange); }
.mark::before { width: 12px; height: 1px; top: 12px; left: 7px; }
.mark::after { width: 1px; height: 12px; top: 7px; left: 12px; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav a {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--red); }
.support-link {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  color: var(--muted);
  font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: end;
  padding: clamp(54px, 8vw, 108px) 0 clamp(42px, 6vw, 78px);
}
.eyebrow, .label {
  margin: 0 0 16px;
  color: var(--orange);
  font: 800 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.article-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 6.9rem);
  font-weight: 680;
  line-height: .91;
  letter-spacing: -.065em;
}
.standfirst {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.68;
}
.hero-note {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,250,242,.78);
  box-shadow: var(--shadow);
}
.hero-note strong { display: block; margin-bottom: 8px; font-size: 1.08rem; }
.hero-note p { margin: 0; color: var(--muted); line-height: 1.62; }
.hero-note dl { margin: 0; }
.hero-note div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hero-note div:last-child { border-bottom: 0; }
.hero-note dt { color: var(--muted); }
.hero-note dd { margin: 0; font-weight: 800; text-align: right; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(36px, 7vw, 86px);
  padding-bottom: 86px;
}
.prose { min-width: 0; }
.prose h2 { margin: 54px 0 17px; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.04; letter-spacing: -.045em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 34px 0 12px; font-size: 1.25rem; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1rem; line-height: 1.78; }
.prose p { margin: 0 0 19px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose a { color: #a9382e; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--green);
  background: rgba(36,116,83,.07);
  color: #315747;
  font-size: 1.08rem;
  line-height: 1.65;
}

.metric-grid, .card-grid, .link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin: 26px 0;
}
.metric-card, .content-card, .link-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, #fffdf8, #f1e5d3);
  box-shadow: 0 14px 38px rgba(54,43,31,.07);
}
.metric-card small, .content-card small, .link-card small {
  display: block;
  color: var(--muted);
  font: 700 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.metric-card strong { display: block; margin: 10px 0 5px; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.055em; }
.metric-card span { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.metric-card.warning { border-color: rgba(194,75,47,.45); }
.content-card h2, .content-card h3, .link-card h2, .link-card h3 { margin: 10px 0 8px; font-size: 1.28rem; letter-spacing: -.025em; }
.content-card p, .link-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.content-card a, .link-card a { display: inline-block; margin-top: 16px; color: var(--red); font-weight: 800; text-decoration: none; }

.score-band {
  margin: 32px 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
}
.score-line { position: relative; height: 14px; margin: 22px 0 10px; overflow: hidden; border-radius: 99px; background: linear-gradient(90deg,#3e9b70 0 10%,#e0bb25 10% 25%,#ec8b2e 25% 40%,#df4b3f 40% 60%,#bd243b 60%); }
.score-line i { position: absolute; top: -5px; width: 3px; height: 24px; border-radius: 3px; background: var(--ink); box-shadow: 0 0 0 3px #fffaf2; }
.score-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; }

.sidebar { align-self: start; position: sticky; top: 24px; }
.side-card { margin-bottom: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,250,242,.78); }
.side-card h2 { margin: 0 0 12px; font-size: 1rem; }
.side-card p, .side-card li { color: var(--muted); font-size: .86rem; line-height: 1.6; }
.side-card ul { margin: 0; padding-left: 1.1rem; }
.side-card a { color: #a9382e; font-weight: 750; }
.side-nav { margin: 0; padding: 0; list-style: none; }
.side-nav li + li { margin-top: 8px; }
.side-nav a { display: block; padding: 9px 10px; border-radius: 9px; background: rgba(255,255,255,.52); text-decoration: none; }

.source-table { width: 100%; margin: 26px 0; border-collapse: collapse; border: 1px solid var(--line); background: rgba(255,250,242,.72); }
.source-table th, .source-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.source-table th { color: var(--muted); font: 800 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.source-table td { color: var(--ink-soft); line-height: 1.55; }

.index-hero { padding: clamp(58px, 9vw, 110px) 0 46px; }
.index-hero h1 { max-width: 900px; margin: 0; font-size: clamp(3rem, 7vw, 6.6rem); line-height: .92; letter-spacing: -.065em; }
.index-hero p:last-child { max-width: 760px; color: var(--ink-soft); font-size: 1.16rem; line-height: 1.7; }
.index-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding-bottom: 90px; }
.geography-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.index-card { min-height: 260px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg,#fffdf8,#f1e5d3); box-shadow: 0 14px 38px rgba(54,43,31,.08); }
.index-card h2 { margin: 14px 0 10px; font-size: 1.5rem; letter-spacing: -.035em; }
.index-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.index-card a { margin-top: auto; padding-top: 20px; color: var(--red); font-weight: 850; text-decoration: none; }

.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; margin: 20px 0 80px; padding: clamp(26px, 5vw, 48px); border-radius: var(--radius); background: linear-gradient(135deg,#17283a,#24465b); color: #fffaf2; box-shadow: 0 24px 70px rgba(23,40,58,.2); }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.7rem,3vw,2.7rem); letter-spacing: -.04em; }
.cta-band p { margin: 0; color: #d4ddd9; line-height: 1.6; }
.button { display: inline-block; padding: 13px 18px; border-radius: 10px; background: #ff9a5e; color: #17283a; font-weight: 900; text-decoration: none; white-space: nowrap; }

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 34px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,250,242,.8);
  box-shadow: 0 14px 38px rgba(54,43,31,.07);
}
.order-form label { display: grid; gap: 8px; color: var(--ink); font-size: .82rem; font-weight: 800; }
.order-form .wide { grid-column: 1 / -1; }
.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}
.order-form textarea { min-height: 120px; resize: vertical; }
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus { border-color: var(--orange); outline: 3px solid rgba(194,75,47,.15); outline-offset: 1px; }
.order-form button {
  justify-self: start;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.order-form button:hover,
.order-form button:focus-visible { background: var(--red); outline: 3px solid rgba(199,45,56,.2); outline-offset: 2px; }
.form-success { margin: 24px 0 34px; padding: 20px 22px; border: 1px solid rgba(36,116,83,.4); border-radius: 14px; background: rgba(36,116,83,.1); color: #315747; }
.form-success strong { display: block; margin-bottom: 5px; color: #204b39; }
.security-note { padding: 16px 18px; border-left: 3px solid var(--amber); background: rgba(135,99,11,.08); color: #5f4c18 !important; }
.scope-list { margin: 24px 0; padding: 0; list-style: none; }
.scope-list li { position: relative; margin: 0; padding: 11px 0 11px 29px; border-bottom: 1px solid var(--line); }
.scope-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.checkout-box { margin: 28px 0; padding: clamp(24px, 5vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg,#fffdf8,#f1e5d3); box-shadow: var(--shadow); text-align: center; }
.checkout-box .price { display: block; margin: 10px 0 5px; font-size: clamp(2.8rem, 7vw, 4.8rem); font-weight: 900; letter-spacing: -.06em; }
.checkout-box .button { margin-top: 20px; background: #003087; color: #fff; }
.checkout-box .button:hover,
.checkout-box .button:focus-visible { background: #001c64; outline: 3px solid rgba(0,156,222,.32); outline-offset: 2px; }

.site-footer { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 36px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.65; }
.site-footer p { margin: 0; max-width: 720px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.footer-links a { font-weight: 750; text-decoration: none; }

@media (max-width: 1100px) {
  .geography-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; padding: 20px 0; }
  .site-nav { width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 3px; }
  .article-hero, .content-grid { grid-template-columns: 1fr; }
  .article-hero { align-items: start; }
  .hero-note { max-width: 620px; }
  .sidebar { position: static; }
  .index-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-nav { flex-wrap: wrap; gap: 12px 14px; overflow: visible; }
  .site-nav a { font-size: .68rem; }
  .support-link { padding: 8px 11px; }
  .article-hero h1, .index-hero h1 { font-size: clamp(2.75rem, 15vw, 4.8rem); }
  .metric-grid, .card-grid, .link-grid, .index-grid, .order-form { grid-template-columns: 1fr; }
  .order-form .wide { grid-column: auto; }
  .cta-band, .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .source-table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
