/* ============================================================
   BASE — Variables, Reset, Typography, @font-face
   ============================================================ */

/* ===== @font-face: Clash Display ===== */
@font-face {
  font-family: 'Clash Display';
  src: url('/fonts/clash-display/ClashDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clash Display';
  src: url('/fonts/clash-display/ClashDisplay-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clash Display';
  src: url('/fonts/clash-display/ClashDisplay-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clash Display';
  src: url('/fonts/clash-display/ClashDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
  --color-blush: #FDE8D8;
  --color-coral: #D94F3D;
  --color-orange: #F07820;
  --color-yellow: #EFEA55;
  --color-pink: #F2A7C3;
  --color-lilac: #C8B8E8;
  --color-pale-pink: #FAE0ED;
  --color-brown: #1C0F0A;
  --color-white: #FFFFFF;

  --font-display: 'Clash Display', 'Impact', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 16px;
  --radius-lg: 28px;
  --transition: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  --container: 1140px;

  --shadow-sm: 0 2px 8px rgba(28, 15, 10, 0.06);
  --shadow-md: 0 8px 30px rgba(28, 15, 10, 0.08);
  --shadow-lg: 0 16px 48px rgba(28, 15, 10, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-brown);
  background-color: var(--color-blush);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

/* ===== Base Typography ===== */

/* Display — Clash Display Bold */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(52px, 10vw, 96px);
}

h2 {
  font-size: clamp(52px, 8vw, 80px);
  margin-bottom: 36px;
}

/* Subhead — Clash Display Semibold */
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  margin-bottom: 20px;
}

h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Body — DM Sans 18px */
p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 18px;
}

p:last-child {
  margin-bottom: 0;
}

/* Small / labels */
.text-small {
  font-size: 14px;
  line-height: 1.5;
}

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Section ===== */
.section {
  padding: 90px 0;
  margin-top: -1px;
  padding-top: calc(90px + 1px);
}

@media (min-width: 768px) {
  .section {
    padding: 140px 0;
    padding-top: calc(140px + 1px);
  }
}

/* ===== Screen Reader Only ===== */
.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 States ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 3px;
}

/* ===== Fade-in Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
