/* Modern lavender/mauve theme – higher contrast */
:root {
    --primary: #7c6ba0;
    --primary-dark: #5a4a78;
    --primary-light: #a89bc4;
    --primary-bg: #f1eef6;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #cbd5e1;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 8px 24px -4px rgba(90, 74, 120, 0.2), 0 4px 12px -4px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px -8px rgba(90, 74, 120, 0.3), 0 8px 16px -6px rgba(0, 0, 0, 0.12);
    --max-width: 1200px;
    --header-height: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    line-height: 1.6;
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .main-content {
        padding: 3rem 2rem;
    }
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 0 1.5rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
}

.nav {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav .logo {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav .logo:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.nav-links a.nav-link--active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 600;
}

/* Homepage hero & candidate intro */
.hero h1 {
    margin-top: 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.candidate-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

@media (min-width: 640px) {
    .candidate-intro {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
}

.candidate-photo-wrap {
    flex-shrink: 0;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .candidate-photo-wrap {
        margin: 0;
    }
}

.candidate-photo {
    width: 240px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-bg);
}

@media (min-width: 640px) {
    .candidate-photo {
        width: 280px;
        height: 350px;
    }
}

.candidate-headline {
    flex: 1;
    min-width: 0;
}

.candidate-headline .tagline {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Priorities section – stacked one after the other */
.priorities {
    margin-top: 3rem;
    padding: 2.5rem 0;
    position: relative;
}

.priorities::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 107, 160, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.priorities h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    .priorities h2 {
        font-size: 2.25rem;
        margin-bottom: 2.5rem;
    }
}

.priorities-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.priority-box {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.25s ease;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

.priority-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0.9;
}

.priority-box:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.priority-box:hover::before {
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    opacity: 1;
}

@media (min-width: 900px) {
    .priority-box {
        padding: 2.25rem 2.5rem;
        min-height: 340px;
    }
}

.priority-box h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

@media (min-width: 900px) {
    .priority-box h3 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
}

.priority-box p {
    margin: 0;
    line-height: 1.65;
    color: var(--text-muted);
    font-size: 1rem;
    flex: 1;
}

@media (min-width: 900px) {
    .priority-box p {
        font-size: 1.0625rem;
    }
}

.priority-box .link-arrow {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.2s ease, transform 0.2s ease;
}

.priority-box:hover .link-arrow {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Priority detail page */
.page-header {
    margin-bottom: 2rem;
}

.page-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.page-header .back-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.priority-detail h1 {
    margin: 0 0 1rem 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
}

.priority-detail .lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 60ch;
}

.priority-detail .content-body {
    max-width: 65ch;
    line-height: 1.65;
    color: var(--text);
}

.priority-detail .content-body p {
    margin: 0 0 1rem 0;
}

.priority-detail .content-body p:last-child {
    margin-bottom: 0;
}

.priority-detail .content-body ul,
.priority-detail .content-body ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.priority-detail .content-body li {
    margin-bottom: 0.35rem;
}

.priority-detail .content-body h1,
.priority-detail .content-body h2,
.priority-detail .content-body h3 {
    margin: 1.25rem 0 0.5rem 0;
    font-weight: 600;
    color: var(--text);
}

.priority-detail .content-body h1 { font-size: 1.35rem; }
.priority-detail .content-body h2 { font-size: 1.2rem; }
.priority-detail .content-body h3 { font-size: 1.05rem; }

.priority-detail .content-body strong {
    font-weight: 600;
}

/* About page – content left, photo right */
.about-page__layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .about-page__layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .about-page__content {
        flex: 1;
        min-width: 0;
    }

    .about-page__photo {
        flex-shrink: 0;
        width: 280px;
    }
}

.about-page__img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.about-page__content p {
    margin: 0 0 1rem 0;
    color: var(--text);
}

.about-page__content p:last-child {
    margin-bottom: 0;
}

/* Blog list (landing) */
.blog-list {
    max-width: 48rem;
    margin: 0 auto;
}

.blog-list__header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.blog-list__title {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.blog-list__tagline {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.blog-post-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.blog-post-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.blog-post-card__link {
    display: block;
    padding: 1.75rem 2rem;
    text-decoration: none;
    color: inherit;
}

.blog-post-card__title {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.blog-post-card:hover .blog-post-card__title {
    color: var(--primary);
}

.blog-post-card__date {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-post-card__excerpt {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

.blog-post-card__cta {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.2s ease, transform 0.2s ease;
}

.blog-post-card:hover .blog-post-card__cta {
    color: var(--primary-dark);
}

.blog-list__empty {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--primary-bg);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.blog-list__empty p {
    margin: 0;
    font-size: 1.0625rem;
}

/* Single blog post page */
.blog-post-page {
    max-width: 42rem;
    margin: 0 auto;
}

.blog-post-page__header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.blog-post-page__back {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-page__back:hover {
    color: var(--primary-dark);
}

.blog-post-page__title {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.blog-post-page__date {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.blog-post-page__content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
}

.blog-post-page__content br {
    display: block;
    margin-bottom: 0.75em;
}

.blog-post-page__footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.blog-post-page__back-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-page__back-link:hover {
    color: var(--primary-dark);
}

/* 404 page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page__title {
    margin: 0 0 1rem 0;
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.error-page__message {
    margin: 0 0 2rem 0;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
}

.error-page__link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.error-page__link:hover {
    color: var(--primary-dark);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 1.25rem 1.5rem;
    text-align: center;
    margin-top: auto;
}

.site-footer p {
    margin: 0;
    font-size: 0.9375rem;
}

.geocities-click {
    cursor: pointer;
}

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    font-family: inherit;
}

.login-container {
    text-align: center;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
}

.under-construction {
    background: var(--surface);
    color: var(--text);
    padding: 2rem 1.75rem;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.under-construction h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.construction-message {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.9375rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
}

.login-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 107, 160, 0.35);
}

.login-input::placeholder {
    color: var(--text-muted);
}

.login-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.login-button:hover {
    background: var(--primary-dark);
}

.login-error {
    margin-top: 1rem;
    color: #b91c1c;
    font-size: 0.875rem;
}

/* Lawn sign / form section */
.form-message {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.form-message--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-message p {
    margin: 0;
    font-size: 0.9375rem;
}

.lawn-sign-form {
    max-width: 32rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lawn-sign-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lawn-sign-form .form-row--group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.lawn-sign-form .form-row--group .form-group {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lawn-sign-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.lawn-sign-form .required {
    color: #b91c1c;
}

.form-input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 107, 160, 0.35);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 4rem;
}

.form-actions {
    margin-top: 0.5rem;
}

.form-submit {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.form-submit:hover {
    background: var(--primary-dark);
}
