/* ─────────────────────────────────────────────────────────────
   Beldi — Base
   Reset, typographic defaults, link / form normalization.
   ───────────────────────────────────────────────────────────── */

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

html, body {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Selection */
::selection {
  background: var(--terracotta);
  color: var(--bone);
}

/* Headings reset — we'll style explicitly via classes */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 400;
  font-family: var(--font-serif);
  color: var(--fg);
}

p { margin: 0; }

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

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

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

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

input::placeholder,
textarea::placeholder {
  color: rgba(242, 237, 227, 0.30);
  font-style: italic;
  font-weight: 400;
}

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

.u-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;
}

.u-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Common animations referenced from components */
@keyframes beldi-disclose {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes beldi-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes beldi-toast {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
