/* base.css — reset, typography, shared utilities, reveal. Ported from v3.2. */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* dot-grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(20, 24, 30, .026) 1px, transparent 1px),
    radial-gradient(rgba(20, 24, 30, .018) 1px, transparent 1px);
  background-position: 0 0, 2px 3px;
  background-size: 3px 3px, 7px 7px;
  mix-blend-mode: multiply;
}

body.menu-open,
body.loading { overflow: hidden; }

img { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button, input, textarea { font: inherit; }
button { color: inherit; }

h1, h2, h3, h4, p, blockquote, figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 { font-size: clamp(58px, 9.7vw, 156px); line-height: .82; letter-spacing: 0; }
h2 { font-size: clamp(38px, 6vw, 86px); line-height: .95; letter-spacing: 0; }
h3 { font-size: clamp(27px, 3vw, 44px); line-height: 1.02; }
h4 { font-size: 26px; line-height: 1.08; }

:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 4px;
}

::selection { background: rgba(151, 60, 40, .24); }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.mono,
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.eyebrow {
  display: inline-grid;
  grid-template-columns: 44px auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--oxide);
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  height: 2px;
  background: currentColor;
}

.lead {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
}

.container {
  width: min(var(--max), calc(100% - (var(--page-x) * 2)));
  margin: 0 auto;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--ink); color: var(--paper); }
.button--oxide { border-color: var(--oxide); background: var(--oxide); color: var(--paper); }
.button--light { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.button--light:hover { background: var(--oxide); border-color: var(--oxide); color: var(--paper); }

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .18, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
