@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&family=Inter:wght@300;400;500&display=swap');

:root {
    --background: #f8f8f5;
    --text: #111;
    --muted: rgba(0, 0, 0, 0.65);
    --line: rgba(0, 0, 0, 0.08);
    --accent: #306988;
}

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

body {
    background: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 248, 245, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

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

.site-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    transition: color 0.3s ease, opacity 0.3s ease;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.25);
    padding: 0.4rem 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Shared Links */

a {
    color: inherit;
}

.text-link,
.homepage-book-link a,
.homepage-writing-link a,
.homepage-instagram a,
.article-back-link a,
.book-text a,
.writing-bridge a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(48, 105, 136, 0.35);
    transition: opacity 0.25s ease, border-color 0.25s ease;
}

.text-link:hover,
.homepage-book-link a:hover,
.homepage-writing-link a:hover,
.homepage-instagram a:hover,
.article-back-link a:hover,
.book-text a:hover,
.writing-bridge a:hover {
    opacity: 0.75;
    border-color: var(--accent);
}

/* Home Page */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 2.5rem 8% 5rem 8%;
    min-height: calc(100vh - 70px);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 4.2rem;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.6rem;
    opacity: 0.7;
}

.intro {
    max-width: 520px;
    font-size: 1.15rem;
    line-height: 1.9;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
}

.homepage-book-link {
    margin-top: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.homepage-launch-line {
    margin-top: 1.8rem;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.homepage-launch-line span {
    color: var(--accent);
    font-weight: 500;
}

.homepage-writing-link {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.homepage-instagram {
    margin-top: 1.1rem;
    font-size: 0.95rem;
}

.homepage-links {
    margin-top: 2rem;
}

.latest-reflection {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.latest-reflection .section-label {
    margin-bottom: 0.5rem;
}

.latest-title {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.latest-title a {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding-bottom: 0.1rem;
}

.latest-title a:hover {
    color: var(--accent);
}

.latest-description {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.75;
}

/* Books / About / Contact Pages */

.book-page {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 4rem 8% 6rem 8%;
    min-height: calc(100vh - 70px);
}

/* Dedicated Books Page Layout */

.book-layout {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    padding: 4rem 8% 6rem 8%;
}

.book-cover-sticky {
    position: sticky;
    top: 7rem;
}

.book-image {
    flex: 1;
}

.book-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
}

.book-text {
    flex: 1;
    max-width: 540px;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.book-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 2rem;
}

.book-intro {
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.book-text p {
    margin-bottom: 1.5rem;
}

.book-accent-line {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.book-excerpt,
.instagram-bridge,
.writing-bridge,
.contact-launch-note {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.instagram-bridge h2,
.book-excerpt h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

blockquote {
    margin: 2.5rem 0;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.3);
    font-size: 1.15rem;
    line-height: 1.8;
}

blockquote span {
    display: block;
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.7;
}

.book-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 0.9rem 1.4rem;
    border: 1px solid var(--text);
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.button:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--background);
}

/* Writing Landing Page */

.writing-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 8% 6rem 8%;
}

.writing-intro {
    max-width: 720px;
    margin-bottom: 5rem;
}

.writing-intro h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.writing-summary {
    max-width: 680px;
    font-size: 1.2rem;
    line-height: 1.9;
}

.writing-bridge {
    max-width: 680px;
    font-size: 1rem;
    line-height: 1.8;
}

.writing-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.writing-item {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
    max-width: 760px;
}

.writing-item h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.writing-item h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 1px;
    background: rgba(48, 105, 136, 0.35);
}

.writing-item h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.writing-item h2 a:hover {
    color: var(--accent);
}

.writing-item p {
    font-size: 1.05rem;
    line-height: 1.9;
    opacity: 0.85;
}

/* Article Page */

.article-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 4rem 6% 6rem 6%;
}

.article-banner {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -4rem;
    margin-bottom: 5rem;
}

.article-banner img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

.article-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.article-kicker {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.article-date {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.45;
    margin-bottom: 0.8rem;
}

.article-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 2rem;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.9;
    opacity: 0.85;
}

.article-body {
    max-width: 620px;
}

.article-body p {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 1.7rem;
}

.article-body h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 500;
    margin: 4rem 0 2rem 0;
}

.article-body blockquote {
    margin: 3.5rem 0;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(48, 105, 136, 0.45);
    font-size: 1.25rem;
    line-height: 1.9;
}

.article-revelation-line {
    font-family: 'Inter', sans-serif;
    text-align: center;
    font-size: 1.7rem !important;
    line-height: 1.8 !important;
    margin: 4rem 0 !important;
    letter-spacing: 0.02em;
    font-weight: 400;
    text-transform: none;
}

.article-back-link {
    margin-top: 4rem;
}

/* Footer */

.site-footer {
    margin-top: 3rem;
    padding: 2rem 8%;
    border-top: 1px solid var(--line);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.45;
}

/* Tablet / Mobile */

@media (max-width: 900px) {

    .site-header {
        padding: 0.9rem 8%;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .site-title {
        padding-top: 0.35rem;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding-top: 1.25rem;
    }

    body.menu-open .site-nav {
        display: flex;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
        padding: 3.5rem 8%;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 3.2rem;
    }

    .intro {
        font-size: 1.05rem;
    }

    .hero-image {
        width: 100%;
    }

    .book-page {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
        padding: 3.5rem 8% 5rem 8%;
        min-height: auto;
    }

    .book-text h1 {
        font-size: 2.75rem;
    }

    .book-intro {
        font-size: 1.05rem;
    }

    .book-image {
        width: 100%;
    }

    .writing-page {
        padding: 3.5rem 8% 5rem 8%;
    }

    .writing-intro h1 {
        font-size: 2.75rem;
    }

    .writing-summary {
        font-size: 1.05rem;
    }

    .writing-item h2 {
        font-size: 1.7rem;
    }

    .article-page {
        padding: 3.5rem 8% 5rem 8%;
    }

    .article-banner {
        margin-top: -2rem;
        margin-bottom: 2.5rem;
    }

    .article-banner img {
        height: 220px;
    }

    .article-header h1 {
        font-size: 3rem;
    }

    .article-intro {
        font-size: 1.1rem;
    }

    .article-body p {
        font-size: 1.05rem;
        line-height: 1.9;
    }

    .article-revelation-line {
        font-size: 1.35rem !important;
    }
}

/* Books page stacks later than the rest of the site */

@media (max-width: 760px) {

    .book-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
        padding: 3.5rem 8% 5rem 8%;
    }

    .book-cover-sticky {
        position: static;
    }

    .book-layout .book-image {
        width: 100%;
    }

    .book-layout .book-image img {
        max-width: 100%;
    }
}

@media (max-width: 520px) {

    .hero-text h1 {
        font-size: 2.75rem;
    }

    .hero {
        padding-top: 3rem;
    }

    .book-text h1 {
        font-size: 2.35rem;
    }

    .writing-intro h1 {
        font-size: 2.3rem;
    }

    .writing-item h2 {
        font-size: 1.45rem;
    }

    .article-header h1 {
        font-size: 2.45rem;
    }

    .article-body blockquote {
        font-size: 1.1rem;
    }
}

.book-feature-image {
    margin: 3rem 0 0 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.book-feature-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
}
