@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,600;0,900;1,400;1,600&display=swap");

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Inter-Black.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
img, svg { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(44px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: 24px; letter-spacing: -0.02em; }
h4 { font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }
h3.as-h4, h2.as-h4 { font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 6px; }
.subtle { opacity: 0.7; }
.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.02em; }
.serif { font-family: "Fraunces", Georgia, serif; font-weight: 400; }
.serif-italic { font-family: "Fraunces", Georgia, serif; font-weight: 400; font-style: italic; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.75;
  margin-bottom: 14px;
}
.eyebrow::before { content: "◉ "; color: var(--coral); }

/* Grain texture overlay — subtle noise on cream-ish pages */
.grain { position: relative; }
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 0;
}
.grain > * { position: relative; z-index: 1; }
