/* ==========================================================================
   base.css — Reset, fonts, document & element defaults
   Builds on tokens.css. Sets the typographic baseline; component-specific
   styling lives in components.css / layout.css.
   ========================================================================== */

/* ---- Fonts (self-host in production; CDN for prototype) ---------------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;0,900;1,600;1,700&family=Space+Mono:wght@400;700&display=swap");

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 23px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul { list-style: none; padding: 0; }

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

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

button { cursor: pointer; }

::selection {
  background: var(--c-signal);
  color: var(--c-white);
}

/* ---- Headings adopt the serif display face ---------------------------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }
