/*
Theme Name: Jonathan Parizer
Theme URI: https://jonathanparizer.com
Author: The Legend Desk
Description: Official author theme for Jonathan Parizer. Starry one-page front page with books (WooCommerce), about, praise and newsletter (Contact Form 7). Content is managed with ACF Pro.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jonathan-parizer
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --cream: #FEFBF6;
    --paper: #F6F1E7;
    --gold: #C2AC78;
    --gold-deep: #A48A4D;
    --ink: #222220;
    --space: #0a0a14;
    --space-2: #12121f;
    --line-dark: rgba(194,172,120,.22);
}

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

html {
    scroll-behavior: smooth
}

body {
    background: var(--space);
    color: var(--cream);
    font-family: 'Spectral',Georgia,serif;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

h1,h2,h3,.display {
    font-family: 'Cormorant Garamond',serif;
    font-weight: 500;
    line-height: 1.1
}

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

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

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px
}

.eyebrow {
    font-family: 'EB Garamond',serif;
    text-transform: uppercase;
    letter-spacing: .34em;
    font-size: .72rem;
    color: var(--gold);
    font-weight: 500
}

.stars {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.nebula {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 20% 30%, rgba(120,90,180,.28), transparent 60%), radial-gradient(ellipse 50% 60% at 80% 40%, rgba(60,120,180,.22), transparent 60%), radial-gradient(ellipse 70% 50% at 50% 80%, rgba(180,140,80,.16), transparent 65%);
    mix-blend-mode: screen
}

.milkyway {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(180,170,210,.10) 45%, rgba(220,210,235,.16) 50%, rgba(180,170,210,.10) 55%, transparent 70%);
    filter: blur(2px)
}

@keyframes twinkle {
    0%,100% {
        opacity: .5
    }

    50% {
        opacity: 1
    }
}

header {
    position: sticky;
    top: 0;
    z-index: 50
}

/* logo band — cream to match the logo's own background so it blends seamlessly */
.logo-band {
    background: #FEFBF6;
    border-bottom: 1px solid #ece5d6
}

.logo-band .wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px
}

.logo-band img {
    height: 120px;
    width: auto;
    display: block
}

/* dark navigation bar below */
.navbar {
    background: rgba(10,10,20,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-dark);
    position: relative
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    height: 60px;
    position: relative
}

.nav-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 14px
}

nav.menu {
    display: flex;
    gap: 38px;
    align-items: center
}

nav.menu a {
    font-family: 'EB Garamond';
    font-size: .95rem;
    letter-spacing: .05em;
    color: rgba(254,251,246,.78);
    position: relative;
    padding: 4px 0;
    transition: color .25s
}

nav.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0;
    background: var(--gold);
    transition: width .3s
}

nav.menu a:hover {
    color: var(--cream)
}

nav.menu a:hover::after {
    width: 100%
}

.cart {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--gold);
    padding: 8px 18px;
    border-radius: 2px;
    font-family: 'EB Garamond';
    font-size: .9rem;
    letter-spacing: .05em;
    cursor: pointer;
    transition: .25s;
    color: var(--cream)
}

.cart:hover {
    background: var(--gold);
    color: var(--space)
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--cream)
}

.hero {
    position: relative;
    padding: 40px 0 60px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, #1a1a30, var(--space) 70%)
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 880px;
    margin: 0 auto
}

.hero-inner img {
    max-width: 360px;
    margin: auto auto 3rem;
}

.hero h1 {
    font-size: clamp(3.2rem,8vw,6.2rem);
    letter-spacing: .01em
}

.hero h1 em {
    font-style: italic;
    color: var(--gold)
}

.hero .lede {
    font-size: 1.25rem;
    color: rgba(254,251,246,.8);
    max-width: 48ch;
    margin: 28px auto 38px
}

.btn-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center
}

.btn {
    font-family: 'EB Garamond';
    font-size: 1rem;
    letter-spacing: .06em;
    padding: 14px 32px;
    border-radius: 2px;
    cursor: pointer;
    transition: .25s;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.btn-primary {
    background: var(--gold);
    color: var(--space);
    border-color: var(--gold)
}

.btn-primary:hover {
    background: var(--gold-deep);
    border-color: var(--gold-deep);
    color: var(--cream)
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(194,172,120,.55)
}

.btn-ghost:hover {
    border-color: var(--gold);
    background: rgba(194,172,120,.08)
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--gold);
    margin: 46px auto 0
}

.ornament::before,.ornament::after {
    content: "";
    height: 1px;
    width: 70px;
    background: var(--gold);
    opacity: .5
}

section {
    padding: 100px 0;
    position: relative
}

.sec-head {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2
}

.sec-head h2 {
    font-size: clamp(2.3rem,4.5vw,3.4rem);
    margin-top: 12px
}

.sec-head p {
    color: rgba(254,251,246,.72);
    max-width: 54ch;
    margin: 14px auto 0
}

#books {
    background: var(--space-2)
}

.book-row {
    display: flex;
    flex-direction: column;
    gap: 90px;
    position: relative;
    z-index: 2
}

.book {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 56px;
    align-items: center
}

.book:nth-child(even) {
    grid-template-columns: 1.2fr .8fr
}

.book:nth-child(even) .book-art {
    order: 2
}

.book-art {
    display: flex;
    justify-content: center
}

.frame {
    position: relative;
    width: 300px;
    box-shadow: 0 30px 70px rgba(0,0,0,.55);
    transition: transform .5s
}

.frame:hover {
    transform: translateY(-8px) rotate(-1deg)
}

.cover {
    aspect-ratio: 2/3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 30px;
    color: var(--cream);
    border: 1px solid rgba(255,255,255,.08);
    position: relative;
    overflow: hidden
}

.cover .bk-top {
    font-family: 'EB Garamond';
    letter-spacing: .3em;
    font-size: .68rem;
    text-transform: uppercase;
    color: var(--gold);
    position: relative;
    z-index: 2
}

.cover .bk-title {
    font-family: 'Cormorant Garamond';
    font-size: 2.5rem;
    line-height: 1.05;
    position: relative;
    z-index: 2
}

.cover .bk-sub {
    font-family: 'EB Garamond';
    font-style: italic;
    font-size: .92rem;
    color: rgba(255,255,255,.72);
    margin-top: 8px;
    position: relative;
    z-index: 2
}

.cover .bk-rule {
    height: 1px;
    width: 46px;
    background: var(--gold);
    margin: 14px 0;
    position: relative;
    z-index: 2
}

.cover .bk-author {
    font-family: 'EB Garamond';
    letter-spacing: .2em;
    font-size: .74rem;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    position: relative;
    z-index: 2
}

.cover-umbilical {
    background: radial-gradient(circle at 70% 25%, #3a2b52, #14101f 70%)
}

.cover-img {
    display: block;
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.08)
}

.cover-umbilical::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(2px 2px at 20% 30%,#fff,transparent),radial-gradient(1px 1px at 60% 50%,#fff,transparent),radial-gradient(1.5px 1.5px at 40% 75%,#cdbff5,transparent),radial-gradient(1px 1px at 80% 65%,#fff,transparent);
    opacity: .6
}

.cover-space {
    background: radial-gradient(circle at 30% 30%, #14304f, #060912 72%)
}

.cover-space::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(2px 2px at 25% 20%,#fff,transparent),radial-gradient(1px 1px at 70% 40%,#fff,transparent),radial-gradient(1.5px 1.5px at 50% 70%,#9fd0ff,transparent),radial-gradient(1px 1px at 85% 80%,#fff,transparent),radial-gradient(1px 1px at 15% 85%,#fff,transparent);
    opacity: .7
}

.book-info .kind {
    font-family: 'EB Garamond';
    font-size: .74rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold)
}

.book-info h3 {
    font-size: clamp(2rem,3.5vw,2.9rem);
    margin: 8px 0 4px
}

.book-info .tag {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-size: 1.4rem;
    color: rgba(254,251,246,.7);
    margin-bottom: 18px
}

.book-info p {
    color: rgba(254,251,246,.78);
    font-size: 1.05rem;
    margin-bottom: 14px;
    max-width: 52ch
}

.buy-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 26px;
    flex-wrap: wrap
}

.price {
    font-family: 'Cormorant Garamond';
    font-size: 2rem;
    color: var(--gold)
}

.add {
    font-family: 'EB Garamond';
    font-size: .92rem;
    letter-spacing: .05em;
    border: 1px solid var(--gold);
    padding: 12px 26px;
    border-radius: 2px;
    cursor: pointer;
    transition: .25s;
    background: none;
    color: var(--cream)
}

.add:hover {
    background: var(--gold);
    color: var(--space)
}

.add.added {
    background: var(--gold-deep);
    border-color: var(--gold-deep)
}

#about {
    background: var(--space);
    position: relative;
    overflow: hidden
}

.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 60px;
    /*align-items: center;*/
    position: relative;
    z-index: 2
}

.portrait {
    aspect-ratio: 4/5;
    background: radial-gradient(circle at 50% 35%, #2a2440, #0c0c18 75%);
    border: 1px solid var(--line-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden
}

.portrait .mono {
    font-family: 'Cormorant Garamond';
    font-size: 7rem;
    color: var(--gold);
    opacity: .6;
    position: relative;
    z-index: 2
}

.portrait::after {
    content: "Jonathan Parizer";
    position: absolute;
    bottom: 24px;
    font-family: 'EB Garamond';
    letter-spacing: .24em;
    font-size: .7rem;
    text-transform: uppercase;
    color: rgba(254,251,246,.6)
}

.about-text h2 {
    font-size: clamp(2rem,4vw,3rem);
    margin-bottom: 10px
}

.about-text p {
    color: rgba(254,251,246,.78);
    margin-bottom: 18px;
    font-size: 1.08rem
}

.about-text em {
    color: var(--gold);
    font-style: italic
}

.quote {
    background: var(--space-2);
    text-align: center;
    overflow: hidden
}

.quote blockquote {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-size: clamp(1.8rem,3.6vw,2.7rem);
    line-height: 1.3;
    max-width: 26ch;
    margin: 24px auto;
    position: relative;
    z-index: 2
}

.quote .by {
    font-family: 'EB Garamond';
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: .78rem;
    color: var(--gold);
    position: relative;
    z-index: 2
}

#contact {
    background: var(--space);
    overflow: hidden
}

.news {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2
}

.news h2 {
    font-size: clamp(2rem,4vw,3rem);
    margin-top: 12px
}

.news p {
    color: rgba(254,251,246,.76);
    margin-top: 14px
}

.news form {
    display: flex;
    gap: 12px;
    margin-top: 30px
}

.news input {
    flex: 1;
    padding: 15px 18px;
    border: 1px solid var(--line-dark);
    background: rgba(255,255,255,.04);
    font-family: 'Spectral';
    font-size: 1rem;
    border-radius: 2px;
    color: var(--cream)
}

.news input::placeholder {
    color: rgba(254,251,246,.45)
}

.news input:focus {
    outline: none;
    border-color: var(--gold)
}

.news .note {
    font-size: .85rem;
    color: rgba(254,251,246,.6);
    margin-top: 16px
}

footer {
    background: #070710;
    border-top: 1px solid var(--line-dark);
    padding: 60px 0 36px
}

.foot {
    display: flex;
    /* justify-content:space-between; */
    align-items: flex-start;
    gap: 120px;
    flex-wrap: nowrap;
    align-items: center;
}

.foot .brand img {
    height: 160px;
}

.foot-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.foot-col h4 {
    font-family: 'EB Garamond';
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .76rem;
    color: var(--gold);
    margin-bottom: 14px
}

.foot-col a {
    display: block;
    color: rgba(254,251,246,.7);
    font-size: .95rem;
    margin-bottom: 8px;
    transition: color .2s
}

.foot-col a:hover {
    color: var(--cream)
}

.foot-bottom {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
    text-align: center;
    font-family: 'EB Garamond';
    font-size: .82rem;
    color: rgba(254,251,246,.55);
    letter-spacing: .04em
}

.foot img {
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,5,12,.6);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 90
}

.overlay.open {
    opacity: 1;
    visibility: visible
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 380px;
    max-width: 90vw;
    background: var(--space-2);
    z-index: 100;
    transform: translateX(100%);
    transition: transform .35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px rgba(0,0,0,.5);
    border-left: 1px solid var(--line-dark)
}

.drawer.open {
    transform: translateX(0)
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 28px;
    border-bottom: 1px solid var(--line-dark)
}

.drawer-head h3 {
    font-size: 1.5rem
}

.drawer-head button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--cream)
}

.drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px 28px
}

.ci {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-dark)
}

.ci .t {
    font-family: 'Cormorant Garamond';
    font-size: 1.25rem
}

.ci .meta {
    font-size: .82rem;
    color: rgba(254,251,246,.6)
}

.ci .rm {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-family: 'EB Garamond';
    font-size: .8rem;
    letter-spacing: .05em
}

.drawer-empty {
    color: rgba(254,251,246,.6);
    text-align: center;
    padding: 50px 0;
    font-style: italic
}

.drawer-foot {
    padding: 24px 28px;
    border-top: 1px solid var(--line-dark)
}

.drawer-foot .tot {
    display: flex;
    justify-content: space-between;
    font-family: 'Cormorant Garamond';
    font-size: 1.5rem;
    margin-bottom: 18px
}

.drawer-foot .btn {
    width: 100%;
    justify-content: center
}

@media(max-width: 900px) {
    .book,.book:nth-child(even) {
        grid-template-columns:1fr;
        gap: 40px
    }

    .book:nth-child(even) .book-art {
        order: 0
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 44px
    }

    nav.menu {
        display: none
    }

    .menu-toggle {
        display: block
    }

    nav.menu.show {
        display: flex;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--space-2);
        padding: 24px 32px;
        gap: 20px;
        border-bottom: 1px solid var(--line-dark);
        z-index: 60
    }
}

@media(max-width: 560px) {
    .news form {
        flex-direction:column
    }

    .wrap {
        padding: 0 22px
    }

    .logo-band img {
        height: 72px
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@keyframes starMove {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(var(--tx), var(--ty));
    }
}

