/* ─────────────────────────────────────────────────────────────
   ARL ELEVATE - Base
   Reset + base typography + body scaffolding.
   ───────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  /* Account for the sticky header when navigating to in-page anchors. */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  /* Position relative so absolute page accents can size themselves to
     the full body height. */
  position: relative;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: var(--type-base);
  line-height: 1.55;
  font-feature-settings: "liga" on, "kern" on, "onum" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Prevent horizontal scroll from any wide elements on small screens. */
  overflow-x: hidden;
}

/* Subtle paper-grain warmth - the same texture as the walkthrough */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.06  0 0 0 0 0.05  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.85;
  mix-blend-mode: multiply;
}

/* ─── Type baseline ────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 340;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 { font-size: var(--type-4xl); font-weight: 280; letter-spacing: -0.03em; }
h2 { font-size: var(--type-3xl); }
h3 { font-size: var(--type-2xl); }
h4 { font-size: var(--type-xl); }
h5 { font-size: var(--type-lg); }
h6 { font-size: var(--type-base); }

p {
  margin: 0 0 1em 0;
  text-wrap: pretty;
}

a {
  color: var(--aubergine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
  transition: color var(--duration-fast) var(--ease-out),
              text-decoration-color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--aubergine-deep);
  text-decoration-color: var(--aubergine);
}

em, i {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}

strong, b {
  font-weight: 600;
  color: var(--ink);
}

small {
  font-size: var(--type-sm);
  color: var(--stone);
}

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

/* ─── Containers ──────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container-base);
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

@media (min-width: 720px) {
  .container { padding: 0 var(--gutter-desktop); }
}

/* ─── Utility ─────────────────────────────────────────────── */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}
