:root {
    color-scheme: light;
    --paper: #f4f1eb;
    --ink: #252722;
    --muted: #777970;
    --accent: #a47748;
    --line: #dedbd3;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 7.1%;
    padding-left: 7.1%;
}

.site-header {
    height: 88px;
    border-bottom: 1px solid var(--line);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.wordmark-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #c9c3b8;
    border-radius: 50%;
    color: var(--accent);
    font-family: var(--serif);
    font-size: 16px;
}

.site-nav {
    display: flex;
    gap: 34px;
}

.site-nav a {
    color: #62645d;
    font-size: 12px;
    text-decoration: none;
    transition: color 180ms ease;
}

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

.hero {
    display: grid;
    width: min(1180px, 85.8%);
    min-height: min(650px, calc(100vh - 145px));
    margin: 52px auto 0;
    grid-template-columns: 0.92fr 1.08fr;
    background: #eeebe4;
}

.poem-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(38px, 6vw, 82px);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.eyebrow-line {
    width: 25px;
    height: 1px;
    background: var(--accent);
}

h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(40px, 5vw, 67px);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 1.12;
}

h1 span {
    color: var(--accent);
    font-style: italic;
}

#author-name {
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.poem-copy {
    margin-top: 36px;
    border-left: 1px solid #c9c0b3;
    padding: 1px 0 1px 19px;
}

.poem-copy p {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.8;
}

.poem-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.meta-rule {
    width: 18px;
    height: 1px;
    background: #c9c0b3;
}

.poem-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.06em;
}

.meta-dot {
    padding: 0 5px;
    color: var(--accent);
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 42px;
    color: #62645d;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.read-link:hover,
.read-link:focus-visible {
    color: var(--accent);
}

.read-link-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #c9c3b8;
    border-radius: 50%;
    color: var(--accent);
    font-size: 14px;
    transition: background 180ms ease, color 180ms ease;
}

.read-link:hover .read-link-icon,
.read-link:focus-visible .read-link-icon {
    background: var(--accent);
    color: white;
}

.image-panel {
    position: relative;
    min-height: 480px;
    margin: 0;
    overflow: hidden;
    background: #252722;
}

.image-panel::after {
    position: absolute;
    z-index: 0;
    background: linear-gradient(180deg, transparent 65%, rgb(0 0 0 / 42%));
    content: "";
    inset: 0;
    pointer-events: none;
}

.image-panel img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: center;
}

.image-panel figcaption,
.image-index {
    position: absolute;
    z-index: 1;
    bottom: 25px;
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.image-panel figcaption {
    left: 28px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.caption-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d8b37e;
}

.image-index {
    right: 28px;
    color: rgb(255 255 255 / 72%);
}

.about {
    position: relative;
    display: flex;
    width: min(1180px, 85.8%);
    min-height: 155px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 30px 5%;
}

.about-label {
    margin: 0;
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-copy {
    max-width: 520px;
    margin: 0 50px;
    color: #55574f;
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.65;
}

.about-mark {
    color: #c3b7a6;
    font-size: 23px;
}

.site-footer {
    min-height: 75px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.06em;
}

.site-footer span:first-child {
    color: var(--ink);
    font-weight: 600;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (min-width: 1500px) {
    .hero {
        min-height: 670px;
    }
}

@media (max-width: 760px) {
    .site-header {
        height: 72px;
    }

    .site-header,
    .site-footer {
        padding-right: 6%;
        padding-left: 6%;
    }

    .site-nav {
        gap: 20px;
    }

    .hero {
        width: 88%;
        min-height: 0;
        margin-top: 26px;
        grid-template-columns: 1fr;
    }

    .poem-panel {
        padding: 48px 9%;
    }

    .eyebrow {
        margin-bottom: 22px;
    }

    .poem-copy {
        margin-top: 27px;
    }

    .read-link {
        margin-top: 30px;
    }

    .image-panel,
    .image-panel img {
        min-height: 340px;
        max-height: 54vh;
    }

    .about {
        width: 88%;
        min-height: 155px;
        gap: 16px;
        padding: 28px 3%;
    }

    .about-copy {
        margin: 0;
        font-size: 15px;
    }
}

@media (max-width: 440px) {
    .site-header,
    .site-footer {
        padding-right: 5%;
        padding-left: 5%;
    }

    .wordmark {
        gap: 8px;
        font-size: 12px;
    }

    .site-nav {
        gap: 14px;
    }

    .site-nav a {
        font-size: 11px;
    }

    .hero,
    .about {
        width: 92%;
    }

    .poem-panel {
        padding: 42px 7%;
    }

    h1 {
        font-size: 42px;
    }

    .image-panel,
    .image-panel img {
        min-height: 290px;
    }

    .about {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        padding: 24px 4%;
    }

    .about-mark {
        display: none;
    }

    .site-footer {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
