/* ============================================
   BASE STYLES
   CSS reset, design tokens (from Figma),
   typography, and global utility classes.
   ============================================ */

:root {
    /* Brand */
    --color-primary: #ff6485;
    --color-primary-dark: #e85878;
    --color-primary-light: #ffebf0;
    --color-primary-bg: #fff5f8;

    /* Accents */
    --color-accent-yellow: #e09b2b;
    --color-accent-yellow-bg: #fcf7ea;
    --color-accent-yellow-bg-soft: #fffbf1;
    --color-accent-yellow-border: #f6edd6;
    --color-accent-yellow-label: #846c30;

    /* Text */
    --color-text-heading: #0c2733;
    --color-text-body: #776d79;
    --color-text-strong: #3e2e2d;
    --color-text-muted: #835157;
    --color-text-faint: rgba(0, 0, 0, 0.6);
    --color-label-soft: #ae9e76;

    /* Surfaces */
    --color-white: #ffffff;
    --color-black: #1a1a1a;
    --color-surface-soft: #f8f8f8;
    --color-surface-line: #e1e1e1;
    --color-surface-line-soft: #f6f6f6;

    /* Avatar / decorative card colors */
    --color-avatar-pink: #ff6485;
    --color-avatar-orange: #ffa34d;
    --color-avatar-yellow: #ffdb8c;
    --color-avatar-coral: #ff98c6;
    --color-avatar-blue: #5c9dff;

    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-accent: 'Borel', 'Caveat', cursive;
    --font-label: 'Raleway', 'Inter', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.0625rem;
    --text-lg: 1.125rem;
    --text-xl: 1.5rem;
    --text-2xl: 1.875rem;
    --text-3xl: 2.25rem;
    --text-4xl: 2.625rem;
    --text-5xl: 3.5rem;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.1;
    --line-height-snug: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1240px;
    --container-padding: 1.5rem;
    --section-side-padding: 100px;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 11px 14px 0 rgba(234, 98, 126, 0.1);
    --shadow-card-hover: 0 11px 14px 0 rgba(234, 98, 126, 0.3);
    --shadow-pink-btn: 0 1px 1px 0 rgba(255, 74, 122, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
}


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

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-strong);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* iOS Safari zooms focused fields under 16px — keep forms readable without zoom. */
@media (max-width: 1024px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
    textarea,
    select {
        font-size: 16px;
    }
}


/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-tight);
    color: var(--color-text-heading);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); line-height: 1.04; }
h2 { font-size: var(--text-4xl); line-height: 1.19; }
h3 { font-size: var(--text-xl); line-height: 1.33; }

p {
    color: var(--color-text-body);
    line-height: var(--line-height-relaxed);
}

.accent-script {
    font-family: var(--font-accent);
    font-weight: var(--font-weight-normal);
    color: var(--color-primary);
    /* Figma: Borel letter-spacing -3% so connecting strokes join */
    letter-spacing: -0.03em;
    font-kerning: normal;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

.accent-script--yellow {
    color: var(--color-accent-yellow);
}

.eyebrow {
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    line-height: 22px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-heading);
}


/* ----- Layout ----- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-pad {
    padding-left: var(--section-side-padding);
    padding-right: var(--section-side-padding);
}


/* ----- Accessibility ----- */
.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;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 1000;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}


/* ----- Responsive ----- */
@media (max-width: 1024px) {
    :root {
        --section-side-padding: 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-lg); }

    :root {
        --section-side-padding: 1rem;
    }
}
