@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

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

:root {
    --accent: #e6c4ca;
    --dark-accent: #61639e;
    --light-accent: #bcc4ef;
    --black: #171c30;
    --white: #ffffff;

    --font-heading: 'Montserrat', 'Brandon Grotesque', -apple-system, sans-serif;
    --font-body: 'Avenir Next', europa, -apple-system, 'Segoe UI', sans-serif;
    --font-serif: 'Libre Baskerville', 'Baskerville', Georgia, serif;
    --max-width: 1200px;
    --site-gutter: 4vw;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--black);
    background: #000;
    line-height: 1.7;
    font-weight: 600;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; border-bottom: 2px solid transparent; }
a:hover { opacity: 0.7; }

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--site-gutter);
}

/* ============================================
   HERO — waves gif background
   ============================================ */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    background-color: #9f6aad;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Desktop: 2-column grid, left text items + right cover spanning all rows */
.hero-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    gap: 0 2rem;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem var(--site-gutter) 3rem;
    width: 100%;
    color: var(--white);
    text-align: center;
    text-transform: uppercase;
}

.hero-topquote       { grid-column: 1; order: 1; }
.hero-title          { grid-column: 1; order: 2; }
.hero-cover          { grid-column: 2; grid-row: 1 / -1; order: 0; }
.hero-subquote       { grid-column: 1; order: 3; }
.btn-buy             { grid-column: 1; order: 4; }
.publicity-contact   { grid-column: 1; order: 5; }
.hero-publishers     { grid-column: 1; order: 6; }

.hero-topquote {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: none;
    display: inline-block;
    align-self: end;
}

.hero-topquote .attribution {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 80px;
    line-height: 1.1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: -webkit-linear-gradient(#edc2ca, #c97bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

.hero-title span { display: block; font-weight: 700; }

.hero-subquote {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 0;
    text-transform: none;
    display: inline-block;
}

.hero-subquote .attribution {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-buy {
    display: inline-block;
    position: relative;
    top: -2px;
    margin-top: 32px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-width: 240px;
    background-color: #171d33;
    padding: 16px 24px 12px;
    text-align: center;
    color: #edc2ca;
    box-shadow: 4px 8px 0 #edc2ca;
    border: 2px solid #edc2ca;
    transition: transform 0.1s ease;
    justify-self: center;
}

.btn-buy:hover {
    border: 2px solid #edc2ca;
    transform: translate(2px, 2px);
    opacity: 1;
}

.publicity-contact {
    margin-top: 30px;
    font-family: var(--font-heading);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
}

.publicity-contact a {
    color: #fff;
    border-bottom: 1px solid transparent;
}
.publicity-contact a:hover { border-bottom-color: #fff; opacity: 1; }

.hero-cover {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cover img {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.hero-publishers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-publishers a {
    display: inline-block;
    border-bottom: none;
}

.hero-publishers a:hover { opacity: 0.7; }

.hero-publishers img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ============================================
   LIGHT SECTION (Squarespace "light" theme)
   Awards + Synopsis share watercolor background
   The top of the image is pink, bottom is blue
   ============================================ */

.light-section {
    position: relative;
    background-color: var(--accent);
    overflow: hidden;
}

.light-section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.light-section-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.awards-area {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem 2rem;
    text-align: center;
}

.awards-area h2 {
    font-family: var(--font-heading);
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--black);
}

.awards-area h2 a {
    color: var(--black);
    border-bottom: 3px solid rgba(0,0,0,0.25);
}

.awards-area h2 a:hover {
    border-bottom-color: rgba(0,0,0,0.75);
    opacity: 1;
}

.awards-area h2:last-child { margin-bottom: 0; }

.awards-dot {
    font-size: 2rem;
    color: var(--black);
    margin: 0.3rem 0;
    line-height: 1;
}

/* Synopsis + Buy Links (lower part of light section) */

.synopsis-buy-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem var(--site-gutter);
}

.synopsis-col { color: var(--black); }

.synopsis-opening {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    line-height: 2;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.synopsis-text {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 2;
    color: var(--black);
    font-weight: 500;
}

.synopsis-text p { margin-bottom: 1em; }
.synopsis-text p:last-child { margin-bottom: 0; }

.buy-col { color: var(--black); }

.buy-col-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-align: left;
}

.buy-region-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.buy-region-block:last-child { margin-bottom: 0; }

.buy-region-cover img {
    width: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.buy-region-info h3 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    color: var(--black);
}

.buy-links-list {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.9;
}

.buy-links-list a {
    color: var(--black);
    border-bottom: 2px solid rgba(23,28,48,0.25);
    transition: border-color 0.2s;
}

.buy-links-list a:hover { border-color: var(--black); opacity: 1; }

.buy-links-list .separator {
    color: rgba(23,28,48,0.3);
    margin: 0 0.1rem;
}

/* ============================================
   PRAISE / REVIEWS — pink background, 2-col
   ============================================ */

.praise-section {
    padding: 6rem 0;
    background: var(--accent);
}

.praise-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--black);
}

.reviews-grid {
    columns: 2;
    column-gap: 3.5rem;
}

.review-item {
    text-align: center;
    padding: 0 0.5rem;
    margin-bottom: 3.5rem;
    break-inside: avoid;
}

.review-quote {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    line-height: 2;
    margin-bottom: 0.6rem;
    color: var(--black);
}

.review-source {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--black);
    margin-top: 0.3rem;
}

/* ============================================
   AUTHOR BIO (Squarespace "black-bold" theme)
   ============================================ */

.bio-section {
    padding: 6rem 0;
    background: var(--black);
    color: var(--white);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.bio-photo img { width: 100%; }

.bio-photo-credit {
    font-size: 16px;
    color: var(--dark-accent);
    margin-top: 0.6rem;
    font-style: italic;
}

.bio-text {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 2;
    color: var(--light-accent);
    font-weight: 500;
}

.bio-text p { margin-bottom: 1em; }
.bio-text p:last-child { margin-bottom: 0; }

.bio-agent {
    margin-top: 1em;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 2;
    color: var(--light-accent);
}

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

.site-footer {
    padding: 2rem 2rem;
    text-align: center;
    background: var(--black);
    border-top: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--light-accent);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 500;
    border-bottom: none;
}

.social-links a:hover { opacity: 0.5; }

/* ============================================
   EDIT BAR (logged-in admin)
   ============================================ */

.edit-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--black);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    font-size: 0.85rem;
}

.edit-bar a { color: var(--white); border-bottom: none; }
.edit-bar a:hover { opacity: 0.7; }
.edit-bar-links { display: flex; gap: 1.25rem; }
body.has-edit-bar { padding-top: 2.5rem; }

/* ============================================
   FLASH MESSAGES
   ============================================ */

.flash-container {
    position: fixed;
    top: 1rem; right: 1rem;
    z-index: 9999;
    max-width: 400px;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    animation: flashIn 0.3s ease;
}

.flash-success { background: #f0fdf4; color: #16a34a; }
.flash-error { background: #fef2f2; color: #dc2626; }

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   AUTH FORMS
   ============================================ */

.auth-form {
    max-width: 380px;
    margin: 4rem auto;
    padding: 0 2rem;
    background: var(--white);
}

.auth-form h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--dark-accent);
}

.form-group input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--white);
    transition: border-color 0.2s;
}

.form-group input:focus { outline: none; border-color: var(--black); }

.btn-auth {
    display: block; width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--black);
    background: var(--black);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 1rem;
}

.btn-auth:hover { opacity: 0.8; }

.auth-link {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--dark-accent);
}

.auth-link a { color: var(--black); }

/* ============================================
   ERROR PAGES
   ============================================ */

.error-page { text-align: center; padding: 6rem 2rem; background: var(--white); }
.error-page h1 { font-family: var(--font-heading); font-size: 6rem; font-weight: 300; opacity: 0.2; margin-bottom: 0.5rem; }
.error-page p { font-size: 1.1rem; color: var(--dark-accent); margin-bottom: 2rem; }
.error-page a { color: var(--black); }

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

@media (min-width: 1280px) {
    .hero-title { font-size: 90px; }
    .hero-topquote, .hero-subquote { font-size: 16px; }
    .btn-buy { font-size: 20px; }
    .home_intro h2 { font-size: 20px; }
}

@media (min-width: 1440px) {
    .hero-title { font-size: 100px; }
    .hero-topquote, .hero-subquote { font-size: 16px; }
    .home_intro h2 { font-size: 24px; }
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        text-align: center;
        padding: 3rem 1.5rem;
    }
    .hero-topquote     { grid-column: 1; order: 1; }
    .hero-title        { grid-column: 1; order: 2; }
    .hero-cover        { grid-column: 1; grid-row: auto; order: 3; margin: 1rem 0; }
    .hero-subquote     { grid-column: 1; order: 4; }
    .btn-buy           { grid-column: 1; order: 5; }
    .publicity-contact { grid-column: 1; order: 6; }
    .hero-publishers   { grid-column: 1; order: 7; }

    .hero-title { font-size: 60px; }
    .hero-cover img { max-height: 50vh; margin: 0 auto; }
    .hero-publishers { flex-wrap: wrap; gap: 1.5rem; }
    .synopsis-buy-inner { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 1.5rem; }
    .buy-col-title { text-align: center; }
    .buy-region-block { grid-template-columns: 1fr; text-align: center; }
    .buy-region-cover img { margin: 0 auto; }
    .reviews-grid { columns: 1; }
    .bio-grid { grid-template-columns: 1fr; gap: 2rem; }
    .bio-photo img { width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 48px; }
    .hero-publishers img { height: 22px; }
    .btn-buy { min-width: 200px; font-size: 16px; }
}
