/* ===========================================================
   Base — typography, links, focus, layout primitives
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "kern", "liga";
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease, color 0.2s ease;
}
a:hover { background-size: 0 1px; }
a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  background: transparent;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--paper);
}
h1 { font-size: var(--step-6); font-weight: 300; }
h2 { font-size: var(--step-4); font-weight: 300; }
h3 { font-size: var(--step-2); font-weight: 400; }
h4 { font-size: var(--step-1); font-weight: 500; }

p { max-width: 62ch; }
p + p { margin-top: 1em; }

::selection { background: var(--brass); color: var(--ink); }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { flex: 1; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-3);
  font-weight: 500;
}

.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass);
  margin-right: 0.6em;
  vertical-align: 0.1em;
}

.hairline {
  border: 0;
  border-top: var(--rule-w) solid var(--rule);
  width: 100%;
}
.hairline--light { border-top-color: var(--rule-light); }

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 9999;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

/* ---------- Footer ---------- */
.foot {
  border-top: var(--rule-w) solid var(--rule);
  padding: 3rem 0 2rem;
  font-size: 0.82rem;
  color: var(--paper-3);
  background: var(--ink);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.foot h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-3);
  font-weight: 500;
  margin-bottom: 1rem;
}
.foot ul { list-style: none; }
.foot li { margin-bottom: 0.45rem; }
.foot a { color: var(--paper-2); }
.foot__brand {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}
.foot__brand em { font-style: italic; color: var(--brass); }
.foot__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: var(--rule-w) solid var(--rule);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-3);
}

@media (max-width: 880px) {
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .foot__base { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
}
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
}
