:root {
    --bg: #f8f6f1;
    --surface: #ffffff;
    --surface-alt: #f1ece2;
    --text: #1e1d1a;
    --muted: #675f55;
    --border: #ddd3c4;
    --accent: #6b4f3b;
    --accent-strong: #4f3828;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --radius: 18px;
    --container: 72rem;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-strong);
}

.container {
    width: min(100% - 1.5rem, var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(248, 246, 241, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.brand-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.tagline {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-nav a {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.main-content {
    min-height: 70vh;
}

.hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(to bottom, #efe7da, #f8f6f1);
}

.eyebrow {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-size: 0.8rem;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.hero-text,
.lead {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 42rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.button {
    display: inline-block;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.button:hover {
    color: #fff;
    background: var(--accent-strong);
}

.button-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
}

.section,
.page-header {
    padding: 1.5rem 0;
}

.stack,
.card-grid,
.grid-two,
.footer-grid,
.ranking-list {
    display: grid;
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.muted {
    color: var(--muted);
}

.status-badge {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--accent-strong);
    font-size: 0.85rem;
    font-weight: 600;
}

.ranking-item {
    display: grid;
    gap: 1rem;
}

.ranking-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.ranking-position {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 700;
}

.score-box {
    min-width: 6.5rem;
    text-align: center;
    background: var(--surface-alt);
    border-radius: 14px;
    padding: 0.75rem;
    border: 1px solid var(--border);
}

.score-label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

.score-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.site-footer {
    margin-top: 2rem;
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--border);
    background: #f3eee6;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 700px) {
    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .stack {
        grid-template-columns: 1fr 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-two {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

@media (min-width: 1000px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.promo-banner {
    padding: 1rem 0 0;
}

.promo-banner__inner {
    background: linear-gradient(to right, #e9dfcf, #f4efe6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    display: grid;
    gap: 1rem;
}

.promo-banner__eyebrow {
    margin: 0 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--muted);
}

.promo-banner__title {
    margin-bottom: 0.5rem;
}

.promo-banner__text {
    margin: 0;
    color: var(--muted);
}

.promo-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: start;
}

@media (min-width: 700px) {
    .promo-banner__inner {
        grid-template-columns: 1.8fr 1fr;
        align-items: center;
        padding: 1.5rem;
    }

    .promo-banner__actions {
        justify-content: flex-end;
    }
}

.home-banner {
    padding: 1rem 0 0;
}

.home-banner__frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.home-banner__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}


.branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.branding__logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
}

.branding__logo-link {
    display: inline-flex;
}

.branding__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.reading-page {
    display: grid;
    gap: 1rem;
}

.reading-card h2 {
    margin-bottom: 0.75rem;
}

.reading-list {
    display: grid;
    gap: 1.25rem;
}

.reading-list ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.reading-list li {
    margin-bottom: 0.4rem;
}

@media (min-width: 700px) {
    .reading-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
