@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo.woff2") format("woff2-variations"), url("fonts/archivo.woff2") format("woff2");
}

:root {
  --paper: #fff8f5;
  --blush: #fde8df;
  --ink: #2a0e08;
  --ink-soft: #6b4237;
  --red: #e5341d;
  --red-text: #b8241a;
  --orange: #ff7a1a;
  --amber: #ffb020;
  --oxblood: #4a0d0b;
  --line: #f1cfc3;
  --measure: 68ch;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- headings ---------- */
h1, h2, h3 { font-stretch: 125%; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 4.1rem); }
h2 { font-weight: 750; font-size: clamp(1.55rem, 2.8vw, 2.15rem); margin-top: 1.8em; }
h3 { font-weight: 700; font-size: 1.2rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); max-width: 58ch; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 1.05rem; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--red-text); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--red-text); border-bottom-color: var(--line); }
}

/* ---------- home hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1; }
.hero .lede { margin-bottom: 1.6em; }
.hero-links { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 650; text-decoration: none; border: 2px solid var(--ink); color: var(--ink); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn-solid:hover { background: var(--oxblood); border-color: var(--oxblood); color: #fff; }

.discs { width: 100%; max-width: 460px; margin-left: auto; }
.discs circle { mix-blend-mode: multiply; }
@media (prefers-reduced-motion: no-preference) {
  .discs .d1 { animation: in1 1.4s cubic-bezier(.2,.7,.2,1) both .1s; }
  .discs .d2 { animation: in2 1.4s cubic-bezier(.2,.7,.2,1) both .1s; }
  .discs .d3 { animation: in3 1.4s cubic-bezier(.2,.7,.2,1) both .1s; }
  @keyframes in1 { from { transform: translate(-70px, -40px); } }
  @keyframes in2 { from { transform: translate(70px, -40px); } }
  @keyframes in3 { from { transform: translate(0, 80px); } }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .discs { max-width: 200px; margin: 0; order: -1; }
}

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.section > .wrap > h2:first-child { margin-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.measure { max-width: var(--measure); }

/* guide index: ruled list, not cards */
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 8px 32px; padding: 22px 0; color: var(--ink); text-decoration: none; }
.guide-list a:hover .g-title { color: var(--red-text); text-decoration: underline; text-decoration-thickness: 2px; }
.g-title { font-weight: 750; font-stretch: 115%; font-size: 1.2rem; line-height: 1.25; }
.g-desc { color: var(--ink-soft); }
@media (max-width: 680px) { .guide-list a { grid-template-columns: 1fr; } }

/* dark band */
.band { background: var(--oxblood); color: #fbe4dc; }
.band h2 { color: #fff; }
.band a { color: var(--amber); }
.band .section { border-top: 0; }
.limits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.limits li { padding: 20px 0; border-top: 1px solid rgba(255, 176, 32, .35); }
.limits strong { display: block; color: #fff; font-stretch: 115%; font-size: 1.12rem; margin-bottom: 6px; }
@media (max-width: 860px) { .limits { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.updated { font-size: .92rem; color: var(--ink-soft); margin-top: 1.2em; }
.crumbs { font-size: .92rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }

.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(56px, 7vw, 96px); max-width: var(--wrap); margin: 0 auto; }
.toc { position: sticky; top: 24px; align-self: start; font-size: .95rem; }
.toc p { font-weight: 700; margin-bottom: .6em; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--red-text); border-left-color: var(--red); }
@media (max-width: 900px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }
.article-single { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(56px, 7vw, 96px); }

.prose { max-width: var(--measure); }
.prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.prose h2 { scroll-margin-top: 20px; }

.note { background: var(--blush); border-left: 4px solid var(--red); padding: 18px 22px; margin: 1.6em 0; border-radius: 0 10px 10px 0; }
.note p:last-child { margin-bottom: 0; }

figure { margin: 2em 0; }
figcaption { font-size: .93rem; color: var(--ink-soft); margin-top: 10px; max-width: 60ch; }

/* steps: a real sequence */
.steps { list-style: none; padding: 0; margin: 1.5em 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font-stretch: 125%; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--orange); }
.steps strong { font-stretch: 112%; }

/* timeline: dated cases */
.timeline { list-style: none; padding: 0; margin: 1.5em 0; border-left: 3px solid var(--red); }
.timeline li { position: relative; padding: 0 0 26px 24px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--orange); border: 3px solid var(--paper); }
.timeline time { display: block; font-weight: 700; font-stretch: 112%; color: var(--red-text); }

/* table */
.table-scroll { overflow-x: auto; margin: 1.4em 0 2em; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .97rem; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font-stretch: 112%; }

/* service entry */
.service { border: 2px solid var(--ink); border-radius: 18px; padding: clamp(20px, 3vw, 32px); margin: 1.6em 0; background: #fff; }
.service h2 { margin-top: 0; }
.service dl { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); margin: 1.2em 0; }
.service dt, .service dd { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.service dt { font-weight: 650; }
.pending { color: var(--ink-soft); font-style: italic; }
@media (max-width: 560px) { .service dl { grid-template-columns: 1fr; } .service dd { border-top: 0; padding-top: 0; } }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-stretch: 110%; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 18px; max-width: var(--measure); color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } html { scroll-behavior: auto; } }

/* next page link at the end of guides */
.next { margin-top: 3em; padding-top: 1.4em; border-top: 2px solid var(--ink); }
.next span { display: block; font-size: .92rem; color: var(--ink-soft); }
.next a { font-weight: 750; font-stretch: 115%; font-size: 1.25rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--oxblood); color: #f3cfc4; padding: 56px 0 32px; font-size: .95rem; }
.site-footer a { color: #ffe0d3; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot-grid p.h { color: #fff; font-weight: 700; margin-bottom: .6em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand circle { mix-blend-mode: screen !important; opacity: .9; }
.foot-note { border-top: 1px solid rgba(255, 224, 211, .2); margin-top: 40px; padding-top: 20px; font-size: .88rem; color: #dcb1a5; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
