@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;1,9..144,400&family=Source+Sans+3:ital,wght@0,400;0,500;1,400&display=swap');

:root {
    --ivory: #f3eee6;
    --paper: #f7f3ec;
    --ink: #1c1916;
    --ink-soft: #3c3832;
    --line: rgba(28, 25, 22, 0.16);
    --accent: #2f4a3c;
    --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
    --sans: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.12;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 6vw;
    background: rgba(243, 238, 230, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-name {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.nav-name img {
    width: auto;
    height: 2.55rem;
    max-width: none;
}

.nav nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.35rem;
}

.nav nav a {
    text-decoration: none;
    color: var(--ink-soft);
    white-space: nowrap;
}

.nav nav a,
.links a,
.read {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size 0.35s ease, color 0.35s ease;
}

.nav nav a:hover,
.nav nav a[aria-current="true"],
.links a:hover,
.read:hover {
    color: var(--accent);
    background-size: 100% 1px;
}

.intro {
    display: grid;
    grid-template-columns: minmax(240px, 380px) minmax(0, 40rem);
    gap: 5rem;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
    padding: 5.5rem 6vw 6rem;
}

.portrait-wrap { margin: 0; }

.portrait {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    background: #fff;
    border-radius: 2px;
    will-change: transform;
}

.eyebrow,
.categories,
.piece-meta,
.essay .back,
.essay .dateline,
.nav nav a {
    font-size: 1.125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--accent);
    margin-bottom: 1.1rem;
}

.intro h1 {
    font-size: clamp(1.55rem, 2.2vw, 1.9rem);
    margin-bottom: 1.25rem;
}

.lede {
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.intro-body p + p { margin-top: 1rem; }

.intro-body { max-width: 38rem; color: var(--ink-soft); }

.motto {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--accent);
}

.intro-copy .motto { margin-top: 1.75rem; }

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    list-style: none;
    margin-top: 1.6rem;
    font-size: 1.125rem;
}

.links a { text-decoration: none; }

.band {
    max-width: 980px;
    margin: 0 auto;
    padding: 1rem 6vw 5rem;
}

.band-head { max-width: 40rem; margin-bottom: 3rem; }

.band h2,
.essay h1 {
    font-size: clamp(2.15rem, 3.6vw, 3.1rem);
    margin-bottom: 1.25rem;
}

.statement,
.intro-body,
.themes li > div > p,
.chapter > div > p,
.piece > div p,
.essay .body {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink-soft);
}

.themes, .pieces { list-style: none; }

.themes li,
.chapter,
.piece {
    display: grid;
    gap: 1.25rem 2.5rem;
    padding: 2.4rem 0;
    border-top: 1px solid var(--line);
}

.themes li,
.chapter { grid-template-columns: 5.5rem 1fr; }

.theme-index,
.chapter-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--accent);
    line-height: 1;
    padding-top: 0.45rem;
}

.themes h3,
.chapter h3,
.piece h3 {
    font-size: clamp(1.55rem, 2.2vw, 1.9rem);
    margin-bottom: 0.75rem;
}

.chapter { padding: 3.2rem 0; align-items: start; }

.chapter-name {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.themes li > div > p,
.chapter > div > p { max-width: 40rem; }

.chapter h3 + .chapter-name { margin-top: -0.2rem; }

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.4rem;
    list-style: none;
    margin: -1rem 0 0.5rem;
    color: var(--ink-soft);
}

.piece {
    grid-template-columns: 6.5rem 10rem 1fr auto;
    align-items: start;
    text-decoration: none;
}

.piece-thumb-link { display: block; }

.piece-thumb {
    width: 6.5rem;
    height: auto;
    aspect-ratio: 819 / 1024;
    object-fit: contain;
    border-radius: 2px;
}

.piece-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--accent);
}

.piece h3 { margin-bottom: 0.55rem; }

.piece h3 a { text-decoration: none; }

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

.piece > div p { max-width: 36rem; }

.read {
    font-size: 1.125rem;
    text-decoration: none;
    white-space: nowrap;
    align-self: end;
    padding-bottom: 0.2rem;
}

.colophon-mark img {
    width: 2.75rem;
    height: auto;
    max-width: none;
}

.colophon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 2rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 6vw 3rem;
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--ink-soft);
}

.reveal {
    animation: rise 0.8s ease both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.essay {
    max-width: 46rem;
    margin: 0 auto;
    padding: 4.5rem 6vw 5rem;
}

.essay-figure { margin: 1.6rem 0 0; }

.essay-figure img {
    width: min(100%, 819px);
    height: auto;
    aspect-ratio: 819 / 1024;
    object-fit: contain;
    margin-inline: auto;
}

.essay .back {
    display: inline-block;
    margin-bottom: 2.5rem;
    text-decoration: none;
    color: var(--accent);
}

.essay h1 { margin-top: 0.6rem; }

.essay .dateline { color: var(--accent); }

.essay .body p { margin-top: 1.15rem; }

@media (max-width: 860px) {
    .nav {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: 0.85rem;
    }

    .nav nav { flex: 1 1 100%; }

    .intro {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2.5rem;
    }

    .portrait-wrap { max-width: 280px; }

    .themes li,
    .chapter,
    .piece { grid-template-columns: 1fr; gap: 0.6rem; }

    .piece-thumb { width: 8.5rem; }

    .read { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { animation: none; }
    .portrait { transform: none !important; }
}
