/* Reading Posse brand palette, type scale and spacing.
   Colors taken from the Canva home page draft. All other CSS should reference these variables. */

:root {
    /* Brand colors */
    --rp-green: #1B866B;
    --rp-green-dark: #146B55;
    --rp-blue: #2B97BB;
    --rp-blue-dark: #2380A0;
    --rp-teal: #125A72;
    --rp-gray-light: #F6F6F6;
    --rp-gray-text: #545454;
    --rp-white: #FFFFFF;
    --rp-black: #000000;

    /* Semantic aliases */
    --rp-primary: var(--rp-green);
    --rp-primary-hover: var(--rp-green-dark);
    --rp-secondary: var(--rp-blue);
    --rp-secondary-hover: var(--rp-blue-dark);
    --rp-text: var(--rp-gray-text);
    --rp-heading: var(--rp-green);
    --rp-surface: var(--rp-white);
    --rp-surface-alt: var(--rp-gray-light);
    --rp-on-dark: var(--rp-white);
    --rp-footer-bg: var(--rp-teal);
    --rp-border: rgba(0, 0, 0, 0.08);
    --rp-overlay-light: rgba(255, 255, 255, 0.1);
    --rp-danger: #DC3545;
    --rp-danger-hover: #B02A37;
    --rp-dialog-backdrop: rgba(0, 0, 0, 0.45);
    --rp-focus-ring: rgba(27, 134, 107, 0.3);
    --rp-error-banner-bg: #FFFFE0;
    --rp-shadow: rgba(0, 0, 0, 0.2);

    /* Fonts */
    --rp-font-body: "Didact Gothic", "Segoe UI", Helvetica, Arial, sans-serif;
    --rp-font-heading: "Playfair Display", Georgia, serif;
    /* Heavy slab serif closest to the "READING POSSE" lettering in the logo image */
    --rp-font-brand: "Alfa Slab One", "Rockwell", Georgia, serif;
    --rp-font-ui:-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

    /* Type scale */
    --rp-text-sm: 0.875rem;
    --rp-text-base: 1rem;
    --rp-text-lg: 1.25rem;
    --rp-text-xl: 1.75rem;
    --rp-text-2xl: clamp(2rem, 4vw, 3rem);
    --rp-text-3xl: clamp(2.25rem, 5vw, 3.75rem);

    /* App headings (everything except the home page): page title (h1), section (h2), sub-heading (h3) */
    --rp-text-title: clamp(1.5rem, 3vw, 1.875rem);
    --rp-text-heading: 1.2rem;
    --rp-text-subheading: 1.05rem;

    /* Spacing (8px grid) */
    --rp-space-1: 0.5rem;
    --rp-space-2: 1rem;
    --rp-space-3: 1.5rem;
    --rp-space-4: 2rem;
    --rp-space-6: 3rem;
    --rp-space-8: 4rem;

    /* Shape */
    --rp-radius-sm: 4px;
    --rp-radius: 8px;
    --rp-content-width: 1100px;
    --rp-topbar-height: 88px;
    --rp-admin-sidebar-width: 190px;
}

html, body {
    font-family: var(--rp-font-body);
    color: var(--rp-text);
    background-color: var(--rp-surface);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rp-font-heading);
    color: var(--rp-heading);
    font-weight: 400;
    line-height: 1.1;
}

a {
    color: var(--rp-primary);
}

a:hover {
    color: var(--rp-primary-hover);
}
