/* ============================================
   SLOWageing – Shared stylesheet
   Brand colours from style guide
   Font: Poppins (Google Fonts)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --burgundy: #960000;
    --rose: #d93668;
    --light-pink: #fad6eb;
    --pale-warm: #f5f0f2;
    --dusty-rose: #c47a8f;
    --mauve: #e0cccc;
    --near-black: #1a1a1a;
    --mid-text: #4a3a3e;
    --off-white: #fdfafb;
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: var(--font-main);
    color: var(--near-black);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--burgundy);
    text-decoration: underline;
    text-decoration-color: var(--dusty-rose);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--rose);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.25;
    color: var(--burgundy);
}

h1 {
    font-size: 2rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.1rem;
}

p:last-child {
    margin-bottom: 0;
}

ul, ol {
    margin-bottom: 1.1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.4rem;
}

/* Layout */
.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

/* Section divider */
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--rose);
    border-radius: 2px;
    margin: 0 0 2rem;
}

.section-divider.centered {
    margin: 0 auto 2rem;
}

.text-center {
    text-align: center;
}

/* ---- HEADER / NAV ---- */
.site-header {
    padding: 0.75rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--mauve);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    width: 180px;
    height: auto;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 0.15rem;
    padding: 0;
    margin: 0;
}

.main-nav li a {
    display: block;
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--near-black);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-nav li a:hover,
.main-nav li a.active {
    background: var(--pale-warm);
    color: var(--burgundy);
}

.header-cta {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--white);
    background: var(--rose);
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: background 0.2s ease, transform 0.15s ease;
}

.header-cta:hover {
    background: var(--burgundy);
    color: var(--white);
    transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--near-black);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

/* ---- HERO (page headers) ---- */
.page-hero {
    background: linear-gradient(175deg, var(--off-white) 0%, var(--pale-warm) 50%, var(--mauve) 100%);
    padding: 4rem 0 3.5rem;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-hero .hero-subhead {
    font-size: 1.1rem;
    color: var(--mid-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- BUTTONS ---- */
.btn-primary {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    background: var(--rose);
    padding: 0.85rem 2.25rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(150, 0, 0, 0.15);
}

.btn-primary:hover {
    background: var(--burgundy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(150, 0, 0, 0.25);
}

.btn-secondary {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--burgundy);
    background: transparent;
    padding: 0.7rem 1.75rem;
    border-radius: 8px;
    border: 2px solid var(--burgundy);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-secondary:hover {
    background: var(--burgundy);
    color: var(--white);
    transform: translateY(-1px);
}

/* ---- CARDS ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    border: 1.5px solid var(--mauve);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(150, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card h3 {
    color: var(--burgundy);
}

.card p {
    font-size: 0.95rem;
    color: var(--mid-text);
    line-height: 1.6;
}

.card .card-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    background: var(--pale-warm);
    color: var(--burgundy);
}

.card-accent {
    border-color: var(--rose);
}

.card-accent .card-label {
    background: var(--rose);
    color: var(--white);
}

/* ---- ALTERNATING SECTIONS ---- */
.section-white {
    background: var(--white);
}

.section-warm {
    background: var(--off-white);
    border-top: 1px solid var(--mauve);
    border-bottom: 1px solid var(--mauve);
}

.section-pale {
    background: var(--pale-warm);
}

/* ---- MEDIA LIST ---- */
.media-list {
    list-style: none;
    padding: 0;
}

.media-item {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--mauve);
}

.media-item:last-child {
    border-bottom: none;
}

.media-date {
    flex-shrink: 0;
    width: 110px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dusty-rose);
}

.media-outlet {
    font-weight: 700;
    color: var(--burgundy);
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.media-title {
    font-size: 0.95rem;
    color: var(--mid-text);
}

.media-title a {
    color: var(--near-black);
}

.media-title a:hover {
    color: var(--rose);
}

/* ---- BOOK FEATURE ---- */
.book-feature {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--mauve);
}

.book-feature:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.book-cover {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.book-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---- PROJECT CARD ---- */
.project-card {
    background: var(--white);
    border: 1.5px solid var(--mauve);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    margin-bottom: 2rem;
}

.project-card h3 {
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.95rem;
    color: var(--mid-text);
}

.project-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dusty-rose);
    background: var(--pale-warm);
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---- BLOCKQUOTE ---- */
blockquote {
    padding: 1.5rem 1.75rem;
    background: var(--pale-warm);
    border-radius: 8px;
    position: relative;
    margin: 2rem 0;
}

blockquote::before {
    content: '\2018';
    font-size: 3.5rem;
    color: var(--dusty-rose);
    position: absolute;
    top: -0.1rem;
    left: 0.75rem;
    line-height: 1;
    font-family: Georgia, serif;
}

blockquote p {
    font-style: italic;
    font-size: 1rem;
    padding-left: 1.5rem;
    color: var(--mid-text);
    margin-bottom: 0.5rem;
}

blockquote cite {
    display: block;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--dusty-rose);
    font-weight: 700;
    padding-left: 1.5rem;
}

/* ---- SIDEBAR ACCENT ---- */
.accent-box {
    background: var(--off-white);
    border-left: 4px solid var(--rose);
    padding: 1.75rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

.accent-box h3 {
    color: var(--rose);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.accent-box p {
    font-size: 0.92rem;
    color: var(--mid-text);
    line-height: 1.65;
}

/* ---- FOOTER ---- */
.site-footer {
    background: #dcc0c8;
    color: var(--near-black);
    padding: 2.5rem 0;
    text-align: center;
}

.site-footer p {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    color: var(--near-black);
}

.site-footer a {
    color: var(--burgundy);
}

.footer-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 1rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.footer-nav a {
    font-size: 0.8rem;
    color: var(--burgundy);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--rose);
}

.site-footer p {
    color: var(--near-black);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    section {
        padding: 3rem 0;
    }

    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .page-hero {
        padding: 3rem 0 2.5rem;
    }

    .site-logo {
        width: 140px;
    }

    /* Mobile nav */
    .nav-toggle {
        display: block;
    }

    .nav-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--mauve);
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    }

    .nav-wrapper.open {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li a {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }

    .header-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 0.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .book-feature {
        grid-template-columns: 140px 1fr;
        gap: 1.5rem;
    }

    .media-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .media-date {
        width: auto;
    }
}

@media (max-width: 480px) {
    .container,
    .container-wide {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .book-feature {
        grid-template-columns: 1fr;
    }

    .book-cover {
        max-width: 160px;
    }
}
