/* TTS-Author: quiet and literary. Warm paper, an elegant serif, a reading column made for long posts.
   Colours and fonts come from the site settings (custom properties set in layout.php). */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/fraunces-italic-latin.woff2') format('woff2');
}

:root {
    --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
    --tint: #efe6d8;
    --tint: color-mix(in srgb, var(--accent) 16%, var(--light));
    --paper-deep: #efe8dd;
    --paper-deep: color-mix(in srgb, var(--text) 5%, var(--light));
    --line: rgba(43, 37, 34, .14);
    --line: color-mix(in srgb, var(--text) 15%, transparent);
    --muted: #6d625b;
    --muted: color-mix(in srgb, var(--text) 66%, var(--light));
    --radius: 4px;
    --text-width: 42rem;
    --shadow-book: 0 1px 1px rgba(0, 0, 0, .08), 0 6px 12px -2px rgba(40, 25, 15, .18), 0 22px 40px -12px rgba(40, 25, 15, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--light);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    margin: 0 0 .6em;
    color: var(--text);
    font-variation-settings: 'opsz' 72;
    text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h1 a, h2 a, h3 a { color: inherit; text-decoration: none; }
h1 a:hover, h2 a:hover, h3 a:hover { color: var(--primary); }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 46rem; }
.container--text { max-width: calc(var(--text-width) + 2.5rem); }
.container--wide { max-width: 64rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--dark); color: #fff; padding: .6rem 1rem; z-index: 50; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* ---------- Small parts ---------- */

.eyebrow {
    font-family: var(--sans);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 1rem;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-family: var(--sans);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.2;
    padding: .85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: color-mix(in srgb, var(--primary) 85%, #000); color: #fff; }
.btn--accent { background: var(--accent); color: var(--dark); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); color: var(--dark); }
.btn--ghost { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 35%, transparent); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--small { padding: .55rem 1rem; font-size: .84rem; }
.btn:not(.btn--primary):not(.btn--accent):not(.btn--ghost) { background: var(--text); color: var(--light); }
.buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.buttons--centred { justify-content: center; }

.link-arrow { font-family: var(--sans); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: ' →'; transition: margin .2s; }
.link-arrow:hover::after { margin-left: .2rem; }

.chips, .tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.chip {
    display: inline-block;
    font-family: var(--sans);
    font-size: .82rem;
    padding: .38rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    background: transparent;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--light); }

.empty { color: var(--muted); font-style: italic; padding: 2rem 0; }

.alert {
    background: var(--tint);
    border-left: 3px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin: 0 0 1.5rem;
}
.alert p:last-child { margin: 0; }

/* ---------- Announcement, header and menu ---------- */

.announcement {
    margin: 0;
    background: var(--dark);
    color: var(--light);
    text-align: center;
    font-family: var(--sans);
    font-size: .85rem;
    padding: .55rem 1rem;
}
.announcement a { color: inherit; text-decoration: none; }
.announcement a:hover { text-decoration: underline; }

.site-header { border-bottom: 1px solid var(--line); background: var(--light); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.5rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--text); line-height: 1.1; }
.brand__name { font-family: var(--font-heading); font-size: 1.65rem; font-weight: 600; letter-spacing: -.01em; }
.brand__tagline { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: .95rem; color: var(--muted); margin-top: .25rem; }
.brand__logo { max-height: 3.25rem; width: auto; }
.brand:hover .brand__name { color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__list { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding: .3rem 0;
    border-bottom: 1px solid transparent;
}
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }

.nav-toggle { display: none; background: none; border: 0; width: 2.75rem; height: 2.75rem; cursor: pointer; padding: 0; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: .55rem; width: 1.65rem; height: 2px; background: var(--text); transition: transform .25s, background-color .25s; content: ''; }
.nav-toggle__bar { top: 50%; margin-top: -1px; }
.nav-toggle__bar::before { left: 0; top: -.5rem; }
.nav-toggle__bar::after { left: 0; top: .5rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(.5rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-.5rem) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--light);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25);
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.25rem 1.5rem;
    }
    .site-nav.is-open { display: flex; }
    .site-nav__list { flex-direction: column; gap: 0; }
    .site-nav__list a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
    .site-nav__list a:hover, .site-nav__list a[aria-current="page"] { border-bottom-color: var(--line); }
    .site-nav__subscribe { align-self: flex-start; }
    .brand__name { font-size: 1.4rem; }
    .site-header__inner { min-height: 4.5rem; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding-top: 2rem; }
.section:not(.is-tinted):not(.newsletter-section--band) + .section:not(.is-tinted):not(.newsletter-section--band) { padding-top: 0; }
.is-tinted { background: var(--tint); }
.section__header { margin-bottom: 2.5rem; max-width: 44rem; }
.section__header--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; }
.section__header--split .section__heading { margin-bottom: .25rem; }
.section__header--split .section__intro { margin: .5rem 0 0; }
.section__header--centred { margin-left: auto; margin-right: auto; text-align: center; }
.section__heading { margin-bottom: .5rem; }
.section__intro { color: var(--muted); font-size: 1.08rem; max-width: 40rem; }

.page-header { padding: clamp(3rem, 7vw, 5.5rem) 0 1.5rem; }
.page-header__title { max-width: 18em; margin-bottom: .4em; }
.page-header__intro { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 38rem; line-height: 1.5; }
.page-header--centred { text-align: center; }
.page-header--centred .page-header__title, .page-header--centred .page-header__intro { margin-left: auto; margin-right: auto; }

/* Prose: text of posts, books and text sections */
.prose { font-size: 1.15rem; line-height: 1.8; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.65rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
.prose h4 { font-family: var(--sans); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
    margin: 2em 0;
    padding: 0 0 0 1.5rem;
    border-left: 2px solid var(--accent);
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    font-size: 1.35rem;
    line-height: 1.5;
    color: color-mix(in srgb, var(--text) 85%, var(--primary));
}
.prose blockquote p:last-child { margin: 0; }
.prose a { word-break: break-word; }

/* Large banner (shared hero section) */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.hero.is-tinted { background: transparent; }
.hero__heading { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.05; margin-bottom: .45em; }
.hero__lead { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.5; color: var(--muted); max-width: 34rem; }
.hero--split .hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero--split .hero__media { position: relative; }
.hero--split .hero__media::before { content: ''; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 1px solid var(--accent); border-radius: var(--radius); }
.hero--split .hero__media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.hero--full { position: relative; background: var(--dark) var(--hero-image) center / cover no-repeat; color: #fff; min-height: 70vh; display: flex; align-items: center; }
.hero--full::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 14, 10, .78), rgba(20, 14, 10, .25)); }
.hero--full .hero__inner { position: relative; }
.hero--full .hero__heading, .hero--full .hero__lead { color: #fff; }
.hero--full .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero--simple { text-align: center; }
.hero--simple .hero__heading, .hero--simple .hero__lead { margin-left: auto; margin-right: auto; max-width: 40rem; }
.hero--simple .buttons { justify-content: center; }
@media (max-width: 760px) {
    .hero--split .hero__inner { grid-template-columns: 1fr; }
    .hero--split .hero__media { order: -1; max-width: 15rem; margin-right: 1.25rem; }
    .hero--split .hero__media::before { inset: .75rem -.75rem -.75rem .75rem; }
}

/* Photo with text */
.image-text__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.image-text--image-right .image-text__media { order: 2; }
.image-text--no-image .image-text__inner { grid-template-columns: 1fr; max-width: 46rem; }
.image-text__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 760px) {
    .image-text__inner { grid-template-columns: 1fr; }
    .image-text--image-right .image-text__media { order: 0; }
}

/* Text */
.text-block--centred { text-align: center; }

/* Quotation */
.big-quote { margin: 0; text-align: center; }
.big-quote blockquote { margin: 0; }
.big-quote p { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.35; margin: 0; text-wrap: balance; }
.big-quote p::before { content: '“'; display: block; font-size: 4rem; line-height: .6; color: var(--accent); margin-bottom: 1rem; font-style: normal; }
.big-quote figcaption { margin-top: 1.5rem; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.big-quote figcaption::before { content: '— '; }

/* Praise and reviews */
.testimonials__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; }
.testimonials--single .testimonials__list { grid-template-columns: 1fr; max-width: 46rem; margin: 0 auto; text-align: center; }
.praise { margin: 0; padding-top: 1.25rem; border-top: 2px solid var(--accent); }
.praise p { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: 1.2rem; line-height: 1.5; margin: 0 0 .9rem; }
.praise footer { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.praise footer strong { color: var(--text); }
.testimonials--single .praise p { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }

/* Questions and answers */
.faq.is-tinted { background: transparent; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.4rem; color: var(--primary); }
.faq__item[open] summary::after { content: '–'; }
.faq__item p { margin: 0 0 1.25rem; color: var(--muted); }

/* Photo gallery */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery__item figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; font-style: italic; }
.gallery--wide .gallery__grid { grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); }
.lightbox { position: fixed; inset: 0; background: rgba(15, 10, 8, .92); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 2rem; }
.lightbox img { max-height: 90vh; width: auto; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1; }

/* Contact details, map */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact__label { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.map__frame iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); filter: sepia(.25); }
@media (max-width: 760px) {
    .contact__inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact__list li { grid-template-columns: 1fr; gap: .2rem; }
}

/* Call to action */
.cta.is-tinted { background: var(--tint); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta__heading { margin-bottom: .3rem; }
.cta__text { color: var(--muted); margin: 0; max-width: 38rem; }
.cta--card .cta__inner { background: var(--tint); padding: 2.5rem; border-radius: var(--radius); }

/* Offers or other cards (shared sections) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.75rem; }
.card { background: var(--paper-deep); border-radius: var(--radius); overflow: hidden; }
.card__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: 1.25rem; }
.card__title { font-size: 1.2rem; }

/* ---------- Posts ---------- */

.post-meta { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .45rem; align-items: baseline; }
.post-meta a { color: var(--primary); text-decoration: none; font-weight: 600; }
.post-meta a:hover { text-decoration: underline; }

.post-list { display: flex; flex-direction: column; }
.post-row { display: grid; grid-template-columns: 1fr 15rem; gap: 2.5rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.post-row--no-image { grid-template-columns: 1fr; }
.post-row__title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: .45rem; }
.post-row__summary { color: var(--muted); margin: 0; max-width: 40rem; }
.post-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: transform .4s; }
.post-row__media { overflow: hidden; border-radius: var(--radius); }
.post-row:hover .post-row__media img { transform: scale(1.03); }
@media (max-width: 640px) {
    .post-row { grid-template-columns: 1fr 6.5rem; gap: 1.1rem; align-items: start; padding: 1.5rem 0; }
    .post-row__summary { display: none; }
    .post-row__title { font-size: 1.2rem; }
    .post-row__media img { aspect-ratio: 1; }
}

.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.post-card__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-deep); aspect-ratio: 3 / 2; margin-bottom: 1.1rem; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__title { font-size: 1.3rem; margin-bottom: .4rem; }
.post-card__summary { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 900px) { .post-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-cards { grid-template-columns: 1fr; } }

.post-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; padding: 1rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.post-featured--no-image { grid-template-columns: 1fr; }
.post-featured__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.post-featured__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .6rem; }
.post-featured__summary { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 760px) { .post-featured { grid-template-columns: 1fr; } }

.blog-tools { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; padding-bottom: 1.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.search { display: flex; gap: .5rem; flex: 0 1 20rem; }
.search input { flex: 1; min-width: 0; font: inherit; font-family: var(--sans); font-size: .9rem; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); }
.search input:focus { outline: none; border-color: var(--primary); }

.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 2.5rem; font-family: var(--sans); font-size: .9rem; }
.pagination__step { font-weight: 600; text-decoration: none; }
.pagination__step[rel="next"] { justify-self: end; }
.pagination__where { color: var(--muted); }

/* One post */
.post__header { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: 2rem; text-align: center; }
.post__title { font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: .5em; }
.post__standfirst { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.5; color: var(--muted); margin: 0 auto 1.75rem; max-width: 36rem; }
.post__byline { display: inline-flex; align-items: center; gap: .85rem; text-align: left; }
.post__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.post__author { font-family: var(--sans); font-size: .88rem; font-weight: 600; margin: 0; }
.post__byline .post-meta { margin: 0; }
.post__cover { margin: 0 auto 3rem; }
.post__cover img { width: 100%; max-height: 36rem; object-fit: cover; border-radius: var(--radius); }
.post__body { padding-bottom: 1rem; }
.post__body > p:first-child::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 4.4em;
    line-height: .8;
    padding: .08em .1em 0 0;
    color: var(--primary);
}
.post__footer { padding-bottom: clamp(3rem, 6vw, 5rem); }
.post__footer > * + * { margin-top: 2.5rem; }
.post__footer .tags { padding-top: 2rem; border-top: 1px solid var(--line); }

.share { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.share__label { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.share__list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.share__list a, .share__list button {
    display: inline-block;
    font-family: var(--sans);
    font-size: .82rem;
    padding: .38rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    background: none;
    cursor: pointer;
    line-height: 1.7;
}
.share__list a:hover, .share__list button:hover { border-color: var(--primary); color: var(--primary); }

.author-box { display: flex; gap: 1.25rem; align-items: flex-start; background: var(--paper-deep); padding: 1.5rem; border-radius: var(--radius); }
.author-box__photo { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__name { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; margin: 0 0 .3rem; }
.author-box p:last-child { margin: 0; color: var(--muted); font-size: 1rem; }

.related .section__heading { margin-bottom: 1.75rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.post-nav__link { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--text); }
.post-nav__link span { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-nav__link:hover { color: var(--primary); }
.post-nav__link--older { text-align: right; grid-column: 2; }
.post-nav__link--newer + .post-nav__link--older { grid-column: auto; }

.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }

/* ---------- Newsletter ---------- */

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; align-items: center; }
.newsletter__heading { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .4rem; }
.newsletter__text p { margin: 0; color: var(--muted); }
.newsletter__form { display: flex; gap: .5rem; }
.newsletter__form input[type="email"] { flex: 1; min-width: 0; font: inherit; font-family: var(--sans); font-size: .95rem; padding: .8rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--light); color: var(--text); }
.newsletter__form input[type="email"]:focus { outline: none; border-color: var(--primary); }
.newsletter-section--band { background: #3a2226; background: color-mix(in srgb, var(--primary) 30%, var(--dark)); color: var(--light); }
.newsletter-section--band .newsletter__heading { color: var(--light); }
.newsletter-section--band .newsletter__text p { color: color-mix(in srgb, var(--light) 75%, transparent); }
.newsletter-section--band .newsletter__form input[type="email"] { border-color: transparent; }
.newsletter-section--box .newsletter, .post__footer .newsletter { grid-template-columns: 1fr; background: var(--tint); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); gap: 1.25rem; }
.newsletter--page { grid-template-columns: 1fr; gap: 1.5rem; }
.newsletter--page .newsletter__heading { font-size: clamp(2rem, 4vw, 2.8rem); }
@media (max-width: 760px) {
    .newsletter { grid-template-columns: 1fr; }
    .newsletter__form { flex-direction: column; }
}

/* ---------- Books ---------- */

.book-cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: var(--shadow-book); background: var(--paper-deep); }
.book-cover--plain {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 18% 10% 12%;
    background: var(--dark);
    color: var(--light);
    outline: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
    outline-offset: -8px;
}
.book-cover__title { font-family: var(--font-heading); font-weight: 600; font-size: 1.4rem; line-height: 1.15; }
.book-cover__author { font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

.book-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 2.5rem 2rem; }
.book-card__cover { display: block; margin-bottom: 1.1rem; transition: transform .3s; }
.book-card__cover:hover { transform: translateY(-4px) rotate(-.6deg); }
.book-card__title { font-size: 1.15rem; margin-bottom: .2rem; }
.book-card__meta { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin: 0; }

.featured-book__inner { display: grid; grid-template-columns: minmax(12rem, 20rem) 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.featured-book__cover { display: block; transform: rotate(-2deg); transition: transform .4s; }
.featured-book__cover:hover { transform: rotate(0) translateY(-4px); }
.featured-book__title { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .3rem; }
.featured-book__meta { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: 1.15rem; color: var(--muted); }
.featured-book__summary { font-size: 1.1rem; max-width: 36rem; }
.featured-book__praise { margin: 1.5rem 0 0; padding-left: 1.25rem; border-left: 2px solid var(--accent); max-width: 34rem; }
.featured-book__praise p { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: 1.15rem; margin: 0 0 .4rem; }
.featured-book__praise footer { font-family: var(--sans); font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) {
    .featured-book__inner { grid-template-columns: 1fr; }
    .featured-book__cover { max-width: 13rem; }
}

.book-list { display: flex; flex-direction: column; }
.book-row { display: grid; grid-template-columns: 12rem 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); padding: 2.5rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.book-row:first-child { padding-top: 1rem; }
.book-row__title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .2rem; }
.book-row__subtitle { font-family: var(--font-heading); font-style: italic; font-weight: 500; color: var(--muted); font-size: 1.1rem; }
.book-row .buttons { margin-top: 1rem; }
@media (max-width: 600px) {
    .book-row { grid-template-columns: 7rem 1fr; gap: 1.25rem; }
    .book-row .buttons .btn--ghost { display: none; }
}

.book__inner { display: grid; grid-template-columns: minmax(12rem, 22rem) 1fr; gap: clamp(2rem, 7vw, 5.5rem); align-items: start; }
.book__title { margin-bottom: .2em; }
.book__subtitle { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--muted); }
.book__summary { font-size: 1.15rem; max-width: 36rem; }
.book__buy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.book__buy-label { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.book__buy .buttons { margin-top: .75rem; }
.book__details { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem 1.5rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.book__details dt { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.book__details dd { margin: .15rem 0 0; }
.book__more { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.book__more > :only-child { grid-column: 1 / -1; max-width: var(--text-width); }
.book__praise h2, .book__description h2 { font-size: 1.5rem; }
.book__praise .praise + .praise { margin-top: 2rem; }
@media (max-width: 760px) {
    .book__inner, .book__more { grid-template-columns: 1fr; }
    .book__cover { max-width: 15rem; }
}

/* ---------- Forms ---------- */

.form { margin-top: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-family: var(--sans); font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
    width: 100%;
    font: inherit;
    font-family: var(--sans);
    font-size: 1rem;
    padding: .75rem .9rem;
    border: 1px solid color-mix(in srgb, var(--text) 25%, transparent);
    border-radius: var(--radius);
    background: #fff;
    background: color-mix(in srgb, #fff 70%, var(--light));
    color: var(--text);
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-family: var(--sans); font-size: .85rem; margin: .35rem 0 0; }
.optional { font-weight: 400; color: var(--muted); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.subscribe-page { padding-top: clamp(3rem, 8vw, 6rem); }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: color-mix(in srgb, var(--light) 78%, transparent); padding: 4rem 0 0; font-size: .98rem; }
.site-footer a { color: var(--light); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__name { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 600; color: var(--light); margin: 0 0 .2rem; }
.site-footer__tagline { font-family: var(--font-heading); font-style: italic; font-weight: 500; margin-bottom: 1rem; }
.site-footer__text { max-width: 26rem; }
.site-footer__heading { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: .45rem; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.25rem; padding-bottom: 1.5rem; font-family: var(--sans); font-size: .82rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__credit a { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .announcement, .share, .newsletter, .post-nav, .related, .reading-progress { display: none !important; }
    body { background: #fff; }
}
