:root {
    --primary-blue: #17365d;
    --accent-blue: #285f92;
    --text-dark: #273444;
    --text-light: #526173;
    --bg-light: #f1f5f9;
    --white: #fff;
    --line: #d9e1e9;
    --drought-red: #8b2429;
    --flood-blue: #216590;
    --page-width: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--text-dark); background: white; line-height: 1.7; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-blue); }
:focus-visible { outline: 3px solid #3378b9; outline-offset: 5px; }
h1, h2 { font-family: 'Cinzel', Georgia, serif; color: var(--primary-blue); line-height: 1.3; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); }
h3 { color: var(--primary-blue); font-size: 1.2rem; line-height: 1.4; font-weight: 700; }
section, [id] { scroll-margin-top: 110px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 3000; background: white; padding: 12px 20px; color: var(--primary-blue); }
.skip-link:focus { top: 12px; }
/* Navigation */
header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px max(24px, calc((100vw - var(--page-width)) / 2)); }
.logo { flex-shrink: 0; }
.logo a, .logo picture { display: block; }
.logo img { display: block; width: 198px; height: auto; }
nav ul { display: flex; list-style: none; align-items: center; gap: 20px; }
nav a { display: inline-block; font-size: .9375rem; font-weight: 700; padding: 8px 0; }
.mobile-menu-btn { display: none; background: transparent; color: var(--primary-blue); border: 1px solid var(--line); border-radius: 4px; width: 44px; height: 44px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
/* Book introduction */
.hero { background: linear-gradient(120deg, #f3f6fa, #fff); padding: 72px 24px 80px; }
.hero-container { max-width: var(--page-width); margin: auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.hero-image { min-width: 0; }
.hero-image picture, .hero-image img { display: block; width: 100%; }
.hero-image img { border-radius: 3px; box-shadow: 0 16px 36px #17365d22; }
.hero-content { min-width: 0; }
.hero-title { margin-bottom: 24px; }
.hero-title .drought { display: block; font-size: clamp(2.8rem, 4.5vw, 4rem); letter-spacing: .025em; color: var(--drought-red); line-height: 1.05; }
.hero-title .flood { display: block; font-family: 'Great Vibes', cursive; font-weight: 400; font-size: clamp(3.4rem, 5.5vw, 5rem); color: var(--flood-blue); line-height: 1.05; margin-left: 28px; }
.hero-subtitle { font-size: 1.35rem; line-height: 1.45; max-width: 32ch; margin-bottom: 20px; color: var(--primary-blue); }
.hero-byline { font-size: .9375rem; margin-bottom: 12px; }
.hero-byline a, .hero-local a, .ordering-help a { text-decoration: underline; text-underline-offset: 3px; }
.book-intro { font-size: 1.0625rem; margin-bottom: 24px; max-width: 52ch; }
.hero-local { margin-top: 16px; font-size: .9375rem; color: var(--text-light); }
.button-group { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-actions { justify-content: flex-start; }
.btn, .article-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 5px; font-size: 1rem; font-weight: 700; line-height: 1.4; text-align: center; transition: background-color .15s, border-color .15s; }
.btn-primary, .article-link { color: white; background: var(--primary-blue); }
.btn-primary:hover, .article-link:hover { color: white; background: var(--accent-blue); }
.btn-secondary { border-color: #a7b8ca; background: white; color: var(--primary-blue); }
.btn-secondary:hover { background: #edf3f9; border-color: var(--primary-blue); }
/* Common section rhythm */
.info-section, .faq-section { padding: 72px 24px; }
.info-section > h2, .section-title, .faq-container > h2 { max-width: 840px; margin: 0 auto 32px; text-align: center; }
.synopsis-copy { max-width: 760px; margin: auto; font-size: 1.125rem; }
.synopsis-copy h2 { margin-bottom: 24px; }
.synopsis-copy p + p { margin-top: 18px; }
.history-articles, #reviews, #buy { background: var(--bg-light); }
.history-article-grid, .info-grid, .press-grid { max-width: var(--page-width); margin: 32px auto 0; display: grid; gap: 24px; }
.history-article-grid, .press-grid, #reviews > .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.history-article-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.history-article-card img { width: 100%; aspect-ratio: 900 / 652; object-fit: cover; display: block; border-radius: 3px; margin-bottom: 22px; }
.history-article-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.history-article-card p { color: var(--text-light); margin-bottom: 20px; }
.history-article-card span { margin-top: auto; color: var(--primary-blue); text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.history-article-card:hover { color: var(--text-dark); border-color: #839ab3; }
.info-card { background: #f4f7fa; border: 1px solid var(--line); border-radius: 7px; padding: 28px; text-align: left; }
.info-card h3 { margin-bottom: 12px; }
.book-themes .info-card p { color: var(--text-light); }
#reviews .info-card { background: white; }
#reviews > .info-grid .info-card { display: flex; flex-direction: column; }
#reviews > .info-grid .info-card > p:not(.review-name) { font-size: 1.125rem; }
.review-stars { color: #9a6500; letter-spacing: .15em; margin-bottom: 12px; }
.review-name { font-weight: 700; padding-top: 20px; margin-top: auto; color: var(--text-light); }
.press-grid { margin-top: 24px; }
.press-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.press-card-title { font-size: 1.3rem; }
.press-article-title { font-weight: 700; margin-bottom: 8px; }
.press-article-desc, .press-author { color: var(--text-light); }
.press-author { margin-top: 12px; font-size: .9375rem; }
.article-link { margin-top: 24px; }
/* Gallery: full photographs, full captions, reader-controlled movement. */
.slideshow-section { background: #102339; color: #eef3f8; padding: 64px 24px; }
.slideshow-section .section-title { color: white; margin-bottom: 16px; }
.slideshow-help { max-width: 680px; margin: 0 auto 32px; color: #c5d2e0; text-align: center; }
.mySwiper { max-width: var(--page-width); overflow: hidden; }
.swiper-wrapper { display: flex; align-items: flex-start; }
.mySwiper .swiper-slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: auto; max-height: none; border-radius: 7px; overflow: hidden; background: #1b324b; }
.slide-image-wrapper { min-width: 0; background: #0b1b2c; align-self: start; }
.slide-image-wrapper picture, .slide-bg { display: block; width: 100%; }
.slide-bg { height: auto; object-fit: contain; }
.slide-content { padding: 30px; min-width: 0; text-align: left; }
.slide-title { font-family: 'Cinzel', serif; color: white; font-size: 1.3rem; margin-bottom: 16px; }
.slide-desc { font-size: 1rem; line-height: 1.8; color: #e0e8f0; }
.slide-source { font-size: .875rem; margin-bottom: 16px; color: #c5d2e0; }
.slide-source a { text-decoration: underline; text-underline-offset: 3px; }
.mySwiper .swiper-pagination { position: static; margin-top: 24px; }
.mySwiper .swiper-pagination-bullet { background: white; opacity: .4; width: 10px; height: 10px; }
.mySwiper .swiper-pagination-bullet-active { opacity: 1; }
.slideshow-controls { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; margin-top: 20px; }
.slideshow-controls[hidden] { display: none; }
.slideshow-controls button { min-width: 110px; min-height: 44px; padding: 10px 18px; border: 1px solid #7890a8; border-radius: 4px; background: white; color: #17365d; cursor: pointer; font-weight: 700; }
.slide-count { min-width: 6ch; text-align: center; font-variant-numeric: tabular-nums; }
.mySwiper:not(.swiper-initialized) .swiper-wrapper { display: block; }
.mySwiper:not(.swiper-initialized) .swiper-slide + .swiper-slide { margin-top: 24px; }
/* Author */
.author-container { max-width: 960px; margin: auto; }
.author-container > h2 { text-align: center; margin-bottom: 12px; }
.author-container > h3 { text-align: center; color: var(--text-light); font-size: 1.125rem; margin-bottom: 36px; }
.author-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 40px; align-items: start; }
.author-photos { display: grid; gap: 24px; }
.author-photos picture, .author-photos img { display: block; width: 100%; border-radius: 5px; }
.author-content { font-size: 1.0625rem; }
.author-content p + p { margin-top: 18px; }
/* FAQ and ordering */
.faq-container { max-width: 840px; margin: auto; }
.faq-container > h2 { margin-bottom: 12px; }
.faq-container > p { text-align: center; color: var(--text-light); }
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-size: 1.125rem; font-weight: 700; list-style: none; line-height: 1.5; }
.faq-question::-webkit-details-marker { display: none; }
.faq-icon { flex-shrink: 0; font-size: 1.5rem; color: var(--primary-blue); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 40px 24px 0; color: var(--text-light); font-size: 1.0625rem; }
.faq-answer a { color: var(--primary-blue); text-decoration: underline; }
#buy { text-align: center; }
#buy > h2 { margin-bottom: 16px; }
#buy > p:first-of-type { max-width: 600px; margin: 0 auto 28px; font-size: 1.125rem; }
.book-details { margin: 24px auto 12px; font-size: .9375rem; font-weight: 700; }
.ordering-help { max-width: 620px; margin: auto; font-size: 1rem; color: var(--text-light); }
/* Article and policy pages */
.article-header { flex-wrap: wrap; }
.article-brand { font-family: 'Cinzel', Georgia, serif; font-size: 1.25rem; font-weight: 700; color: var(--primary-blue); }
.article-header nav { display: flex; flex-wrap: wrap; gap: 24px; }
.reading-page { max-width: 800px; margin: auto; padding: 64px 24px 80px; overflow-wrap: break-word; }
.reading-page h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.3; margin-bottom: 24px; }
.article-kicker { color: var(--text-light); font-size: .9375rem; margin-bottom: 16px; }
.reading-page article > p, .legal-page main > p { font-size: 1.125rem; line-height: 1.85; margin-bottom: 22px; }
.reading-page article > .article-credit { font-size: 1rem; color: var(--text-light); }
.reading-page article > .article-lead { font-size: 1.25rem; color: #22384f; }
.reading-page h2 { font-size: 1.55rem; margin: 42px 0 18px; }
.reading-page a:not(.btn) { color: var(--primary-blue); text-decoration: underline; text-underline-offset: 3px; }
.article-contents { display: flex; flex-wrap: wrap; gap: 8px 24px; border-block: 1px solid var(--line); padding: 16px 0; margin: 32px 0; }
.article-contents a { padding: 4px 0; font-size: .9375rem; }
.reading-page figure { margin: 36px 0; }
.reading-page figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
.reading-page figcaption { margin-top: 12px; font-size: .9375rem; line-height: 1.6; color: var(--text-light); }
.article-source { border-top: 1px solid var(--line); margin-top: 40px; color: var(--text-light); }
.article-source h2 { font-family: 'Lato', sans-serif; font-size: 1.2rem; margin-top: 24px; }
.article-order { background: var(--bg-light); border: 1px solid var(--line); border-radius: 6px; padding: 28px; margin: 36px 0; }
.article-order h2 { margin: 0 0 16px; }
.article-order p { margin-bottom: 22px; }
.related-reading { padding-top: 12px; }
/* Shared footer */
footer { background: #102339; color: #d4deea; text-align: center; padding: 44px 24px; font-size: .9375rem; }
footer p + p { margin-top: 8px; }
footer a { color: white; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
footer a:hover { color: #bed7f1; }
.footer-links { margin-top: 20px; }
.footer-links a { display: inline-block; padding: 5px 8px; }
.copyright { margin-top: 20px; }
.site-credit { font-size: .875rem; }
@media (max-width: 1100px) {
    header { padding: 14px 24px; }
    header:not(.article-header) nav ul { display: none; position: absolute; inset: 100% 0 auto; padding: 16px 24px 24px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 12px 18px #10233912; max-height: calc(100dvh - 80px); overflow-y: auto; }
    header:not(.article-header) nav ul.active { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
    header:not(.article-header) nav a { display: block; padding: 10px 0; }
    .mobile-menu-btn { display: block; }
    .hero-container { gap: 36px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
    h2 { font-size: 1.6rem; }
    header { padding: 12px 20px; }
    .logo img { width: 180px; }
    .hero { padding: 40px 20px 48px; }
    .hero-container { grid-template-columns: 1fr; gap: 36px; max-width: 540px; }
    .hero-image { max-width: 430px; width: 100%; margin: auto; }
    .hero-content { text-align: left; }
    .hero-title .drought { font-size: 3rem; }
    .hero-title .flood { font-size: 3.8rem; }
    .hero-subtitle { font-size: 1.25rem; max-width: none; }
    .hero-actions { align-items: stretch; }
    .btn { width: 100%; }
    .info-section, .faq-section, .slideshow-section { padding: 48px 20px; }
    .history-article-grid, .info-grid, .press-grid, #reviews > .info-grid { grid-template-columns: 1fr; gap: 20px; }
    .history-article-card, .info-card { padding: 24px; }
    .history-article-card h3 { font-size: 1.3rem; }
    .mySwiper .swiper-slide { grid-template-columns: 1fr; }
    .slide-content { padding: 24px; }
    .author-layout { grid-template-columns: 1fr; gap: 28px; }
    .author-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; gap: 20px; margin: auto; }
    .faq-question { font-size: 1.0625rem; }
    .faq-answer { padding-right: 12px; }
    .article-header { position: static; gap: 10px; }
    .article-header nav { gap: 16px; }
    .article-header nav a { font-size: .875rem; }
    .reading-page { padding: 40px 20px 48px; }
    .reading-page h2 { font-size: 1.4rem; }
    .reading-page article > p, .legal-page main > p { font-size: 1.0625rem; }
    .reading-page article > .article-lead { font-size: 1.1875rem; }
    .article-order { padding: 24px; }
    .slideshow-controls { gap: 12px; }
    .slideshow-controls button { min-width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Keep navigation ahead of long historical captions. */
.slideshow-controls { margin: 0 0 24px; }
