/* ppuzzle.org — Civic Institution Stylesheet */

/* =============================================
   Custom Properties
   ============================================= */
:root {
    --civic-white: #ffffff;
    --civic-black: #1a1a1a;
    --participation-blue: #2563eb;
    --parchment-cream: #faf9f6;
    --warm-close: #f0eee8;
    --body-gray: #555555;
    --divider-warm: #d4d0c8;
    --heading-dark: #333333;

    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Open Sans', Arial, sans-serif;

    --content-max: 700px;
    --section-padding: 64px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--civic-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--body-gray);
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   Content Wrapper
   ============================================= */
.content-wrap {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   Hero / Civic Gateway Section
   ============================================= */
.hero-section {
    background: var(--civic-white);
    padding: 80px 0 60px;
}

.site-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--civic-black);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.site-name-accent {
    width: 40px;
    height: 3px;
    background: var(--participation-blue);
    margin-bottom: 32px;
}

.mission-statement {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.5;
    color: var(--civic-black);
    max-width: 600px;
    font-weight: 700;
}

/* =============================================
   Knowledge Sections
   ============================================= */
.knowledge-section {
    padding: var(--section-padding) 0;
    background: var(--civic-white);
}

.knowledge-section:nth-child(even) {
    background: var(--parchment-cream);
}

/* =============================================
   Section Headings with Blue Square Marker
   ============================================= */
.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--heading-dark);
    position: relative;
    padding-left: 20px;
    margin-bottom: 24px;
    line-height: 1.4;
}

.section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--participation-blue);
}

/* =============================================
   Body Text & Paragraphs
   ============================================= */
.knowledge-section p {
    color: var(--body-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: var(--content-max);
}

.knowledge-section p:last-of-type {
    margin-bottom: 0;
}

/* =============================================
   Content Lists
   ============================================= */
.content-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.content-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: var(--body-gray);
    font-size: 1rem;
    line-height: 1.8;
}

.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 5px;
    height: 5px;
    background: var(--participation-blue);
    border-radius: 0;
}

/* =============================================
   Footer / Participation Section
   ============================================= */
.footer-section {
    background: var(--warm-close);
    padding: 48px 0 40px;
}

.footer-rule {
    border: none;
    border-top: 1px solid var(--divider-warm);
    margin-bottom: 48px;
}

.footer-content {
    text-align: center;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--civic-black);
    margin-bottom: 20px;
    line-height: 1.4;
}

.footer-body {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--body-gray);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 32px;
}

/* =============================================
   Footer Navigation
   ============================================= */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: center;
    margin-bottom: 28px;
}

.footer-nav a {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--participation-blue);
    text-decoration: none;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* =============================================
   Footer Meta
   ============================================= */
.footer-meta {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--body-gray);
    letter-spacing: 0.01em;
}

/* =============================================
   Links
   ============================================= */
a {
    color: var(--participation-blue);
    text-decoration: underline;
}

a:hover {
    color: var(--civic-black);
}

/* =============================================
   Responsive — small screens
   ============================================= */
@media (max-width: 480px) {
    .hero-section {
        padding: 52px 0 40px;
    }

    .knowledge-section {
        padding: 48px 0;
    }

    .footer-section {
        padding: 36px 0 28px;
    }

    .footer-nav {
        gap: 8px 16px;
    }
}
