:root {
    --bg: #f4ebdf;
    --paper: #fff9f0;
    --paper-strong: #fffdf7;
    --paper-shadow: #e7d7c3;
    --ink: #211b15;
    --muted: #6d6255;
    --line: rgba(91, 70, 41, 0.16);
    --brand: #ab4a28;
    --brand-deep: #7c311a;
    --gold: #cda14a;
    --forest: #233d35;
    --wine: #6b2d28;
    --shadow: 0 28px 80px rgba(70, 48, 21, 0.14);
    --paper-glow: radial-gradient(circle at top, rgba(255, 247, 229, 0.95), rgba(255, 249, 240, 0.68) 52%, rgba(244, 235, 223, 0.18) 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 14% 0%, rgba(205, 161, 74, 0.16), transparent 20%),
        radial-gradient(circle at 82% 12%, rgba(171, 74, 40, 0.08), transparent 24%),
        linear-gradient(180deg, #f0e5d8 0%, #f6efe5 40%, #fcf8f2 100%);
    color: var(--ink);
    font-family: "Manrope", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 30%),
        radial-gradient(circle at 50% 0%, rgba(255, 248, 233, 0.46), transparent 34%);
    opacity: 0.8;
    z-index: 0;
}

img {
    display: block;
    max-width: 100%;
}

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

.page-shell {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 249, 241, 0.8);
    border-bottom: 1px solid rgba(91, 70, 41, 0.08);
    box-shadow: 0 10px 30px rgba(71, 51, 25, 0.06);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 248, 237, 0.95), rgba(247, 226, 191, 0.7) 45%, rgba(171, 74, 40, 0.08) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 14px 30px rgba(88, 58, 24, 0.14);
    border: 1px solid rgba(91, 70, 41, 0.1);
}

.brand img {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(83, 55, 20, 0.08);
}

.brand span,
.brand small {
    display: block;
}

.brand-copy {
    min-width: 0;
}

.brand span {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand small {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links,
.nav-actions,
.cta-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(91, 70, 41, 0.12);
    background: rgba(255, 252, 247, 0.82);
    border-radius: 999px;
    min-height: 44px;
    padding: 0 14px;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
}

.nav-toggle span {
    display: block;
    width: 14px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
}

.nav-toggle strong {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links a,
.link-button {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.primary-button,
.secondary-button,
.search-row button,
.plan-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button,
.search-row button,
.plan-link {
    background: linear-gradient(135deg, var(--brand) 0%, #c86a3c 100%);
    color: #fff7ef;
    box-shadow: 0 18px 34px rgba(166, 75, 42, 0.24);
}

.secondary-button {
    border: 1px solid var(--line);
    background: rgba(255, 252, 247, 0.78);
}

.primary-button:hover,
.secondary-button:hover,
.search-row button:hover,
.plan-link:hover {
    transform: translateY(-2px);
}

.hero {
    padding: 62px 0 44px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 34px;
    align-items: center;
}

.hero-copy h1,
.section-heading h2,
.panel-copy h2,
.spotlight-copy h2,
.final-cta h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    max-width: 10ch;
    font-size: clamp(3.5rem, 6vw, 6.4rem);
    text-wrap: balance;
}

.hero-copy p,
.section-heading p,
.panel-copy p,
.spotlight-copy p,
.mini-panel p,
.plan-card p,
.final-cta p {
    color: var(--muted);
    line-height: 1.75;
}

.hero-copy > p {
    max-width: 60ch;
    margin: 22px 0 0;
    font-size: 1.05rem;
}

.hero-note {
    margin-top: 26px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 252, 246, 0.72);
    border: 1px solid rgba(91, 70, 41, 0.08);
    box-shadow: 0 18px 40px rgba(73, 53, 28, 0.06);
}

.hero-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.hero-note p {
    margin: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--brand-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.search-card,
.spotlight-card,
.floating-panel,
.mini-panel,
.plan-card,
.final-cta,
.book-card {
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(255, 247, 237, 0.84)),
        var(--paper-glow);
    box-shadow: var(--shadow);
}

.search-card {
    margin-top: 30px;
    padding: 20px;
    border-radius: 24px;
}

.search-card label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.92rem;
    font-weight: 700;
}

.search-row {
    display: flex;
    gap: 12px;
}

.search-row input {
    flex: 1;
    min-height: 54px;
    border: 1px solid rgba(73, 58, 33, 0.1);
    border-radius: 999px;
    padding: 0 18px;
    background: var(--paper-strong);
    color: var(--ink);
    font: inherit;
}

.search-row input:focus {
    outline: 2px solid rgba(166, 75, 42, 0.2);
    outline-offset: 2px;
}

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

.hero-metrics div {
    padding: 16px;
    border-top: 2px solid rgba(166, 75, 42, 0.28);
    background: rgba(255, 255, 255, 0.48);
}

.hero-metrics strong,
.book-footer strong,
.plan-head strong {
    display: block;
    font-size: 1.1rem;
}

.hero-metrics span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.hero-stage {
    position: relative;
    padding: 22px 0 36px 24px;
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: 0 40px 24px 0;
    border-radius: 40px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(214, 170, 79, 0.1));
    transform: rotate(-4deg);
}

.spotlight-card {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
}

.spotlight-card::after {
    content: "";
    position: absolute;
    inset: auto 20px 20px 20px;
    height: 120px;
    border-radius: 28px;
    background: linear-gradient(180deg, transparent, rgba(24, 18, 12, 0.08));
    pointer-events: none;
}

.spotlight-card img {
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
}

.spotlight-copy {
    padding: 22px 24px 28px;
}

.spotlight-copy h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.floating-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(320px, 88%);
    padding: 18px 20px;
    border-radius: 26px;
    background: rgba(30, 27, 22, 0.9);
    color: #f8ecdc;
    box-shadow: 0 24px 50px rgba(30, 27, 22, 0.26);
}

.floating-panel span {
    display: block;
    margin-bottom: 12px;
    color: #f2c873;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.floating-panel ul,
.plan-card ul,
.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.floating-panel li,
.feature-list li,
.plan-card li {
    position: relative;
    padding-left: 18px;
    line-height: 1.75;
}

.floating-panel li::before,
.feature-list li::before,
.plan-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--gold);
}

.section {
    padding: 44px 0 72px;
}

.section-soft {
    background:
        radial-gradient(circle at top left, rgba(255, 249, 239, 0.82), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.72));
}

.section-dark {
    background:
        radial-gradient(circle at top right, rgba(214, 170, 79, 0.22), transparent 28%),
        linear-gradient(180deg, #211d18, #171411);
    color: #f9f0e2;
}

.section-heading,
.split-panel,
.final-cta {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.section-heading h2,
.panel-copy h2,
.final-cta h2 {
    font-size: clamp(2.3rem, 4vw, 4rem);
}

.section-heading p,
.section-heading-light p {
    max-width: 48ch;
    margin: 0;
}

.section-heading-light p,
.section-heading-light .eyebrow,
.section-dark .plan-card p,
.section-dark .plan-card li {
    color: rgba(249, 240, 226, 0.78);
}

.section-dark .final-cta {
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 251, 244, 0.97), rgba(247, 236, 220, 0.92)),
        var(--paper-glow);
    border: 1px solid rgba(171, 74, 40, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 24px 48px rgba(24, 18, 12, 0.16);
}

.section-dark .final-cta h2 {
    color: var(--ink);
    max-width: 14ch;
    line-height: 1.02;
    text-wrap: balance;
}

.section-dark .final-cta p {
    color: #5c5145;
    max-width: 56ch;
}

.section-dark .final-cta .eyebrow {
    color: var(--brand-deep);
}

.section-dark .final-cta .secondary-button {
    background: rgba(255, 249, 241, 0.96);
    color: var(--brand-deep);
    border-color: rgba(171, 74, 40, 0.18);
}

.section-dark .final-cta .secondary-button:hover {
    background: #fff7ed;
}

.final-cta-publish {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
    align-items: center;
    gap: 28px;
    padding: 28px 32px;
}

.publish-copy {
    display: grid;
    gap: 14px;
}

.publish-copy h2 {
    margin-bottom: 2px;
}

.publish-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.publish-pillars article {
    padding: 14px 14px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(171, 74, 40, 0.1);
    box-shadow: 0 12px 28px rgba(70, 48, 21, 0.06);
}

.publish-pillars span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--brand-deep);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.publish-pillars strong,
.publish-visual-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.publish-pillars small,
.publish-visual-card small {
    display: block;
    color: var(--muted);
    line-height: 1.55;
}

.publish-side {
    display: grid;
    gap: 14px;
    align-content: center;
}

.publish-visual {
    position: relative;
    min-height: 180px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 20% 20%, rgba(205, 161, 74, 0.24), transparent 28%),
        radial-gradient(circle at 80% 75%, rgba(171, 74, 40, 0.14), transparent 28%),
        linear-gradient(145deg, rgba(255, 250, 243, 0.92), rgba(243, 230, 211, 0.9));
    border: 1px solid rgba(171, 74, 40, 0.1);
    overflow: hidden;
}

.publish-visual::before,
.publish-visual::after {
    content: "";
    position: absolute;
    border-radius: 24px;
    border: 1px solid rgba(171, 74, 40, 0.12);
    background: rgba(255, 255, 255, 0.46);
    box-shadow: 0 14px 26px rgba(70, 48, 21, 0.08);
}

.publish-visual::before {
    inset: 26px 92px 54px 24px;
    transform: rotate(-6deg);
}

.publish-visual::after {
    inset: 48px 26px 28px 108px;
    transform: rotate(5deg);
}

.publish-visual-card {
    position: absolute;
    inset: auto 20px 20px 20px;
    z-index: 1;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(34, 28, 22, 0.92);
    color: #fff2e0;
    box-shadow: 0 18px 36px rgba(24, 18, 12, 0.18);
}

.publish-visual-card span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #e2b15f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.publish-visual-card small {
    color: rgba(255, 242, 224, 0.8);
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.kindle-shelf-section {
    padding-top: 20px;
}

.shelf-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 220px);
    gap: 18px;
    overflow-x: auto;
    padding: 8px 2px 10px;
}

.shelf-book {
    display: grid;
    gap: 12px;
}

.shelf-book-cover {
    display: block;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(248, 236, 216, 0.88));
    box-shadow: var(--shadow);
}

.shelf-book-cover img {
    width: 100%;
    aspect-ratio: 3 / 4.45;
    object-fit: cover;
    border-radius: 18px;
}

.shelf-book-copy span {
    color: var(--brand-deep);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shelf-book-copy h3 {
    margin: 8px 0 4px;
    font-size: 1rem;
}

.shelf-book-copy p {
    margin: 0 0 6px;
    color: var(--muted);
    line-height: 1.55;
}

.shelf-book-copy strong {
    display: block;
    margin-bottom: 6px;
}

.shelf-book-copy a {
    color: var(--brand);
    font-weight: 700;
}

.book-card {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.book-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 24%);
    pointer-events: none;
}

.book-cover {
    padding: 18px 18px 0;
}

.book-cover img {
    width: 100%;
    aspect-ratio: 3 / 4.5;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(54, 38, 21, 0.16);
}

.book-meta {
    padding: 18px;
}

.book-meta span,
.plan-head span {
    color: var(--brand-deep);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.book-meta h3,
.mini-panel h3 {
    margin: 10px 0 8px;
    font-size: 1.1rem;
}

.book-meta p {
    margin: 0;
    color: var(--muted);
}

.book-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.book-footer a {
    color: var(--brand);
    font-weight: 700;
}

.split-panel {
    align-items: stretch;
}

.panel-copy,
.panel-stack {
    flex: 1;
}

.panel-stack {
    display: grid;
    gap: 18px;
}

.mini-panel {
    padding: 24px;
    border-radius: 28px;
}

.mini-panel:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 244, 225, 0.95), rgba(255, 251, 245, 0.95));
}

.mini-panel:nth-child(3) {
    background: linear-gradient(135deg, rgba(237, 245, 241, 0.95), rgba(255, 251, 245, 0.95));
}

.plan-grid {
    margin-top: 34px;
}

.plan-card {
    padding: 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.plan-card.plan-pro {
    border-color: rgba(214, 170, 79, 0.34);
    background: linear-gradient(180deg, rgba(214, 170, 79, 0.12), rgba(255, 255, 255, 0.06));
}

.plan-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.plan-head strong {
    font-size: 1.8rem;
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
}

.plan-card ul {
    margin: 2px 0 0;
    flex: 1;
}

.final-cta {
    padding: 32px;
    border-radius: 34px;
}

.reading-showcase {
    position: relative;
}

.reading-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.reading-panel {
    padding: 26px;
    border-radius: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.reading-panel h3 {
    margin: 10px 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
}

.reading-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.reading-panel-paper {
    background: linear-gradient(180deg, rgba(255, 252, 245, 0.94), rgba(252, 241, 224, 0.88));
}

.reading-panel-light {
    background: linear-gradient(180deg, rgba(255, 248, 233, 0.92), rgba(255, 253, 248, 0.84));
}

.reading-panel-brand {
    background: linear-gradient(180deg, rgba(236, 244, 240, 0.9), rgba(255, 249, 241, 0.86));
}

.marketplace-closing {
    background:
        radial-gradient(circle at top left, rgba(205, 161, 74, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(252, 243, 232, 0.9));
}

.discovery-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 34px;
}

.catalog-filters {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr) 1.2fr;
    gap: 14px;
    margin: 20px 0 28px;
}

.catalog-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.discovery-chip {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 244, 0.82);
    box-shadow: var(--shadow);
}

.discovery-chip span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.discovery-chip strong {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
}

.catalog-shelf {
    margin-top: 28px;
}

.kindle-grid {
    margin-top: 24px;
}

.kindle-card .book-meta p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.kindle-product-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 28px;
    align-items: start;
}

.kindle-hero-book {
    position: sticky;
    top: 112px;
}

.kindle-buy-box {
    display: grid;
    gap: 14px;
}

.kindle-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.library-grid {
    margin-top: 24px;
}

.library-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

@media (max-width: 1080px) {
    .hero-grid,
    .book-grid,
    .plan-grid,
    .split-panel,
    .section-heading,
    .final-cta,
    .kindle-product-layout,
    .kindle-details-grid,
    .discovery-strip,
    .catalog-filters {
        grid-template-columns: 1fr 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-grid,
    .book-grid,
    .plan-grid {
        display: grid;
    }

    .book-grid,
    .plan-grid,
    .discovery-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-copy h1 {
        max-width: 12ch;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .search-row,
    .hero-metrics,
    .book-grid,
    .plan-grid,
    .cta-actions,
    .library-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .topbar {
        position: static;
    }

    .nav-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px 0 14px;
        min-height: auto;
    }

    .brand {
        align-items: center;
        gap: 12px;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .brand img {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .brand span {
        font-size: 0.92rem;
        line-height: 1.15;
    }

    .brand small {
        font-size: 0.66rem;
        letter-spacing: 0.06em;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        padding: 2px 0 6px;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        flex: 0 0 auto;
        padding: 10px 14px;
        border: 1px solid rgba(91, 70, 41, 0.12);
        border-radius: 999px;
        background: rgba(255, 252, 247, 0.7);
        white-space: nowrap;
        font-size: 0.88rem;
    }

    .nav-actions {
        width: 100%;
        display: none;
        justify-content: flex-start;
        margin-left: 0;
    }

    body.nav-open .nav-links,
    body.nav-open .nav-actions {
        display: flex;
    }

    .nav-actions form,
    .nav-actions .primary-button,
    .nav-actions .link-button {
        margin: 0;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-copy h1,
    .section-heading h2,
    .panel-copy h2,
    .spotlight-copy h2,
    .final-cta h2 {
        font-size: clamp(2.6rem, 11vw, 4rem);
    }

    .hero-stage {
        padding-left: 0;
    }

    .floating-panel {
        position: relative;
        width: 100%;
        margin-top: 18px;
    }

    .book-grid,
    .plan-grid,
    .discovery-strip,
    .kindle-details-grid,
    .catalog-filters {
        grid-template-columns: 1fr;
    }

    .plan-card .plan-link {
        width: 100%;
    }

    .final-cta {
        padding: 26px;
    }

    .kindle-product-layout {
        grid-template-columns: 1fr;
    }

    .kindle-hero-book {
        position: static;
    }

    .shelf-row {
        grid-auto-columns: minmax(160px, 200px);
    }
}

.flash-banner {
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(73, 58, 33, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
}

.form-shell {
    max-width: 760px;
}

.form-card {
    padding: 28px;
    border-radius: 28px;
}

.form-wide {
    max-width: 760px;
}

.text-input {
    width: 100%;
    min-height: 50px;
    margin: 8px 0 18px;
    padding: 12px 16px;
    border: 1px solid rgba(73, 58, 33, 0.12);
    border-radius: 16px;
    background: var(--paper-strong);
    color: var(--ink);
    font: inherit;
}

.text-area {
    min-height: 110px;
}

.text-area-lg {
    min-height: 180px;
}

.error-text {
    margin: 0 0 16px;
    color: #a63f2a;
    font-weight: 700;
}

.muted-copy {
    color: var(--muted);
}

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

.moderation-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 14px;
    margin-top: 24px;
}

.meta-list p {
    margin: 6px 0;
}

.price-stack {
    display: grid;
    gap: 4px;
}

.reader-shell {
    margin-top: 24px;
}

.reader-experience {
    display: grid;
    gap: 24px;
}

.reader-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
}

.reader-experience:fullscreen {
    padding: 24px;
    overflow: auto;
    background:
        radial-gradient(circle at top, rgba(255, 249, 238, 0.98), rgba(236, 222, 201, 0.82) 100%),
        linear-gradient(180deg, rgba(248, 235, 217, 0.86), rgba(251, 245, 237, 0.98));
}

.reader-experience:fullscreen .reader-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    transition: opacity 180ms ease, transform 180ms ease;
}

.reader-experience:fullscreen .reader-toolbar:not(:hover):not(:focus-within) {
    opacity: 0.08;
    transform: translateY(-4px);
}

.reader-experience:fullscreen .reader-frame {
    min-height: calc(100vh - 210px);
}

.reader-experience:fullscreen .reader-text-page {
    min-height: calc(100vh - 320px);
}

.reader-experience:fullscreen .reader-shell {
    margin-top: 0;
}

.reader-fullscreen-hint {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(73, 58, 33, 0.08);
}

.reader-focus-mode .reader-sidebar,
.reader-focus-mode .reader-preview-strip,
.reader-focus-mode .reader-annotation-panel {
    display: none !important;
}

.reader-focus-mode .reader-layout,
.reader-focus-mode .reader-layout-wide {
    grid-template-columns: 1fr !important;
}

.reader-focus-mode .reader-stage-shell,
.reader-focus-mode .premium-page-shell,
.reader-focus-mode .reader-frame,
.reader-focus-mode #text-reader-panel {
    max-width: 960px;
    margin: 0 auto;
}

.reader-toolbar {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.premium-reader-toolbar {
    background:
        radial-gradient(circle at top, rgba(255, 246, 225, 0.84), rgba(255, 251, 243, 0.92) 65%),
        linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(248, 238, 224, 0.82));
}

.reader-toolbar-copy {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.reader-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.reader-progress-bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(73, 58, 33, 0.12);
    overflow: hidden;
}

.reader-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d6aa4f, #a63f2a);
}

.reader-sidebar {
    align-self: start;
}

.premium-reader-sidebar {
    background:
        linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(249, 240, 225, 0.84));
}

.premium-page-shell {
    position: relative;
    padding: 18px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(255, 249, 238, 0.95), rgba(236, 222, 201, 0.42) 100%),
        linear-gradient(180deg, rgba(248, 235, 217, 0.4), rgba(251, 245, 237, 0.82));
    border: 1px solid rgba(91, 70, 41, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 28px 60px rgba(74, 54, 27, 0.14);
}

.reader-frame {
    width: 100%;
    min-height: 80vh;
    border: 1px solid rgba(73, 58, 33, 0.08);
    border-radius: 24px;
    background: #fff;
}

.premium-reader-frame {
    background:
        linear-gradient(180deg, #fffdf8, #fbf2e4);
    box-shadow: 0 18px 40px rgba(60, 43, 18, 0.1);
}

.media-panel {
    display: grid;
    gap: 18px;
}

.audio-player {
    width: 100%;
}

.chapter-jump {
    width: 100%;
    margin: 6px 0;
    padding: 12px 16px;
    border: 1px solid rgba(73, 58, 33, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.chapter-jump-active {
    border-color: rgba(166, 63, 42, 0.4);
    background: rgba(214, 170, 79, 0.16);
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

.editor-summary-grid,
.stats-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 24px;
}

.editor-section {
    margin-top: 16px;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.file-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.file-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(73, 58, 33, 0.08);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.stat-card span {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.7rem;
}

.log-line {
    padding: 12px 0;
    border-top: 1px solid rgba(73, 58, 33, 0.08);
}

.compact-code {
    margin-top: 10px;
    font-size: 0.82rem;
}

.code-box {
    overflow: auto;
    padding: 16px;
    border-radius: 16px;
    background: rgba(73, 58, 33, 0.08);
    white-space: pre-wrap;
    word-break: break-word;
}

.pagination-wrap {
    margin-top: 28px;
}

@media (max-width: 820px) {
    .moderation-filters {
        grid-template-columns: 1fr;
    }

    .reader-layout {
        grid-template-columns: 1fr;
    }

    .reader-toolbar-copy,
    .reader-toolbar-actions,
    .editor-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .editor-summary-grid,
    .stats-strip,
    .reading-panels {
        grid-template-columns: 1fr;
    }
}

.reader-layout-wide {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2fr) minmax(240px, 1fr);
}

.reader-stage-shell {
    display: grid;
    gap: 16px;
}

.reader-preview-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 220px);
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
}

.reader-preview-card {
    border: 1px solid rgba(91, 70, 41, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(244, 232, 212, 0.9));
    color: var(--ink);
    text-align: left;
    padding: 16px 18px;
    display: grid;
    gap: 6px;
    box-shadow: 0 14px 28px rgba(70, 48, 21, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.reader-preview-card span {
    color: var(--brand-deep);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.reader-preview-card strong {
    font-size: 1rem;
    line-height: 1.25;
}

.reader-preview-card small {
    color: var(--muted);
    line-height: 1.45;
}

.reader-preview-card:hover,
.reader-preview-card-active {
    transform: translateY(-2px);
    border-color: rgba(171, 74, 40, 0.34);
    box-shadow: 0 18px 36px rgba(70, 48, 21, 0.14);
}

.reader-annotation-panel {
    gap: 14px;
}

.reader-note-form {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.annotation-list {
    display: grid;
    gap: 12px;
}

.annotation-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 253, 247, 0.88);
    border: 1px solid rgba(73, 58, 33, 0.08);
    box-shadow: 0 18px 34px rgba(73, 58, 33, 0.08);
}

.annotation-card blockquote {
    margin: 10px 0;
    padding-left: 12px;
    border-left: 3px solid rgba(166, 63, 42, 0.34);
    color: var(--muted);
}

.annotation-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.annotation-delete {
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
}

.rating-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--muted);
}

.hero-stat {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1;
}

.review-card {
    min-height: 220px;
}

.stacked-form-actions {
    display: grid;
    gap: 10px;
}

.shelf-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 1100px) {
    .reader-layout-wide {
        grid-template-columns: 1fr;
    }
}

:root {
    --reader-shell-bg: #fffaf0;
    --reader-shell-ink: #352819;
}

.reader-control {
    min-width: 110px;
}

.reader-slider {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--muted);
}

.reader-page-input {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
}

.reader-page-input .text-input {
    margin: 0;
    min-width: 86px;
    max-width: 96px;
}

.reader-slider input {
    width: 92px;
}

.premium-page-shell,
.premium-reader-frame {
    background: var(--reader-shell-bg);
    color: var(--reader-shell-ink);
}

.page-turn-shell {
    position: relative;
    overflow: hidden;
}

.page-turn-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.56) 45%, rgba(222, 191, 141, 0.24) 60%, transparent 100%);
    transform: translateX(-120%);
}

.page-turn-animate::after {
    animation: readerPageTurn 520ms ease;
}

.reader-page-indicator {
    font-weight: 700;
}

.reader-text-edition {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 8px 12px;
}

.reader-title-sheet {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(91, 70, 41, 0.1);
}

.reader-title-sheet h3 {
    margin: 0 0 6px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.98;
}

.reader-text-page {
    min-height: 540px;
    animation: readerFadeIn 220ms ease;
}

.reader-text-page p {
    margin: 0 0 1.2em;
    text-align: justify;
    line-height: 1.9;
}

.reader-dropcap-copy p:first-child::first-letter {
    float: left;
    font-family: "Cormorant Garamond", serif;
    font-size: 4.2em;
    line-height: 0.82;
    padding-right: 10px;
    color: var(--brand-deep);
}

@keyframes readerPageTurn {
    0% {
        opacity: 0;
        transform: translateX(-120%);
    }
    25% {
        opacity: 0.88;
    }
    100% {
        opacity: 0;
        transform: translateX(120%);
    }
}

@keyframes readerFadeIn {
    from {
        opacity: 0.45;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.merchandising-select {
    min-height: 180px;
}

.merchandising-card {
    min-height: 420px;
}

label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
}

.nav-row {
    flex-wrap: wrap;
    padding: 12px 0;
}

.nav-links {
    flex: 1 1 420px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-actions {
    margin-left: auto;
}

.section-heading,
.final-cta,
.split-panel {
    align-items: start;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
}

.section-heading > div,
.panel-copy,
.final-cta > div:first-child {
    min-width: 0;
}

.hero-grid,
.split-panel,
.kindle-product-layout,
.kindle-details-grid,
.reading-panels {
    align-items: start;
}

.book-grid,
.plan-grid {
    align-items: stretch;
}

.book-card,
.plan-card,
.discovery-chip,
.mini-panel,
.reading-panel,
.shelf-book-cover,
.form-card {
    box-shadow: 0 18px 36px rgba(70, 48, 21, 0.1);
}

.book-card,
.plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-meta,
.plan-card,
.review-card,
.merchandising-card {
    height: 100%;
}

.book-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.book-meta p {
    line-height: 1.65;
}

.book-footer,
.library-actions,
.cta-actions {
    margin-top: auto;
}

.book-footer {
    gap: 12px;
    align-items: center;
}

.shelf-book {
    grid-template-rows: auto 1fr;
}

.shelf-book-copy {
    display: grid;
    gap: 6px;
    align-content: start;
}

.shelf-book-copy h3 {
    min-height: 2.6em;
    line-height: 1.3;
}

.shelf-book-copy p {
    min-height: 3.2em;
}

.catalog-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
}

.catalog-filters > :first-child {
    grid-column: 1 / -1;
}

.catalog-filter-actions {
    grid-column: span 2;
    justify-content: flex-start;
}

.form-shell,
.form-wide {
    max-width: 920px;
}

.form-card {
    display: grid;
    gap: 4px;
}

.editor-section,
.mini-panel.editor-section {
    display: grid;
    gap: 2px;
}

.text-input {
    margin: 0 0 14px;
}

.panel-stack {
    align-content: start;
}

.plan-card.plan-pro {
    transform: none;
    border-width: 2px;
}

.kindle-buy-box,
.meta-list,
.stacked-form-actions,
.library-actions,
.reader-toolbar-actions {
    align-items: start;
}

.stats-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reader-toolbar {
    gap: 18px;
}

.reader-toolbar-copy {
    align-items: start;
}

.reader-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
    gap: 12px;
}

.reader-control,
.reader-slider {
    min-height: 48px;
}

.reader-slider {
    justify-content: space-between;
}

.plan-head {
    align-items: start;
}

.plan-head strong {
    text-align: right;
}

@media (max-width: 1080px) {
    .section-heading {
        grid-template-columns: 1fr;
    }

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

    .catalog-filters > :first-child,
    .catalog-filter-actions {
        grid-column: 1 / -1;
    }

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

    .final-cta-publish,
    .publish-pillars {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-links {
        justify-content: flex-start;
    }

    .catalog-filters,
    .reader-toolbar-actions,
    .stats-strip {
        grid-template-columns: 1fr;
    }

    .reader-preview-strip {
        grid-auto-columns: minmax(160px, 180px);
    }

    .reader-text-page {
        min-height: auto;
    }

    .plan-head strong {
        text-align: left;
    }
}

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

.hero-promo-strip article {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(91, 70, 41, 0.08);
    background: rgba(255, 252, 246, 0.72);
    box-shadow: 0 12px 28px rgba(70, 48, 21, 0.06);
}

.hero-promo-strip strong,
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.hero-promo-strip span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.55;
}

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

.featured-book-card {
    min-height: 100%;
}

.book-tag-row,
.product-quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-pill {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(214, 170, 79, 0.14);
    color: var(--brand-deep);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.shelf-row-highlight .shelf-book-cover {
    background: linear-gradient(180deg, rgba(255, 248, 230, 0.98), rgba(247, 234, 210, 0.9));
}

.product-cover-meta {
    padding-top: 8px;
}

.product-spec-grid,
.product-insight-grid {
    display: grid;
    gap: 14px;
}

.product-spec-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 6px;
}

.product-spec-card,
.product-insight-card {
    position: relative;
    overflow: hidden;
}

.product-spec-card {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(91, 70, 41, 0.1);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.88), rgba(247, 235, 215, 0.82));
    box-shadow: 0 14px 30px rgba(70, 48, 21, 0.08);
}

.product-spec-card span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-spec-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.35;
}

.product-insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.product-insight-card {
    min-height: 100%;
}

.product-insight-card h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.7rem;
    line-height: 1;
}

.product-insight-card p {
    margin: 0;
}

.dashboard-hero {
    margin-top: 18px;
    background: linear-gradient(135deg, rgba(255, 251, 244, 0.95), rgba(246, 233, 214, 0.9));
}

.dashboard-stats {
    margin-top: 24px;
}

.dashboard-book-grid {
    margin-top: 24px;
}

.notification-card {
    min-height: 180px;
}

.auth-shell {
    align-items: stretch;
}

.auth-aside,
.auth-card {
    min-height: 100%;
}

.auth-aside {
    display: grid;
    align-content: start;
    gap: 10px;
}

.auth-card {
    max-width: 520px;
    margin-left: auto;
}

.admin-workbench {
    margin-top: 22px;
}

.admin-side-note {
    max-width: 360px;
}

.admin-card-grid,
.seller-grid {
    align-items: stretch;
}

.moderation-card,
.seller-product-card {
    min-height: 100%;
}

.moderation-card form + form,
.seller-product-card form + form {
    margin-top: 12px;
}

.plan-card .text-input,
.moderation-card .text-input {
    margin-bottom: 10px;
}

.form-card h2,
.form-card h3,
.admin-side-note h3,
.dashboard-hero h2,
.product-cover-meta h3 {
    font-family: "Cormorant Garamond", serif;
}

@media (max-width: 1080px) {
    .hero-promo-strip,
    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-insight-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        margin-left: 0;
        max-width: none;
    }
}

@media (max-width: 820px) {
    .hero-promo-strip,
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .product-quick-facts,
    .book-tag-row {
        gap: 6px;
    }
}

.hero-minimal {
    min-height: calc(88vh - 82px);
    padding-bottom: 10px;
}

.hero-grid-tight {
    align-items: center;
}

.spotlight-card-compact img {
    aspect-ratio: 5 / 5.6;
}

.section-heading-compact {
    margin-bottom: 18px;
}

.media-experience-shell {
    max-width: 1100px;
}

.video-player {
    width: 100%;
    border-radius: 24px;
    background: #120f0c;
    box-shadow: 0 18px 40px rgba(45, 29, 12, 0.18);
}

.premium-player-panel {
    padding: 18px;
}

.media-chapter-list {
    margin-top: 8px;
}

.product-layout-clean {
    gap: 36px;
}

.compact-meta-list p {
    margin: 0 0 8px;
}

.product-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
    gap: 12px;
    margin-top: 10px;
}

.product-actions-grid-secondary {
    margin-top: 0;
}

.product-actions-grid form {
    margin: 0;
}

.featured-book-card .book-cover,
.featured-book-card .book-meta {
    position: relative;
    z-index: 1;
}

@media (max-width: 820px) {
    .product-actions-grid {
        grid-template-columns: 1fr;
    }
}

.hero-copy-standard {
    display: grid;
    align-content: start;
    gap: 14px;
    max-width: 620px;
}

.hero-price-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
}

.featured-spotlight-card .spotlight-copy {
    padding-top: 18px;
}

.hero-minimal + .section,
.hero-minimal + .kindle-shelf-section {
    padding-top: 10px;
}

.featured-spotlight-card {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: stretch;
    min-height: 460px;
}

.featured-spotlight-card img {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
}

.featured-spotlight-card .spotlight-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 28px 28px 30px;
}

.featured-spotlight-card .spotlight-copy h2 {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 0.98;
}

.featured-spotlight-card .expandable-copy {
    --copy-lines: 8;
}

@media (max-width: 1080px) {
    .featured-spotlight-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .featured-spotlight-card img {
        aspect-ratio: 5 / 4.8;
    }
}

.expandable-copy {
    position: relative;
    overflow: hidden;
    line-height: 1.7;
}

.expandable-copy.is-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: var(--copy-lines, 3);
    -webkit-box-orient: vertical;
}

.expandable-toggle {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.expandable-toggle:hover {
    color: var(--brand-deep);
}

.compact-meta-list {
    display: grid;
    gap: 4px;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    margin-left: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 1.25rem;
}

.setting-toggle {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(40, 28, 18, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.setting-toggle input {
    margin-top: 0.2rem;
}

.form-subheading {
    margin: 1.4rem 0 0.65rem;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(52, 40, 30, 0.7);
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.profile-tagline {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(52, 40, 30, 0.82);
}

.profile-meta-stack {
    display: grid;
    gap: 0.9rem;
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-pill-link {
    text-decoration: none;
}

.stack-list {
    display: grid;
    gap: 1rem;
}

.notification-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.notification-card.is-unread {
    border-color: rgba(197, 104, 49, 0.35);
    box-shadow: 0 14px 32px rgba(55, 36, 20, 0.08);
}

.notification-copy {
    display: grid;
    gap: 0.35rem;
}

.pagination-shell {
    margin-top: 1.5rem;
}

@media (max-width: 820px) {
    .settings-grid,
    .profile-hero,
    .notification-card {
        grid-template-columns: 1fr;
    }

    .notification-card {
        align-items: stretch;
    }
}
