/* =========================================================
   CHRISLYN R. HERRING — Author Site (multi-page)
   Aesthetic: "forest whimsical" — cream base, forest green,
   literary serif headings, botanical accents.
   The book gets its own dark / crimson world on books.html.
   ========================================================= */

/* ---- Design tokens ---- */
:root {
    /* Greens (from the provided palette) */
    --forest:      #2f4634;   /* PRIMARY accent — one-line swap */
    --forest-deep: #213328;
    --jade:        #4d6b54;
    --moss:        #6f8466;
    --sage:        #9bae8e;
    --mint:        #cdd9c4;

    /* Neutrals / cream */
    --cream:   #f6f2e8;
    --cream-2: #efe8d8;
    --sand:    #e7dfca;
    --ink:     #20251f;
    --body:    #404539;
    --muted:   #7d7f72;
    --line:    #ddd5c1;

    /* Type */
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans:  'Raleway', system-ui, -apple-system, sans-serif;

    --maxw: 1140px;
    --navh: 84px;
    --radius: 4px;
    --shadow:    0 10px 30px rgba(33,51,40,.12);
    --shadow-lg: 0 22px 55px rgba(33,51,40,.22);
    --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

body {
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--body);
    background: var(--cream);
    padding-top: var(--navh);          /* clear the fixed nav on every page */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---- Helpers ---- */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    padding: .8rem 1.4rem; background: var(--forest); color: var(--cream);
    font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.eyebrow {
    font-family: var(--sans); font-size: .72rem; font-weight: 600;
    letter-spacing: .32em; text-transform: uppercase; color: var(--jade);
}
.eyebrow--light { color: var(--mint); }
.eyebrow--crimson { color: var(--r-crimson, #c23a52); }

.section__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; color: var(--ink);
    margin-top: .4rem; letter-spacing: .01em;
}
.section__title--left { text-align: left; }
.section__sub { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--moss); margin-top: .4rem; }
.rule { display: block; width: 60px; height: 2px; background: var(--forest); margin: 1.1rem auto 0; opacity: .8; }
.rule--left { margin-left: 0; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--sans); font-size: .76rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    padding: .85rem 1.9rem; border: 1.5px solid var(--forest); border-radius: var(--radius);
    cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn--solid { background: var(--forest); color: var(--cream); }
.btn--solid:hover { background: var(--forest-deep); border-color: var(--forest-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--cream); transform: translateY(-2px); }
.btn--lg { padding: 1rem 2.4rem; font-size: .8rem; }
.btn--block { width: 100%; }
.btn--light { border-color: rgba(246,242,232,.6); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn--crimson { background: #9b2335; color: #f4e9ea; border-color: #9b2335; }
.btn--crimson:hover { background: #7d1b29; border-color: #7d1b29; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* ---- Icon buttons (social) ---- */
.iconbtn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1.5px solid var(--line); color: var(--body); transition: all .25s var(--ease);
}
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); transform: translateY(-2px); }
.iconbtn--lg { width: 58px; height: 58px; }
.iconbtn--lg svg { width: 24px; height: 24px; }
.iconbtn--light { border-color: rgba(246,242,232,.45); color: var(--cream); }
.iconbtn--light:hover { background: var(--cream); border-color: var(--cream); color: var(--forest); }

/* =========================================================
   NAV (solid on every page)
   ========================================================= */
.nav {
    position: fixed; inset: 0 0 auto 0; height: var(--navh); z-index: 100;
    background: rgba(246,242,232,.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(33,51,40,.08); }
.nav__inner {
    max-width: var(--maxw); margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem;
}
.nav__logo-img { height: 48px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__link {
    font-size: .78rem; font-weight: 500; letter-spacing: .14em;
    text-transform: uppercase; color: var(--body); position: relative;
}
.nav__link::after {
    content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px;
    background: var(--forest); transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--forest); }
.nav__link:hover::after, .nav__link--active::after { width: 100%; }
.nav__link--active { color: var(--forest); }
.nav__cta { padding: .6rem 1.3rem; }
.nav__cta::after { display: none; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
    background: none; border: none; cursor: pointer; align-items: center; justify-content: center; z-index: 101; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: all .3s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav__toggle { display: flex; }
    .nav__logo { position: relative; z-index: 101; }
    .nav__menu {
        position: fixed; top: 0; left: 0; right: 0;
        height: 100vh; height: 100dvh;
        flex-direction: column; justify-content: center; align-items: center; gap: 2.2rem;
        background: var(--cream);
        opacity: 0; visibility: hidden; transform: translateY(-6px);
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    }
    .nav__menu.open { opacity: 1; visibility: visible; transform: none; }
    .nav__link { font-size: 1.35rem; letter-spacing: .18em; }
    .nav__cta { margin-top: 1rem; font-size: .8rem; padding: .9rem 2.2rem; }
    body.menu-open { overflow: hidden; }
}

/* =========================================================
   HOME HERO
   ========================================================= */
.hero {
    position: relative; min-height: calc(100vh - var(--navh));
    display: flex; align-items: center; padding: 4rem 0 5rem; overflow: hidden;
    background:
        radial-gradient(55% 50% at 80% 25%, rgba(155,174,142,.28), transparent 70%),
        radial-gradient(50% 50% at 8% 92%, rgba(205,217,196,.34), transparent 70%),
        var(--cream);
}
.hero__sprig { position: absolute; width: 130px; height: 130px; color: var(--sage); opacity: .5; }
.hero__sprig--tl { top: 30px; left: -22px; transform: rotate(-25deg); }
.hero__sprig--br { bottom: 30px; right: -18px; transform: rotate(160deg); }

.hero__inner {
    width: 100%; max-width: 800px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    position: relative; z-index: 2;
}
.hero__name {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(3.4rem, 9vw, 6.4rem); line-height: .98; color: var(--ink);
    letter-spacing: .01em; margin: .6rem 0 1.2rem;
}
.hero__tagline {
    font-family: var(--serif); font-style: italic;
    font-size: clamp(1.3rem, 3vw, 1.95rem); color: var(--jade);
    line-height: 1.4; max-width: 32ch; margin: 0 auto 1.2rem;
}
.hero__intro { max-width: 50ch; color: var(--body); margin: 0 auto 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
@media (max-width: 860px) { .hero__name { font-size: clamp(3rem, 13vw, 4.6rem); } }

/* =========================================================
   HOME — UPCOMING BOOK HIGHLIGHT (forest band, links to books.html)
   ========================================================= */
.highlight {
    background: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
    color: var(--cream); padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.highlight__inner { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.highlight__cover img {
    width: 100%; max-width: 260px; margin: 0 auto; border-radius: var(--radius);
    box-shadow: 0 24px 55px rgba(0,0,0,.4); transform: rotate(-2deg); transition: transform .5s var(--ease);
}
.highlight__cover img:hover { transform: rotate(0) scale(1.02); }
.highlight__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); color: var(--cream); margin: .5rem 0 .3rem; line-height: 1.05; }
.highlight__sub { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--mint); margin-bottom: 1.6rem; }
.highlight__date { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--mint); margin: 1.2rem 0 1.6rem; }
@media (max-width: 760px) {
    .highlight__inner { grid-template-columns: 1fr; text-align: center; gap: 2.2rem; }
    .highlight .countdown { justify-content: center; }
}

/* =========================================================
   COUNTDOWN (works on dark green & on the dark book page)
   ========================================================= */
.countdown { display: flex; flex-wrap: wrap; gap: clamp(.55rem, 2.5vw, 1.4rem); }
.countdown__cell {
    display: flex; flex-direction: column; align-items: center; min-width: 66px;
    padding: .85rem .5rem; border: 1px solid rgba(246,242,232,.18);
    border-radius: var(--radius); background: rgba(255,255,255,.04);
}
.countdown__num { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 6vw, 3rem); line-height: 1; color: var(--cream); }
.countdown__lbl { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mint); margin-top: .5rem; }
.countdown__done { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--cream); }
.release .countdown__done { color: var(--r-head); }

/* =========================================================
   BOOKS PAGE — the book's own dark / crimson world
   ========================================================= */
.release {
    --r-crimson:  #c23a52;
    --r-text:     #d9d4cc;
    --r-head:     #ece8e2;
    --r-muted:    #9c968c;
    --r-line:     rgba(232,228,223,.14);

    /* clip, not hidden: an overflow-hidden ancestor disables the sticky cover column */
    position: relative; overflow: hidden; overflow: clip; color: var(--r-text);
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 9vw, 7rem);
    background:
        radial-gradient(70% 55% at 82% 0%, rgba(194,58,82,.16), transparent 60%),
        radial-gradient(60% 60% at 0% 100%, rgba(155,35,53,.13), transparent 60%),
        linear-gradient(160deg, #20202a 0%, #16161b 100%);
}
.release__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.release__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.02; color: var(--r-head); margin-top: .4rem; }
.release__sub { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--r-crimson); margin-top: .4rem; }

.release__grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.release__cover-col { position: sticky; top: calc(var(--navh) + 24px); text-align: center; }
.release__cover-wrap { position: relative; display: inline-block; margin-bottom: 1.4rem; }
.release__cover-wrap::after {
    content: ""; position: absolute; inset: -20px; z-index: 0;
    background: radial-gradient(ellipse at center, rgba(194,58,82,.45), transparent 70%); filter: blur(8px);
}
.release__cover {
    position: relative; z-index: 1; width: 100%; max-width: 280px; margin: 0 auto;
    border-radius: var(--radius); box-shadow: 0 26px 60px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.06);
}
.release__status { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--r-muted); margin-top: 1rem; }
.release__meta { margin-top: 1.6rem; text-align: left; border-top: 1px solid var(--r-line); }
.release__meta li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--r-line); font-size: .92rem; color: var(--r-text); }
.release__meta li span { color: var(--r-muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; align-self: center; }

.release__body p { margin-bottom: 1.3rem; color: var(--r-text); }
.release__date { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--r-crimson); margin: .3rem 0 1.7rem; }
.release .countdown__cell { border-color: var(--r-line); }
.release .countdown__num { color: var(--r-head); }
.release .countdown__lbl { color: var(--r-crimson); }

.tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.tag { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: .45rem .9rem; border-radius: 100px; }
.tags--crimson .tag { background: rgba(194,58,82,.12); color: #ec8497; border: 1px solid rgba(194,58,82,.4); }

@media (max-width: 760px) {
    .release__grid { grid-template-columns: 1fr; }
    .release__cover-col { position: static; max-width: 320px; margin: 0 auto; }
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about { background: var(--cream-2); }
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__frame { position: relative; max-width: 360px; margin: 0 auto; }
.about__frame::before { content: ""; position: absolute; inset: -14px -14px 14px 14px; border: 1.5px solid var(--forest); border-radius: var(--radius); opacity: .55; }
.about__frame img { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__text p { margin-bottom: 1.2rem; }
.about__social { display: flex; align-items: center; gap: .8rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.about__social-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-right: .4rem; }
@media (max-width: 760px) {
    .about__grid { grid-template-columns: 1fr; text-align: center; }
    .section__title--left, .rule--left { text-align: center; }
    .rule--left { margin-left: auto; margin-right: auto; }
    .about__social { justify-content: center; flex-wrap: wrap; }
}

/* =========================================================
   CONNECT PAGE
   ========================================================= */
.connect {
    position: relative; overflow: hidden; text-align: center;
    background: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%); color: var(--cream);
    min-height: calc(100vh - var(--navh)); display: flex; align-items: center;
}
.connect__sprig { position: absolute; top: 8%; left: 50%; transform: translateX(-50%); width: 90px; height: 90px; color: var(--sage); opacity: .4; }
.connect__inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; }
.connect__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--cream); margin: .5rem 0 1rem; }
.connect__sub { color: var(--mint); max-width: 52ch; margin: 0 auto 2.2rem; }
.signup { display: flex; gap: .8rem; max-width: 600px; margin: 0 auto; }
.signup input {
    flex: 1; min-width: 0; padding: .95rem 1.1rem; font-family: var(--sans); font-size: 1rem; color: var(--ink);
    background: var(--cream); border: 1.5px solid transparent; border-radius: var(--radius);
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(205,217,196,.35); }
.signup .btn { flex-shrink: 0; }
.signup__note { font-size: .76rem; color: var(--sage); margin-top: .9rem; }
.connect__social { display: flex; justify-content: center; gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(246,242,232,.18); }
@media (max-width: 560px) { .signup { flex-direction: column; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--cream); border-top: 1px solid var(--line); padding: 3rem 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }
.footer__logo { height: 64px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.footer__nav a { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer__nav a:hover { color: var(--forest); }
.footer__copy { font-size: .8rem; color: var(--muted); }

/* =========================================================
   REVEAL (progressive enhancement — visible without JS)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

@media print {
    .nav { display: none !important; }
    body { padding-top: 0; background: #fff; color: #000; }
}
