/* ========================================
   RESET
======================================== */

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

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

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

ul {
    list-style: none;
}


/* ========================================
   GLOBAL
======================================== */

:root {

    --background: #fafafa;
    --surface: #ffffff;

    --text: #222;
    --muted: #666;

    --primary: #1d3557;
    --primary-hover: #274c77;

    --border: #e5e5e5;

    --shadow:
        0 8px 24px rgba(0,0,0,.08);

}

body {

    font-family: "Inter", sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.7;
}

.container {

    width: min(1100px, 90%);
    margin: auto;

}

section {

    padding: 5rem 0;

}

h1,
h2,
h3 {

    font-family: "Merriweather", serif;

    font-weight: 700;

    color: var(--primary);

    line-height: 1.2;

}

h2 {

    font-size: 2.3rem;

    margin-bottom: 2rem;

}

h3 {

    margin-bottom: .75rem;

}

p {

    margin-bottom: 1rem;

    color: var(--muted);

}


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

header {

    background: white;

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

    position: sticky;

    top: 0;

    z-index: 100;

}

header .container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 1.2rem 0;

}

.logo h1 {

    font-size: 1.7rem;

}

nav ul {

    display: flex;

    gap: 2rem;

}

nav a {

    color: var(--muted);

    font-weight: 500;

    transition: .25s;

}

nav a:hover,
nav a.active {

    color: var(--primary);

}


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

.hero {

    text-align: center;

    padding: 7rem 0;

}

.eyebrow {

    text-transform: uppercase;

    letter-spacing: .2rem;

    font-size: .8rem;

    color: var(--primary);

    margin-bottom: 1rem;

}

.hero h2 {

    max-width: 700px;

    margin: auto;

    font-size: clamp(2.5rem, 6vw, 4rem);

}

.hero p {

    max-width: 700px;

    margin: 2rem auto;

    font-size: 1.15rem;

}


/* ========================================
   BUTTONS
======================================== */

.button {

    display: inline-block;

    background: var(--primary);

    color: white;

    padding: 1rem 1.8rem;

    border-radius: 6px;

    transition: .25s;

    font-weight: 600;

}

.button:hover {

    background: var(--primary-hover);

    transform: translateY(-2px);

}


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

.book-grid {

    display: grid;

    grid-template-columns: 320px 1fr;

    gap: 4rem;

    align-items: center;

}

.book-grid img {

    border-radius: 10px;

    box-shadow: var(--shadow);

}

.subtitle {

    color: var(--primary);

    font-weight: 600;

}


/* ========================================
   CARDS
======================================== */

.cards {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;

}

.card {

    background: white;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: var(--shadow);

    transition: .25s;

}

.card:hover {

    transform: translateY(-6px);

}

.card img {

    width: 100%;

}

.card h3,
.card p,
.card span {

    padding-left: 1.5rem;
    padding-right: 1.5rem;

}

.card h3 {

    margin-top: 1.5rem;

}

.card p {

    margin-top: .5rem;

}

.coming-soon {

    display: inline-block;

    margin: 0 1.5rem 1.5rem;

    padding: .45rem .9rem;

    background: #edf4ff;

    color: var(--primary);

    border-radius: 999px;

    font-size: .9rem;

    font-weight: 600;

}


/* ========================================
   AUTHOR
======================================== */

.author-preview {

    text-align: center;

    background: white;

}

.author-section {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 3rem;
	align-items: start;
}

.author-photo {
	width: 100%;
	border-radius: 10px;
	box-shadow: var(--shadow);
}

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

footer {

    background: #111;

    color: #ccc;

    text-align: center;

    padding: 3rem 0;

}

footer p {

    color: inherit;

    margin-bottom: .75rem;

}

footer a {

    color: white;

}

footer a:hover {

    text-decoration: underline;

}


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

@media (max-width: 850px) {

    header .container {

        flex-direction: column;

        gap: 1rem;

    }

    nav ul {

        flex-wrap: wrap;

        justify-content: center;

        gap: 1rem;

    }

    .book-grid {

        grid-template-columns: 1fr;

        text-align: center;

    }

    .book-grid img {

        max-width: 320px;

        margin: auto;

    }

    h2 {

        font-size: 2rem;

    }


}