:root {
  color-scheme: light;
  --ink: #2c1810;
  --paper: #f8f1e4;
  --paper-2: #fffaf1;
  --accent: #8b3a3a;
  --accent-2: #245c57;
  --accent-3: #d4a574;
  --muted: #76675e;
  --line: rgba(44, 24, 16, .16);
  --shadow: #2c1810;
  --max: 1180px;
  --radius: 10px;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(36,92,87,.16), transparent 34rem),
    linear-gradient(135deg, var(--paper), #f5e8d4 42%, #edf4ef 100%);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration-color: rgba(139,58,58,.45); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
.site-header, .site-footer, main { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper-2);
  background: var(--ink);
  border-radius: 4px;
  box-shadow: 5px 5px 0 var(--accent-3);
}
.site-header nav, .site-footer nav, .inline-links, .related, .hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.site-header nav a, .site-footer nav a, .inline-links a, .related a, .hero-links a {
  font-size: .94rem;
  font-weight: 700;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(36px, 8vw, 88px) 0 44px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.05; letter-spacing: 0; }
h1 { margin: 0; max-width: 12ch; font-size: clamp(2.6rem, 7vw, 6.2rem); }
h2 { margin: 0 0 16px; font-size: clamp(1.55rem, 3vw, 2.5rem); }
.deck { max-width: 62ch; color: #4f4038; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 26px 0; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--accent);
  color: #fffaf1;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}
.stacked { box-shadow: 6px 6px 0 var(--shadow); transform: translate(-3px, -3px); transition: transform .18s ease, box-shadow .18s ease; }
.stacked:hover { color: #fffaf1; transform: translate(0, 0); box-shadow: 2px 2px 0 var(--shadow); }
.ref-note { max-width: 32ch; color: var(--muted); font-size: .92rem; }
.hero-visual {
  position: relative;
  min-height: 420px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(139,58,58,.92), rgba(36,92,87,.92)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,.08) 18px 20px);
  box-shadow: 14px 14px 0 var(--ink);
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
}
.wallet-card {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 12%;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: 8px 8px 0 rgba(44,24,16,.85);
}
.status-dot { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; background: #7ae582; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.mini-grid span { height: 46px; border-radius: 6px; background: rgba(36,92,87,.18); }
.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 32px;
  align-items: start;
}
.article-body { min-width: 0; }
.content-block, .cta-panel {
  margin: 0 0 22px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,250,241,.72);
}
.tint-1 { background: #fffaf1; }
.tint-2 { background: #edf4ef; }
.tint-3 { background: #f7dfd7; }
.tint-4 { background: #f5ebd8; }
.content-block p { max-width: 76ch; }
blockquote {
  position: relative;
  margin: 26px 0 0;
  padding: 20px 24px 20px 54px;
  border-left: 4px solid var(--accent);
  background: rgba(44,24,16,.06);
  font-weight: 800;
}
blockquote::before {
  content: "“";
  position: absolute;
  left: 14px;
  top: -8px;
  color: rgba(139,58,58,.35);
  font-size: 5rem;
  line-height: 1;
}
.toc {
  position: sticky;
  top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,250,241,.82);
}
.toc a { display: block; padding: 9px 0; border-top: 1px solid var(--line); font-size: .92rem; font-weight: 700; text-decoration: none; }
.cta-panel { background: var(--ink); color: var(--paper-2); }
.cta-panel .eyebrow { color: var(--accent-3); }
.cta-panel p { color: #eadfce; }
.safety { border: 2px solid var(--accent); }
.related { align-items: center; margin: 16px 0 46px; }
.related .eyebrow { width: 100%; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 900; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats div { padding: 14px; background: #edf4ef; border-radius: 8px; }
pre, select {
  width: 100%;
  max-width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  overflow: auto;
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  margin-top: 44px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .hero, .content-shell, .site-footer { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
  .toc { position: static; order: -1; }
  .site-header { align-items: flex-start; flex-direction: column; }
  h1 { max-width: 13ch; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .site-header, .site-footer, main { width: min(100% - 22px, var(--max)); }
  .content-block, .cta-panel { padding: 20px; }
  .hero { padding-top: 24px; }
  h1 { font-size: clamp(2.2rem, 14vw, 3.4rem); }
  .button, button { width: 100%; }
}