:root {
    --alabaster: #F5F3ED;
    --paper: #FFFCF5;
    --espresso: #2A2621;
    --mocha: #5C4A3D;
    --sage: #6F7A66;
    --mist: #E8EEE5;
    --clay: #BE7F6B;
    --bronze: #A67C52;
    --text-dark: #2A2621;
    --text-muted: #6B655C;
    --text-soft: rgba(42, 38, 33, 0.72);
    --line: rgba(42, 38, 33, 0.15);
    --font-heading: 'Cormorant Garamond', 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    --font-article: 'Lora', serif;
    --transition-smooth: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    background: var(--alabaster);
    font-family: var(--font-body);
    line-height: 1.7;
}

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

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

.guide-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(245, 243, 237, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 38, 33, 0.08);
}

.guide-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.nav-actions a {
    border-bottom: 1px solid transparent;
    padding-bottom: 0.18rem;
    transition: var(--transition-smooth);
}

.nav-actions a:hover,
.nav-actions a:focus-visible {
    color: var(--mocha);
    border-color: currentColor;
}

.nav-actions .nav-featured {
    color: var(--sage);
    font-weight: 700;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.18rem;
    border: 1px solid rgba(42, 38, 33, 0.16);
    border-radius: 999px;
    background: rgba(255, 252, 245, 0.72);
}

.language-toggle button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    letter-spacing: 0.04em;
    padding: 0.36rem 0.55rem;
    transition: var(--transition-smooth);
}

.language-toggle button.active {
    background: var(--espresso);
    color: var(--alabaster);
}

.guide-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem 5rem;
}

.guide-hero {
    min-height: min(720px, calc(100vh - 70px));
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.64fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding: 4rem 0 3rem;
}

.guide-hero.literal-hero {
    min-height: auto;
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.guide-hero-copy {
    max-width: 820px;
}

.guide-overline,
.guide-step,
.article-kicker,
.article-next-label {
    color: var(--sage);
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.guide-hero h1,
.guide-intro h2,
.guide-section-heading h2,
.guide-closing h2,
.guide-article h1 {
    color: var(--espresso);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.04;
}

.guide-hero h1 {
    font-size: clamp(3.6rem, 7vw, 6.7rem);
    max-width: 820px;
    margin: 1rem 0 1.35rem;
    hyphens: none;
    overflow-wrap: normal;
    text-wrap: balance;
}

.guide-subtitle {
    max-width: 680px;
    color: var(--text-soft);
    font-size: clamp(1.08rem, 2vw, 1.32rem);
    line-height: 1.8;
}

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

.guide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: 999px;
    border: 1px solid var(--espresso);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    padding: 0.85rem 1.25rem;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.guide-btn.primary {
    background: var(--espresso);
    color: var(--alabaster);
}

.guide-btn.primary:hover,
.guide-btn.primary:focus-visible {
    background: transparent;
    color: var(--espresso);
}

.guide-btn.primary.muted {
    background: var(--mocha);
    border-color: var(--mocha);
    color: var(--alabaster);
    cursor: default;
}

.guide-btn.primary.muted:hover,
.guide-btn.primary.muted:focus-visible {
    background: var(--mocha);
    color: var(--alabaster);
}

.guide-btn.secondary {
    background: transparent;
    border-color: rgba(42, 38, 33, 0.26);
    color: var(--espresso);
}

.guide-btn.secondary:hover,
.guide-btn.secondary:focus-visible {
    border-color: var(--sage);
    color: var(--sage);
}

.guide-hero-image {
    align-self: stretch;
    min-height: 560px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--mist);
}

.guide-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.guide-intro {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.guide-intro h2,
.guide-section-heading h2,
.guide-closing h2 {
    font-size: clamp(2rem, 4vw, 3.45rem);
}

.guide-intro p:last-child,
.guide-section-heading p:last-child,
.guide-closing p {
    color: var(--text-soft);
    font-size: 1.06rem;
    line-height: 1.85;
}

.guide-toc {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.guide-section-heading {
    max-width: 820px;
    margin-bottom: 2.4rem;
}

.guide-card-list,
.toc-list {
    display: grid;
    gap: 0;
}

.toc-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.54fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-top: 1px solid var(--line);
}

.toc-section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 500;
    line-height: 1.08;
    margin-top: 0.8rem;
}

.toc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(42, 38, 33, 0.1);
}

.toc-row:first-child {
    padding-top: 0;
}

.toc-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.toc-title-wrap {
    display: grid;
    gap: 0.55rem;
}

.toc-title {
    color: var(--espresso);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.18;
    transition: var(--transition-smooth);
}

.toc-title:hover,
.toc-title:focus-visible {
    color: var(--sage);
}

.toc-read {
    color: var(--sage);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
}

.guide-closing {
    background: var(--mist);
    border-radius: 8px;
    padding: clamp(2rem, 5vw, 4rem);
}

.guide-closing.literal-closing {
    background: transparent;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 1.5rem 0 0;
}

.guide-closing .guide-disclaimer {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.65;
    margin-top: 1.75rem;
    max-width: 820px;
}

.article-page {
    max-width: 850px;
    padding-top: 4rem;
}

.guide-article {
    padding-bottom: 5rem;
}

.back-link {
    color: var(--sage);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.guide-article h1 {
    font-size: clamp(2.7rem, 6vw, 5rem);
    margin: 0.7rem 0 1rem;
}

.article-content {
    border-top: 1px solid var(--line);
    color: rgba(42, 38, 33, 0.88);
    font-family: var(--font-article);
    font-size: 1.08rem;
    line-height: 1.85;
    padding-top: 2rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul {
    color: rgba(42, 38, 33, 0.88);
    margin: 0 0 1.2rem 1.4rem;
}

.article-content li {
    margin-bottom: 0.35rem;
}

.article-next {
    border-top: 1px solid var(--line);
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.article-next-link {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.7rem;
}

.article-next-link.next {
    justify-items: end;
    text-align: right;
}

.article-next-link span {
    color: var(--espresso);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    line-height: 1.15;
}

.article-next-link small {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

@media (max-width: 860px) {
    .guide-nav-inner,
    .nav-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-actions {
        gap: 0.75rem;
        font-size: 0.82rem;
        width: 100%;
    }

    .language-toggle button {
        min-height: 2rem;
        padding: 0.4rem 0.68rem;
    }

    .guide-hero,
    .guide-intro,
    .toc-section,
    .toc-row {
        grid-template-columns: 1fr;
    }

    .guide-hero {
        min-height: auto;
        padding-top: 3rem;
    }

    .guide-hero-image {
        min-height: 420px;
    }

    .guide-step {
        margin-bottom: -0.4rem;
    }

    .toc-section {
        gap: 1.35rem;
    }

    .toc-row {
        align-items: start;
        gap: 0.65rem;
    }
}

@media (max-width: 560px) {
    .guide-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .guide-hero h1 {
        font-size: clamp(2.45rem, 11.5vw, 3.45rem);
        line-height: 1.02;
        max-width: none;
    }

    .guide-subtitle,
    .guide-intro p:last-child,
    .guide-section-heading p:last-child {
        font-size: 1rem;
    }

    .toc-title {
        font-size: 1.45rem;
    }

    .toc-read {
        width: fit-content;
    }

    .article-next {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .article-next-link.next {
        justify-items: start;
        text-align: left;
    }

    .article-content {
        font-size: 1.04rem;
        line-height: 1.82;
    }

    .guide-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .guide-btn {
        width: 100%;
    }

    .guide-hero-image {
        min-height: 330px;
    }
}
