*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--cream); border-radius: var(--radius); transform: translateY(-150%); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 3px; }

/* Buttons */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex; align-items: center; gap: .6em;
  padding: 16px 26px; border-radius: var(--radius);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--ink);
  font: 600 15px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--ink:hover { --bg: var(--orange); --fg: var(--ink); }
.btn--line { --bg: transparent; --fg: var(--ink); }
.btn--line:hover { --bg: var(--ink); --fg: var(--cream); }
.btn--sm { padding: 11px 18px; font-size: 14px; }

/* Subtle grain over the whole site (no images, inline SVG) */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
