@import url("nav.css");
@import url("https://fonts.googleapis.com/css2?family=Amarna:ital,wght@0,100..700;1,100..700&display=swap");

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #f4eadc;
    background: #1f2a24 url("../images/body-bg-pink-flowers.jpg") center top / cover fixed;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(180deg, rgba(25, 37, 31, 0.64), rgba(25, 37, 31, 0.88)),
        url("../images/body-texture-cracked.jpg") center top / cover fixed,
        rgba(25, 37, 31, 0.86);
    background-blend-mode: normal, soft-light, normal;
    opacity: 0.68;
}

.site-header,
.site-footer {
    color: #fffaf4;
    text-align: center;
}

.site-header {
    min-height: 42vh;
    padding: 5rem 1rem 4rem;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(38, 55, 47, 0.62), rgba(38, 55, 47, 0.72)),
        url("../images/header-bg-liana-s.jpg") center / cover;
}

.site-footer {
    background: rgba(42, 57, 49, 0.92);
}

.site-footer {
    padding: 1.5rem 1rem;
}

.header-content,
.site-footer .pure-u-1 {
    max-width: 900px;
    margin: 0 auto;
}

.header-content {
    padding: 2rem;
    background: rgba(42, 57, 49, 0.52);
    border: 1px solid rgba(255, 250, 244, 0.24);
    border-radius: 8px;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: #f0d9ad;
    font-family: "Amarna", Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header h1 {
    margin: 0 0 0.75rem;
    font-family: "Amarna", Georgia, "Times New Roman", serif;
    font-size: 3.35rem;
    font-weight: 700;
    font-optical-sizing: auto;
}

.site-header p,
.site-footer p {
    max-width: 760px;
    margin: 0 auto;
}

.site-header a {
    color: #f0d9ad;
    text-underline-offset: 3px;
}

.site-header a:hover {
    color: #fffaf4;
}

main {
    width: 100%;
    padding: 2rem 0;
}

section {
    margin-bottom: 2rem;
}

.poetry-section {
    width: min(1180px, 94vw);
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

h2 {
    margin: 0 0 1rem;
    color: #fff5e8;
    font-family: "Amarna", Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-optical-sizing: auto;
}

.intro-section {
    max-width: 760px;
    padding: 0 1.5%;
}

.intro-section h1 {
    margin: 0 0 0.5rem;
    color: #fff5e8;
    font-family: "Amarna", Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 700;
    font-optical-sizing: auto;
}

.intro-section p {
    color: #e8dfd0;
    font-size: 1rem;
    line-height: 1.75;
}

.intro-section a {
    color: #f0d9ad;
    text-underline-offset: 3px;
}

.intro-section a:hover {
    color: #fffaf4;
}

.section-header {
    padding: 0 0.5rem;
}

.section-kicker {
    margin: 0 0 0.15rem;
    color: #f0d9ad;
    font-family: "Amarna", Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.grid-row {
    margin: 0;
}

.poetry-section .grid-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.poem-card,
.image-card {
    padding: 0.5rem;
}

.poem-card {
    display: flex;
    justify-content: center;
}

.poem-card .card-inner {
    width: 100%;
    max-width: 23rem;
    min-height: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 1.25rem;
    color: #fff;
}

.card-inner h3 {
    margin: 0 0 0.25rem;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.poem-card p {
    max-width: 100%;
}

.byline {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

.translator {
    margin-top: -0.4rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-style: italic;
}

.image-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(45, 42, 35, 0.18);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.image-card:hover {
    box-shadow: 0 26px 54px rgba(45, 42, 35, 0.28);
    transform: translateY(-5px);
}

.image-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transform: scale(1);
    transition: filter 0.4s ease, transform 0.4s ease;
    border-radius: 8px;
}

.image-card:hover img {
    transform: scale(1.08);
}

.image-card:nth-child(1):hover img {
    filter: sepia(0.45) saturate(1.55) hue-rotate(325deg) contrast(1.08);
}

.image-card:nth-child(2):hover img {
    filter: saturate(1.8) hue-rotate(18deg) contrast(1.08);
}

.image-card:nth-child(3):hover img {
    filter: saturate(1.5) hue-rotate(155deg) contrast(1.05);
}

.image-card:nth-child(4):hover img {
    filter: saturate(1.7) hue-rotate(285deg) contrast(1.08);
}

.image-card figcaption {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    min-height: 3rem;
    padding: 0.7rem;
    color: #fffaf4;
    background: rgba(42, 57, 49, 0.82);
    border-radius: 0 0 6px 6px;
    font-size: 0.86rem;
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-card:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

.feature-gallery {
    width: 100%;
}

@media (max-width: 600px) {
    body {
        background-attachment: scroll;
    }

    .site-header {
        min-height: 34vh;
        padding: 2.25rem 1rem;
    }

    .site-header h1 {
        font-size: 2rem;
    }

    .header-content {
        padding: 1.2rem;
    }

    main {
        width: 100%;
        padding: 1.5rem 0;
    }
}
