@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Sora:wght@400;500;600;700&display=swap');

:root {
    --bg: #f7f1e6;
    --bg-deep: #efe1c3;
    --surface: rgba(255, 250, 241, 0.88);
    --surface-strong: #fffaf1;
    --surface-dark: #14342d;
    --text: #1d2a26;
    --muted: #5b6a64;
    --line: rgba(27, 55, 48, 0.12);
    --shadow: 0 24px 60px rgba(33, 45, 41, 0.14);
    --shadow-soft: 0 18px 40px rgba(33, 45, 41, 0.1);
    --accent: #ca5d3d;
    --accent-strong: #b44e30;
    --accent-soft: rgba(202, 93, 61, 0.14);
    --gold: #d7a94b;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Sora', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(215, 169, 75, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(202, 93, 61, 0.18), transparent 24%),
        linear-gradient(180deg, #fbf6ec 0%, var(--bg) 45%, #f2e6cf 100%);
    line-height: 1.7;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: auto;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(8px);
    opacity: 0.65;
    z-index: -1;
}

body::before {
    width: 280px;
    height: 280px;
    top: 120px;
    left: -80px;
    background: rgba(20, 52, 45, 0.09);
}

body::after {
    width: 320px;
    height: 320px;
    right: -120px;
    bottom: 100px;
    background: rgba(202, 93, 61, 0.09);
}

a {
    color: inherit;
}

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

.site-shell {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    margin-bottom: 28px;
    background: rgba(255, 250, 241, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--surface-dark), #285349);
    color: #fff6eb;
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.84rem;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.main-nav a {
    padding: 11px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.94rem;
    color: var(--muted);
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-current {
    color: var(--surface-strong);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 12px 24px rgba(180, 78, 48, 0.24);
    transform: translateY(-1px);
}

.hero,
.content-card,
.author-card,
.book-panel,
.info-panel,
.feature-panel {
    animation: rise-in 0.7s ease both;
}

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
    gap: 26px;
    padding: 42px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(20, 52, 45, 0.96), rgba(32, 80, 69, 0.92));
    color: #fff8ef;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    top: -120px;
    right: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 169, 75, 0.34), transparent 64%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #f6dca1;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.hero h2,
.section-title,
.content-card h2,
.content-card h3,
.author-card h2,
.book-panel h3,
.info-panel h3,
.feature-panel h3 {
    margin: 0;
    font-family: 'Fraunces', serif;
    line-height: 1.08;
}

.hero h1 {
    margin-top: 18px;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    max-width: 10ch;
}

.hero p {
    max-width: 62ch;
    margin: 18px 0 0;
    color: rgba(255, 248, 239, 0.82);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.button {
    background: linear-gradient(135deg, #f2c05f, #d59231);
    color: #1d2018;
    box-shadow: 0 16px 30px rgba(215, 169, 75, 0.28);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff8ef;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.button:hover,
.button-secondary:hover,
.button:focus-visible,
.button-secondary:focus-visible {
    transform: translateY(-2px);
}

.hero-card {
    align-self: end;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f6dca1;
}

.hero-card p {
    margin: 0;
    font-size: 0.98rem;
}

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

.hero-stat {
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-stat span {
    display: block;
    color: rgba(255, 248, 239, 0.7);
    font-size: 0.8rem;
}

.hero-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 1.1rem;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.78fr);
    gap: 24px;
    align-items: start;
}

.content-card,
.author-card,
.book-panel,
.info-panel,
.feature-panel {
    padding: 28px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.content-card {
    overflow: hidden;
}

.book-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: start;
}

.media-column {
    display: grid;
    gap: 16px;
}

.cover-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(20, 52, 45, 0.1), rgba(20, 52, 45, 0.02));
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.cover-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 12px;
}

.thumb-grid button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.thumb-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid transparent;
    box-shadow: 0 10px 24px rgba(20, 52, 45, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.thumb-grid button:hover img,
.thumb-grid button:focus-visible img,
.thumb-grid button.is-active img {
    transform: translateY(-2px);
    border-color: rgba(202, 93, 61, 0.55);
    box-shadow: 0 14px 30px rgba(202, 93, 61, 0.18);
}

.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 700;
}

.lede {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.02rem;
}

.story-copy p {
    margin: 0 0 16px;
}

.check-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
}

.section-stack {
    display: grid;
    gap: 24px;
}

.section-title {
    margin-bottom: 18px;
    font-size: 1.8rem;
}

.label {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(20, 52, 45, 0.06);
    color: var(--surface-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.author-card img {
    width: 140px;
    height: 140px;
    margin-bottom: 18px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 18px 36px rgba(20, 52, 45, 0.18);
}

.author-card p,
.info-panel p,
.feature-panel p,
.book-panel p {
    margin: 14px 0 0;
    color: var(--muted);
}

.mini-nav {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.mini-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(20, 52, 45, 0.05);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.mini-nav a:hover,
.mini-nav a:focus-visible {
    transform: translateX(3px);
    background: rgba(202, 93, 61, 0.1);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
}

.spotlight-grid div {
    min-width: 0;
    padding: 16px;
    border-radius: 18px;
    background: rgba(20, 52, 45, 0.05);
    overflow-wrap: anywhere;
    word-break: normal;
}

.spotlight-grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.28rem;
    line-height: 1.2;
    font-family: 'Fraunces', serif;
}

.feature-panel {
    overflow: hidden;
}

.feature-panel .label {
    display: block;
    width: 100%;
    text-wrap: balance;
}

.feature-panel .spotlight-grid {
    grid-template-columns: 1fr;
}

.feature-panel .spotlight-grid > div {
    width: 100%;
}

.book-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.book-links .button-secondary {
    color: var(--surface-dark);
    background: rgba(20, 52, 45, 0.06);
    border-color: transparent;
}

.book-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.book-list a {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-list a:hover,
.book-list a:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(20, 52, 45, 0.1);
}

.book-list img {
    width: 88px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
}

.book-list strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
}

.book-list span {
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-note {
    padding: 24px 0 8px;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .topbar,
    .hero,
    .page-grid,
    .book-layout {
        grid-template-columns: 1fr;
    }

    .topbar {
        position: static;
        flex-direction: column;
        align-items: stretch;
        border-radius: 30px;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .hero {
        padding: 30px;
    }

    .hero h1 {
        max-width: none;
    }

}

@media (max-width: 640px) {
    .site-shell {
        width: min(calc(100% - 20px), var(--max-width));
        padding-top: 14px;
    }

    .topbar {
        padding: 16px;
    }

    .hero,
    .content-card,
    .author-card,
    .book-panel,
    .info-panel,
    .feature-panel {
        padding: 22px;
        border-radius: 24px;
    }

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

    .book-list a {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .book-list img {
        width: 72px;
    }
}