
/* =================================
   MARGIN. — GLOBAL DESIGN
================================= */

:root {
    --paper: #F4F0E8;
    --ink: #252723;
    --terracotta: #C65B43;
    --sage: #83917A;
    --sand: #DED8CC;
    --ochre: #D8B978;
    --white: #FFFCF6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

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

button, a {
    -webkit-tap-highlight-color: transparent;
}


/* =================================
   NAVIGATION
================================= */

.site-header {
    height: 86px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--sand);
}

.logo {
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: -1.5px;
}

.logo span {
    color: var(--terracotta);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.main-nav a {
    font-size: 12px;
    color: #66645D;
    transition: color 0.25s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--terracotta);
}

.header-link {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.header-link span {
    color: var(--terracotta);
    margin-left: 5px;
}


/* =================================
   HERO
================================= */

.hero {
    min-height: 570px;
    padding: 65px 10% 50px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 65px;
}

.hero-content {
    max-width: 570px;
}

.eyebrow {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--sage);
}

.eyebrow span {
    color: #A29B8F;
    margin-left: 7px;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 5.3vw, 76px);
    font-weight: normal;
    line-height: 1.08;
    letter-spacing: -3px;
    margin-top: 28px;
}

.hero h1 em {
    color: var(--terracotta);
    font-weight: normal;
}

.hero-line {
    width: 55px;
    height: 2px;
    background: var(--terracotta);
    margin: 28px 0 20px;
}

.hero-description {
    max-width: 370px;
    color: #77746B;
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.button-primary,
.button-secondary {
    padding: 15px 19px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.8px;
    transition: 0.25s;
}

.button-primary {
    background: var(--terracotta);
    color: white;
}

.button-primary:hover {
    background: var(--ink);
    transform: translateY(-2px);
}

.button-secondary {
    border: 1px solid #BDB5A8;
    background: transparent;
}

.button-secondary:hover {
    background: var(--ink);
    color: white;
}

.hero-note {
    display: flex;
    gap: 25px;
    margin-top: 55px;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #969083;
}


/* =================================
   HERO ART — CSS ILLUSTRATION
================================= */

.hero-art {
    height: 410px;
    position: relative;
    overflow: hidden;
    background: #DCE1D3;
}

.art-label {
    position: absolute;
    top: 20px;
    left: 22px;
    z-index: 5;
    font-size: 9px;
    letter-spacing: 2px;
    color: #596650;
}

.art-window {
    position: absolute;
    top: 48px;
    right: 40px;
    width: 72%;
    height: 235px;
    overflow: hidden;
    border: 11px solid #F4F0E8;
    background: linear-gradient(
        180deg,
        #E8D9B8 0%,
        #A7BBA8 55%,
        #738B70 100%
    );
}

.window-sun {
    position: absolute;
    top: 35px;
    right: 45px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #D8B978;
}

.window-hill {
    position: absolute;
    bottom: -50px;
    width: 120%;
    height: 140px;
    border-radius: 50% 50% 0 0;
}

.hill-one {
    left: -25px;
    background: #84957A;
}

.hill-two {
    left: 100px;
    bottom: -70px;
    background: #617B67;
}

.window-frame {
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 100%;
    background: #F4F0E8;
}

.window-frame::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -110px;
    width: 225px;
    height: 8px;
    background: #F4F0E8;
}

.art-vase {
    position: absolute;
    bottom: 65px;
    right: 65px;
    width: 95px;
    height: 110px;
}

.vase-body {
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 65px;
    height: 75px;
    background: #C5A88C;
    border-radius: 18px 18px 25px 25px;
}

.vase-stem {
    position: absolute;
    bottom: 80px;
    width: 2px;
    height: 95px;
    background: #657B5F;
    transform-origin: bottom;
}

.stem-one {
    left: 40px;
    transform: rotate(-25deg);
}

.stem-two {
    left: 55px;
    transform: rotate(25deg);
}

.art-books {
    position: absolute;
    bottom: 32px;
    left: 35px;
    width: 190px;
    height: 75px;
}

.book {
    position: absolute;
    height: 19px;
    box-shadow: 0 3px 6px #00000015;
}

.book-one {
    width: 170px;
    bottom: 0;
    background: #C65B43;
}

.book-two {
    width: 185px;
    bottom: 20px;
    left: 5px;
    background: #E0C99C;
}

.book-three {
    width: 155px;
    bottom: 40px;
    left: 13px;
    background: #82917B;
}

.art-caption {
    position: absolute;
    bottom: 15px;
    right: 18px;
    font-size: 8px;
    letter-spacing: 1.5px;
    color: #596650;
}


/* =================================
   MOOD SECTION
================================= */

.mood-section {
    padding: 75px 10%;
    background: var(--white);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
}

.section-heading h2 {
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: normal;
    margin-top: 12px;
}

.text-link {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--terracotta);
    padding-bottom: 5px;
    border-bottom: 1px solid var(--terracotta);
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.mood-card {
    position: relative;
    min-height: 180px;
    padding: 25px 22px;
    border: 1px solid #E9E3D8;
    background: #FAF7F0;
    transition: 0.25s;
}

.mood-card:hover {
    background: #F0E9DD;
    transform: translateY(-5px);
}

.mood-icon {
    font-family: Georgia, serif;
    font-size: 29px;
    color: var(--sage);
}

.mood-card h3 {
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: normal;
    margin-top: 15px;
}

.mood-card p {
    margin-top: 8px;
    font-size: 11px;
    color: #858075;
    line-height: 1.5;
}

.mood-arrow {
    position: absolute;
    top: 22px;
    right: 20px;
    color: var(--terracotta);
}


/* =================================
   EDITORIAL SECTION
================================= */

.editorial-section {
    min-height: 390px;
    padding: 75px 12%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.editorial-copy {
    max-width: 540px;
}

.editorial-copy h2 {
    margin-top: 20px;
    font-family: Georgia, serif;
    font-size: 42px;
    line-height: 1.2;
    font-weight: normal;
}

.editorial-copy h2 em {
    color: var(--terracotta);
}

.editorial-copy > p:not(.eyebrow) {
    max-width: 390px;
    margin: 20px 0 25px;
    color: #77746B;
    font-family: Georgia, serif;
    font-size: 14px;
    line-height: 1.8;
}

.editorial-mark {
    width: 230px;
    height: 230px;
    flex-shrink: 0;
    border: 1px solid #BDB5A8;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotate(-8deg);
    color: var(--sage);
}

.mark-number {
    font-family: Georgia, serif;
    font-size: 22px;
}

.mark-word {
    font-family: Georgia, serif;
    font-size: 58px;
}

.mark-small {
    font-size: 8px;
    letter-spacing: 2px;
}


/* =================================
   DAILY PICK
================================= */

.daily-section {
    padding: 70px 10%;
    background: #E7E1D5;
}

.daily-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 30px;
}

.daily-top h2 {
    font-family: Georgia, serif;
    font-size: 40px;
    font-weight: normal;
    margin-top: 12px;
    line-height: 1.1;
}

.daily-top h2 em {
    color: var(--terracotta);
}

.daily-banner {
    min-height: 230px;
    position: relative;
    padding: 35px 45px;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.daily-date {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--ochre);
}

.daily-message span {
    font-size: 9px;
    letter-spacing: 2px;
    color: #B9B4A8;
}

.daily-message h3 {
    font-family: Georgia, serif;
    font-size: 35px;
    font-weight: normal;
    line-height: 1.2;
    margin-top: 10px;
}

.daily-button {
    position: absolute;
    right: 40px;
    bottom: 38px;
    padding: 13px 18px;
    background: var(--terracotta);
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: bold;
}

.daily-button:hover {
    background: var(--sage);
}


/* =================================
   FOOTER
================================= */

.site-footer {
    min-height: 180px;
    padding: 40px 7%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.site-footer > p {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #888276;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    font-size: 10px;
    color: #77746B;
}

.footer-links a:hover {
    color: var(--terracotta);
}

.copyright {
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid var(--sand);
    font-size: 8px;
    letter-spacing: 1px;
    color: #989184;
}


/* =================================
   RESPONSIVE DESIGN
================================= */

@media (max-width: 900px) {

    .site-header {
        padding: 0 4%;
    }

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 10px;
    }

    .hero {
        padding: 50px 6%;
        gap: 30px;
    }

    .mood-section,
    .daily-section {
        padding-left: 6%;
        padding-right: 6%;
    }

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


@media (max-width: 600px) {

    .site-header {
        height: auto;
        padding: 20px 5%;
        flex-wrap: wrap;
        gap: 18px;
    }

    .logo {
        font-size: 25px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .main-nav a {
        white-space: nowrap;
        font-size: 11px;
    }

    .header-link {
        font-size: 10px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 55px 7% 35px;
        gap: 35px;
    }

    .hero h1 {
        font-size: 49px;
        letter-spacing: -2px;
    }

    .hero-art {
        height: 310px;
    }

    .hero-note {
        margin-top: 35px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .mood-section {
        padding: 55px 7%;
    }

    .mood-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mood-card {
        min-height: 155px;
        padding: 18px 14px;
    }

    .editorial-section {
        padding: 60px 8%;
        flex-direction: column;
        align-items: start;
    }

    .editorial-copy h2 {
        font-size: 34px;
    }

    .editorial-mark {
        width: 180px;
        height: 180px;
        align-self: center;
    }

    .mark-word {
        font-size: 45px;
    }

    .daily-section {
        padding: 55px 7%;
    }

    .daily-top {
        flex-direction: column;
        align-items: start;
        gap: 20px;
    }

    .daily-banner {
        min-height: 260px;
        padding: 25px;
    }

    .daily-message h3 {
        font-size: 29px;
    }

    .daily-button {
        position: static;
        align-self: start;
        margin-top: 20px;
    }

    .site-footer {
        padding: 35px 7%;
        flex-direction: column;
        align-items: start;
    }

}

/* =================================
   MARGIN. — DISCOVER PAGE
================================= */

.discover-page {
    min-height: 70vh;
}

/* Introduction */

.discover-hero {
    padding: 85px 10% 55px;
    border-bottom: 1px solid var(--sand);
}

.discover-hero h1 {
    margin-top: 22px;
    font-family: Georgia, serif;
    font-size: clamp(48px, 6vw, 76px);
    font-weight: normal;
    line-height: 1.08;
    letter-spacing: -2px;
}

.discover-hero h1 em {
    color: var(--terracotta);
}

.discover-hero > p:not(.eyebrow) {
    margin-top: 22px;
    max-width: 430px;
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.8;
    color: #77746B;
}

.discover-count {
    margin-top: 35px;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--sage);
}

.discover-count span {
    margin-right: 8px;
    color: var(--terracotta);
    font-family: Georgia, serif;
    font-size: 22px;
}


/* Search and sorting */

.discover-controls {
    padding: 35px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 60%;
    max-width: 550px;
    padding: 12px 15px;
    border-bottom: 1px solid #BDB5A8;
}

.search-box span {
    font-family: Georgia, serif;
    font-size: 25px;
    color: var(--terracotta);
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: var(--ink);
}

.search-box input::placeholder {
    color: #999387;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-box label {
    font-size: 9px;
    letter-spacing: 1px;
    color: #8B867B;
}

.sort-box select {
    padding: 10px;
    border: 1px solid var(--sand);
    background: var(--white);
    color: var(--ink);
    font-size: 11px;
    outline: none;
}


/* Categories */

.discover-categories {
    padding: 15px 10% 35px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.category-btn {
    padding: 11px 18px;
    border: 1px solid #C9C1B4;
    background: transparent;
    color: #706D64;
    font-size: 10px;
    cursor: pointer;
    transition: 0.25s;
}

.category-btn:hover,
.category-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}


/* Collection */

.book-collection {
    padding: 45px 10% 90px;
    background: var(--white);
}

.collection-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
}

.collection-heading h2 {
    margin-top: 12px;
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: normal;
}

.collection-heading > span {
    padding-bottom: 5px;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--sage);
}


/* Book cards */

.book-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 35px 22px;
}

.book-card {
    min-width: 0;
}

.book-cover {
    height: 290px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #E6E0D5;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.4s;
}

/* Make the book cover itself an accessible, clickable control. */
.book-open {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.book-open:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: -5px;
}

.book-card:hover .book-cover img {
    transform: scale(1.04);
}

.save-book {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--terracotta);
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.save-book:hover {
    transform: scale(1.1);
}

.save-book.saved {
    background: var(--terracotta);
    color: white;
}

.cover-fallback {
    background: #DCE1D3;
}

.cover-fallback-title {
    display: none;
}

.cover-fallback .cover-fallback-title {
    display: flex;
    width: 70%;
    height: 75%;
    padding: 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 23px;
    line-height: 1.3;
    color: var(--ink);
    border: 1px solid #A8AD9C;
}

.book-info {
    padding-top: 15px;
}

.book-category {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--terracotta);
}

.book-info h3 {
    margin-top: 9px;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: normal;
    line-height: 1.3;
}

.book-author {
    margin-top: 7px;
    font-size: 11px;
    color: var(--sage);
}

.book-description {
    margin-top: 11px;
    min-height: 48px;
    font-family: Georgia, serif;
    font-size: 12px;
    line-height: 1.6;
    color: #77746B;
}

.book-year {
    display: block;
    margin-top: 13px;
    font-size: 8px;
    letter-spacing: 1px;
    color: #A39C8F;
}


/* Book details expand beneath the selected card. */
.book-details-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 0 0 5px;
    border: 0;
    border-bottom: 1px solid #C9C1B4;
    background: transparent;
    color: var(--ink);
    font-size: 9px;
    letter-spacing: 1.35px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.book-details-toggle span {
    color: var(--terracotta);
    font-size: 14px;
    line-height: 1;
}

.book-details-toggle:hover {
    color: var(--terracotta);
    border-color: var(--terracotta);
}

.book-detail-panel {
    margin-top: 18px;
    padding: 19px 17px 20px;
    border: 1px solid var(--sand);
    background: #F5F2EB;
}

.book-detail-panel[hidden] {
    display: none;
}

.book-detail-panel.is-visible {
    animation: bookDetailReveal 0.28s ease both;
}

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

.book-detail-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.book-detail-heading .eyebrow {
    margin: 0;
    color: var(--sage);
    font-size: 8px;
    letter-spacing: 1.5px;
}

.book-detail-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #D8D1C5;
    border-radius: 50%;
    background: transparent;
    color: #77746B;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.book-detail-close:hover {
    background: var(--ink);
    color: var(--white);
}

.book-detail-panel h4 {
    margin-top: 12px;
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: normal;
    line-height: 1.25;
}

.book-detail-description {
    margin-top: 10px;
    color: #77746B;
    font-family: Georgia, serif;
    font-size: 12px;
    line-height: 1.8;
}

.book-detail-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #DED8CC;
}

.book-detail-meta div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.book-detail-meta span {
    color: var(--sage);
    font-size: 8px;
    letter-spacing: 1.1px;
}

.book-detail-meta strong {
    color: var(--ink);
    font-size: 10px;
    font-weight: normal;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.no-results {
    padding: 50px 0;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 18px;
    color: #77746B;
}


/* Discover responsive */

@media (max-width: 1000px) {

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

    .discover-hero,
    .discover-controls,
    .discover-categories,
    .book-collection {
        padding-left: 6%;
        padding-right: 6%;
    }

}

@media (max-width: 650px) {

    .discover-hero {
        padding-top: 60px;
    }

    .discover-hero h1 {
        font-size: 48px;
    }

    .discover-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .sort-box {
        justify-content: space-between;
    }

    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 14px;
    }

    .book-cover {
        height: 220px;
    }

    .book-info h3 {
        font-size: 16px;
    }

    .book-description {
        font-size: 11px;
    }

    .collection-heading h2 {
        font-size: 27px;
    }

}
/* Reading statistics cards */
.shelf-stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    min-height: 160px;
    border-radius: 24px;
    box-sizing: border-box;
}

.shelf-stat-card span,
.shelf-stat-card strong {
    display: block;
}

/* =================================
   GLOBAL NAVIGATION TYPOGRAPHY
   Keep menu labels identical on every page.
================================= */
.site-header .main-nav a,
.daily-header .daily-nav a,
.quiz-header .quiz-nav a,
.shelf-header .shelf-nav a {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    font-variant: normal !important;
}

@media (max-width: 760px) {
    .site-header .main-nav a,
    .daily-header .daily-nav a,
    .quiz-header .quiz-nav a,
    .shelf-header .shelf-nav a {
        font-size: 12px !important;
    }
}


/* =====================================================
   MARGIN. — SHARED HEADER SYSTEM
   One consistent frosted-glass header across all pages.
===================================================== */
.site-header,
.daily-header,
.quiz-header,
.shelf-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    height: 86px !important;
    min-height: 86px !important;
    padding: 0 7% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 30px !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
    background: rgba(244, 240, 232, 0.78) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
    border-bottom: 1px solid rgba(41, 41, 35, 0.10) !important;
    box-shadow: 0 4px 20px rgba(41, 41, 35, 0.045) !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

/* Match the MARGIN. wordmark on every page. */
.site-header .logo,
.daily-header .daily-logo,
.quiz-header .quiz-logo,
.shelf-header .shelf-logo {
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    line-height: 1 !important;
    letter-spacing: -1.5px !important;
    white-space: nowrap !important;
    color: #292923 !important;
}

.site-header .logo span,
.daily-header .daily-logo span,
.quiz-header .quiz-logo span,
.shelf-header .shelf-logo span {
    color: #c65b43 !important;
}

/* Match menu position, spacing, and typography. */
.site-header .main-nav,
.daily-header .daily-nav,
.quiz-header .quiz-nav,
.shelf-header .shelf-nav {
    display: flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.site-header .main-nav a,
.daily-header .daily-nav a,
.quiz-header .quiz-nav a,
.shelf-header .shelf-nav a {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-variant: normal !important;
    color: #55554e !important;
    white-space: nowrap !important;
    transition: color 0.25s ease !important;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active,
.daily-header .daily-nav a:hover,
.daily-header .daily-nav a.active,
.quiz-header .quiz-nav a:hover,
.quiz-header .quiz-nav a.active,
.shelf-header .shelf-nav a:hover,
.shelf-header .shelf-nav a.active {
    color: #c65b43 !important;
}

/* Keep the small right-side header link consistent where present. */
.site-header .header-link,
.daily-header .daily-header-link,
.quiz-header .quiz-header-link {
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    color: #292923 !important;
}

.site-header .header-link:hover,
.daily-header .daily-header-link:hover,
.quiz-header .quiz-header-link:hover {
    color: #c65b43 !important;
}

@media (max-width: 900px) {
    .site-header,
    .daily-header,
    .quiz-header,
    .shelf-header {
        padding-left: 4% !important;
        padding-right: 4% !important;
        gap: 18px !important;
    }

    .site-header .main-nav,
    .daily-header .daily-nav,
    .quiz-header .quiz-nav,
    .shelf-header .shelf-nav {
        gap: 18px !important;
    }
}

@media (max-width: 760px) {
    .site-header,
    .daily-header,
    .quiz-header,
    .shelf-header {
        height: auto !important;
        min-height: 86px !important;
        padding: 16px 5% !important;
        flex-wrap: wrap !important;
        row-gap: 14px !important;
        column-gap: 16px !important;
    }

    .site-header .main-nav,
    .daily-header .daily-nav,
    .quiz-header .quiz-nav,
    .shelf-header .shelf-nav {
        order: 3 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        justify-content: flex-start !important;
        gap: 14px 20px !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
    }

    .site-header .main-nav a,
    .daily-header .daily-nav a,
    .quiz-header .quiz-nav a,
    .shelf-header .shelf-nav a {
        font-size: 12px !important;
    }

    .site-header .logo,
    .daily-header .daily-logo,
    .quiz-header .quiz-logo,
    .shelf-header .shelf-logo {
        font-size: 28px !important;
    }

    .site-header .header-link,
    .daily-header .daily-header-link,
    .quiz-header .quiz-header-link {
        margin-left: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .daily-header,
    .quiz-header,
    .shelf-header,
    .site-header .main-nav a,
    .daily-header .daily-nav a,
    .quiz-header .quiz-nav a,
    .shelf-header .shelf-nav a {
        transition: none !important;
    }
}
