﻿:root {
    --page-bg: #fbfbfc;
    --panel: #ffffff;
    --panel-border: #e7e7eb;
    --text: #1f1f24;
    --muted: #73737d;
    --accent: #121214;
    --shadow: 0 18px 44px rgba(18, 18, 20, 0.06);
    --radius-lg: 28px;
    --radius-md: 22px;
    --content-width: 960px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #fafafd 100%);
}

body.page-home {
    display: flex;
    flex-direction: column;
}

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

section[id] {
    scroll-margin-top: 7rem;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 1rem 0 0;
}

.site-header-shell,
.home-main,
.site-footer-shell {
    width: min(calc(100% - 2rem), var(--content-width));
    margin: 0 auto;
}

.site-header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.brand-link,
.brand-badge,
.brand-text,
.header-actions,
.hero-actions,
.prompt-card-grid {
    display: flex;
}

.brand-link,
.brand-badge,
.brand-text,
.header-actions {
    align-items: center;
}

.brand-link {
    gap: 0.8rem;
}

.brand-badge {
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0.15rem;
    border: 1px solid var(--panel-border);
    border-radius: 50%;
    background: #ffffff;
}

.brand-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.brand-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.brand-text strong {
    font-size: 1.05rem;
    line-height: 1;
}

.brand-text span,
.section-kicker,
.home-intro,
.hero-note,
.prompt-card-link span,
.footer-copy {
    color: var(--muted);
}

.brand-text span,
.section-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.header-actions {
    gap: 0.7rem;
}

.header-chat-link,
.header-donate,
.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.header-chat-link,
.button-primary {
    gap: 0.55rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(18, 18, 20, 0.12);
}

.header-chat-link:hover,
.button-primary:hover {
    transform: translateY(-1px);
    background: #2d2d33;
    border-color: #2d2d33;
}

.header-donate {
    width: 46px;
    padding: 0;
    border: 1px solid var(--panel-border);
    background: #ffffff;
    color: var(--accent);
    box-shadow: 0 10px 24px rgba(18, 18, 20, 0.05);
}

.header-donate:hover {
    transform: translateY(-1px);
    background: #fafafd;
    box-shadow: 0 16px 28px rgba(18, 18, 20, 0.08);
}

.home-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.4rem 0 3rem;
}

.hero-copy,
.quiet-line,
.prompt-card-link,
.manifesto-copy,
.quote-card {
    border: 1px solid var(--panel-border);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.section-kicker,
.section-head h2,
.home-title,
.quote-card,
.text-link {
    margin: 0;
}

.section-kicker-with-icon,
.button-with-icon,
.text-link-with-icon,
.quiet-line,
.prompt-card-top {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.kicker-mark,
.quiet-icon,
.prompt-card-icon,
.button-icon-mark,
.prompt-card-arrow {
    color: currentColor;
}

.home-title {
    max-width: 12ch;
    font-size: clamp(2.8rem, 8vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.07em;
    font-weight: 600;
}

.home-intro {
    max-width: 34rem;
    margin: 0;
    line-height: 1.7;
}

.hero-actions,
.manifesto-actions {
    gap: 0.7rem;
}

.hero-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding-top: 0.2rem;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-note::before {
    content: "\2192";
    color: var(--accent);
}

.section-block {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.quiet-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.quiet-line {
    justify-content: center;
    min-height: 84px;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.section-head h2 {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.prompt-card-grid {
    flex-wrap: wrap;
    gap: 1rem;
}

.prompt-card-link {
    flex: 1 1 16rem;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.15rem;
    border-radius: var(--radius-md);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.prompt-card-link:hover {
    transform: translateY(-2px);
    border-color: #d5d5db;
    box-shadow: 0 22px 46px rgba(18, 18, 20, 0.08);
}

.prompt-card-top {
    justify-content: space-between;
    width: 100%;
    color: var(--muted);
}

.prompt-card-link strong {
    font-size: 1.05rem;
    font-weight: 600;
}

.prompt-card-link span {
    line-height: 1.7;
}

.manifesto-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1rem;
}

.manifesto-copy,
.quote-card {
    border-radius: var(--radius-lg);
}

.manifesto-copy {
    padding: 1.8rem;
}

.manifesto-copy p {
    margin: 0;
    line-height: 1.7;
}

.text-link {
    display: inline-flex;
    gap: 0.55rem;
    color: var(--accent);
}

.quote-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.8rem;
    background: #121214;
    border-color: #121214;
    color: #ffffff;
}

.quote-mark {
    margin: 0;
    font-size: 5rem;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.42);
}

.quote-text {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.65;
}

.quote-signature {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer {
    padding: 0 0 2.2rem;
}

.site-footer-shell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.6rem;
    text-align: center;
}

.footer-title,
.footer-copy {
    margin: 0;
}

.footer-title {
    font-size: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 860px) {
    .site-header-shell,
    .home-main,
    .site-footer-shell {
        width: min(calc(100% - 1.25rem), var(--content-width));
    }

    .site-header-shell,
    .hero-copy,
    .manifesto-copy,
    .quote-card,
    .prompt-card-link,
    .quiet-line {
        border-radius: 24px;
    }

    .quiet-band,
    .manifesto-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding-top: 0.75rem;
    }

    .site-header-shell {
        align-items: flex-start;
        border-radius: 28px;
    }

    .header-actions {
        gap: 0.55rem;
    }

    .brand-text span,
    .header-chat-link span:first-child {
        display: none;
    }

    .hero-copy,
    .manifesto-copy {
        padding: 1.35rem;
    }

    .home-main {
        padding-top: 1.2rem;
    }
}
