/* ============================================================
   SlimKoper™ — Base styles
   Resets, typography, layout primitives
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--parch);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--navy-lite); }

/* — Headings — */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 var(--space-3);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(28px, 5vw, 42px); }
h2 { font-size: clamp(22px, 3.5vw, 30px); }
h3 { font-size: clamp(17px, 2.5vw, 21px); }
h4 { font-size: 15px; }

p { margin: 0 0 var(--space-3); }

/* — Layout primitives — */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-12) 0;
}

.section--tight  { padding: var(--space-8) 0; }
.section--paper  { background: var(--white); }
.section--navy   { background: var(--navy); color: var(--white); }
.section--deep   { background: var(--navy-deep); color: var(--white); }
.section--parch2 { background: var(--parch-2); }

/* — Utility — */
.muted        { color: var(--muted); }
.center       { text-align: center; }
.mono         { font-family: var(--font-mono); letter-spacing: 0.04em; }
.serif        { font-family: var(--font-serif); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.tm {
  font-family: var(--font-sans);
  font-size: 0.55em;
  vertical-align: super;
  color: var(--gold);
  font-weight: 400;
  margin-left: 1px;
}

/* — Accessibility — */
.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;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* — Reduce motion — */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
