/* ==========================================================================
   Blush POC — Base (S1): @font-face, reset, type styles
   Composes from css/tokens.css. Loaded after tokens.
   ========================================================================== */

/* --- Fonts: local woff2, swap so text paints immediately ---------------- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/inter-v20-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-700.woff2") format("woff2");
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  /* Full-bleed layers (hero backdrop, page gradient) size with 100vw, which
     includes the scrollbar — clip the few px of horizontal overhang so the page
     never scrolls sideways. `clip` (not `hidden`): no new scroll container. */
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background: var(--color-light);
  color: var(--color-brown);
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

p, h1, h2, h3 { overflow-wrap: break-word; }

/* --- Type styles (compose only from tokens) ----------------------------- */
.type-title {
  font-family: var(--font-title);
  font-weight: var(--weight-title);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-title);
  font-size: var(--size-title);
  color: var(--color-brown);
}
.type-title-sm {
  font-family: var(--font-title);
  font-weight: var(--weight-title);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-title);
  font-size: var(--size-title-sm);
  color: var(--color-brown);
}
.type-body {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  font-size: var(--size-body);
  color: var(--color-brown);
}
.type-body-sm {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  font-size: var(--size-body-sm);
  color: var(--color-washed);
}
