@font-face {
    font-family: "Eveleth";
    src: url("../fonts/eveleth.otf") format("opentype");
    font-display: swap;
}

@font-face {
    font-family: "Transport Heavy";
    src: url("../fonts/transport-heavy.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Bantayog";
    src: url("../fonts/bantayog-regular.otf") format("opentype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Phosph10";
    src: url("../fonts/phosph10.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Unitype United Kingdom";
    src: url("../fonts/unitype-unitedkingdom.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Bello Pro";
    src: url("../fonts/bello-pro.otf") format("opentype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Front Page Neue";
    src: url("../fonts/front-page-neue.otf") format("opentype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Gochi Hand";
    src: url("../fonts/gochi-hand-regular.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Lora";
    src: url("../fonts/lora-variable.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 400 700;
}

@font-face {
    font-family: "Lora";
    src: url("../fonts/lora-italic-variable.ttf") format("truetype");
    font-display: swap;
    font-style: italic;
    font-weight: 400 700;
}

:root {
    --ink: #171321;
    --paper: #fffaf3;
    --paper-deep: #f0e7df;
    --purple: #7755b8;
    --purple-deep: #2a1748;
    --coral: #fb806d;
    --gold: #f4c16e;
    --line: rgba(23, 19, 33, 0.16);
    --shadow: 0 1.2rem 3rem rgba(14, 8, 28, 0.28);
    --shell: min(74rem, calc(100% - 2.5rem));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    background: var(--ink);
    color: var(--ink);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    font-family: Lora, Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.65;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
    font-family: "Gochi Hand", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: 0.015em;
    text-transform: none;
}

h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
h3 { font-size: 1.45rem; }

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 1rem;
    transform: translateY(-200%);
    background: var(--paper);
    color: var(--ink);
}

.skip-link:focus { transform: translateY(0); }
main:focus { outline: none; }

:focus-visible {
    outline: 0.2rem solid var(--gold);
    outline-offset: 0.25rem;
}

.page-shell { width: var(--shell); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.site-header {
    position: relative;
    z-index: 20;
    min-height: 5.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.15rem max(1.25rem, calc((100% - 74rem) / 2));
    background: var(--ink);
    color: white;
}

.nameplate { flex: 0 1 18rem; }
.nameplate img { width: min(18rem, 55vw); height: auto; }
.plain-nameplate { display: none; }

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1.6rem);
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--coral); }

.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 99rem;
    background: transparent;
    color: white;
    padding: 0.6rem 0.9rem;
    font: inherit;
}

.no-js .nav-toggle { display: none; }

.hero {
    position: relative;
    isolation: isolate;
    min-height: min(52rem, calc(100svh - 5.4rem));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 24rem);
    align-items: center;
    gap: clamp(2rem, 6vw, 7rem);
    padding: clamp(4rem, 8vw, 7rem) max(1.25rem, calc((100% - 68rem) / 2));
    overflow: hidden;
    background: #3e2869 url("../../../pages/01.home/tbfe-background.jpg") center / cover no-repeat;
    color: white;
}

.hero-video, .hero-wash {
    position: absolute;
    z-index: -3;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-toggle {
    position: absolute;
    z-index: 4;
    right: 1rem;
    bottom: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 99rem;
    display: grid;
    place-items: center;
    padding: 0;
    background: rgba(23, 19, 33, 0.48);
    color: white;
    opacity: 0.42;
    transition: opacity 160ms ease, background 160ms ease;
}

.hero-video-toggle svg { width: 1rem; height: 1rem; fill: currentColor; }
.hero-video-toggle__play { display: none; }
.hero-video-toggle.is-paused .hero-video-toggle__pause { display: none; }
.hero-video-toggle.is-paused .hero-video-toggle__play { display: block; }

.hero-video-toggle:hover,
.hero-video-toggle:focus-visible {
    background: rgba(23, 19, 33, 0.88);
    opacity: 1;
}

.hero-wash {
    z-index: -2;
    background: linear-gradient(90deg, rgba(28, 13, 51, 0.88) 0%, rgba(42, 23, 72, 0.58) 52%, rgba(42, 23, 72, 0.2) 100%);
}

.hero-filigree {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    opacity: 0.2;
}

.hero-copy { max-width: 46rem; text-align: center; }
.hero-series-emblem { width: clamp(5rem, 10vw, 7.5rem); margin: 0 auto 0.9rem; }
.hero-title-logo { width: min(42rem, 100%); margin: 0 auto 1.4rem; }

.hero-summary {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.5;
}

.hero-summary { max-width: 43rem; margin-inline: auto; }
.hero-summary strong, .hero-summary span { display: block; }
.hero-summary strong { margin-bottom: 0.25rem; font-weight: 700; }

.book-tagline {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-style: italic;
    line-height: 1.35;
}

.hero-cover {
    display: block;
    width: min(22rem, 31vw);
    justify-self: end;
    transform: rotate(2deg);
    transition: transform 180ms ease;
}

.hero-cover:hover { transform: rotate(0) translateY(-0.45rem); }
.hero-cover img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; box-shadow: var(--shadow); }

.eyebrow {
    margin-bottom: 0.7rem;
    font-family: Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.intro h2,
.section-heading h2,
.page-heading > h1,
.about-hero h1,
.faq > h2,
.error-page h1 {
    font-family: "Gochi Hand", "Avenir Next", sans-serif;
    font-weight: 400;
    text-transform: none;
}

.book-title {
    font-family: "Unitype United Kingdom", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    text-transform: none;
}
.book-title--tubelines { font-family: "Transport Heavy", Impact, sans-serif; text-transform: uppercase; }
.book-title--hidden-lives { font-family: Eveleth, Impact, sans-serif; }
.book-title--counterweights { font-family: "Bello Pro", Georgia, serif; }
.book-title--twenty-eight { font-family: "Front Page Neue", Impact, sans-serif; text-transform: uppercase; }
.book-title--the-boy-from-elsewhere { font-family: Bantayog, "Avenir Next", sans-serif; }
.book-title--the-boy-from-elsewhere .book-title__elsewhere { font-family: Phosph10, Impact, sans-serif; }
.book-title-logo { width: min(38rem, 100%); margin-bottom: 1.5rem; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2rem; }

.button {
    display: inline-block;
    border: 2px solid currentColor;
    border-radius: 99rem;
    padding: 0.8rem 1.2rem;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-decoration: none;
}

.button-primary { border-color: var(--coral); background: var(--coral); color: var(--ink); }
.button-primary:hover { border-color: var(--gold); background: var(--gold); }
.button-quiet { color: white; }
.button-quiet:hover { background: white; color: var(--ink); }

.intro, .book-shelf, .home-links, .page-heading, .books-grid,
.event-list, .about-hero, .about-sections, .book-details, .book-events,
.error-page { padding-block: clamp(4rem, 9vw, 8rem); }

.intro, .book-shelf, .home-links { padding-block: clamp(3.5rem, 8vw, 7rem); }

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: start;
}

.intro h2 { max-width: 15ch; margin-bottom: 0; }
.intro-heading {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    padding-block: 0;
}
.intro-copy { position: relative; isolation: isolate; }
.intro-copy > :not(.intro-feather) { position: relative; z-index: 1; }
.intro-feather {
    position: absolute;
    z-index: 0;
    inset: -12% -4% -12% auto;
    width: 72%;
    height: 124%;
    object-fit: contain;
    opacity: 0.075;
    filter: grayscale(1) contrast(3) brightness(1.1);
    mix-blend-mode: multiply;
    transform: rotate(7deg);
    pointer-events: none;
}
.intro-socials {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: clamp(0.3rem, 0.9vw, 0.75rem);
    width: 100%;
    margin-top: clamp(3.25rem, 6vw, 4.75rem);
}
.intro-socials a {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 250, 243, 0.78);
    color: var(--social-colour, var(--purple-deep));
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.intro-socials a:hover {
    border-color: var(--social-colour, var(--purple));
    background: var(--social-colour, var(--purple));
    color: white;
}
.social-link--mastodon { --social-colour: #6364ff; }
.social-link--bluesky { --social-colour: #1185fe; }
.social-link--instagram { --social-colour: #e4405f; }
.social-link--tiktok { --social-colour: #111111; }
.social-link--facebook { --social-colour: #1877f2; }
.social-link--youtube { --social-colour: #ff0000; }
.social-link--threads { --social-colour: #111111; }
.social-link--imdb { --social-colour: #f5c518; }
.social-link--bandcamp { --social-colour: #629aa9; }
.intro-socials svg { width: 1.25rem; height: 1.25rem; fill: currentColor; stroke: none; }
.intro-socials svg rect,
.intro-socials svg circle:not(.social-icon-dot) { fill: none; stroke: currentColor; stroke-width: 1.8; }
.intro-socials .social-icon-dot { fill: currentColor; stroke: none; }
.intro-socials .social-wordmark { width: 1.8rem; height: 1rem; }
.intro-socials .social-wordmark rect { fill: currentColor; stroke: none; }
.intro-socials .social-wordmark text { fill: #111; font: 700 10px/1 Arial, sans-serif; text-anchor: middle; }
.intro-socials .social-link--imdb .social-wordmark rect { fill: #f5c518; stroke: var(--ink); stroke-width: 1; }
.prose { max-width: 48rem; }
.prose > * + * { margin-top: 1.25em; }
.prose p, .book-summary { font-size: 1.15rem; }
.lead p { font-size: clamp(1.2rem, 2vw, 1.55rem); }

.book-shelf {
    border-block: 1px solid var(--line);
    background: #eee6f3;
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.section-heading h2,
.section-heading .eyebrow { margin-bottom: 0; }

.text-link {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    text-underline-offset: 0.3em;
    text-decoration-thickness: 0.12em;
}
.text-link .link-icon {
    display: inline-block;
    margin-left: 0.35em;
    text-decoration: none;
}

.cover-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(8rem, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    margin-top: 3rem;
}
.books-footer { display: flex; justify-content: flex-end; margin-top: 2rem; }

.cover-card { text-decoration: none; font-family: Arial, sans-serif; font-weight: 800; }
.cover-wrap { position: relative; display: block; overflow: hidden; box-shadow: 0 0.55rem 1.4rem rgba(23, 19, 33, 0.18); transition: box-shadow 160ms ease; }
.cover-card img { width: 100%; height: auto; margin: 0; transition: filter 160ms ease; }
.cover-card:hover .cover-wrap,
.cover-card:focus-visible .cover-wrap { box-shadow: 0 0 0 0.3rem var(--sash-colour), 0 0.75rem 2rem rgba(23, 19, 33, 0.24); }
.cover-card:hover img,
.cover-card:focus-visible img { filter: brightness(1.08) saturate(0.72); }

.genre-sash {
    position: absolute;
    top: 1.45rem;
    left: -4.25rem;
    width: 13.5rem;
    min-height: 2rem;
    display: grid;
    place-items: center;
    padding: 0.35rem 1rem;
    transform: rotate(-45deg);
    background: var(--sash-colour);
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.home-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.home-links > .signal-card { display: flex; min-width: 0; flex-direction: column; }
.home-card-action { margin-top: auto; padding-top: 1.6rem; }

.signal-card { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper-deep); }
.signal-card h2 {
    font-family: "Unitype United Kingdom", "Avenir Next", sans-serif;
    font-size: clamp(1.6rem, 2.8vw, 2.45rem);
    font-weight: 400;
    text-transform: none;
}
.media-title > span { display: block; }
.newsletter-card { background: var(--purple-deep); color: white; }
.card-preview {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}
.card-preview p { margin: 0; }
.home-event-preview strong,
.home-event-preview span,
.home-event-preview time { display: block; }
.home-event-preview strong { margin-bottom: 0.35rem; }
.home-event-preview .event-category { margin-bottom: 0.25rem; }
.home-event-preview .event-category,
.home-event-preview time { color: var(--ink); }
.home-event-preview time { font-family: Arial, sans-serif; font-weight: 800; }
.card-thumbnail {
    width: 5.25rem;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 0.35rem;
    object-fit: cover;
}

.page-heading { max-width: 64rem; margin-inline: auto; text-align: center; }
.page-heading .prose { margin-inline: auto; }
.page-heading h1 { margin-bottom: 1.5rem; }

.inner-masthead {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.75rem, 6vw, 5rem);
    border-bottom: 1px solid var(--line);
    background: #e8deef;
}
.inner-masthead__content { text-align: center; }
.inner-masthead h1 { margin-bottom: 0.75rem; }
.inner-masthead .prose { margin-inline: auto; }
.inner-masthead .prose p {
    margin-bottom: 0;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.talk-masthead {
    background: #d9e5d5;
}

.talk-masthead h1 {
    font-size: clamp(2.75rem, 6.5vw, 5.75rem);
}

.talk-page {
    padding-block: clamp(3.5rem, 7vw, 6rem);
}

.talk-video {
    width: min(60rem, 100%);
    aspect-ratio: 16 / 9;
    margin: 0 auto clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--ink);
    box-shadow: 0 0.8rem 2rem rgba(23, 19, 33, 0.18);
}

.talk-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.talk-transcript {
    width: min(60rem, 100%);
    margin: -2.5rem auto 3rem;
    text-align: right;
}

.talk-cover {
    width: min(60rem, 100%);
    margin: 0 auto clamp(2.5rem, 6vw, 5rem);
    border: 1px solid var(--line);
    box-shadow: 0 0.8rem 2rem rgba(23, 19, 33, 0.16);
}

.talk-content {
    max-width: 52rem;
    margin-inline: auto;
}

.talk-content h2,
.talk-content h3,
.talk-content h4,
.talk-content h5 {
    margin-top: 1.6em;
}

.talk-content h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.talk-content h3 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
.talk-content h4,
.talk-content h5 {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.talk-content a {
    overflow-wrap: anywhere;
    text-underline-offset: 0.2em;
}

.talk-content li + li { margin-top: 0.65rem; }
.talk-content hr { margin-block: 2.5rem; border: 0; border-top: 1px solid var(--line); }

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    padding-top: clamp(3.5rem, 7vw, 6rem);
}

.book-card {
    display: flex;
    flex-direction: column;
    padding: clamp(0.75rem, 1.8vw, 1.25rem);
    border: 1px solid rgba(23, 19, 33, 0.1);
    background: #fffdf9;
    text-align: center;
}
.book-card .book-card-cover { width: 100%; height: auto; margin: 0; box-shadow: 0 0.75rem 2rem rgba(23, 19, 33, 0.2); }
.catalogue-genre {
    display: block;
    width: 100%;
    margin-top: 0.55rem;
    margin-bottom: 1.5rem;
    padding: 0.48rem 0.8rem;
    background: var(--sash-colour);
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}
.book-card h2 { margin-bottom: 0.8rem; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.book-card-subheading {
    overflow: hidden;
    margin-bottom: 0.55rem;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.book-card-summary {
    min-height: 4.95em;
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 1rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}
.book-card-button {
    width: 100%;
    align-self: stretch;
    margin-top: auto;
    border-color: var(--ink);
    background: transparent;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}
.book-card-button:hover,
.book-card-button:focus-visible {
    border-color: var(--ink);
    background: #e8deef;
}

.work-card__visual { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--paper-deep); }
.work-card__image { width: 100%; height: 100%; object-fit: cover; }
.work-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; padding: 2rem; color: var(--purple); font-family: "Unitype United Kingdom", "Avenir Next", sans-serif; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.1; text-align: center; }
.work-card__title-area { display: flex; width: 100%; aspect-ratio: 1600 / 430; flex: 0 0 auto; align-items: center; justify-content: center; margin-bottom: 0.8rem; }
.work-card h2 { width: 100%; overflow: hidden; margin: 0; font-family: "Unitype United Kingdom", "Avenir Next", sans-serif; font-size: clamp(1.45rem, 2.5vw, 2.1rem); font-weight: 400; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.work-card .book-card-subheading { margin-bottom: 0.9rem; font-size: 0.76rem; letter-spacing: 0.14em; line-height: 1.3; text-transform: uppercase; }
.work-card__title-logo { width: 100%; height: 100%; margin: 0 auto; object-fit: contain; }
.work-card .book-card-button { padding-block: 1rem; }

.cover-card .book-card-title-logo,
.book-card .book-card-title-logo {
    width: 100%;
    height: auto;
    margin: 0 auto 0.8rem;
    object-fit: contain;
    object-position: center;
    box-shadow: none;
}

.cover-card:hover .book-card-title-logo { transform: none; }

.book-page { --book-accent: var(--coral); --book-ink: var(--purple-deep); }
.book-hero { display: grid; grid-template-columns: minmax(14rem, 23rem) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; padding-block: clamp(4rem, 8vw, 7rem); }
.book-cover img { width: 100%; box-shadow: var(--shadow); }
.book-genre-ribbon { width: min(38rem, 100%); margin: 0 0 1.5rem; padding: 0.55rem 1rem; background: var(--book-accent); color: var(--book-ink); font-family: Arial, sans-serif; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; line-height: 1.2; text-align: center; text-transform: uppercase; }
.book-copy h1 { color: var(--book-ink); margin-bottom: 1.5rem; }
.book-summary { max-width: 38rem; }

.book-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem); gap: clamp(3rem, 8vw, 8rem); background: var(--book-ink); color: white; width: 100%; padding-inline: max(1.25rem, calc((100% - 66rem) / 2)); }
.book-facts { min-width: 0; }
.book-publisher-button { width: 100%; margin-bottom: 1rem; border-color: #000; background: #fff; color: #000; text-align: center; }
.book-publisher-button:hover,
.book-publisher-button:focus-visible { border-color: #000; background: var(--book-accent); color: #000; }
.book-details dl { margin: 0; }
.book-details dl div { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.25); }
.book-details dt { font-family: Arial, sans-serif; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.book-details dd { margin: 0.35rem 0 0; }
.book-format-list { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0; padding: 0; list-style: none; }
.book-format-list li > span { margin-right: 0.35rem; color: var(--book-accent); font-weight: 800; }
.book-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-block: clamp(3rem, 7vw, 6rem); }
.book-review-card { display: flex; min-height: 17rem; flex-direction: column; margin: 0; padding: clamp(1.5rem, 3vw, 2.4rem); background: var(--paper-deep); text-align: center; }
.book-review-card blockquote { display: flex; flex: 1; align-items: center; justify-content: center; margin: 0; }
.book-review-card blockquote p { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); font-style: italic; line-height: 1.5; }
.book-review-card figcaption { margin-top: 1.5rem; font-family: Arial, sans-serif; font-size: 0.7rem; font-style: italic; font-weight: 600; letter-spacing: 0.03em; line-height: 1.4; }

.event-list { display: grid; gap: clamp(1rem, 2vw, 1.5rem); padding-top: clamp(3.5rem, 7vw, 6rem); }
.event-card { display: grid; grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr) minmax(9rem, 11rem); min-height: 12rem; overflow: hidden; border: 1px solid var(--line); background: #fffdf9; }
.event-card--no-actions { grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr); }
.event-card__media { width: 100%; aspect-ratio: 1; align-self: center; overflow: hidden; background: #e8deef; }
.event-card__image { width: 100%; height: 100%; object-fit: cover; }
.event-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; padding: 1rem; color: var(--purple); font-family: Arial, sans-serif; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-align: center; text-transform: uppercase; }
.event-card__content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 1.5rem clamp(1.5rem, 3vw, 2.5rem); }
.event-card time { color: var(--purple); font-family: Arial, sans-serif; font-weight: 800; }
.event-card h2 { width: 100%; overflow: hidden; margin: 0.4rem 0 0.3rem; font-family: "Unitype United Kingdom", "Avenir Next", sans-serif; font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 400; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.event-meta { display: flex; width: 100%; min-width: 0; align-items: baseline; gap: 0.6rem; margin: 0 0 0.55rem; line-height: 1.3; white-space: nowrap; }
.event-category { flex: 0 0 auto; color: var(--purple); font-family: Arial, sans-serif; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.event-location { min-width: 0; overflow: hidden; padding-left: 0.6rem; border-left: 1px solid var(--line); color: #726b78; font-family: Arial, sans-serif; font-size: 0.8rem; text-overflow: ellipsis; }
.event-description { width: 100%; overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.event-card h3 { margin: 0.6rem 0; }
.event-actions { display: grid; align-content: center; gap: 0.7rem; padding: 1.25rem 1.25rem 1.25rem 0; }
.event-button { width: 100%; border-color: var(--ink); background: transparent; color: var(--ink); text-align: center; }
.event-button:hover,
.event-button:focus-visible { border-color: var(--ink); background: #e8deef; color: var(--ink); }
.event-button--primary { border-color: var(--purple); background: var(--purple); color: white; transition: box-shadow 160ms ease, transform 160ms ease; }
.event-button--primary:hover,
.event-button--primary:focus-visible { border-color: var(--purple); background: var(--purple); color: white; box-shadow: 0.25rem 0.3rem 0 var(--gold); transform: translate(-0.15rem, -0.15rem); }
.appearances-community { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 13.5rem; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.appearances-community h2 { margin-bottom: 0.35rem; }
.appearances-community p:last-child { margin-bottom: 0; }
.appearances-community .button { white-space: nowrap; }
.newsletter-wide-logo { width: min(32rem, 100%); margin-bottom: 1.1rem; filter: brightness(0) invert(1); }

.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 25rem); gap: clamp(2rem, 7vw, 7rem); align-items: start; padding-bottom: clamp(3.5rem, 7vw, 6.5rem); }
.about-name { margin: 0; font-family: Eveleth, Impact, sans-serif; font-size: clamp(2.4rem, 4.4vw, 4.2rem); font-weight: 400; line-height: 0.9; text-transform: none; white-space: nowrap; }
.about-role { margin-top: 1.25rem; margin-bottom: 1.5rem; }
.about-portrait { width: 93%; max-height: 38rem; box-sizing: border-box; border: clamp(0.4rem, 1vw, 0.65rem) solid #fffdf9; justify-self: center; object-fit: cover; object-position: center 28%; box-shadow: 0.55rem 0.75rem 1.6rem rgba(23, 19, 33, 0.22); transform: rotate(1.15deg); }
.about-sections { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr); gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(3.5rem, 7vw, 6.5rem); border-top: 1px solid var(--line); }
.about-sections > .prose { padding-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.about-sections > .prose h2 { margin-bottom: 1.25rem; }
.about-sections h2,
.faq__inner > h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); }
.press-browser { display: grid; height: clamp(30rem, 48vw, 39rem); grid-template-rows: auto auto minmax(0, 1fr); align-self: start; overflow: hidden; margin-top: clamp(1.25rem, 2.5vw, 1.75rem); border: 1px solid rgba(23, 19, 33, 0.2); background: #fffdf9; box-shadow: 0.35rem 0.45rem 1.1rem rgba(23, 19, 33, 0.12); }
.press-browser__toolbar { display: flex; min-height: 4.75rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: var(--purple-deep); color: white; }
.press-browser__toolbar h2 { margin: 0; font-size: clamp(1.7rem, 2.5vw, 2.35rem); white-space: nowrap; }
.press-browser__toolbar > span { font-family: Arial, sans-serif; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.press-browser__columns { display: grid; grid-template-columns: minmax(0, 1fr) 5rem 5.5rem; gap: 0.75rem; padding: 0.5rem 1rem 0.5rem 4.5rem; border-bottom: 1px solid var(--line); background: var(--paper-deep); font-family: Arial, sans-serif; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.press-browser__columns span:nth-child(n + 2) { text-align: right; }
.press-resource-list { display: grid; min-height: 0; align-content: start; overflow-y: auto; scrollbar-color: var(--purple) var(--paper-deep); }
.press-resource { display: grid; min-width: 0; grid-template-columns: 2.75rem minmax(0, 1fr) 5rem 5.5rem; align-items: center; gap: 0.75rem; padding: 0.65rem 1rem; border-bottom: 1px solid rgba(23, 19, 33, 0.09); }
.press-resource:last-child { border-bottom: 0; }
.press-resource:hover { background: rgba(232, 222, 239, 0.45); }
.press-resource img,
.press-resource__file { width: 2.75rem; aspect-ratio: 1; border: 1px solid var(--line); background: #fffdf9; }
.press-resource img { object-fit: cover; }
.press-resource__file { position: relative; display: grid; place-items: center; color: var(--purple); font-family: Arial, sans-serif; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }
.press-resource__file--pdf { border-color: #a83232; background: #fffdf9; color: #b52f2f; }
.press-resource__file--pdf::before {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 0.7rem;
    height: 0.7rem;
    border-bottom: 1px solid #a83232;
    border-left: 1px solid #a83232;
    background: #f2caca;
    content: "";
}
.press-resource__file--doc,
.press-resource__file--docx { border-color: #24538f; background: #2b579a; color: white; font-size: 1.15rem; }
.press-resource__name { min-width: 0; overflow: hidden; font-family: Arial, sans-serif; font-size: 0.84rem; font-weight: 700; text-decoration-thickness: 0.1em; text-overflow: ellipsis; text-underline-offset: 0.25em; white-space: nowrap; }
.press-resource__type { color: #726b78; font-family: Arial, sans-serif; font-size: 0.68rem; text-align: right; white-space: nowrap; }
.press-resource__download { font-family: Arial, sans-serif; font-size: 0.72rem; font-weight: 800; text-align: right; text-underline-offset: 0.25em; white-space: nowrap; }
.press-resource a:hover,
.press-resource a:focus-visible { color: var(--purple); }
.faq { padding-block: clamp(4rem, 9vw, 8rem); border-block: 1px solid var(--line); background: #e8deef; }
.faq__inner > h2 { margin-bottom: 2rem; }
.faq-list { display: grid; width: 100%; gap: 0.75rem; }
.faq details { border: 1px solid var(--line); background: #fffdf9; }
.faq summary { position: relative; padding: 1.3rem 3rem 1.3rem 3.75rem; cursor: pointer; font-family: "Unitype United Kingdom", "Avenir Next", sans-serif; font-size: clamp(1.2rem, 2.5vw, 1.75rem); line-height: 1.2; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-marker { position: absolute; top: 50%; left: 1.5rem; transform: translateY(-50%); transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1); }
.faq details[open] .faq-marker { transform: translateY(-50%) rotate(90deg); }
.faq details .prose { max-width: none; padding: 0 1.5rem 1.55rem 3.75rem; }
.faq details .prose > :last-child { margin-bottom: 0; }
.faq details[open] .prose { animation: faq-reveal 420ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes faq-reveal {
    from { opacity: 0; transform: translateY(-0.15rem); }
    to { opacity: 1; transform: translateY(0); }
}
.contact-panel { padding-block: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.contact-panel h2 { font-family: "Gochi Hand", "Avenir Next", sans-serif; font-weight: 400; text-transform: none; }
.contact-copy { max-width: 58rem; }
.contact-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.contact-links .signal-card { min-width: 0; }
.contact-card { display: flex; min-height: 13rem; flex-direction: column; align-items: flex-start; }
.contact-card h3 { margin-bottom: 0.9rem; font-family: "Unitype United Kingdom", "Avenir Next", sans-serif; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 400; }
.contact-card p { font-size: 0.95rem; }
.contact-card .text-link,
.contact-card__placeholder { margin-top: auto; }
.contact-card__placeholder { font-family: Arial, sans-serif; font-size: 0.9rem; font-weight: 800; }
.about-community { padding-bottom: clamp(4rem, 9vw, 8rem); }
.about-community .appearances-community { min-height: 16rem; }

.site-footer {
    display: grid;
    grid-template-columns: minmax(14rem, 1.2fr) minmax(10rem, 0.7fr) minmax(19rem, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(3.5rem, 7vw, 5.5rem) max(1.25rem, calc((100% - 74rem) / 2)) 2rem;
    border-top: 0.45rem solid var(--coral);
    background: linear-gradient(135deg, #171321 0%, #281941 100%);
    color: white;
}

.footer-brand > img { width: 15rem; height: auto; }
.footer-brand > p { max-width: 25rem; margin: 1.25rem 0 0; color: rgba(255,255,255,0.75); }
.footer-links { display: grid; align-content: start; gap: 0.55rem; }
.footer-links a,
.footer-community-link { font-family: Arial, sans-serif; font-size: 0.85rem; font-weight: 700; text-underline-offset: 0.3em; }
.footer-links a:hover,
.footer-community-link:hover { color: var(--gold); }
.footer-heading { margin: 0 0 0.75rem; color: var(--coral); font-family: Arial, sans-serif; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-community { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.1rem; align-items: start; padding: 1.1rem; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); }
.footer-community > img { width: 5rem; aspect-ratio: 1; border-radius: 0.4rem; object-fit: cover; }
.footer-community p:not(.footer-heading) { margin: 0 0 0.8rem; font-size: 0.88rem; line-height: 1.5; }
.plain-type-control {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    font: 700 0.72rem/1.3 Arial, sans-serif;
}
.no-js .plain-type-control { display: none; }
.plain-type-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}
.plain-type-switch {
    position: relative;
    width: 2.5rem;
    height: 1.35rem;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 99rem;
    background: rgba(255, 255, 255, 0.12);
    transition: background 160ms ease, border-color 160ms ease;
}
.plain-type-switch > span {
    position: absolute;
    top: 0.16rem;
    left: 0.16rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: white;
    transition: transform 160ms ease;
}
.plain-type-toggle:checked + .plain-type-switch { border-color: var(--gold); background: var(--gold); }
.plain-type-toggle:checked + .plain-type-switch > span { transform: translateX(1.12rem); background: var(--ink); }
.plain-type-toggle:focus-visible + .plain-type-switch { outline: 0.2rem solid var(--gold); outline-offset: 0.25rem; }
.copyright { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; opacity: 0.7; }

.plain-type body,
.plain-type h1,
.plain-type h2,
.plain-type h3,
.plain-type .book-title,
.plain-type .event-card h2,
.plain-type .signal-card h2,
.plain-type .contact-card h3,
.plain-type .faq summary,
.plain-type .about-name,
.plain-type .work-card h2,
.plain-type .work-card__placeholder {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: normal;
}
.plain-type body { line-height: 1.75; }
.plain-type .hero-video,
.plain-type .hero-video-toggle,
.plain-type .hero-wash,
.plain-type .hero-filigree,
.plain-type .hero-series-emblem,
.plain-type .intro-feather,
.plain-type .newsletter-wide-logo,
.plain-type .hero-title-logo,
.plain-type .book-title-logo,
.plain-type .book-card-title-logo,
.plain-type .work-card__title-logo { display: none !important; }
.plain-type .nameplate img,
.plain-type .footer-brand > img { display: none; }
.plain-type .plain-nameplate {
    display: block;
    margin: 0;
    color: inherit;
    font: 700 1.45rem/1.2 Arial, Helvetica, sans-serif;
    text-decoration: none;
}
.plain-type .footer-brand > .plain-nameplate { font-size: 1.7rem; }
.plain-type .hero-cover { transform: none; }
.plain-type .hero-cover img { box-shadow: none; }
.plain-type .hero { background: var(--purple-deep); }
.plain-type .hero h1.visually-hidden,
.plain-type .newsletter-card h2.visually-hidden,
.plain-type .book-copy h1.visually-hidden,
.plain-type .book-card h2.visually-hidden,
.plain-type .work-card h2.visually-hidden {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    margin: 0 0 1rem !important;
    white-space: normal !important;
}
.plain-type .hero h1.visually-hidden { font-size: clamp(2.8rem, 7vw, 6rem); }
.plain-type .work-card__title-area { aspect-ratio: auto; min-height: 6rem; }
.plain-type .book-card h2.visually-hidden,
.plain-type .work-card h2.visually-hidden { font-size: clamp(1.45rem, 2.5vw, 2.1rem); }

@media (max-width: 54rem) {
    .nav-toggle { display: block; }
    .no-js .nav-toggle { display: none; }
    .site-nav { position: absolute; top: 100%; left: 0; right: 0; padding: 1.25rem; background: var(--ink); flex-direction: column; align-items: stretch; }
    .js .site-nav { display: none; }
    .js .site-nav.is-open,
    .no-js .site-nav { display: flex; }
    .hero { grid-template-columns: minmax(0, 1fr) minmax(10rem, 16rem); gap: 2rem; }
    .cover-row { overflow-x: auto; grid-template-columns: repeat(5, minmax(10rem, 13rem)); padding-bottom: 1rem; }
    .home-links { grid-template-columns: 1fr 1fr; }
    .newsletter-card { grid-column: 1 / -1; }
    .books-grid { grid-template-columns: 1fr 1fr; }
    .contact-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .press-browser__columns { display: none; }
    .press-resource { grid-template-columns: 2.75rem minmax(0, 1fr) auto; }
    .press-resource__type { display: none; }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .footer-community { grid-column: 1 / -1; }
}

@media (max-width: 40rem) {
    :root { --shell: min(100% - 2rem, 74rem); }
    .hero { min-height: 40rem; grid-template-columns: 1fr; align-content: end; padding-top: 5rem; }
    .hero-video { display: none; }
    .hero-wash { background: linear-gradient(0deg, rgba(28, 13, 51, 0.95) 0%, rgba(42, 23, 72, 0.55) 100%); }
    .hero-cover { display: none; }
    .intro-grid, .book-hero, .book-details, .book-reviews, .about-hero, .about-sections, .home-links, .books-grid, .contact-panel { grid-template-columns: 1fr; }
    .book-review-card { min-height: 14rem; }
    .newsletter-card { grid-column: auto; }
    .section-heading { align-items: start; flex-direction: column; }
    .intro-heading { min-height: 0; }
    .intro h2 { font-size: clamp(3rem, 13vw, 4.25rem); }
    .intro-feather { inset: -10% 0 -10% auto; width: min(13rem, 55%); height: 120%; }
    .intro-socials { flex-wrap: wrap; gap: 0.4rem; }
    .intro-socials a { width: 2.75rem; height: 2.75rem; }
    .intro-socials svg { width: 1.2rem; height: 1.2rem; }
    .cover-row { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
    .cover-row .cover-card:nth-child(n + 3) { display: none; }
    .event-card,
    .event-card--no-actions { grid-template-columns: 6.5rem minmax(0, 1fr); }
    .event-card__content { padding: 1rem; }
    .event-actions { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); padding: 0 1rem 1rem; }
    .appearances-community { grid-template-columns: 1fr; }
    .appearances-community .button { justify-self: start; }
    .contact-links { grid-template-columns: 1fr; }
    .press-browser { height: auto; margin-top: 1.5rem; }
    .press-resource-list { overflow-y: visible; }
    .site-footer { grid-template-columns: 1fr; }
    .footer-community,
    .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-video,
    .hero-video-toggle { display: none; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
