:root {
    --void: #070713;
    --deep: #101333;
    --ink: #15131f;
    --paper: #fffaf0;
    --mist: #f7f1df;
    --acid: #d9f25f;
    --solar: #f7b543;
    --rose: #ff4e7f;
    --cyan: #59d8ff;
    --violet: #8057ff;
    --green: #6f9f36;
    --line: rgba(255, 255, 255, 0.16);
    --dark-line: rgba(21, 19, 31, 0.12);
    --shadow-sm: 0 16px 34px rgba(8, 8, 26, 0.18);
    --shadow-md: 0 26px 70px rgba(8, 8, 26, 0.28);
    --shadow-lg: 0 44px 120px rgba(8, 8, 26, 0.42);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    background:
        radial-gradient(circle at 10% 12%, rgba(89, 216, 255, 0.15), transparent 24rem),
        radial-gradient(circle at 90% 18%, rgba(255, 78, 127, 0.14), transparent 24rem),
        linear-gradient(180deg, #f8f0d5 0%, #f4ead0 42%, #fffaf0 100%);
    color: var(--ink);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.72;
}

body::before {
    background-image:
        linear-gradient(rgba(16, 19, 51, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 19, 51, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -2;
}

.navbar {
    background: rgba(7, 7, 19, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(7, 7, 19, 0.24);
    backdrop-filter: blur(18px);
}

.navbar-brand {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 800;
    gap: 0.7rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--acid);
}

.brand-mark {
    align-items: center;
    background: conic-gradient(from 140deg, var(--acid), var(--cyan), var(--rose), var(--solar), var(--acid));
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    box-shadow: 0 0 26px rgba(89, 216, 255, 0.28);
    color: var(--void);
    display: inline-flex;
    height: 46px;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 46px;
}

.navbar-brand:hover .brand-mark {
    box-shadow: 0 0 36px rgba(217, 242, 95, 0.44);
    transform: rotate(8deg) scale(1.04);
}

.nav-actions {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    margin-left: auto;
    order: 3;
}

.navbar-collapse {
    order: 2;
}

.navbar-toggler {
    align-items: center;
    background: rgba(255, 250, 240, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(7, 7, 19, 0.24);
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    height: 46px;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 52px;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    background: var(--acid);
    box-shadow: 0 0 30px rgba(217, 242, 95, 0.34);
    outline: 0;
    transform: translateY(-1px);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(217, 242, 95, 0.24), 0 0 30px rgba(217, 242, 95, 0.28);
}

.menu-line {
    background: var(--deep);
    border-radius: 999px;
    display: block;
    height: 2px;
    transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease;
    width: 22px;
}

.navbar-toggler[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.navbar-toggler[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-link {
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 0.55rem 0.9rem !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--acid);
    color: var(--void);
    transform: translateY(-1px);
}

.cart-button {
    align-items: center;
    background: var(--paper);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    color: var(--void);
    display: inline-flex;
    height: 46px;
    justify-content: center;
    position: relative;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    width: 46px;
}

.cart-button:hover {
    background: var(--acid);
    box-shadow: 0 0 30px rgba(217, 242, 95, 0.35);
    transform: translateY(-2px);
}

.cart-badge {
    align-items: center;
    background: var(--rose);
    border: 2px solid var(--void);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    position: absolute;
    right: -7px;
    top: -6px;
    width: 22px;
}

.section-pad {
    padding: 112px 0;
}

.hero {
    background-color: var(--void);
    color: #fff;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    padding-top: 130px;
    position: relative;
}

/* Cosmic space plate for the hero, held at 70% so the imagery reads through. */
.hero::before {
    background-image: url("../images/hero-cosmic.jpg");
    background-position: center;
    background-size: cover;
    content: "";
    inset: 0;
    opacity: 0.7;
    pointer-events: none;
    position: absolute;
    z-index: -2;
}

.hero::after {
    background:
        linear-gradient(180deg, rgba(248, 240, 213, 0) 0%, rgba(248, 240, 213, 0.96) 100%) bottom / 100% 170px no-repeat,
        linear-gradient(110deg, rgba(7, 7, 19, 0.94) 0%, rgba(16, 19, 51, 0.82) 46%, rgba(7, 7, 19, 0.52) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.starfield {
    animation: driftStars 20s linear infinite;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(217, 242, 95, 0.72) 1px, transparent 1.4px),
        radial-gradient(circle, rgba(89, 216, 255, 0.72) 1px, transparent 1.4px);
    background-position: 0 0, 44px 72px, 120px 28px;
    background-size: 160px 160px, 220px 220px, 260px 260px;
    inset: -20%;
    opacity: 0.28;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.eyebrow {
    align-items: center;
    color: var(--rose);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 900;
    gap: 0.6rem;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.eyebrow::before {
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 2px;
    width: 34px;
}

.hero .eyebrow,
.club-section .eyebrow {
    color: var(--acid);
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 800;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(4.5rem, 11vw, 9.6rem);
    line-height: 0.82;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.6rem, 4.8vw, 4.3rem);
    line-height: 0.95;
    margin-bottom: 1.1rem;
    text-wrap: balance;
}

h2 {
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 0.96;
    text-wrap: balance;
}

h3 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1;
}

.hero-group-title {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.hero-signal {
    align-items: flex-start;
    background: rgba(255, 250, 240, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 3px solid var(--acid);
    border-radius: 18px;
    display: flex;
    gap: 0.85rem;
    margin: 1.4rem 0;
    max-width: 560px;
    padding: 1rem 1.15rem;
    backdrop-filter: blur(14px);
}

.hero-signal i {
    color: var(--acid);
    font-size: 1.35rem;
    line-height: 1.3;
}

.hero-signal span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hero .btn-lg {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
}

.lead {
    color: rgba(21, 19, 31, 0.72);
    font-size: 1.12rem;
    line-height: 1.82;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 680px;
}

.btn {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0;
    min-height: 48px;
    padding: 0.82rem 1.35rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--rose);
    border-color: var(--rose);
    box-shadow: 0 18px 38px rgba(255, 78, 127, 0.25);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #e13e6c;
    border-color: #e13e6c;
    box-shadow: 0 24px 50px rgba(255, 78, 127, 0.33);
}

.btn-outline-primary {
    border-color: rgba(16, 19, 51, 0.26);
    color: var(--deep);
}

.btn-outline-primary:hover {
    background: var(--deep);
    border-color: var(--deep);
    color: #fff;
}

.btn-membership {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(217, 242, 95, 0.65);
    box-shadow: 0 18px 38px rgba(7, 7, 19, 0.28);
    color: #fff;
    backdrop-filter: blur(14px);
}

.btn-membership:hover,
.btn-membership:focus {
    background: var(--acid);
    border-color: var(--acid);
    box-shadow: 0 24px 50px rgba(217, 242, 95, 0.32);
    color: var(--void);
}

.btn-contributors {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-size: 0.86rem;
    min-height: 42px;
    padding: 0.5rem 1.1rem;
    backdrop-filter: blur(14px);
}

.btn-contributors:hover,
.btn-contributors:focus {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    color: var(--void);
}

.hero-proof-row {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.58rem;
}

.hero-proof {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    font-size: 0.62rem;
    gap: 0.4em;
}

.hero-proof span {
    align-items: center;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    box-sizing: border-box;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 800;
    gap: 0.3em;
    height: 2.4em;
    line-height: 1.2;
    padding: 0.2em 0.5em;
    white-space: nowrap;
    backdrop-filter: blur(14px);
}

.hero-proof i {
    color: var(--solar);
}

.hero-showcase {
    min-height: 680px;
    perspective: 1200px;
    position: relative;
}

.book-cover-main {
    animation: floatCover 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    box-shadow: var(--shadow-lg), 0 0 48px rgba(89, 216, 255, 0.20);
    display: block;
    margin-left: auto;
    max-height: 650px;
    max-width: min(78%, 440px);
    object-fit: cover;
    transform: rotateY(-9deg) rotateZ(1deg);
    transform-origin: center;
    width: 100%;
}

.orbit-ring {
    border: 1px solid rgba(217, 242, 95, 0.32);
    border-radius: 50%;
    inset: 58px 8px auto auto;
    pointer-events: none;
    position: absolute;
    transform: rotateX(68deg) rotateZ(-18deg);
}

.orbit-one {
    animation: orbitSpin 18s linear infinite;
    height: 430px;
    width: 430px;
}

.orbit-two {
    animation: orbitSpin 26s linear infinite reverse;
    border-color: rgba(89, 216, 255, 0.28);
    height: 530px;
    width: 530px;
}

.section-heading {
    margin: 0 auto 3.4rem;
    max-width: 850px;
    text-align: center;
}

.section-heading .eyebrow {
    justify-content: center;
}

.section-heading p:last-child {
    color: rgba(21, 19, 31, 0.68);
    font-size: 1.05rem;
}

.works-section {
    position: relative;
}

.book-card {
    background: rgba(255, 250, 240, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 26px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    backdrop-filter: blur(14px);
}

.book-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-7px);
}

.book-image {
    align-items: center;
    background:
        radial-gradient(circle at 28% 16%, rgba(217, 242, 95, 0.34), transparent 14rem),
        linear-gradient(150deg, var(--void), var(--deep));
    display: flex;
    justify-content: center;
    min-height: 430px;
    padding: 2rem;
    position: relative;
}

.book-image span {
    background: var(--acid);
    border-radius: 999px;
    color: var(--void);
    font-size: 0.75rem;
    font-weight: 900;
    left: 1.2rem;
    padding: 0.42rem 0.72rem;
    position: absolute;
    text-transform: uppercase;
    top: 1.2rem;
    z-index: 2;
}

.book-image img {
    border-radius: 10px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.36);
    max-height: 360px;
    max-width: 100%;
    object-fit: cover;
    position: relative;
    transition: transform 0.35s ease;
    z-index: 1;
}

.book-card:hover .book-image img {
    transform: rotate(-1deg) scale(1.035);
}

.book-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem;
}

.book-kicker {
    color: var(--rose);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.book-subtitle {
    color: var(--green);
    font-size: 1rem;
    font-weight: 850;
    min-height: 58px;
}

.book-body h3 {
    min-height: 112px;
}

.book-body > p:not(.book-kicker):not(.book-subtitle) {
    min-height: 170px;
}

.details-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.4rem 0;
}

.details-grid span {
    background: rgba(16, 19, 51, 0.055);
    border: 1px solid rgba(16, 19, 51, 0.07);
    border-radius: 16px;
    color: rgba(21, 19, 31, 0.72);
    font-size: 0.88rem;
    padding: 0.8rem;
}

.details-grid strong {
    color: var(--deep);
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.contributors-section {
    background:
        linear-gradient(180deg, rgba(7, 7, 19, 0.94), rgba(16, 19, 51, 0.92)),
        url("../images/strange-news-from-another-world.jpg") center / cover;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.contributors-section .section-heading p:last-child {
    color: rgba(255, 255, 255, 0.76);
}

.contributors-section .eyebrow {
    color: var(--acid);
}

.contributor-card {
    background: rgba(255, 250, 240, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 26px;
    box-shadow: var(--shadow-md);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 1.6rem 1.5rem;
    position: relative;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.contributor-card::before {
    background: linear-gradient(90deg, var(--accent, var(--rose)), transparent);
    content: "";
    height: 4px;
    inset: 0 0 auto 0;
    position: absolute;
}

.contributor-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.contributor-index {
    color: var(--accent, var(--rose));
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.contributor-name {
    color: var(--deep);
    font-size: 1.5rem;
    margin: 0.45rem 0 0.75rem;
}

.contributor-bio {
    color: rgba(21, 19, 31, 0.74);
    font-size: 0.97rem;
    line-height: 1.68;
    margin-bottom: 1.4rem;
}

.contributor-link {
    align-items: center;
    align-self: flex-start;
    background: rgba(16, 19, 51, 0.06);
    border: 1px solid rgba(16, 19, 51, 0.14);
    border-radius: 999px;
    color: var(--deep);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 800;
    gap: 0.5rem;
    margin-top: auto;
    max-width: 100%;
    padding: 0.5rem 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contributor-link:hover,
.contributor-link:focus {
    background: var(--deep);
    color: #fff;
    transform: translateY(-2px);
}

.contributors-grid > div:nth-child(4n + 1) {
    --accent: var(--rose);
}

.contributors-grid > div:nth-child(4n + 2) {
    --accent: var(--cyan);
}

.contributors-grid > div:nth-child(4n + 3) {
    --accent: var(--solar);
}

.contributors-grid > div:nth-child(4n + 4) {
    --accent: var(--violet);
}

.contributors-grid > div:first-child .contributor-card {
    border-color: rgba(217, 242, 95, 0.85);
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(217, 242, 95, 0.25);
}

.club-section {
    background:
        linear-gradient(110deg, rgba(7, 7, 19, 0.96), rgba(16, 19, 51, 0.72)),
        url("../images/strangest-story-ever-told.jpg") center / cover;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.club-section::after {
    background: radial-gradient(circle at 76% 18%, rgba(217, 242, 95, 0.20), transparent 25rem);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.club-section .container {
    position: relative;
    z-index: 1;
}

.club-section p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.78);
}

.newsletter-form,
.contact-info,
.contact-form {
    background: rgba(255, 250, 240, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    backdrop-filter: blur(14px);
}

.newsletter-form {
    color: var(--ink);
}

.form-label {
    color: var(--ink);
    font-weight: 800;
}

.form-control {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(21, 19, 31, 0.13);
    border-radius: 16px;
    color: var(--ink);
    min-height: 52px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
    background: #fff;
    border-color: var(--cyan);
    box-shadow: 0 0 0 0.22rem rgba(89, 216, 255, 0.22);
}

.input-group .form-control {
    border-radius: 999px 0 0 999px;
}

.input-group .btn {
    border-radius: 0 999px 999px 0;
}

.contact-info,
.contact-form {
    height: 100%;
}

.contact-info h3 {
    margin-bottom: 1.2rem;
}

.contact-info a,
.contact-info span {
    align-items: center;
    color: var(--ink);
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.contact-info i {
    align-items: center;
    background: rgba(255, 78, 127, 0.12);
    border-radius: 14px;
    color: var(--rose);
    display: inline-flex;
    flex: 0 0 auto;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.contact-info img {
    border-radius: 18px;
    margin-top: 1rem;
    max-height: 370px;
    object-fit: cover;
    object-position: top;
    width: 100%;
}

.site-footer {
    background: var(--void);
    color: rgba(255, 255, 255, 0.74);
    padding: 1.5rem 0;
}

.offcanvas {
    border-radius: 24px 0 0 24px;
}

.offcanvas-header {
    border-bottom: 1px solid var(--dark-line);
}

.cart-empty {
    align-items: center;
    color: rgba(21, 19, 31, 0.64);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
    min-height: 220px;
    text-align: center;
}

.cart-empty i {
    background: rgba(89, 216, 255, 0.18);
    border-radius: 22px;
    color: var(--deep);
    font-size: 2.3rem;
    padding: 1rem;
}

.cart-line {
    align-items: center;
    border-bottom: 1px solid var(--dark-line);
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.cart-line img {
    border-radius: 10px;
    height: 88px;
    object-fit: cover;
    width: 62px;
}

.cart-line span {
    color: rgba(21, 19, 31, 0.64);
    display: block;
}

.cart-total {
    border-top: 1px solid var(--dark-line);
    padding-top: 1rem;
}

.toast {
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay {
    transition-delay: 0.12s;
}

@keyframes floatCover {
    0%,
    100% {
        transform: rotateY(-9deg) rotateZ(1deg) translateY(0);
    }

    50% {
        transform: rotateY(-9deg) rotateZ(1deg) translateY(-13px);
    }
}

@keyframes driftStars {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-80px, 60px, 0);
    }
}

@keyframes orbitSpin {
    0% {
        transform: rotateX(68deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(68deg) rotateZ(360deg);
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1199.98px) {
    .book-image {
        min-height: 390px;
    }
}

@media (min-width: 768px) {
    .hero-proof {
        font-size: 0.64rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-proof {
        font-size: 0.5rem;
    }
}

@media (max-width: 991.98px) {
    .navbar .container {
        align-items: center;
    }

    .navbar-collapse {
        background: rgba(7, 7, 19, 0.88);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 22px;
        box-shadow: 0 20px 48px rgba(7, 7, 19, 0.32);
        flex-basis: 100%;
        margin-top: 0.85rem;
        order: 4;
        padding: 0.65rem;
        backdrop-filter: blur(16px);
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .nav-link {
        align-items: center;
        display: flex;
        min-height: 44px;
        padding: 0.65rem 0.9rem !important;
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding-top: 126px;
    }

    .hero-showcase {
        min-height: 620px;
    }

    .book-cover-main {
        margin: 0 auto;
        max-height: 510px;
        max-width: min(78%, 360px);
    }

    .orbit-ring {
        right: 50%;
        transform: translateX(50%) rotateX(68deg) rotateZ(-18deg);
    }

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

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .section-pad {
        padding: 76px 0;
    }

    h1 {
        font-size: clamp(3.65rem, 18vw, 4.6rem);
    }

    h2 {
        font-size: 2.35rem;
    }

    .hero {
        padding-top: 118px;
    }

    .btn-lg,
    .btn {
        width: 100%;
    }

    .btn-contributors {
        width: auto;
    }

    .hero-proof-row {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .hero-proof {
        flex-wrap: nowrap;
        font-size: clamp(0.47rem, calc((100vw - 24px) * 0.028), 0.62rem);
        width: 100%;
    }

    .hero-proof span {
        width: auto;
    }

    .hero-showcase {
        min-height: 560px;
    }

    .book-cover-main {
        max-width: min(86%, 320px);
        transform: none;
    }

    .orbit-ring {
        display: none;
    }

    .book-card,
    .contributor-card,
    .newsletter-form,
    .contact-info,
    .contact-form {
        border-radius: 20px;
    }

    .book-body h3,
    .book-subtitle,
    .book-body > p:not(.book-kicker):not(.book-subtitle) {
        min-height: 0;
    }

    .book-image {
        min-height: 360px;
    }

    .book-image img {
        max-height: 310px;
    }

    .input-group {
        gap: 0.75rem;
    }

    .input-group .form-control,
    .input-group .btn {
        border-radius: 999px;
        width: 100%;
    }
}
