/* base.css — resets, body defaults, typography */

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

/* Body defaults */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Heading defaults — Fraunces */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: normal;
  line-height: 1.1;
}

/* Type scale */

/* Hero heading */
.hero h1,
.type-hero {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(46px, 7.6vw, 88px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

/* H1 */
h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 52px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* H2 */
h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(34px, 4.2vw, 50px);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

/* H3 */
h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.005em;
  line-height: 1.25;
}

/* Lede */
.lede {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  max-width: 60ch;
}

/* Body */
p {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  max-width: 70ch;
}

/* Caption */
.caption,
figcaption {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dim);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Images */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Italic emphasis — Fraunces only for emotional emphasis */
em {
  font-style: italic;
}

/* Headings on dark surfaces */
.hero h1 em,
.dark-surface h1 em,
.dark-surface h2 em {
  color: var(--warm);
}

/* Headings on light surfaces */
h1 em,
h2 em {
  color: var(--oxblood);
}
