/* ==========================================================================
   Base — typography, body, generic element styles.
   Pulls fonts from Google Fonts as a temporary measure; swap to self-hosted
   .woff2 in /assets/fonts/ before launch (see README + GDPR note in plan).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500&family=Manrope:wght@400;500;600&display=swap');

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);   /* 16–17px fluid */
  line-height: 1.65;
  color: var(--espresso);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings ----------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--espresso);
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 4rem);  /* 36–64px */
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);  /* 28–44px */
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.25rem, 1rem + 0.75vw, 1.5rem);  /* 20–24px */
  line-height: 1.25;
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0;
}

/* Paragraphs --------------------------------------------------------------- */

p { max-width: var(--prose-max); }

p + p { margin-top: var(--space-2); }

.lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--espresso);
}

/* Links -------------------------------------------------------------------- */

a {
  color: var(--clay);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover { color: var(--clay-deep); }

/* Inline emphasis ---------------------------------------------------------- */

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

strong { font-weight: 600; }

/* Selection ---------------------------------------------------------------- */

::selection {
  background-color: var(--clay);
  color: var(--bone);
}

/* Horizontal rule ---------------------------------------------------------- */

hr {
  border: 0;
  height: 1px;
  background-color: var(--linen);
  margin: var(--space-5) 0;
}

/* Skip-to-content link (accessibility) ------------------------------------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-2);
  background: var(--espresso);
  color: var(--bone);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus { top: var(--space-2); color: var(--bone); }
