/* =========================================================================
   MindyCore — Base / Typography
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-variation-settings: "opsz" 18;
  font-feature-settings: "ss01", "kern";
  transition: background-color var(--t-slow) var(--ease-soft),
              color var(--t-slow) var(--ease-soft);
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--accent-deep);
  color: var(--bg);
}

/* Focus ring — always visible, calm */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
  color: var(--ink);
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }

p {
  margin: 0;
  text-wrap: pretty;
  hyphens: auto;
}

p + p { margin-top: 1em; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--t-base) var(--ease-soft),
              color var(--t-base) var(--ease-soft);
}
a:hover {
  text-decoration-color: var(--accent-deep);
  color: var(--ink);
}

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* Eyebrow utility — small caps label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Lede — large opening paragraph */
.lede {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  color: var(--ink-2);
  max-width: var(--measure);
  font-variation-settings: "opsz" 24;
}

/* Italic display — for Ornella's voice callouts */
em.voice,
.voice em {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 72;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Visually-hidden for screen readers */
.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;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  background: var(--ink);
  color: var(--bg);
  padding: var(--s-3) var(--s-5);
  z-index: 9999;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.skip-link:focus { top: var(--s-4); }
