:root {
    --bg: #f4f2ef;
    --surface: #f8f6f3;
    --text: #1f1d1b;
    --muted: #45403a;
    --accent: #6c2c32;
    --line: #d5cdc3;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.container {
    width: min(1220px, calc(100% - 3rem));
    margin: 0 auto;
}

.topbar {
    background: #f0eeea;
    border-bottom: 1px solid #e2dbd2;
}

.topbar-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
}

.brand {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    /*  font-size: clamp(1.8rem, 3.1vw, 2.1rem); */
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero {
    background: linear-gradient(90deg, var(--surface) 0%, #f7f4ef 58%, #efe9df 100%);
}

.hero-grid {
    display: grid;
    align-items: center;
}

.hero-copy {
    padding: 3rem 0 3.4rem;
}

h1,
h2 {
    font-family: "Lora", "Times New Roman", Times, serif;
    font-weight: 600;
    line-height: 0.96;
    margin: 0;
}

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

.section-line {
    width: 80px;
    height: 2px;
    margin: 1.2rem 0;
    background: #d8c9ba;
}

.hero-copy p {
    margin: 0;
    max-width: 33ch;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.55vw, 1.15rem);
    line-height: 1.55;
}

.hero-cta {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--accent);
    color: #fdf8f5;
    padding: 0.85rem 2.2rem;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    transition: background-color 180ms ease;
}

.js-contact {
    cursor: pointer;
}

.hero-cta:hover {
    background: #582129;
}

.hero-cta:focus-visible,
.text-link:focus-visible,
.social a:focus-visible {
    outline: 3px solid rgba(108, 44, 50, 0.35);
    outline-offset: 2px;
}

.hero-photo {
    margin: 0;
    min-height: 460px;
    position: relative;
    isolation: isolate;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 16%;
    display: block;
}

.about {
    background: #f7f5f2;
    border-top: 1px solid #e8e1d8;
    border-bottom: 1px solid #e8e1d8;
}

.about-grid {
    display: grid;
    gap: 2rem;
    padding: 2.8rem 0;
}

.about-grid article {
    max-width: 42ch;
}

h2 {
    font-size: clamp(2.25rem, 4vw, 3.2rem);
}

.about-grid p {
    margin: 0 0 1.15rem;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.63;
}

.text-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.02rem;
}

.text-link::after {
    content: " \2192";
}

.book-photo {
    margin: 0;
    align-self: stretch;
    position: relative;
    isolation: isolate;
}

.book-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-photo img {
    -webkit-mask-image: radial-gradient(ellipse 114% 108% at 50% 50%,
            #000 72%,
            rgba(0, 0, 0, 0.96) 80%,
            rgba(0, 0, 0, 0.8) 88%,
            rgba(0, 0, 0, 0.55) 94%,
            transparent 100%);
    mask-image: radial-gradient(ellipse 114% 108% at 50% 50%,
            #000 72%,
            rgba(0, 0, 0, 0.96) 80%,
            rgba(0, 0, 0, 0.8) 88%,
            rgba(0, 0, 0, 0.55) 94%,
            transparent 100%);
}

.book-photo img {
    -webkit-mask-image: radial-gradient(ellipse 113% 107% at 50% 50%,
            #000 66%,
            rgba(0, 0, 0, 0.94) 74%,
            rgba(0, 0, 0, 0.75) 84%,
            rgba(0, 0, 0, 0.45) 92%,
            transparent 100%);
    mask-image: radial-gradient(ellipse 113% 107% at 50% 50%,
            #000 66%,
            rgba(0, 0, 0, 0.94) 74%,
            rgba(0, 0, 0, 0.75) 84%,
            rgba(0, 0, 0, 0.45) 92%,
            transparent 100%);
}

.hero-photo::after,
.book-photo::after {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    z-index: 1;
}

.hero-photo::after {
    background:
        linear-gradient(to left, transparent 68%, rgba(247, 244, 239, 0.22) 86%, #f7f4ef 100%);
}

.book-photo::after {
    background:
        linear-gradient(to left, rgba(247, 245, 242, 0.24) 0%, transparent 24%, transparent 76%, rgba(247, 245, 242, 0.24) 100%),
        linear-gradient(to top, rgba(247, 245, 242, 0.22) 0%, transparent 23%),
        linear-gradient(to bottom, rgba(247, 245, 242, 0.2) 0%, transparent 23%);
}

.quote-strip {
    padding: 3.2rem 1rem;
    text-align: center;
    background: #efebe6;
}

.quote-strip p {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 3.7vw, 3.4rem);
    line-height: 1.2;
    font-style: italic;
}

.footer {
    background: #f5f2ed;
    border-top: 1px solid #e4ddd4;
}

.footer-inner {
    min-height: 120px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.copyright {
    margin: 0.25rem 0 0;
    color: #7f766d;
    font-size: 14px;
}

.social {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    justify-self: center;
}

.footer-spacer {
    justify-self: end;
}

.social a {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 180ms ease;
}

.social-link:hover {
    color: var(--accent);
}

.social-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    color: var(--accent);
    stroke: var(--accent);
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.02fr 0.98fr;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr 0.95fr;
        align-items: start;
    }

    .book-photo {
        min-height: 420px;
    }
}

@media (max-width: 899px) {
    .container {
        width: min(1220px, calc(100% - 2rem));
    }

    h1,
    h2 {
        line-height: 1.04;
    }

    h1 {
        font-size: clamp(2.2rem, 10vw, 3.6rem);
    }

    h2 {
        font-size: clamp(1.85rem, 7.4vw, 2.45rem);
    }

    .hero-copy {
        padding: 2rem 0 1.6rem;
    }

    .hero-copy p {
        max-width: none;
    }

    .hero-copy p br {
        display: none;
    }

    .hero-cta {
        width: 100%;
        max-width: 280px;
    }

    .hero-photo {
        min-height: 280px;
        margin-top: 20px;
    }

    .book-photo {
        min-height: 240px;
    }

    .footer-inner {
        min-height: auto;
        padding: 1.4rem 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-spacer {
        display: none;
    }

    .social {
        justify-self: start;
        margin-top: 20px;
    }
}

@media (min-width: 700px) and (max-width: 899px) {
    .hero-grid {
        grid-template-columns: 1.08fr 0.92fr;
        gap: 1.2rem;
    }

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

    .hero-photo {
        min-height: 250px;
    }

    .book-photo {
        width: 100%;
        max-width: 430px;

        height: 390px;
        margin-inline: auto;
    }
}

@media (max-width: 599px) {
    .container {
        width: min(1220px, calc(100% - 2rem));
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        min-height: 72px;
    }

    .hero-copy {
        padding: 1.6rem 0 1.2rem;
    }

    .hero-photo {
        order: -1;
        min-height: 160px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 2rem 0;
    }

    .about-grid article:nth-of-type(1) {
        order: 1;
    }

    .book-photo {
        order: 2;
        min-height: 160px;
        height: 350px;
    }

    .about-grid article:nth-of-type(2) {
        order: 3;
    }

    .about-grid article {
        max-width: none;
    }

    .about-grid h2,
    .about-grid .section-line {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .about-grid p {
        text-align: center;
        font-size: 1rem;
        line-height: 1.55;
    }

    .quote-strip {
        padding: 2.2rem 0.9rem;
    }

    .quote-strip p {
        line-height: 1.14;
        font-style: italic;

    }

    .footer-inner {
        gap: 0.75rem;
        align-items: center;
    }

    .footer-inner>div:first-child {
        order: 2;
        align-self: flex-start;
    }

    .social {
        order: 1;
        width: auto;
        align-self: center;
        justify-content: center;
        justify-self: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 20px;
    }
}