/* ================================================================
   BASE.CSS
   Reset, global typography, body defaults.
   Every value via CSS custom property — no raw hex in this file.
   ================================================================ */

/* --- Reset --- */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --- Headings --- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* --- Body copy --- */

p {
  line-height: 1.65;
  color: var(--color-ink);
}

strong {
  font-weight: 600;
}

/* --- Focus --- */

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Selection --- */

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

/* --- WordPress admin bar offsets --- */

.admin-bar .site-header-wrapper {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header-wrapper {
    top: 46px;
  }
}

/* --- Screen-reader only --- */

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

/* --- WordPress core classes --- */

.wp-block-image img {
  border-radius: var(--radius-md);
}

.aligncenter {
  margin-inline: auto;
  display: block;
}

/* --- Mono utility --- */

.mono {
  font-family: var(--font-mono);
}

/* --- Purity value display --- */

.purity-value {
  font-family: var(--font-mono);
  color: var(--color-sage);
  font-weight: 500;
}

/* --- Section subtitle --- */

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-secondary);
}

/* --- Divider --- */

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-8);
}
