:root {
    --bg: #f6efe4;
    --bg-accent: #fffaf2;
    --panel: rgba(255, 250, 242, 0.92);
    --panel-strong: #fff9ef;
    --line: rgba(94, 72, 47, 0.16);
    --text: #2e2419;
    --muted: #6b5a45;
    --accent: #be5d2d;
    --accent-strong: #8f3617;
    --warning: #8f4a00;
    --info: #285f57;
    --question: #6a4fa3;
    --shadow: 0 22px 55px rgba(78, 57, 36, 0.13);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(222, 144, 76, 0.22), transparent 32%),
        radial-gradient(circle at right 15%, rgba(191, 93, 45, 0.16), transparent 24%),
        linear-gradient(180deg, #fdf7ec 0%, #f3eadc 55%, #efe4d3 100%);
}

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

p,
ul {
    margin-top: 0;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.brand-block {
    max-width: 560px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 249, 239, 0.78);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-weight: 700;
}

.brand-mark__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef9a48, #be5d2d);
    box-shadow: 0 0 0 5px rgba(190, 93, 45, 0.12);
}

.brand-copy {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.nav-link {
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--muted);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
    background: rgba(255, 250, 242, 0.88);
    border-color: var(--line);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.95fr);
    gap: 22px;
    margin-bottom: 28px;
}

.hero__content,
.hero-card,
.info-card,
.comment-form,
.empty-state,
.comment-card,
.latest-card,
.faq-card,
.timeline-step,
.flash {
    background: var(--panel);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero__content {
    padding: 34px;
}

.eyebrow,
.section-kicker,
.hero-card__label {
    margin-bottom: 12px;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

h1,
h2,
h3 {
    margin: 0 0 16px;
    line-height: 1.05;
}

h1,
h2 {
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 400;
}

h1 {
    font-size: clamp(2.9rem, 5vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 3.3vw, 3rem);
}

h3 {
    font-size: 1.2rem;
}

.lead,
.section-copy,
.info-card p,
.faq-card p,
.timeline-step p,
.empty-state p,
.comment-card__body {
    color: var(--muted);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    font-weight: 700;
}

.button--primary {
    color: #fff7ee;
    background: linear-gradient(135deg, var(--accent), #d67a3c);
    border-color: transparent;
}

.button--ghost {
    color: var(--accent-strong);
    background: rgba(255, 249, 239, 0.72);
}

.hero-card {
    padding: 28px;
}

.hero-card__list {
    display: grid;
    gap: 12px;
    padding-left: 18px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.content-grid,
.faq-grid,
.latest-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
    padding: 28px;
}

.info-card--wide {
    grid-column: span 2;
}

.check-list {
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 18px;
}

.section-head h2 {
    margin-bottom: 6px;
}

.section-copy {
    max-width: 480px;
    margin-bottom: 8px;
}

.latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.latest-card {
    padding: 24px;
}

.latest-card__top,
.comment-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: var(--muted);
}

.latest-card h3 {
    margin-bottom: 10px;
}

.latest-card p {
    min-height: 72px;
    color: var(--muted);
    line-height: 1.65;
}

.section-link {
    color: var(--accent-strong);
    font-weight: 700;
}

.timeline-box {
    margin-bottom: 28px;
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.timeline-step {
    padding: 26px;
}

.timeline-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(190, 93, 45, 0.11);
    color: var(--accent-strong);
    font-weight: 700;
}

.faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-card {
    padding: 26px;
}

.flash {
    margin-bottom: 22px;
    padding: 16px 18px;
}

.flash--success {
    border-color: rgba(40, 95, 87, 0.25);
    color: var(--info);
}

.flash--error {
    border-color: rgba(143, 74, 0, 0.22);
    color: var(--warning);
}

.comment-section {
    margin-top: 6px;
}

.comment-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.25fr);
    gap: 18px;
}

.comment-form,
.comment-list {
    min-width: 0;
}

.comment-form {
    display: grid;
    gap: 16px;
    padding: 26px;
    align-self: start;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(94, 72, 47, 0.18);
    border-radius: 16px;
    padding: 14px 15px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    font: inherit;
}

textarea {
    resize: vertical;
    min-height: 160px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(190, 93, 45, 0.18);
    border-color: rgba(190, 93, 45, 0.5);
}

.trap-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.comment-list {
    display: grid;
    gap: 16px;
}

.comment-card {
    padding: 22px;
}

.comment-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.comment-badge--info {
    color: var(--info);
    background: rgba(40, 95, 87, 0.11);
}

.comment-badge--question {
    color: var(--question);
    background: rgba(106, 79, 163, 0.12);
}

.comment-badge--warning {
    color: var(--warning);
    background: rgba(143, 74, 0, 0.12);
}

.comment-card__body {
    margin-bottom: 0;
    word-break: break-word;
}

.comment-card__reference {
    margin: 16px 0 0;
    color: var(--accent-strong);
    font-size: 0.95rem;
}

.empty-state {
    padding: 28px;
}

.site-footer {
    margin-top: 26px;
    padding: 18px 4px 0;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 980px) {
    .site-header,
    .section-head,
    .comment-grid,
    .hero {
        grid-template-columns: 1fr;
        display: grid;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .content-grid,
    .latest-grid,
    .timeline-steps,
    .faq-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .info-card--wide {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 18px;
    }

    .hero__content,
    .hero-card,
    .info-card,
    .latest-card,
    .faq-card,
    .timeline-step,
    .comment-form,
    .comment-card,
    .empty-state {
        padding: 22px;
    }

    h1 {
        font-size: 2.5rem;
    }
}
