:root {
    --cream: #faf6f0;
    --cream-dark: #f0e8dc;
    --sage: #5c7a6b;
    --sage-light: #e8f0eb;
    --sage-dark: #3d5248;
    --coral: #e07a5f;
    --coral-soft: #f4c4b8;
    --amazon: #ff9900;
    --amazon-dark: #e88b00;
    --text: #2d3430;
    --text-muted: #6b7c74;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(61, 82, 72, 0.08);
    --shadow-hover: 0 8px 32px rgba(61, 82, 72, 0.14);
    --radius: 16px;
    --radius-sm: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--sage-dark);
}

a {
    color: var(--sage);
    transition: color 0.2s ease;
}

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

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--cream-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.site-header__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand__logo {
    display: block;
    height: 4.5rem;
    width: auto;
    flex-shrink: 0;
}

.brand__name {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--sage-dark);
    line-height: 1.2;
}

.site-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--sage);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    background: var(--sage-light);
    color: var(--sage-dark);
}

.nav-link--active {
    background: var(--sage);
    color: var(--white);
}

.nav-link--active:hover {
    background: var(--sage-dark);
    color: var(--white);
}

main {
    flex: 1;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

.hero__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage);
    background: var(--sage-light);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin: 0 0 1rem;
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 46ch;
    margin: 0 auto;
}

.hero--compact {
    padding-bottom: 1.5rem;
}

.storefront {
    padding-bottom: 1rem;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

.category-nav__link {
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--white);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--cream-dark);
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-nav__link:hover {
    background: var(--sage-light);
    color: var(--sage-dark);
    border-color: var(--sage-light);
    transform: none;
}

.category-section {
    margin-bottom: 3.5rem;
    scroll-margin-top: 5rem;
}

.category-section__title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    padding-bottom: 0;
    border-bottom: none;
    letter-spacing: -0.01em;
}

.home-sections {
    padding-bottom: 3rem;
}

.home-section {
    margin-bottom: 3.5rem;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.section-link {
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--sage);
}

.section-link:hover {
    color: var(--coral);
}

.section-empty {
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

.post-grid {
    display: grid;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--cream-dark);
}

.post-card__title {
    margin: 0 0 0.75rem;
    font-size: 1.45rem;
}

.post-card__title a {
    text-decoration: none;
    color: inherit;
}

.post-card__title a:hover {
    color: var(--coral);
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.meta-dot {
    width: 4px;
    height: 4px;
    background: var(--coral-soft);
    border-radius: 50%;
}

.post-card__excerpt {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.post-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--sage);
}

.post-card__read-more:hover {
    color: var(--coral);
}

.product-grid {
    display: grid;
    gap: 1.5rem;
    padding-bottom: 3rem;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .product-grid--compact {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-grid--storefront {
    grid-template-columns: repeat(auto-fill, minmax(194px, 1fr));
    gap: 1.21rem;
    padding-bottom: 1.82rem;
}

@media (min-width: 768px) {
    .product-grid--storefront {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid--storefront {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Amazon pick cards */
.pick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .pick-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.pick-grid--compact {
    padding-bottom: 0;
}

.pick-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(61, 82, 72, 0.08);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.pick-card:hover {
    box-shadow: 0 12px 40px rgba(61, 82, 72, 0.12);
    transform: translateY(-3px);
    border-color: rgba(92, 122, 107, 0.2);
}

.pick-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.pick-card__visual {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(180deg, #fdfbf8 0%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(61, 82, 72, 0.06);
}

.pick-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pick-card:hover .pick-card__image {
    transform: scale(1.04);
}

.pick-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--sage);
    opacity: 0.35;
}

.pick-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.1rem 1.1rem;
    gap: 0.4rem;
}

.pick-card__title {
    margin: 0;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: 0.925rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.pick-card:hover .pick-card__title {
    color: var(--sage-dark);
}

.pick-card__note {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pick-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--sage);
    letter-spacing: 0.01em;
    transition: color 0.2s ease, gap 0.2s ease;
}

.pick-card:hover .pick-card__action {
    color: var(--coral);
    gap: 0.5rem;
}

.pick-card__icon {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pick-card:hover .pick-card__icon {
    opacity: 1;
    transform: translate(1px, -1px);
}

.product-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-card__link:hover .product-card__title {
    color: var(--coral);
}

.product-card__link:hover {
    color: inherit;
}

.product-card__note {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.product-card__cta {
    pointer-events: none;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.product-card__image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    background: var(--white);
    padding: 1rem;
}

.product-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--sage-light), var(--cream-dark));
}

.product-card__image--book {
    background: linear-gradient(135deg, var(--coral-soft), var(--sage-light));
}

.product-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.product-card__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sage);
    background: var(--sage-light);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    align-self: flex-start;
}

.product-card__title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.product-card__title a {
    text-decoration: none;
    color: inherit;
}

.product-card__title a:hover {
    color: var(--coral);
}

.product-card__description {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex: 1;
}

.product-card__description p {
    margin: 0 0 0.5rem;
}

.product-card__price {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--sage-dark);
    margin: 0.25rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    font-family: "Nunito", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-top: auto;
    align-self: flex-start;
}

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

.btn--amazon {
    background: var(--amazon);
    color: var(--sage-dark);
}

.btn--amazon:hover {
    background: var(--amazon-dark);
    color: var(--sage-dark);
}

.btn--primary {
    background: var(--sage);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--sage-dark);
    color: var(--white);
}

.btn--outline {
    background: transparent;
    color: var(--sage);
    border: 2px solid var(--sage-light);
}

.btn--outline:hover {
    background: var(--sage-light);
    color: var(--sage-dark);
}

.affiliate-disclosure {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin: -1.5rem 0 2rem;
    font-style: italic;
}

.publication-detail {
    display: grid;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 1rem 0 3rem;
}

@media (min-width: 640px) {
    .publication-detail {
        grid-template-columns: 240px 1fr;
        padding: 2.5rem;
        gap: 2.5rem;
    }
}

.publication-detail__cover img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.publication-detail__placeholder {
    height: 280px;
    border-radius: var(--radius-sm);
}

.publication-detail__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0.5rem 0;
}

.publication-detail__price {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--coral);
    margin: 0 0 1.25rem;
}

.publication-detail__description {
    margin-bottom: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.empty-state__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin: 0;
}

.article {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    margin: 2rem 0 1.5rem;
}

@media (min-width: 640px) {
    .article {
        padding: 3rem;
    }
}

.article__header {
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--cream-dark);
}

.article__title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    margin: 0 0 1rem;
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.author-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--sage-light);
    color: var(--sage-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
}

.article__body {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text);
}

.article__body p {
    margin: 0 0 1.25rem;
}

.article__body p:last-child {
    margin-bottom: 0;
}

.article__body h2,
.article__body h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.35rem;
}

.article__body h3 {
    font-size: 1.15rem;
}

.article__body ul,
.article__body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.article__body li {
    margin-bottom: 0.4rem;
}

.article__body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--coral-soft);
    background: var(--cream);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-style: italic;
}

.article__body a {
    color: var(--sage);
    font-weight: 600;
}

.article__body a:hover {
    color: var(--coral);
}

.article__body strong {
    color: var(--sage-dark);
}

.article__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--sage);
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.back-link:hover {
    color: var(--coral);
}

.site-footer {
    background: var(--sage-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 2rem 1.5rem;
    margin-top: auto;
}

.site-footer__inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

.site-footer__copyright {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.site-footer a {
    color: var(--coral-soft);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
}
