@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Source+Sans+3:wght@400;500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;1,8..60,400&display=swap');

:root {
    --accent-red: #a5342f;
    --accent-red-dark: #8a2a26;
    --accent-rose: #bb695f;
    --ink: #1f1d1a;
    --ink-soft: #3a3733;
    --ink-muted: #6b6660;
    --paper: #f7f3ea;
    --paper-soft: #fbf8f1;
    --rule: #ddd6c8;
    --rule-strong: #b8b0a0;
    --surface: #ffffff;
    /* Timeline aliases — map legacy variable names onto the current palette */
    --ink-deep: var(--ink);
    --cover-title-red: var(--accent-red);
    --cover-author-green: #6b7a4f;
    --surface-card: var(--surface);
    --surface-light: var(--paper-soft);
    --line-muted: var(--rule-strong);
    --serif-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --serif-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: 'Source Sans 3', 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--serif-body);
    line-height: 1.7;
    color: var(--ink-soft);
    background: var(--paper);
    font-size: 18px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ── */
.main-nav {
    background: var(--paper-soft);
    color: var(--ink);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--rule);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
}

.nav-brand {
    color: var(--ink);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.4em;
    line-height: 1.1;
    white-space: nowrap;
}

.nav-brand-title {
    font-family: var(--serif-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.nav-brand-sub {
    font-family: var(--serif-display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

.nav-links a.active {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
}

/* ── Release Banner ── */
.release-banner {
    background: linear-gradient(90deg, var(--accent-red) 0%, #b8433d 100%);
    color: #fff;
    text-align: center;
    padding: 9px 20px 0;
    font-family: var(--sans);
    font-size: 1.32rem;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 2px 8px rgba(165, 52, 47, 0.25);
    overflow: hidden;
}

.release-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Book thumbnail — peeks up from the bottom, cropped by parent overflow */
.release-banner-book {
    flex-shrink: 0;
    width: clamp(2.2em, 6.75vw, 3em);
    height: clamp(1.6em, 5.25vh, 2.2em);
    position: relative;
    bottom: -3em;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    animation: banner-book-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 1s;
}

.release-banner-book img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
}

@keyframes banner-book-pop {
    0% {
        transform: translateY(100%) scale(0.7);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.release-banner-text {
    flex: 1 1 auto;
    text-align: center;
}

.release-banner-text strong {
    font-weight: 700;
}

.release-banner-text a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.release-banner-text a:hover {
    color: #ffe9e7;
}

.release-banner-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.release-banner-close:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .release-banner .container {
        flex-direction: column;
        gap: 8px;
        padding-top: 8px;
    }

    /* Drop the "peek from bottom" effect so the book sits above the text */
    .release-banner-book {
        position: relative;
        bottom: auto;
        width: 44px;
        height: 60px;
        animation: none;
    }

    .release-banner-close {
        position: absolute;
        top: 8px;
        right: 12px;
    }
}

/* Reading event announcement — accented section under the header */
.reading-announcement {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 180px;
    padding: 0;
    border-bottom: none;
    background: var(--accent-rose);
    color: var(--paper);
}

.reading-announcement .announcement-image {
    flex: 0 0 240px;
    width: 240px;
    align-self: stretch;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.reading-announcement .container {
    flex: 1 1 auto;
    padding: 24px 44px 24px 24px;
}

.reading-announcement h2 {
    font-family: var(--serif-display);
    font-size: 1.5rem;
    margin: 0 0 8px;
    color: var(--paper);
}

.reading-announcement p {
    margin: 0;
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.5;
}

.reading-announcement a {
    color: var(--paper);
    font-weight: 600;
    text-decoration: underline;
}

.reading-announcement .dismiss {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--paper);
    font-size: 1.4rem;
    line-height: 1;
    padding: 4px 10px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .reading-announcement {
        flex-direction: column;
    }

    .reading-announcement .announcement-image {
        flex: none;
        width: 100%;
        height: 160px;
    }

    .reading-announcement .container {
        padding: 16px 44px 16px 16px;
    }
}

/* ── Page Header ── */
header {
    padding: 56px 0 34px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--rule);
}

header .container {
    position: relative;
    z-index: 1;
}

header h1 {
    font-family: var(--serif-display);
    color: var(--ink);
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 24px;
}

/* Short rule beneath the title, as in the editorial reference */
header h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 130px;
    height: 1px;
    background: var(--rule-strong);
}

/* Two-tone title: "Settling:" bold, "Women Who Sued the News" italic, on one line */
header h1 em {
    display: inline;
    font-style: italic;
    font-weight: 500;
}

.subtitle {
    font-family: var(--serif-body);
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 400;
    line-height: 1.55;
    max-width: 720px;
    margin-top: 26px;
    text-transform: none;
    letter-spacing: 0;
}

/* Reflective note that sits under a page subtitle */
.subtext {
    font-family: var(--serif-body);
    font-style: italic;
    color: var(--ink-muted);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.7;
    max-width: 720px;
    margin-top: 16px;
}

/* ── Main Content ── */
main {
    padding: 46px 0 20px;
    position: relative;
}

/* Subtle newsprint texture behind the main content area */
main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/paper.jpg') center/cover;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

main > * {
    position: relative;
    z-index: 1;
}

section {
    padding: 36px 0;
    border-bottom: 1px solid var(--rule);
    animation: rise-in 480ms ease both;
}

section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

h2 {
    font-family: var(--serif-display);
    color: var(--ink);
    font-size: 2.1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    margin-bottom: 18px;
}

h3 {
    font-family: var(--serif-display);
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    margin-bottom: 12px;
}

.intro p,
.highlights p,
section p {
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 76ch;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.feature-card {
    padding: 28px;
    background: var(--paper-soft);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--accent-rose);
    border-radius: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
    margin-top: 0;
    color: var(--ink);
}

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

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

.feature-card p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.7;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--surface);
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--rule);
}

th {
    background: var(--paper-soft);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--rule-strong);
}

tr:hover {
    background: rgba(165, 52, 47, 0.04);
}

a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    color: var(--accent-red-dark);
    text-decoration: underline;
}

footer {
    background: var(--paper-soft);
    color: var(--ink-soft);
    text-align: center;
    padding: 34px 0;
    margin-top: 54px;
    border-top: 1px solid var(--rule);
}

footer p {
    opacity: 0.92;
    margin: 5px 0;
}

.footer-note {
    font-family: var(--serif-display);
    font-style: italic;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
    font-size: 1.05rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent-red);
    text-decoration: none;
    font-family: var(--sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.back-link:hover {
    color: var(--accent-red-dark);
}

.case-header {
    border-left: 3px solid var(--accent-red);
    padding-left: 20px;
    margin-bottom: 30px;
}

.case-meta {
    color: var(--ink-muted);
    font-style: italic;
    margin: 10px 0;
}

ul,
ol {
    margin: 15px 0;
    padding-left: 25px;
}

li {
    margin: 8px 0;
}

.table-scroll {
    overflow-x: auto;
}

.contact-card {
    background: var(--paper-soft);
    padding: 30px;
    border-radius: 2px;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent-red);
    margin: 30px 0;
}

.contact-card h3 {
    margin-top: 0;
}

/* Book section */

.book-section {
    border-left-color: var(--accent-red);
}

.book-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.book-cover {
    flex: 0 0 260px;
}

.book-cover img {
    width: 260px;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.book-cover.author-photo img {
    width: 260px;
    object-fit: cover;
    object-position: top;
}


.book-info {
    flex: 1;
}

.book-title {
    font-family: var(--serif-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    text-transform: none;
    letter-spacing: 0.01em;
    margin-bottom: 4px;
}

.book-author {
    font-family: var(--serif-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ink-muted);
    margin-bottom: 1rem;
}

.store-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.store-btn {
    display: inline-block;
    padding: 10px 22px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    text-decoration: none;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 2px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.store-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .main-nav .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-links {
        gap: 0.95rem;
        flex-wrap: wrap;
        font-size: 0.85rem;
    }

    header {
        padding: 70px 0 56px;
    }

    .subtitle {
        line-height: 1.3;
    }

    section {
        padding: 24px;
    }

    h2 {
        font-size: 1.55rem;
    }

        .book-inner {
        flex-direction: column;
        align-items: center;
    }

    .book-cover {
        flex: 0 0 auto;
    }

    .book-cover img {
        width: 200px;
    }

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

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .nav-brand-title {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 0.6rem;
        font-size: 0.78rem;
    }

    header h1 {
        font-size: 2.3rem;
    }
}
