/* ==========================================================================
   base.css — reset, element defaults, layout primitives
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display type carries the personality. */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 460;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-display);
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--text-h2);
}
h3 {
  font-size: var(--text-h3);
  font-weight: 500;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
  transition: color var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}
a:hover {
  text-decoration: underline;
}

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

strong {
  font-weight: 600;
}

hr,
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-6) 0;
}

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

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

/* Layout primitives */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

main {
  padding-block: var(--space-8);
}

/* Vertical rhythm between stacked sections. */
section + section {
  margin-top: var(--space-8);
}

/* Eyebrow label — the recurring small-caps motif. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--ink-3);
  margin: 0 0 var(--space-4);
}
.eyebrow::after {
  content: "";
  display: block;
  width: 2.5rem;
  border-top: 1px solid var(--line-strong);
  margin-top: var(--space-3);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
}

.note {
  color: var(--ink-3);
  font-size: var(--text-sm);
}
