:root {
  --ink: #0d0c0a;
  --ink-2: #161411;
  --paper: #f3eee4;
  --paper-2: #c9c1b4;
  --mute: #8e877b;
  --rule: rgba(243, 238, 228, 0.12);
  --rule-2: rgba(243, 238, 228, 0.22);
  --brass: #c4a574;
  --brass-d: #8a7048;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --measure: 42rem;
  --pad: clamp(1.25rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

html, body { background: var(--ink); color: var(--paper); }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: radial-gradient(ellipse 90% 42% at 50% -8%, #1c1914 0%, transparent 62%);
}

a { color: var(--brass); text-underline-offset: 0.18em; }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::selection { background: #c4a574; color: #0d0c0a; }

.skip {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  font: 600 0.875rem/1 var(--sans);
  text-decoration: none;
}
.skip:focus { top: 0.5rem; }

.wrap { width: min(100% - var(--pad) * 2, var(--measure)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem max(var(--pad), env(safe-area-inset-right)) 0.85rem max(var(--pad), env(safe-area-inset-left));
  padding-top: max(0.85rem, env(safe-area-inset-top));
  background: rgba(13, 12, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.mark {
  font: 600 0.95rem/1 var(--serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}
.mark-grid { width: 14px; height: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mark-grid i { background: var(--brass); display: block; }
.mark-grid i:nth-child(2), .mark-grid i:nth-child(3) { background: var(--rule-2); }
.hdr-actions { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; justify-content: flex-end; }
.hdr-link { color: var(--paper-2); font-size: 0.9rem; text-decoration: none; white-space: nowrap; }
.hdr-link:hover { color: var(--paper); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  font: 600 0.9375rem/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--paper-2); color: var(--paper); }
.btn-sm { min-height: 2.35rem; padding: 0.4rem 0.9rem; font-size: 0.875rem; }

.eyebrow, .kicker {
  margin: 0 0 0.85rem;
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.kicker { color: var(--mute); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; color: var(--paper); }
h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2rem, 5.6vw, 3.15rem);
  line-height: 1.12;
  text-wrap: balance;
}
h2 {
  margin: 2.4rem 0 0.75rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.2;
  text-wrap: balance;
}
h3 { margin: 1.5rem 0 0.4rem; font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1rem; color: var(--paper-2); }
.lede { font-size: 1.125rem; line-height: 1.55; margin-bottom: 1.35rem; }
strong { color: var(--paper); font-weight: 600; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.2rem; color: var(--paper-2); }
li { margin: 0 0 0.45rem; }
li:last-child { margin-bottom: 0; }

.hero { padding: 2.75rem 0 1rem; }
@media (min-width: 720px) { .hero { padding: 4.25rem 0 1.25rem; } }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0 0 1.15rem;
  color: var(--mute);
  font-size: 0.82rem;
}
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }

.article { padding-bottom: 1.5rem; }

.note {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--brass-d);
  border-left: 3px solid var(--brass);
  background: rgba(196, 165, 116, 0.07);
}
.note p:last-child { margin-bottom: 0; }

.guide-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.guide-list li { margin: 0; border-top: 1px solid var(--rule); }
.guide-list li:last-child { border-bottom: 1px solid var(--rule); }
.guide-list a {
  display: block;
  padding: 1.15rem 0;
  text-decoration: none;
  color: inherit;
}
.guide-list a:hover h2 { color: var(--brass); }
.guide-list h2 { margin: 0 0 0.35rem; font-size: 1.45rem; }
.guide-list p { margin: 0; }

ol.steps { list-style: none; margin: 1rem 0 1.25rem; padding: 0; counter-reset: step; }
ol.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0.95rem 0;
  border-top: 1px solid var(--rule);
}
ol.steps > li:last-child { border-bottom: 1px solid var(--rule); }
ol.steps > li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--brass);
  line-height: 1.3;
}
ol.steps h3 { margin: 0 0 0.25rem; }

.defs { margin: 0 0 1.15rem; padding: 0; border-top: 1px solid var(--rule); }
.defs div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.35fr) 1fr;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.defs dt { color: var(--paper); font-weight: 600; }
.defs dd { margin: 0; color: var(--paper-2); }

.tbl-scroll { overflow-x: auto; margin: 0 0 1.15rem; border: 1px solid var(--rule); background: var(--ink-2); }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.92rem; }
caption {
  text-align: left;
  padding: 0.85rem 1rem;
  color: var(--mute);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--rule);
}
th, td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  color: var(--paper-2);
}
th { color: var(--paper); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }

pre {
  margin: 0 0 1.15rem;
  padding: 1rem 1.05rem;
  overflow-x: auto;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  color: var(--paper);
  font: 400 0.84rem/1.55 var(--mono);
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--paper);
}
p code, li code, td code {
  padding: 0.05rem 0.28rem;
  background: var(--ink-2);
  border: 1px solid var(--rule);
}

.sources { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.sources li {
  margin: 0;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  color: var(--paper-2);
  font-size: 0.95rem;
}
.sources li:last-child { border-bottom: 1px solid var(--rule); }

.next { margin-top: 0.5rem; }

.cta {
  margin: 2.5rem 0 3rem;
  padding: 1.35rem 1.3rem 1.25rem;
  border: 1px solid var(--rule-2);
  background: var(--ink-2);
}
.cta h2 { margin-top: 0; }
.price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
  margin: 0 0 0.9rem;
}
.price-line strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.price-line span { color: var(--paper-2); }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin: 0.2rem 0 0.85rem; }
.fine, .refund-note { margin: 0.35rem 0 0; font-size: 0.82rem; color: var(--mute); }
.refund-note a { color: var(--mute); }
.refund-note a:hover { color: var(--paper); }

footer.site {
  border-top: 1px solid var(--rule);
  padding: 1.4rem var(--pad) calc(1.6rem + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  color: var(--mute);
  font-size: 0.8rem;
}
footer.site a { color: var(--mute); text-decoration: none; }
footer.site a:hover { color: var(--paper); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; }

@media (max-width: 640px) {
  .defs div { grid-template-columns: 1fr; gap: 0.2rem; }
  .hdr-link { display: none; }
}
