/* ==========================================================================
   Chester Dance Centre — base.css
   Identity: Clean minimal — light background, bold typography,
   Inter Tight (headings + nav) + Manrope (body).
   Accent = AQUA-TEAL (post-it #7de2d1, per user). Structure mirrors Cambridge.
   ========================================================================== */

:root {
    /* --- Palette --- */
    --black: #1b1b1b;
    --white: #fff;
    --beige: #f5e3cd;
    --red: #f91814;
    --mustard: #2bb5a0;          /* was #f4a804 — teal (buttons, stars, arrows) */
    --mustard-bright: #7de2d1;   /* was #ffd750 — aqua post-it fill (rgb 125 226 209) */
    --mustard-deep: #1f8c7c;     /* was #c88600 — deep teal */

    /* --- Surfaces --- */
    --ink: #ededed;
    --surface: #ffffff;
    --surface-2: #f5f5f5;
    --surface-3: #e8e8e8;
    --line: rgba(27, 27, 27, 0.10);
    --line-accent: rgba(125, 226, 209, 0.35);

    /* --- Text --- */
    --text: #222222;
    --text-muted: #666666;
    --text-faint: #999999;
    --text-on-accent: #1b1b1b;

    /* --- Type --- */
    --font-display: 'Inter Tight', -apple-system, sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.375rem;
    --fs-xl: 1.75rem;
    --fs-2xl: 2.25rem;
    --fs-3xl: 3rem;
    --fs-hero: clamp(2.5rem, 6vw, 4.25rem);

    /* --- Spacing --- */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4.5rem;
    --sp-9: 7rem;
    --section-pad: clamp(5rem, 10vw, 8rem);

    /* --- Shape --- */
    --radius-card: 0;
    --radius-input: 0;
    --radius-pill: 0;

    /* --- Misc --- */
    --container: 1200px;
    --transition: 200ms ease;
    --transition-slow: 400ms ease;
}

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

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--text);
    background-color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
    list-style: none;
}

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

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

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--black);
}

h1 {
    font-size: var(--fs-hero);
}

h2 {
    font-size: clamp(1.9rem, 4vw, var(--fs-3xl));
}

h3 {
    font-size: var(--fs-lg);
}

p {
    max-width: 65ch;
}

strong {
    color: var(--black);
    font-weight: 700;
}

::selection {
    background: var(--mustard-bright);
    color: var(--black);
}

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

.section {
    padding: var(--section-pad) 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: var(--sp-7);
}

.section-head p {
    margin-top: var(--sp-4);
    color: var(--text-muted);
    font-size: var(--fs-md);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.85rem 2rem;
    border-radius: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-sm);
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition),
        border-color var(--transition);
}

.btn:active {
    transform: scale(0.97);
}

.btn--gold {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
}

.btn--gold:hover {
    background: transparent;
    color: var(--black);
}

.btn--ghost {
    border: 2px solid var(--black);
    color: var(--black);
    background: transparent;
}

.btn--ghost:hover {
    background: var(--black);
    color: var(--white);
}

/* --- Post-it button --- */
.postit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: var(--mustard-bright);
    color: var(--black);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-sm);
    padding: var(--sp-3) var(--sp-5);
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.1);
    transform: rotate(1.5deg);
    transition: transform var(--transition), box-shadow var(--transition);
}

.postit-btn--right { transform: rotate(1.5deg); }
.postit-btn--left { transform: rotate(-1.5deg); }

.postit-btn:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 3px 6px 14px rgba(0, 0, 0, 0.15);
}

.postit-btn__tape {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 48px;
    height: 18px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 1px;
    pointer-events: none;
}

/* --- Accent bar --- */
.keyline {
    width: 40px;
    height: 3px;
    background: var(--red);
    border: none;
    margin-bottom: var(--sp-5);
}

/* --- Marker highlight --- */
.marker {
    position: relative;
    white-space: nowrap;
    isolation: isolate;
}

.marker::before {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 8%;
    height: 38%;
    background: var(--mustard-bright);
    z-index: -1;
    transform: rotate(-1.2deg) skewX(-4deg);
    border-radius: 4px 2px 6px 3px;
}

/* --- Scroll reveal --- */
@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-item {
    animation: reveal-up 0.6s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
}

.reveal-item:nth-child(2) { animation-delay: 0.08s; }
.reveal-item:nth-child(3) { animation-delay: 0.16s; }
.reveal-item:nth-child(4) { animation-delay: 0.24s; }
.reveal-item:nth-child(5) { animation-delay: 0.32s; }

.reveal-item--accent {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-md);
    color: var(--black);
    letter-spacing: -0.01em;
    line-height: 1.5;
    border-left: 3px solid var(--red);
    padding-left: var(--sp-4);
    margin-top: var(--sp-5);
}

/* --- Accessibility --- */
:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
