/* =========================================================================
   Tina Trumble - author site theme
   Warm, elegant, feminine. Rose-gold + cream + deep plum.
   ========================================================================= */

:root {
    --cream:      #FBF6F1;
    --cream-deep: #F4E9E1;
    --blush:      #F6E5DF;
    --rose:       #B76E79;
    --rose-deep:  #9C5662;
    --plum:       #43353B;
    --plum-soft:  #6E5A61;
    --gold:       #C9A56B;
    --line:       #E7D5CC;
    --white:      #FFFFFF;
    --shadow:     0 14px 40px -22px rgba(67, 53, 59, 0.45);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;

    --wrap: 1080px;
    --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--plum);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rose-deep); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--plum);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5em;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--plum);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: 2px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
    background: var(--rose);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(156, 86, 98, 0.8);
}
.btn-primary:hover { background: var(--rose-deep); transform: translateY(-2px); }
.btn-ghost {
    background: transparent;
    color: var(--rose-deep);
    border-color: var(--rose);
}
.btn-ghost:hover { background: var(--blush); }

/* ---- Header / nav ---- */
.site-header {
    background: rgba(251, 246, 241, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--plum);
    letter-spacing: 0.01em;
}
.brand-sub {
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--rose-deep);
    margin-top: 4px;
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
    text-decoration: none;
    color: var(--plum-soft);
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--rose-deep); }
.site-nav a.is-active { color: var(--plum); border-bottom-color: var(--gold); }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* ---- Hero ---- */
.hero {
    background:
        radial-gradient(1200px 400px at 80% -10%, var(--blush), transparent 60%),
        radial-gradient(900px 380px at 0% 0%, var(--cream-deep), transparent 55%);
    padding: 84px 0 64px;
}
.hero-inner { max-width: 760px; }
.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--rose-deep);
    margin: 0 0 18px;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin-bottom: 0.4em;
}
.hero .lede {
    font-size: 1.22rem;
    color: var(--plum-soft);
    font-style: italic;
    font-family: var(--font-display);
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Section scaffolding ---- */
.section { padding: 72px 0; }
.section-tint { background: var(--cream-deep); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head .kicker {
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rose-deep);
    display: block;
    margin-bottom: 14px;
}
.leaf-divider {
    text-align: center;
    color: var(--gold);
    font-size: 1.3rem;
    letter-spacing: 0.5em;
    margin: 0 0 8px;
}

/* ---- Bio ---- */
.bio-block { max-width: 720px; margin: 0 auto; }
.bio-block p { margin: 0 0 1.2em; }
.bio-block p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 3.4rem;
    line-height: 0.8;
    float: left;
    padding: 6px 12px 0 0;
    color: var(--rose);
}

/* ---- Book grid ---- */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 34px;
}
.book-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -24px rgba(67,53,59,0.5); }
.book-cover {
    aspect-ratio: 2 / 3;
    background: linear-gradient(150deg, var(--blush), var(--cream-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover .placeholder {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--rose-deep);
    font-style: italic;
}
.book-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.book-series {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.book-title { font-size: 1.35rem; margin-bottom: 10px; }
.book-blurb { color: var(--plum-soft); font-size: 0.98rem; margin: 0 0 18px; flex: 1; }
.book-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: auto; }

/* ---- Single book ---- */
.book-detail { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.book-detail .cover-col img,
.book-detail .cover-col .book-cover {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}
.book-detail .long-desc p { margin: 0 0 1.1em; }

/* ---- Updates ---- */
.update-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.update-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow);
}
.update-card .date {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rose-deep);
    margin-bottom: 8px;
}
.update-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.update-card h3 a { text-decoration: none; color: var(--plum); }
.update-card h3 a:hover { color: var(--rose-deep); }
.update-card .excerpt { color: var(--plum-soft); margin: 0 0 16px; }

.post-body { max-width: 720px; margin: 0 auto; }
.post-body p { margin: 0 0 1.2em; }
.post-body img { border-radius: 12px; margin: 1.4em auto; }
.post-meta { text-align: center; color: var(--rose-deep); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 8px; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 900px; margin: 0 auto; }
.contact-info p { margin: 0 0 1em; }
.social-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.social-list a { text-decoration: none; color: var(--plum); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.social-list a:hover { color: var(--rose-deep); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; letter-spacing: 0.06em; margin-bottom: 6px; color: var(--plum-soft); }
.form-field input,
.form-field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--plum);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -5000px; }

.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; }
.notice-ok { background: #e9f3ea; color: #2f5d3a; border: 1px solid #cfe6d2; }
.notice-err { background: #f6e3e3; color: #7d3535; border: 1px solid #ecc9c9; }

/* ---- Empty state ---- */
.empty {
    text-align: center;
    color: var(--plum-soft);
    font-style: italic;
    font-family: var(--font-display);
    padding: 40px 0;
}

/* ---- Footer ---- */
.site-footer { background: var(--plum); color: #f3e7e1; padding: 56px 0; margin-top: 40px; }
.footer-inner { text-align: center; }
.footer-leaf { color: var(--gold); font-size: 1.4rem; margin-bottom: 14px; }
.footer-tag { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; max-width: 560px; margin: 0 auto 22px; color: #f7ece7; }
.footer-social { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; margin-bottom: 22px; }
.footer-social a { color: #f0ddd5; text-decoration: none; font-size: 0.92rem; letter-spacing: 0.08em; }
.footer-social a:hover { color: var(--gold); }
.footer-fine { font-size: 0.82rem; color: #c9b3ac; margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 6px;
    }
    .nav-toggle-label span {
        width: 26px; height: 2px; background: var(--plum); border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .site-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 18px;
        display: none;
    }
    .nav-toggle:checked ~ .site-nav { display: flex; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .book-detail { grid-template-columns: 1fr; }
    .book-detail .cover-col { max-width: 280px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
