:root {
  --parchment: #f7e6bc;
  --paper: #fff3d4;
  --wood: #573722;
  --dark: #392317;
  --gold: #e0ad58;
  --copper: #a45e3c;
  --moss: #758149;
  --ink: #342217;
  --cream: #fff8e4;
  --night: #26334a;
  --pixel-shadow: 6px 6px 0 var(--dark);
  --title: "Press Start 2P", "Courier New", monospace;
  --body: "VT323", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  padding-top: 87px;
  padding-bottom: 96px;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath fill='%23392317' d='M2 2h5v4h4v4h4v4h4v4h5v6h-7v2h3v5h-7l-3-8-5 5H2z'/%3E%3Cpath fill='%23e0ad58' d='M5 5h2v4h4v4h4v4h4v3h-7v4l-3-7-4 4z'/%3E%3Cpath fill='%23fff3d4' d='M5 5h2v4h3v3H8v5H5z'/%3E%3Cpath fill='%23a45e3c' d='M12 20h3l4 8h-4z'/%3E%3C/svg%3E") 3 3, auto;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    linear-gradient(90deg, rgba(87,55,34,.035) 1px, transparent 1px),
    linear-gradient(rgba(87,55,34,.035) 1px, transparent 1px);
  background-size: 8px 8px;
  font-family: var(--body);
  font-size: 24px;
  line-height: 1.35;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  box-shadow: inset 0 0 0 5px var(--dark), inset 0 0 0 9px var(--gold);
}
a { color: inherit; }
a, button, summary, label[for], input[type="checkbox"] { cursor: pointer; }
button, input { font: inherit; }
img, svg { display: block; max-width: 100%; }
svg { image-rendering: pixelated; shape-rendering: crispEdges; }
:focus-visible { outline: 4px solid #fff3d4; outline-offset: 4px; box-shadow: 0 0 0 8px var(--copper); }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--paper); border: 4px solid var(--dark); padding: 10px 16px; font-family: var(--title); font-size: 10px; }
.skip-link:focus { top: 12px; }
