/* =========================================================
   Ceraminika — Colors & Type
   Handmade ceramics with personalized messages.
   Linked to a mental health foundation.
   ========================================================= */

@font-face {
  font-family: "TAN Buster";
  src: url("../fonts/TAN-BUSTER-Regular.woff2") format("woff2"),
       url("../fonts/TAN-BUSTER-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-MediumItalic.ttf") format("truetype");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-BoldItalic.ttf") format("truetype");
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  /* ---------- Brand colors ---------- */
  --blush:        #FFBCD9;   /* soft pink — backgrounds, comfort */
  --coral:        #FF8496;   /* warm coral — accents, mid-tones */
  --crimson:      #A60000;   /* deep red — type, primary marks */

  /* Tints / shades for layering */
  --blush-50:     #FFF1F7;
  --blush-100:    #FFE4EE;
  --blush-200:    #FFBCD9;   /* = blush */
  --coral-300:    #FFA9B6;
  --coral-400:    #FF8496;   /* = coral */
  --coral-500:    #F26478;
  --crimson-700: #C21515;
  --crimson-800: #A60000;    /* = crimson */
  --crimson-900: #7A0000;

  /* ---------- Product palette (sampled from real glazes) ----------
     For illustration, packaging, photography crops. NOT the digital UI palette. */
  --glaze-sage:    #A8CFC0;
  --glaze-sage-dp: #7FB39D;
  --stoneware:     #F0E6D2;
  --amber-rim:     #C18A4A;
  --oak:           #8B5A2B;
  --cobalt:        #2A4A6B;

  /* Neutrals — warm, off-white, like clay */
  --bone:         #FBF7F3;   /* page background */
  --clay:         #F2EAE2;   /* card background */
  --ink:          #2A0A10;   /* warm near-black, faintly red */
  --ink-soft:     #5C2A30;
  --ink-muted:    #8A5C62;

  /* Semantic */
  --bg:           var(--bone);
  --surface:      #FFFFFF;
  --surface-warm: var(--clay);
  --fg:           var(--ink);
  --fg-soft:      var(--ink-soft);
  --fg-muted:     var(--ink-muted);
  --fg-on-dark:   var(--blush-50);

  --primary:      var(--crimson);
  --primary-hover:var(--crimson-700);
  --accent:       var(--coral);
  --accent-soft:  var(--blush);

  --border:       #EADBD5;
  --border-strong:#D9B8B0;

  /* ---------- Typography ---------- */
  --font-display: "TAN Buster", "Cooper Black", Georgia, serif;
  --font-sans:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type scale — display uses TAN Buster (chunky, decorative) */
  --fs-display:   clamp(56px, 9vw, 128px);
  --fs-h1:        clamp(40px, 6vw, 72px);
  --fs-h2:        clamp(32px, 4.5vw, 52px);
  --fs-h3:        28px;
  --fs-h4:        22px;
  --fs-lg:        18px;
  --fs-body:      16px;
  --fs-sm:        14px;
  --fs-xs:        12px;

  --lh-tight:     1.02;
  --lh-snug:      1.15;
  --lh-normal:    1.45;
  --lh-relaxed:   1.6;

  /* ---------- Spacing ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---------- Radii ---------- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* ---------- Shadows (soft, warm) ---------- */
  --shadow-sm:  0 1px 2px rgba(122, 0, 0, 0.06);
  --shadow-md:  0 6px 18px rgba(122, 0, 0, 0.08);
  --shadow-lg:  0 18px 40px rgba(122, 0, 0, 0.12);
  --shadow-pop: 0 10px 30px rgba(255, 132, 150, 0.30);

  /* ---------- Motion ---------- */
  --ease-soft:  cubic-bezier(.22,.61,.36,1);
  --ease-out:   cubic-bezier(.16,.84,.44,1);
  --dur-fast:   140ms;
  --dur-base:   220ms;
  --dur-slow:   420ms;
}

/* ============== Semantic element styles ============== */

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.display, h1.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--primary);
  font-weight: 400;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  color: var(--primary);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-5);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--primary);
  font-weight: 400;
  margin: 0 0 var(--space-4);
}

h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}

h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 var(--space-3);
}

p {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--fg-soft);
  text-wrap: pretty;
  margin: 0 0 var(--space-4);
}

.lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--fg-soft);
}

small, .caption {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-soft);
}
a:hover { color: var(--coral-500); }

::selection {
  background: var(--blush);
  color: var(--crimson);
}
