:root {
    --bg: #f4ebdf;
    --bg-soft: #fbf6ef;
    --surface: rgba(255, 250, 244, 0.82);
    --surface-strong: #fffaf4;
    --text: #1f1a17;
    --muted: #685b4f;
    --line: rgba(109, 88, 67, 0.22);
    --line-strong: rgba(109, 88, 67, 0.35);
    --shadow: 0 24px 60px rgba(83, 57, 36, 0.12);
    --accent: #25211d;
    --accent-soft: #efe0cc;
    --max: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 34%),
        linear-gradient(180deg, #efe3d5 0%, var(--bg) 52%, #f7f0e7 100%);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.page-glow {
    position: fixed;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    filter: blur(110px);
    opacity: 0.38;
    pointer-events: none;
    z-index: -1;
}

.glow-left {
    top: -8rem;
    left: -7rem;
    background: rgba(255, 255, 255, 0.9);
}

.glow-right {
    right: -10rem;
    top: 12rem;
    background: rgba(227, 197, 167, 0.8);
}

.shell {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(248, 241, 232, 0.78);
    border-bottom: 1px solid rgba(109, 88, 67, 0.14);
}

.nav-row,
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.15rem 0;
}

.brand {
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nav-links,
.footer-links {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.nav-links a,
.footer-links a,
.text-link {
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover {
    color: var(--accent);
}

.path-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.path-tag {
    display: inline-flex;
    align-items: center;
    min-height: 2.1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.65);
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero,
.section {
    padding: 4.5rem 0;
}

.section-border {
    border-top: 1px solid rgba(109, 88, 67, 0.14);
}

.hero-grid,
.content-grid,
.article-grid {
    display: grid;
    gap: 1.4rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: end;
}

.hero-copy {
    padding: 1.5rem 0;
}

.eyebrow,
.panel-label,
.meta-line {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

h1,
h2,
h3 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

h1 {
    font-size: clamp(3.9rem, 8vw, 7.4rem);
    margin-top: 1rem;
    max-width: 9ch;
}

h2 {
    font-size: clamp(2.4rem, 5vw, 4.1rem);
    max-width: 16ch;
}

h3 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 0.8rem;
}

.lead,
.note-card p,
.feature-card p,
.closing-note p,
.focus-list,
.site-footer p,
.article-content p,
.article-content li {
    color: var(--muted);
}

.section-head h2 span {
    color: var(--accent);
}

.lead {
    max-width: 42rem;
    font-size: 1.08rem;
    margin-top: 1.4rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0.88rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--line-strong);
}

.button-dark {
    background: var(--accent);
    color: #f8f2ea;
    border-color: var(--accent);
}

.button-light {
    background: rgba(255, 250, 244, 0.55);
    color: var(--accent);
}

.paper-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.22)),
        var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-panel,
.panel-card,
.note-card,
.feature-card {
    border-radius: 28px;
}

.panel-card {
    padding: 2rem;
}

.focus-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.focus-list li {
    position: relative;
    padding-left: 1rem;
}

.focus-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--accent);
}

.section-head {
    margin-bottom: 2rem;
}

.section-head.compact {
    max-width: 46rem;
}

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

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

.note-card,
.feature-card {
    padding: 1.8rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.4rem;
    font-weight: 700;
}

.text-link::after {
    content: "->";
}

.closing-note {
    margin-top: 1.5rem;
    padding-top: 0.2rem;
}

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

.footer-row {
    border-top: 1px solid rgba(109, 88, 67, 0.14);
    padding-top: 1.6rem;
}

.article-page .article-shell {
    width: min(calc(100% - 2rem), 820px);
    margin: 0 auto;
    padding: 4rem 0 5rem;
}

.article-card {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 28px;
}

.article-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

.article-content {
    margin-top: 1.4rem;
}

.article-content h2 {
    margin: 1.9rem 0 0.8rem;
    font-size: 2.2rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 0 1.2rem;
}

.article-content li + li,
.article-content p + p {
    margin-top: 0.7rem;
}

.blog-index-shell {
    padding: 3.8rem 0 4.8rem;
}

.blog-lead {
    max-width: 46rem;
    margin: 1.2rem 0 2rem;
    color: var(--muted);
}

.blog-list {
    display: grid;
    gap: 1rem;
}

.blog-list .feature-card {
    padding: 1.6rem;
}

@media (max-width: 960px) {
    .hero-grid,
    .content-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    h1,
    h2 {
        max-width: none;
    }
}

@media (max-width: 680px) {
    .nav-row,
    .footer-row,
    .nav-links,
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero,
    .section,
    .article-page .article-shell,
    .blog-index-shell {
        padding: 3rem 0;
    }

    .panel-card,
    .note-card,
    .feature-card,
    .article-card {
        padding: 1.35rem;
    }

    h1 {
        font-size: clamp(3rem, 16vw, 4.9rem);
    }
}
