@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f5efe5;
    --bg-2: #fefaf3;
    --panel: rgba(255, 249, 239, 0.88);
    --panel-strong: #fff9ef;
    --text: #1f1a14;
    --muted: #645949;
    --line: rgba(95, 73, 45, 0.22);
    --accent: #bd4c2c;
    --accent-2: #1f6b5d;
    --accent-3: #c98b31;
    --shadow-lg: 0 28px 70px rgba(60, 39, 22, 0.17);
    --shadow-sm: 0 12px 28px rgba(60, 39, 22, 0.11);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --max: 1140px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Manrope", sans-serif;
    line-height: 1.55;
    background:
        radial-gradient(1200px 620px at 9% 4%, rgba(31, 107, 93, 0.16), transparent 58%),
        radial-gradient(980px 540px at 92% 9%, rgba(201, 139, 49, 0.17), transparent 56%),
        radial-gradient(760px 440px at 44% 100%, rgba(189, 76, 44, 0.11), transparent 64%),
        linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 48%, #f7efe0 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image: linear-gradient(transparent 96%, rgba(86, 61, 35, 0.07) 97%);
    background-size: 100% 4px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.is-hidden {
    display: none !important;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 26px 18px 76px;
    position: relative;
    z-index: 2;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 2px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brandLink,
.brandLink:hover {
    color: inherit;
}

.mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(189, 76, 44, 0.95), rgba(31, 107, 93, 0.9));
    box-shadow: 0 10px 24px rgba(75, 44, 28, 0.26);
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(160px 100px at 26% 14%, rgba(255, 255, 255, 0.28), transparent 58%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    width: 38px;
    height: 38px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 12px rgba(34, 18, 10, 0.24));
}

.brand h1 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.24px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand p {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.navlink {
    font-size: 12.5px;
    letter-spacing: 0.2px;
    color: var(--muted);
    font-weight: 700;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 252, 247, 0.5);
}

.navlink:hover {
    border-color: var(--line);
    background: rgba(255, 252, 247, 0.92);
    color: var(--text);
}

.card {
    background: linear-gradient(165deg, rgba(255, 252, 246, 0.9), rgba(255, 245, 232, 0.8));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.heroFrame {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 18px;
    padding: 22px;
    align-items: stretch;
}

.heroStory {
    display: grid;
    align-content: start;
    gap: 12px;
}

.eyebrow {
    margin: 0;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-2);
    padding: 7px 10px;
    border: 1px solid rgba(31, 107, 93, 0.22);
    border-radius: 999px;
    background: rgba(31, 107, 93, 0.08);
}

.heroStory h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.95px;
    text-wrap: balance;
}

.heroLead {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
    max-width: 64ch;
}

.metricRow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.metric {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.63);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: grid;
    gap: 2px;
}

.metricValue {
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text);
}

.metricLabel {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ctaRow {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08px;
}

.btn:hover {
    border-color: rgba(189, 76, 44, 0.34);
    background: rgba(255, 255, 255, 0.97);
    color: var(--text);
}

.btnPrimary {
    background: linear-gradient(135deg, rgba(189, 76, 44, 0.96), rgba(201, 139, 49, 0.95));
    border-color: rgba(146, 62, 40, 0.4);
    color: #fffdf8;
    box-shadow: 0 8px 24px rgba(146, 62, 40, 0.25);
}

.btnPrimary:hover {
    color: #1f1a14;
    filter: saturate(1.05) brightness(1.02);
}

.btnGoodreads {
    background: linear-gradient(135deg, rgba(85, 59, 8, 0.12), rgba(122, 90, 18, 0.1));
    border-color: rgba(85, 59, 8, 0.42);
    color: #4a3309;
    font-weight: 800;
}

.btnGoodreads:hover {
    background: linear-gradient(135deg, rgba(85, 59, 8, 0.2), rgba(122, 90, 18, 0.16));
    border-color: rgba(85, 59, 8, 0.55);
    color: #2f1f05;
}

.bookTabsWrap {
    display: grid;
    gap: 7px;
}

.bookTabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bookTab {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.73);
    color: var(--muted);
    cursor: pointer;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06px;
    transition: all 0.16s ease;
}

.bookTab:hover {
    color: var(--text);
    border-color: rgba(31, 107, 93, 0.34);
    background: rgba(255, 255, 255, 0.96);
}

.bookTab.isActive {
    color: #fffdf8;
    border-color: rgba(31, 107, 93, 0.44);
    background: linear-gradient(135deg, rgba(31, 107, 93, 0.96), rgba(20, 90, 78, 0.9));
}

.featuredPanel {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 12px;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 235, 0.88));
    display: grid;
    gap: 12px;
    align-content: start;
}

.featuredCoverLink {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    aspect-ratio: 2 / 3;
    width: min(100%, 280px);
    margin: 0 auto;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(78, 56, 35, 0.32);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 244, 228, 0.84));
}

.featuredCoverImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.24s ease;
}

.featuredCoverLink:hover .featuredCoverImg {
    transform: scale(1.03);
}

.featuredCoverFallback {
    display: grid;
    place-items: center;
    padding: 14px;
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
}

.quoteBlock {
    display: block;
}

.fallbackCopy {
    text-align: center;
}

.fallbackTitle {
    font-weight: 800;
    color: var(--text);
}

.fallbackLine {
    margin-top: 6px;
}

.fallbackHint {
    margin-top: 10px;
    font-size: 12px;
}

.featuredMeta {
    display: grid;
    gap: 8px;
}

.featuredMeta h3 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.46px;
}

.featuredDesc {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.featuredQuote {
    margin: 2px 0 0;
    border-left: 3px solid rgba(31, 107, 93, 0.35);
    padding-left: 12px;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    letter-spacing: -0.1px;
    color: var(--text);
}

.sectionTop {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 2px 0;
    flex-wrap: wrap;
}

.sectionTop h3,
.section h3,
.subscribeBand h3,
.sectionHead h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.65px;
}

.sectionTop p,
.section p,
.subscribeBand p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.shelfGrid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.shelfCard {
    overflow: hidden;
    border-radius: 20px;
    display: grid;
    grid-template-rows: auto 1fr;
}

.shelfCover {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 239, 217, 0.82));
    overflow: hidden;
}

.shelfCoverImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.26s ease;
}

.shelfCard:hover .shelfCoverImg {
    transform: scale(1.05);
}

.shelfFallback {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
    padding: 14px;
}

.shelfBody {
    padding: 14px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.shelfTitle {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.4px;
}

.shelfText {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.shelfActions {
    margin-top: 2px;
}

.chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.68);
    padding: 6px 9px;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.col4 {
    grid-column: span 4;
}

.col6 {
    grid-column: span 6;
}

.col8 {
    grid-column: span 8;
}

.col12 {
    grid-column: span 12;
}

.section {
    padding: 18px;
}

.sectionTopMargin {
    margin-top: 18px;
}

.sectionInnerMargin {
    margin-top: 14px;
}

.aboutHint {
    margin-top: 10px;
}

.infoList {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 7px;
    font-size: 14px;
}

.subscribeBand {
    margin-top: 18px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: end;
    border: 1px solid rgba(31, 107, 93, 0.28);
    background: linear-gradient(138deg, rgba(31, 107, 93, 0.14), rgba(255, 250, 241, 0.9));
    box-shadow: var(--shadow-lg);
}

.subscribeForm {
    display: grid;
    grid-template-columns: minmax(220px, 380px) auto;
    gap: 10px;
    width: 100%;
}

.subscribeInput {
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(31, 107, 93, 0.35);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
}

.subscribeInput:focus {
    outline: 3px solid rgba(31, 107, 93, 0.2);
    outline-offset: 2px;
}

.subscribeMsg {
    margin-top: 8px;
}

.subscribeTrust {
    margin-top: 7px;
}

.subscribeOk {
    color: #0f766e;
}

.subscribeErr {
    color: #b91c1c;
}

.subscribeForm .btn[disabled] {
    opacity: 0.7;
    pointer-events: none;
}

.subscribeOverlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(20, 12, 8, 0.32);
    backdrop-filter: blur(2px);
}

.subscribeOverlayBox {
    width: min(100%, 360px);
    border-radius: 16px;
    border: 1px solid rgba(31, 107, 93, 0.3);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(243, 255, 249, 0.96));
    box-shadow: 0 20px 40px rgba(18, 60, 51, 0.22);
    padding: 16px;
    display: grid;
    gap: 12px;
}

.subscribeOverlayText {
    margin: 0;
    font-size: 14px;
    color: #0f5132;
    font-weight: 700;
}

.subscribeOverlay.isError .subscribeOverlayBox {
    border-color: rgba(185, 28, 28, 0.32);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 241, 0.96));
    box-shadow: 0 20px 40px rgba(110, 29, 29, 0.2);
}

.subscribeOverlay.isError .subscribeOverlayText {
    color: #8f1d1d;
}

.cookieBanner {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 998;
    margin: 0 auto;
    width: min(560px, calc(100% - 28px));
    border-radius: 14px;
    border: 1px solid rgba(95, 73, 45, 0.28);
    background: rgba(255, 250, 241, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 32px rgba(35, 22, 12, 0.18);
    padding: 11px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cookieText {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
}

.cookieBtn {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 12px;
}

.socialGrid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.socialBtn {
    --sb1: rgba(189, 76, 44, 0.2);
    --sb2: rgba(31, 107, 93, 0.18);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.68);
    color: var(--text);
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.socialBtn:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 107, 93, 0.35);
    background: linear-gradient(135deg,
    color-mix(in srgb, var(--sb1, rgba(189, 76, 44, 0.2)) 24%, rgba(255, 255, 255, 0.92)),
    color-mix(in srgb, var(--sb2, rgba(31, 107, 93, 0.18)) 20%, rgba(255, 255, 255, 0.95))
    );
    color: var(--text);
}

.socialBtn[data-social="facebook"] {
    --sb1: #1877f2;
    --sb2: #0b5bd3;
}

.socialBtn[data-social="tiktok"] {
    --sb1: #25f4ee;
    --sb2: #fe2c55;
}

.socialBtn[data-social="instagram"] {
    --sb1: #f58529;
    --sb2: #833ab4;
}

.socialBtn[data-social="goodreads"] {
    --sb1: #553b08;
    --sb2: #7a5a12;
}

.socialBtn[data-social="youtube"] {
    --sb1: #ff0000;
    --sb2: #cc0000;
}

.socialIcon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.socialIcon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.book {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 18px;
    align-items: start;
    margin-top: 14px;
}

.cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    border: 1px dashed rgba(78, 56, 35, 0.32);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 241, 222, 0.82));
    display: grid;
    place-items: center;
    padding: 10px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.coverImg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.coverFallback {
    position: relative;
    z-index: 2;
}

.coverOverlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(20, 12, 8, 0.56);
    color: #fffdf8;
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
    padding: 12px;
}

.cover:hover .coverOverlay,
.cover:focus-within .coverOverlay {
    opacity: 1;
}

.coverOverlayTitle {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 800;
}

.coverOverlayHint {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.bookDivider {
    border: 0;
    height: 1px;
    margin: 20px 0;
    background: linear-gradient(90deg,
    transparent,
    rgba(95, 73, 45, 0.12),
    rgba(189, 76, 44, 0.32),
    rgba(95, 73, 45, 0.12),
    transparent
    );
}

.bookNotFoundTitle {
    margin-top: 0;
}

.ctaRowTop {
    margin-top: 0;
}

.bookLayout {
    grid-template-columns: minmax(240px, 360px) 1fr;
}

.bookTopSpacing {
    margin-top: 14px;
}

.bookCover {
    max-width: 360px;
}

.bookCoverImg {
    width: 100%;
    height: auto;
}

.bookCoverFallback {
    display: grid;
    place-items: center;
    height: 100%;
}

.bookTitle {
    margin: 0 0 6px;
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -0.6px;
}

.bookTagline {
    margin-top: 0;
}

.bookDescription {
    margin-top: 12px;
    color: var(--muted);
    font-size: 15px;
}

.bookTags {
    margin-top: 14px;
}

.bookReviews {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.reviewCard {
    padding: 14px;
    border-radius: 14px;
}

.reviewText {
    margin: 0;
    font-size: 15px;
    color: var(--text);
}

.reviewMeta {
    margin: 10px 0 0;
}

.contactActions {
    margin-top: 14px;
}

.sectionHead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.sectionHead h2 {
    margin: 0;
}

.miniTitle {
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--muted);
}

.miniText {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.tiny {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

footer {
    margin-top: 24px;
    color: var(--muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 6px 0;
}

.srOnly {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 1;
    transform: none;
    animation: riseIn 0.72s cubic-bezier(.18, .73, .24, 1);
}

.reveal:nth-of-type(2) {
    animation-delay: 0.06s;
}

.reveal:nth-of-type(3) {
    animation-delay: 0.12s;
}

.reveal:nth-of-type(4) {
    animation-delay: 0.18s;
}

.reveal:nth-of-type(5) {
    animation-delay: 0.24s;
}

.shelfCard {
    opacity: 1;
    transform: none;
    animation: riseIn 0.62s ease;
}

.shelfCard:nth-child(1) {
    animation-delay: 0.05s;
}

.shelfCard:nth-child(2) {
    animation-delay: 0.1s;
}

.shelfCard:nth-child(3) {
    animation-delay: 0.15s;
}

.shelfCard:nth-child(4) {
    animation-delay: 0.2s;
}

.shelfCard:nth-child(5) {
    animation-delay: 0.25s;
}

.shelfCard:nth-child(6) {
    animation-delay: 0.3s;
}

a:focus,
button:focus,
input:focus,
.btn:focus {
    outline: 3px solid rgba(189, 76, 44, 0.24);
    outline-offset: 3px;
}

@media (max-width: 1120px) {
    .heroFrame {
        grid-template-columns: 1fr;
    }

    .featuredPanel {
        grid-template-columns: minmax(0, 320px) 1fr;
        align-items: center;
    }

    .featuredCoverLink {
        width: min(100%, 260px);
    }

    .shelfGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .metricRow {
        grid-template-columns: 1fr;
    }

    .subscribeBand {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .socialGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .col8,
    .col6,
    .col4 {
        grid-column: span 12;
    }
}

@media (max-width: 760px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    nav {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding-bottom: 3px;
    }

    nav::-webkit-scrollbar {
        height: 6px;
    }

    nav::-webkit-scrollbar-thumb {
        background: rgba(95, 73, 45, 0.24);
        border-radius: 999px;
    }

    .navlink {
        flex: 0 0 auto;
    }

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

    .featuredCoverLink {
        width: min(100%, 240px);
        margin: 0 auto;
    }

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

    .cover {
        max-width: 280px;
    }
}

@media (max-width: 680px) {
    .wrap {
        padding: 22px 14px 68px;
    }

    .heroFrame {
        padding: 16px;
    }

    .heroStory h2 {
        font-size: clamp(30px, 8.2vw, 38px);
    }

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

    .bookTabs {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .subscribeForm .btn {
        width: 100%;
    }

    .ctaRow {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ctaRow .btn {
        width: 100%;
    }

    .socialGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cookieBanner {
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .shelfCard {
        opacity: 1 !important;
        transform: none !important;
    }
}
