/* ============================================================
   SMILE COLLECTIVE, DESIGN SYSTEM
   Core colors + type tokens
   ============================================================ */

/* Fraunces is a near-perfect substitute for Drakors (paid Creative Market)
   Nunito Sans is the specified body font */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=Nunito+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  /* ---------- BRAND COLORS (exact values from live Framer design system) ---------- */
  --sc-seashell:       #F6F7F9;   /* primary background + surface */
  --sc-powder-berry:   #E4A6A5;   /* PRIMARY accent, buttons, UI, decorative */
  --sc-charcoal:       #1E1E1E;   /* dark sections, footer, body text on light */
  --sc-gold:           #D3AE7D;   /* wordmark + decorative only, NOT primary */
  --sc-light-taupe:    #D9B4B0;   /* secondary blush, subtle warmth */

  /* Tonal variants derived from the 5 brand colors (do not invent new hues) */
  --sc-seashell-2:     #EEF0F3;   /* slightly darker surface for section dividers */
  --sc-seashell-3:     #E6E8EC;   /* hairline borders on light bg */
  --sc-charcoal-2:     #2A2A2A;   /* elevated surface on dark sections */
  --sc-charcoal-3:     #3A3A3A;   /* hairline on dark */
  --sc-powder-berry-hover:  #D98F8E; /* button hover */
  --sc-powder-berry-soft:   #F2D6D5; /* tinted backgrounds, badges */

  /* ---------- SEMANTIC COLORS ---------- */
  --bg:                var(--sc-seashell);
  --bg-alt:            var(--sc-seashell-2);
  --bg-dark:           var(--sc-charcoal);
  --bg-dark-alt:       var(--sc-charcoal-2);

  --fg:                var(--sc-charcoal);
  --fg-muted:          #5A5A5A;              /* charcoal at ~70% */
  --fg-subtle:         #8A8A8A;              /* captions, meta */
  --fg-on-dark:        var(--sc-seashell);
  --fg-on-dark-muted:  #B8B8B8;

  --accent:            var(--sc-powder-berry);
  --accent-hover:      var(--sc-powder-berry-hover);
  --accent-soft:       var(--sc-powder-berry-soft);
  --accent-secondary:  var(--sc-light-taupe);
  --decor-gold:        var(--sc-gold);

  --border:            var(--sc-seashell-3);
  --border-dark:       var(--sc-charcoal-3);
  --border-strong:     #D0D2D6;

  /* ---------- TYPEFACES ---------- */
  --font-serif:  'Fraunces', 'Drakors', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:   'Nunito Sans', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Fraunces opsz/opt variants for editorial display */
  --serif-display-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  --serif-heading-settings: "opsz" 72, "SOFT" 30, "WONK" 0;
  --serif-subhead-settings: "opsz" 36, "SOFT" 20, "WONK" 0;

  /* ---------- TYPE SCALE (mirrors live Framer site) ---------- */
  --t-display:     87px;   /* 1.0  */
  --t-h1:          80px;   /* 1.1  */
  --t-h2:          54px;   /* 1.15 */
  --t-h3:          36px;   /* 1.1  */
  --t-h4:          20px;   /* 1.4  */
  --t-para-xxl:    24px;   /* 1.5  */
  --t-para-xl:     20px;   /* 1.5  */
  --t-para-l:      18px;   /* 1.5  */
  --t-para-m:      16px;   /* 1.5  */
  --t-para-s:      14px;   /* 1.5  */
  --t-caption:     12px;   /* 1.4 , eyebrow/meta, uppercase */

  /* ---------- LETTER-SPACING ---------- */
  --track-display:  -0.02em;   /* tight on big serif */
  --track-heading:  -0.01em;
  --track-body:      0;
  --track-eyebrow:   0.18em;   /* wide, used for uppercase tags/eyebrows */
  --track-button:    0.12em;   /* wide, used on buttons (all-caps) */

  /* ---------- 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;
  --space-10: 128px;
  --space-11: 160px;

  /* ---------- RADIUS ---------- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;
  --radius-image: 2px;   /* images stay nearly square, editorial */

  /* ---------- SHADOWS (restrained, editorial) ---------- */
  --shadow-xs: 0 1px 2px rgba(30,30,30,0.04);
  --shadow-sm: 0 2px 8px rgba(30,30,30,0.05);
  --shadow-md: 0 8px 24px rgba(30,30,30,0.06);
  --shadow-lg: 0 20px 48px rgba(30,30,30,0.08);
  --shadow-focus: 0 0 0 3px rgba(228,166,165,0.35);

  /* ---------- LAYOUT ---------- */
  --container:     1240px;
  --container-narrow: 880px;
  --gutter-mobile: 24px;
  --gutter-desktop: 48px;

  /* ---------- MOTION ---------- */
  --ease-out:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:      160ms;
  --dur-base:      260ms;
  --dur-slow:      520ms;
  --dur-page:      800ms;
}

/* ============================================================
   BASE ELEMENTS (use via class-less HTML where possible)
   ============================================================ */

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--t-para-m);
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Serif display lockups */
.sc-display,
h1.sc-h1,
h2.sc-h2,
h3.sc-h3 {
  font-family: var(--font-serif);
  font-weight: 300;        /* Fraunces reads elegant at 300/400 */
  color: var(--fg);
  letter-spacing: var(--track-display);
  text-wrap: pretty;
}

.sc-display {
  font-size: var(--t-display);
  line-height: 1.0;
  font-variation-settings: var(--serif-display-settings);
}
h1, .sc-h1 {
  font-family: var(--font-serif);
  font-size: var(--t-h1);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: var(--track-display);
  font-variation-settings: var(--serif-heading-settings);
}
h2, .sc-h2 {
  font-family: var(--font-serif);
  font-size: var(--t-h2);
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: var(--track-heading);
  font-variation-settings: var(--serif-heading-settings);
}
h3, .sc-h3 {
  font-family: var(--font-serif);
  font-size: var(--t-h3);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: var(--track-heading);
  font-variation-settings: var(--serif-subhead-settings);
}
h4, .sc-h4 {
  font-family: var(--font-sans);
  font-size: var(--t-h4);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Body paragraph sizes */
.sc-p-xxl { font-size: var(--t-para-xxl); line-height: 1.5; font-weight: 300; }
.sc-p-xl  { font-size: var(--t-para-xl);  line-height: 1.5; font-weight: 400; }
.sc-p-l   { font-size: var(--t-para-l);   line-height: 1.55; font-weight: 400; }
.sc-p-m   { font-size: var(--t-para-m);   line-height: 1.55; font-weight: 400; }
.sc-p-s   { font-size: var(--t-para-s);   line-height: 1.5;  font-weight: 400; }

/* Eyebrow / small-caps meta text */
.sc-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-para-s);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Gold wordmark accent (use sparingly, wordmark + small decorative only) */
.sc-gold-text {
  color: var(--decor-gold);
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
}

/* Thin hairline rule used between sections + around the wordmark lockup */
.sc-rule {
  border: 0;
  border-top: 1px solid currentColor;
  opacity: 0.4;
  height: 0;
  margin: var(--space-6) 0;
}

/* Selection */
::selection { background: var(--sc-powder-berry-soft); color: var(--sc-charcoal); }
