:root {
    --ink: #1f2430;
    --muted: #626b7a;
    --paper: #f7f3eb;
    --soft: #efe7da;
    --line: #ded4c5;
    --accent: #9b2f2f;
    --accent-dark: #721f24;
    --gold: #c7a354;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Georgia, "Times New Roman", serif;
}

a {
    color: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    padding: 14px clamp(18px, 5vw, 70px);
    background: rgba(247, 243, 235, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    background: var(--accent);
    border-radius: 50%;
    font-size: 15px;
    letter-spacing: .08em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 4px;
    font-weight: 700;
}

.hero {
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
    align-items: stretch;
    gap: clamp(28px, 5vw, 70px);
    padding: clamp(34px, 6vw, 88px) clamp(18px, 5vw, 70px) 56px;
    background: linear-gradient(120deg, #f7f3eb 0%, #efe7da 58%, #dac6a8 100%);
}

.hero-copy {
    align-self: center;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 22px;
    font-size: clamp(46px, 8vw, 92px);
    line-height: .95;
    font-weight: 700;
}

h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
}

h3 {
    margin: 10px 0;
    font-size: 24px;
    line-height: 1.18;
}

p {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.75;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 650px;
    font-size: 22px;
}

.actions,
.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.btn.primary {
    color: var(--white);
    background: var(--accent);
}

.btn.primary:hover {
    background: var(--accent-dark);
}

.btn.ghost {
    color: var(--ink);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .35);
}

.btn.ghost.dark {
    color: var(--ink);
    border-color: var(--line);
}

.hero-media {
    align-self: center;
}

.hero-media img,
.author-photo img,
.post-cover {
    width: 100%;
    object-fit: cover;
    border: 10px solid rgba(255, 255, 255, .72);
    box-shadow: 0 28px 70px rgba(54, 35, 19, .22);
}

.hero-media img {
    aspect-ratio: 3 / 2;
    max-height: 680px;
}

.book-section,
.author-section,
.texts-section,
.cta-section,
.simple-page,
.contact-page {
    padding: 86px clamp(18px, 5vw, 70px);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 38px;
}

.book-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 40px;
    align-items: start;
}

.book-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.book-facts li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
}

.book-facts span,
.text-card span,
.post-hero small,
.text-card small {
    color: var(--accent);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.author-section {
    display: grid;
    grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
    gap: clamp(30px, 6vw, 76px);
    align-items: center;
    background: #28242a;
}

.author-section h2,
.author-section p:not(.eyebrow) {
    color: var(--white);
}

.author-section p:not(.eyebrow) {
    opacity: .82;
}

.author-photo img {
    aspect-ratio: 3 / 2;
}

.texts-section {
    background: var(--white);
}

.text-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.text-card {
    border: 1px solid var(--line);
    background: var(--paper);
}

.text-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.text-card div {
    padding: 22px;
}

.text-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.text-card h3 a:hover {
    color: var(--accent);
}

.text-card p {
    font-size: 16px;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    background: var(--soft);
}

.cta-section p {
    max-width: 640px;
    margin: 18px auto 0;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(18px, 5vw, 70px);
    background: var(--ink);
    color: var(--white);
}

.site-footer p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
}

.site-footer a {
    color: var(--gold);
    font-weight: 700;
}

.post-page article,
.simple-page section,
.contact-intro {
    max-width: 920px;
    margin: 0 auto;
}

.post-hero {
    padding: 74px clamp(18px, 5vw, 70px) 36px;
    background: var(--soft);
}

.post-hero h1 {
    max-width: 960px;
    font-size: clamp(42px, 6vw, 72px);
}

.post-cover {
    max-width: 920px;
    height: 460px;
    margin: 42px auto;
}

.post-content {
    max-width: 760px;
    margin: 0 auto;
}

.post-content p {
    font-size: 20px;
}

.post-actions {
    max-width: 760px;
    margin: 36px auto 86px;
}

.contact-page {
    min-height: 64vh;
}

@media (max-width: 900px) {
    .hero,
    .book-grid,
    .author-section,
    .text-list {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-media img {
        max-height: none;
        aspect-ratio: 16 / 11;
    }
}

@media (max-width: 700px) {
    .site-header {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 12px 0 4px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .book-section,
    .author-section,
    .texts-section,
    .cta-section,
    .simple-page,
    .contact-page {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .book-facts li {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-cover {
        height: 280px;
    }
}
