/* Reset + base typography */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

picture { display: contents; }

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

button { background: transparent; border: 0; cursor: pointer; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-heavy);
  letter-spacing: -0.02em;
  color: var(--fg-primary);
}

h1 { font-size: clamp(2.75rem, 5.5vw, 5rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.375rem, 2.25vw, 2rem); line-height: 1.2; }
h4 { font-size: 1.125rem; line-height: 1.3; }

p { line-height: 1.55; }

.text-lg { font-size: 1.25rem; line-height: 1.5; }
.text-sm { font-size: 0.875rem; line-height: 1.4; color: var(--fg-secondary); }
.text-caption { font-size: 0.75rem; line-height: 1.3; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.muted { color: var(--fg-muted); }
.secondary { color: var(--fg-secondary); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x-mobile);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--pad-x-tablet); }
}
@media (min-width: 1280px) {
  .container { padding-inline: var(--pad-x-desktop); }
}

/* Sections */
.section { padding-block: var(--space-16); }
.section-lg { padding-block: var(--space-24); }
[data-theme="strict"] .section { padding-block: var(--space-24); }
[data-theme="strict"] .section-lg { padding-block: var(--space-32); }

/* Utility — accessible hide */
.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 everywhere */
:focus-visible {
  outline: 2px solid var(--accent-caramel);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection { background: var(--accent-caramel); color: #fff; }

/* Fonts self-host — use system stack until woff2 files are added.
   Uncomment when files land in assets/fonts/*. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: local('Manrope');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local('Inter');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local('Fraunces');
}
