/* ---------------------------------
   Lifebelt Press
   --------------------------------- */

:root {
    --navy: #242332;
    --cream: #f4f1e8;
    --text: #242332;
    --muted: #77737b;
    --line: #d8d4cb;
}


/* Basic reset */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.65;
}


/* Header */

.site-header {
    background: var(--navy);
    color: white;

    padding: 28px 6vw;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 13px;
    letter-spacing: 3px;
    line-height: 1.4;
}

.lifebelt {
    width: 38px;
    height: 38px;
    display: block;
    filter: invert(1);
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: white;
    text-decoration: none;

    font-size: 15px;
    letter-spacing: 1px;
}

nav a:hover {
    text-decoration: underline;
}


/* Hero */

.hero {
    min-height: 72vh;

    background: var(--navy);
    color: white;

    display: flex;
    align-items: center;

    padding: 8vw;
}

.hero-text {
    max-width: 600px;
}

.intro,
.section-label {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 13px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    font-weight: normal;
    line-height: 1.08;

    margin: 20px 0 30px;
}

.hero p {
    max-width: 560px;
}

.button {
    display: inline-block;

    margin-top: 25px;
    padding: 12px 24px;

    border: 1px solid white;

    color: white;
    text-decoration: none;

    font-size: 15px;
    letter-spacing: 1px;
}

.button:hover {
    background: white;
    color: var(--navy);
}


/* General sections */

.section {
    max-width: 1100px;
    margin: auto;

    padding: 110px 6vw;
}

.section-label {
    color: var(--muted);
    margin-bottom: 35px;
}

.section h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: normal;
    line-height: 1.15;

    margin-top: 0;
}


/* Book */

.book {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 80px;

    align-items: center;
}

.book-cover {
    aspect-ratio: 0.7;
}

.book-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.cover-placeholder {
    color: white;
    text-align: center;

    font-size: 25px;
    line-height: 1.25;
}

.book-details h2 {
    margin-bottom: 5px;
}

.author {
    font-size: 20px;
    margin-top: 0;
}

.text-link {
    color: var(--text);
    text-decoration: none;

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

.text-link:hover {
    border-bottom: 2px solid var(--text);
}


/* About */

.about {
    border-top: 1px solid var(--line);
}

.about p {
    max-width: 650px;
}


/* Contact */

.contact {
    border-top: 1px solid var(--line);
}


/* Footer */

footer {
    background: var(--navy);
    color: white;
    padding: 40px 6vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

footer .logo {
    color: white;
}

footer p {
    margin: 0;
}


/* Mobile */

@media (max-width: 700px) {

    .site-header {
        align-items: flex-start;
    }

    nav {
        gap: 15px;
        flex-direction: column;
        align-items: flex-end;
    }

    .hero {
        min-height: 65vh;
        padding: 15vw 8vw;
    }

    .section {
        padding: 75px 8vw;
    }

    .book {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .book-cover {
        max-width: 360px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
