/* ============================================
   SAGE & SPINE — Shared Design System
   ============================================ */

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

:root {
    --bg-deep: #0f0e0c;
    --bg-warm: #1a1814;
    --bg-card: #232019;
    --cream: #f2ebe0;
    --cream-soft: #d4cdc2;
    --gold: #c9a96e;
    --gold-light: #dfc89a;
    --gold-dim: #8a7a55;
    --text-muted: #8a8278;
    --danger: #a04040;
    --success: #5a8a5a;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-deep);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ---- NAV ---- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(15,14,12,0.95), rgba(15,14,12,0));
}
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}
.logo a { color: var(--gold); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
    transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 6rem;
    position: relative;
    background: radial-gradient(ellipse at 50% 30%, rgba(201,169,110,0.06) 0%, transparent 60%);
}
.hero-label {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 2.5rem;
    font-weight: 500;
}
.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 1.15;
    max-width: 800px;
    margin-bottom: 2rem;
    color: var(--cream);
}
.hero h1 em {
    font-style: italic;
    color: var(--gold);
}
.hero-sub {
    font-size: 1.1rem;
    color: var(--cream-soft);
    max-width: 520px;
    line-height: 1.7;
    font-weight: 300;
}
.scroll-hint {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-dim), transparent);
}

/* ---- DIVIDER ---- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 4rem 2rem;
}
.divider-line {
    width: 60px;
    height: 1px;
    background: var(--gold-dim);
}
.divider-diamond {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ---- CONCEPT ---- */
.concept {
    padding: 2rem 2rem 6rem;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}
.concept-label {
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 2rem;
}
.concept h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 2rem;
}
.concept p {
    color: var(--cream-soft);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
}

/* ---- PILLARS ---- */
.pillars {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.pillar {
    background: var(--bg-card);
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
}
.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--gold);
}
.pillar-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--gold-dim);
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.pillar h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--cream);
}
.pillar p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* ---- VOLUMES PREVIEW ---- */
.volumes {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.volumes-header {
    text-align: center;
    margin-bottom: 4rem;
}
.volumes-header .concept-label {
    margin-bottom: 1.5rem;
}
.volumes-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
}
.volume-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.volume-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    padding: 2rem 2.5rem;
    gap: 2rem;
    transition: background 0.3s;
    cursor: pointer;
}
.volume-item:hover {
    background: #2a2720;
}
.volume-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--gold-dim);
    white-space: nowrap;
    min-width: 80px;
}
.volume-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    flex: 1;
}
.volume-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    text-align: right;
    min-width: 140px;
}
.volume-tag {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    padding: 0.3rem 0.8rem;
    white-space: nowrap;
}

/* ---- EXPERIENCE ---- */
.experience {
    padding: 6rem 2rem;
    background: var(--bg-warm);
}
.experience-inner {
    max-width: 900px;
    margin: 0 auto;
}
.experience .concept-label {
    text-align: center;
    margin-bottom: 1.5rem;
}
.experience h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 3.5rem;
}
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}
.feature {
    padding-left: 1.5rem;
    border-left: 1px solid var(--gold-dim);
}
.feature h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--cream);
}
.feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* ---- CLOSING ---- */
.closing {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at 50% 70%, rgba(201,169,110,0.04) 0%, transparent 60%);
}
.closing h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.25;
    max-width: 650px;
    margin: 0 auto 2rem;
}
.closing h2 em {
    font-style: italic;
    color: var(--gold);
}
.closing p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- FOOTER ---- */
footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(201,169,110,0.1);
}
.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 0.5rem;
}
footer p {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}
footer .footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
footer .footer-links a {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    transition: color 0.3s;
}
footer .footer-links a:hover {
    color: var(--gold);
}

/* ============================================
   CATALOG PAGE
   ============================================ */

.page-hero {
    padding: 10rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 30%, rgba(201,169,110,0.06) 0%, transparent 60%);
}
.page-hero .hero-label {
    margin-bottom: 1.5rem;
}
.page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.page-hero .hero-sub {
    max-width: 560px;
    margin: 0 auto;
}

/* Book Cards */
.catalog-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.book-card {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background 0.3s;
}
.book-card:hover {
    background: #2a2720;
}
.book-card-tag {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    padding: 0.25rem 0.7rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}
.book-card-volume {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--gold-dim);
    margin-bottom: 0.75rem;
}
.book-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--cream);
}
.book-card .book-card-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 1.5rem;
}
.book-card .book-card-desc {
    font-size: 0.85rem;
    color: var(--cream-soft);
    line-height: 1.7;
    font-weight: 300;
    flex: 1;
    margin-bottom: 2rem;
}
.book-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.book-card-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--gold);
}
.btn-view {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream);
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--gold-dim);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
}
.btn-view:hover {
    background: var(--gold);
    color: var(--bg-deep);
    border-color: var(--gold);
}

/* ============================================
   BOOK DETAIL PAGE
   ============================================ */

.book-hero {
    padding: 10rem 2rem 5rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 30%, rgba(201,169,110,0.06) 0%, transparent 60%);
}
.book-hero .book-volume {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 1rem;
}
.book-hero .book-edition-tag {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    padding: 0.3rem 1rem;
    display: inline-block;
    margin-bottom: 2rem;
}
.book-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.book-hero .book-author {
    font-size: 1.1rem;
    color: var(--cream-soft);
    font-weight: 300;
    margin-bottom: 2rem;
}
.book-hero .book-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.book-hero .book-price-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Book Description */
.book-about {
    padding: 4rem 2rem 6rem;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.book-about h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    margin-bottom: 2rem;
}
.book-about p {
    font-size: 1rem;
    color: var(--cream-soft);
    line-height: 1.8;
    font-weight: 300;
}

/* Book Contents */
.book-contents {
    padding: 5rem 2rem;
    background: var(--bg-warm);
}
.book-contents-inner {
    max-width: 900px;
    margin: 0 auto;
}
.book-contents .concept-label {
    text-align: center;
    margin-bottom: 1.5rem;
}
.book-contents h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 3.5rem;
}
.contents-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.content-item {
    background: var(--bg-card);
    padding: 2rem 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.content-item-icon {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--gold-dim);
    min-width: 40px;
    text-align: center;
    line-height: 1;
    padding-top: 0.2rem;
}
.content-item-text h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--cream);
}
.content-item-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* Book Specs */
.book-specs {
    padding: 5rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}
.book-specs .concept-label {
    text-align: center;
    margin-bottom: 2.5rem;
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}
.spec-item {
    background: var(--bg-card);
    padding: 1.5rem 2rem;
}
.spec-item dt {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 0.4rem;
}
.spec-item dd {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--cream);
}

/* ============================================
   EMAIL CAPTURE / PRE-ORDER
   ============================================ */

.preorder-section {
    padding: 6rem 2rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 70%, rgba(201,169,110,0.04) 0%, transparent 60%);
}
.preorder-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    margin-bottom: 1rem;
}
.preorder-section h2 em {
    font-style: italic;
    color: var(--gold);
}
.preorder-section > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.email-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
}
.email-form input[type="email"] {
    flex: 1;
    padding: 0.9rem 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--gold-dim);
    border-right: none;
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s;
}
.email-form input[type="email"]::placeholder {
    color: var(--text-muted);
}
.email-form input[type="email"]:focus {
    border-color: var(--gold);
}
.email-form button {
    padding: 0.9rem 2rem;
    background: var(--gold);
    border: 1px solid var(--gold);
    color: var(--bg-deep);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.email-form button:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}
.email-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.form-message {
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 300;
    min-height: 1.2rem;
}
.form-message.success { color: var(--gold); }
.form-message.error { color: var(--danger); }
.preorder-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    letter-spacing: 0.1em;
}

/* ============================================
   BACK LINK
   ============================================ */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
    margin-bottom: 2rem;
}
.back-link:hover { color: var(--gold); }
.back-link-arrow {
    font-size: 1rem;
    line-height: 1;
}

/* ============================================
   BOOK NAV (prev/next book)
   ============================================ */

.book-nav {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.book-nav .concept-label {
    text-align: center;
    margin-bottom: 2rem;
}
.book-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}
.book-nav-item {
    background: var(--bg-card);
    padding: 2rem;
    transition: background 0.3s;
    display: block;
}
.book-nav-item:hover { background: #2a2720; }
.book-nav-item .nav-direction {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 0.5rem;
}
.book-nav-item .nav-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--cream);
}
.book-nav-item.next { text-align: right; }

/* ============================================
   CTA BUTTON (gold, used on landing)
   ============================================ */

.cta-btn {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 0.9rem 2.5rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}
.cta-btn:hover {
    background: var(--gold);
    color: var(--bg-deep);
}

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

@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { gap: 1.5rem; }
    .nav-links a { font-size: 0.65rem; letter-spacing: 0.15em; }
    .pillars { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .catalog-grid { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: 1fr; }
    .book-nav-grid { grid-template-columns: 1fr; }
    .volume-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1.5rem;
    }
    .volume-author { text-align: left; min-width: auto; }
    .volume-tag { align-self: flex-start; }
    .pillar { padding: 2.5rem 1.5rem; }
    .email-form {
        flex-direction: column;
    }
    .email-form input[type="email"] {
        border-right: 1px solid var(--gold-dim);
        border-bottom: none;
    }
    .content-item {
        flex-direction: column;
        gap: 0.75rem;
    }
}
