:root {
  --bg: #FDF4E9;
  --sand: #EFE4D1;
  --sand-deep: #DFCCA9;
  --brown: #816545;
  --ink: #2F2318;
  --red: #FF4747;
  --red-deep: #C92F2F;
  --sage: #8DB36B;
  --px: 4px;
  --display: "Silkscreen", monospace;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, canvas { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }
.spr { image-rendering: pixelated; width: 64px; height: 64px; flex: none; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.px { box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 4px solid var(--ink); }
.nav .wrap { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.brand .spr { width: 40px; height: 40px; }
.links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.links a { text-decoration: none; font-weight: 700; padding: 4px 0; border-bottom: 4px solid transparent; }
.links a:hover { color: var(--red-deep); }
.links a[aria-current="page"] { border-bottom-color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; width: 44px; height: 38px; padding: 0; background: var(--sand); border: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); }
.menu-btn i { display: block; width: 20px; height: 4px; background: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 8px 22px;
  font-family: var(--display); font-weight: 700; font-size: .85rem; text-decoration: none;
  color: var(--ink); background: var(--red); border: 0; cursor: pointer;
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), inset 0 -6px 0 0 var(--red-deep), inset 0 4px 0 0 rgba(255,255,255,.35);
  transition: transform .08s steps(2);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); }
.btn.sand { background: var(--sand); box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), inset 0 -6px 0 0 var(--sand-deep), inset 0 4px 0 0 rgba(255,255,255,.6); }
.btn.small { min-height: 38px; padding: 4px 14px; font-size: .8rem; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; filter: saturate(.4) brightness(.97); transform: none; }

.tag { display: inline-block; font-family: var(--display); font-size: .75rem; letter-spacing: .04em; background: var(--ink); color: var(--bg); padding: 3px 9px; width: fit-content; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.sec-head p { margin-top: 14px; font-size: 1.05rem; }
section { padding: 96px 0; }

.eyebrow2 { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow2 .spr { width: 28px; height: 28px; }

.dusk { position: relative; overflow: hidden; background: #1E1A3F; color: var(--bg); border-bottom: 4px solid var(--ink); }
.dusk canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.dusk > .wrap { position: relative; z-index: 1; }
.dusk .eyebrow2 { color: #F9C9A0; }
.dusk h1 { color: #FDF4E9; text-shadow: 0 4px 0 #C92F2F, 0 8px 0 #2F2318, 4px 4px 0 #2F2318, -4px 4px 0 #2F2318; letter-spacing: .08em; }

.sign { position: relative; padding: 24px 28px 26px; color: var(--ink);
  background: repeating-linear-gradient(180deg, #C9A06B 0 28px, #B98F5E 28px 32px);
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), inset 0 4px 0 0 rgba(255,255,255,.35), inset 0 -4px 0 0 rgba(47,35,24,.25), 0 16px 0 0 rgba(20,12,40,.45); }
.sign::before, .sign::after { content: ""; position: absolute; top: -46px; width: 8px; height: 42px; background: repeating-linear-gradient(180deg, #8C8C99 0 8px, #5E5E6B 8px 12px); box-shadow: 0 0 0 4px var(--ink) inset; }
.sign::before { left: 44px; } .sign::after { right: 44px; }
.sign .nail { position: absolute; top: 10px; width: 8px; height: 8px; background: #5B472F; box-shadow: inset 2px 2px 0 rgba(255,255,255,.35); }
.sign .nail.l { left: 12px; } .sign .nail.r { right: 12px; }

footer { padding: 48px 0 64px; background: var(--sand); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
footer small { font-size: .95rem; opacity: .85; max-width: 52ch; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 700; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--red-deep); }

.rv { opacity: 0; transform: translateY(18px); transition: opacity .35s steps(5), transform .35s steps(5); }
.rv.in { opacity: 1; transform: none; }

.prose { font-size: 1.08rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.8em; }
.prose h1 { font-size: 1.6rem; } .prose h2 { font-size: 1.35rem; } .prose h3 { font-size: 1.1rem; }
.prose a { color: var(--red-deep); font-weight: 700; }
.prose img { max-width: 100%; height: auto; box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); margin: 1.4em 4px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 8px solid var(--sand-deep); color: var(--brown); font-weight: 600; }
.prose code { font-family: ui-monospace, Consolas, monospace; background: var(--sand); padding: 1px 6px; font-size: .92em; }
.prose pre { background: var(--ink); color: var(--bg); padding: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--sand-deep) 0 12px, transparent 12px 20px); }

@media (max-width: 860px) {
  section { padding: 72px 0; }
  .menu-btn { display: flex; }
  .links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 4px solid var(--ink); margin: 0; padding: 8px 16px 16px; }
  .nav.open .links { display: flex; }
  .links a { padding: 14px 4px; border-bottom: 4px dashed var(--sand-deep); }
  .nav-right { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .rv { transition: none; } .rv { opacity: 1; transform: none; } }

.dd { position: relative; }
.dd-btn { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; border-bottom: 4px solid transparent; padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.dd-btn::after { content: ""; width: 8px; height: 8px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.dd-btn:hover { color: var(--red-deep); }
.dd.open .dd-btn::after { transform: translateY(1px) rotate(225deg); }
.dd-menu { display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); min-width: 130px; background: var(--bg); padding: 6px; z-index: 30; box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); }
.dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 8px 12px; border-bottom: 0; white-space: nowrap; }
.dd-menu a:hover { background: var(--sand); }
@media (max-width: 860px) {
  .dd-btn { padding: 14px 4px; width: 100%; justify-content: space-between; border-bottom: 4px dashed var(--sand-deep); }
  .dd-menu { position: static; transform: none; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
}
