/* ========================================
   PAGE FRAME
   ======================================== */

body {
    margin: 0;
    min-height: 100vh;

    background-color: var(--background);

    background-image:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.07) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle,
            rgba(0, 0, 0, 0.05) 1px,
            transparent 1px
        );

    background-size:
        17px 17px,
        23px 23px;

    background-position:
        0 0,
        8px 11px;

    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;
}

.page-shell {
    position: relative;
    width: min(calc(100% - 3rem), 1100px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}


/* ========================================
   TOP HEADER
   ======================================== */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1.5rem 0;

    border-bottom: 1px solid var(--border);
}

.header-identity {
    display: flex;
    flex-direction: column;
}

.header-name {
    color: var(--text);

    font-family:
        "Cormorant SC",
        Georgia,
        serif;

    font-size: 1.1rem;
    font-weight: 600;

    letter-spacing: 0.08em;
}

.header-profession {
    color: var(--writer-muted);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 1rem;
    font-weight: 500;
    font-style: italic;

    letter-spacing: 0.06em;
}


/* ========================================
   NAVIGATION
   ======================================== */

.site-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.site-nav a {
    color: var(--muted);

    font-family:
        "Cormorant SC",
        Georgia,
        serif;

    font-size: 1rem;
    font-weight: 600;

    letter-spacing: 0.12em;

    text-decoration: none;
    text-transform: uppercase;
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav a[aria-current="page"] {
    color: var(--accent);
}


/* ========================================
   MAIN
   ======================================== */

main {
    flex: 1;
}


/* ========================================
   HERO
   ======================================== */

.hero {
    position: relative;
    text-align: center;
    padding: 3rem 0 1.5rem;
}

.profession {
    margin: 0 0 0.75rem;

    color: var(--writer);

    font-family:
        "Cormorant SC",
        Georgia,
        serif;

    font-size: 1.5rem;        /* larger letters */
    font-weight: 600;

    letter-spacing: 0.5em;    /* more space between letters */
    text-transform: uppercase;


   /*  text-shadow: 4px 4px 0 black ; */
}

.author-name {
    margin: 0;

    font-family: "Parisienne", cursive;

    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 400;

    line-height: 1.15;
    letter-spacing: 0.01em;

    color: var(--text);
}


/* ========================================
   DECORATIVE LINE
   ======================================== */

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 66%;
    max-width: 700px;

    gap: 0.9rem;
    margin: 1.5rem auto 0;
}

.ornament span {
    flex: 1;
    height: 1px;

    background-color: var(--border);
}

.ornament b {
    color: var(--accent);
    font-weight: normal;
    font-size: 1.1rem;
    line-height: 1;
}


/* ========================================
   BOOKS
   ======================================== */

.books {
    text-align: center;

    padding: 0 0 5rem;
}

#books-heading {
    margin: 0 0 1.75rem;

    color: var(--text);

    font-family:
        "Cormorant SC",
        Georgia,
        serif;

    font-size: 2rem;
    font-weight: 600;

    letter-spacing: 0.18em;

    text-align: center;
    text-transform: uppercase;
}

.book-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(180px, 240px));

    justify-content: center;

    gap: 3rem;
}


/* ========================================
   BOOK
   ======================================== */

.book {
    width: 100%;
}

.book-link {
    display: block;

    color: inherit;
    text-decoration: none;
}

.book-cover {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid var(--border);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.book-link:hover .book-cover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.book-title {
    display: inline-block;

    margin: 1rem auto 0;
    padding: .25rem 0.65rem;

    color: var(--text);
    background-color: rgba(255, 255, 255, 0.08);

    border: 3px double var(--border);

    font-family:
        Georgia,
        "Cormorant Garamond",
        serif;

    font-size: 1.15rem;
    font-weight: 600;
    font-style: normal;
    line-height: 1.25;
}

.book-cover,
.book-cover-placeholder {
    display: block;
    width: 100%;
    margin: 0;
}


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

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1.5rem 0;

    border-top: 1px solid var(--border);
}

.copyright {
    margin: 0;

    color: var(--muted);
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--text);
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.about-main {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 3.5rem 0 5rem;
}


/* ========================================
   ABOUT CARD
   ======================================== */

.about-card {
    position: relative;
    width: min(100%, 760px);
    box-sizing: border-box;

    padding: 2.5rem 3rem;
    background-color: var(--about-card-background);
    color: var(--about-text);
    border: 3px double var(--about-border);
    box-shadow: 0 8px 30px rgba(81, 68, 88, 0.08);
}


/* ========================================
   ABOUT LABEL
   ======================================== */

.about-label {
    margin: 0 0 0.4rem;

    color: var(--about-muted);

    font-family:
        "Cormorant SC",
        Georgia,
        serif;

    font-size: 1rem;
    font-weight: 600;

    letter-spacing: 0.28em;

    text-align: center;
    text-transform: uppercase;
}


/* ========================================
   ABOUT TITLE
   ======================================== */

.about-title {
    margin: 0;

    color: var(--about-text);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 500;

    line-height: 1.15;

    text-align: center;

    letter-spacing: 0.03em;
}


/* ========================================
   ABOUT TITLE DIVIDER
   ======================================== */



.about-ornament {
	margin-top: 2.5rem;
	margin-bottom:2.5rem;
}


/* ========================================
   ABOUT BODY TEXT
   ======================================== */

.about-text {
    width: 100%;

    color: var(--about-text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.1rem;
    line-height: 1.8;

    text-align: left;
}

.about-text p {
    margin: 0 0 1.5rem;
}

.about-finial {
    margin-top: 2rem;

    color: var(--accent);

    font-family: Georgia, serif;
    font-size: 1.2rem;

    text-align: center;
    line-height: 1;
}


/* ========================================
   FIRST-PARAGRAPH DROP CAP
   ======================================== */

.about-text p:first-child::first-letter {
    float: left;

    margin:
        0.05em
        0.08em
        -0.05em
        0;

    color: var(--text);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 3.6rem;
    font-weight: 500;

    line-height: 0.8;
}


/* ========================================
   ABOUT PAGE MOBILE
   ======================================== */

@media (max-width: 700px) {

    .about-main {
        padding: 2rem 0 3rem;
    }

    .about-card {
        padding:
            2.5rem
            1.5rem
            3rem;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.7;
    }

}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 700px) {

    .site-header {
        flex-direction: column;
        gap: 1.25rem;
    }

    .header-identity {
        align-items: center;
    }

    .site-nav {
        gap: 1.5rem;
    }

    .site-footer {
        flex-direction: column;
        gap: 1rem;
    }

}

/* LOGO */

.hero {
    position: relative;
    text-align: center;
    padding: 3rem 0 1.5rem;
}

.cutter-logo {
    position: absolute;

    width: 250px;
    height: auto;

    top: 0px;
    left: calc(50% + 300px);

    z-index: 1000;
    pointer-events: none;

    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
}

@media (min-width: 1200px) {

    .cutter-logo {
        width: 250px;

        top: -10px;
        left: calc(50% + 285px);
    }

}

@media (min-width: 1001px) and (max-width: 1199px) {

    .cutter-logo{
        width: 250px;
        top: -10px;
        left: calc(50% + 270px);
    }
}

@media (min-width: 871px) and (max-width: 1000px) {

    .cutter-logo{
        width: 200px;
        top: 5px;
        left: calc(50% + 250px);
    }
}

@media (min-width: 737px) and (max-width: 870px) {

    .cutter-logo{
        width: 200px;
        top: 5px;
        left: calc(50% + 200px);
    }
}

@media (min-width: 706px) and (max-width: 736px) {

    .cutter-logo{
        width: 200px;
        top: -5px;
        left: calc(50% + 160px);
    }
}

@media (min-width: 702px) and (max-width:705px) {

    .cutter-logo {
        width: 200px;

        top: -3px;
        left: calc(50% + 155px);
    }

}

@media (max-width: 700px) {
    .cutter-logo {
        width: 200px;

        top: -110px;
        left: calc(50% + 90px);
    }
}

@media (min-width: 0px) and (max-width:559px) {

    .cutter-logo {
        width: 100px;

        top: -120px;
        left: calc(50% + 110px);
    }

}
