/* =========================================
   THE OFFERING GOD CAN ACCEPT
   Bradley Hobbs
   ========================================= */

:root {
    --background: #f5f0e7;
    --paper: #fffdf8;
    --paper-soft: #f9f5ed;
    --text: #2d2924;
    --muted: #71685d;
    --heading: #302820;
    --gold: #a27b3f;
    --gold-dark: #76572c;
    --border: #ddd2c1;
    --shadow: 0 14px 40px rgba(45, 41, 36, 0.08);
    --max-width: 860px;
    --wide-width: 1180px;
}


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-size: 18px;
    line-height: 1.85;
}

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

a {
    color: var(--gold-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================================
   TYPOGRAPHY
   ========================================= */

h1,
h2,
h3,
.site-title {
    font-family: "Cormorant Garamond", serif;
    color: var(--heading);
}

h1 {
    margin: 0 0 18px;
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h2 {
    margin: 0 0 28px;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
}

p {
    margin: 0 0 1.35em;
}

em {
    font-style: italic;
}


/* =========================================
   CONTAINER
   ========================================= */

.container {
    width: min(calc(100% - 40px), var(--wide-width));
    margin: 0 auto;
}


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 253, 248, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-title {
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--heading);
}

.site-title:hover {
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.main-nav a:hover {
    color: var(--gold-dark);
    text-decoration: none;
}


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

.hero {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 28px auto 0;
    background: transparent;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}


/* =========================================
   READING CONTAINER
   ========================================= */

.reading-container {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 70px auto;
    padding: 70px;
    background: var(--paper);
    box-shadow: var(--shadow);
}


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

.article-header {
    padding-bottom: 55px;
    margin-bottom: 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.intro {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.55rem;
    line-height: 1.45;
}


/* =========================================
   TEACHING SECTIONS
   ========================================= */

.teaching-section {
    margin-bottom: 70px;
}

.teaching-section:last-of-type {
    margin-bottom: 0;
}

.teaching-section h2 {
    position: relative;
    padding-bottom: 16px;
}

.teaching-section h2::after {
    content: "";
    display: block;
    width: 55px;
    height: 2px;
    margin-top: 14px;
    background: var(--gold);
}

.teaching-section p {
    max-width: 720px;
}


/* =========================================
   EMPHASIS
   ========================================= */

.emphasis {
    color: var(--heading);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.45;
}

.warning {
    color: var(--gold-dark);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.55rem;
    font-weight: 600;
}


/* =========================================
   BLOCKQUOTES
   ========================================= */

blockquote {
    margin: 42px 0;
    padding: 30px 36px;
    border-left: 3px solid var(--gold);
    background: var(--paper-soft);
}

blockquote p {
    margin: 0;
    color: var(--heading);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.45;
}

blockquote cite {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.question-block {
    margin-top: 28px;
    margin-bottom: 36px;
}


/* =========================================
   FINAL SECTION
   ========================================= */

.final-section {
    margin-top: 90px;
    padding-top: 65px;
    border-top: 1px solid var(--border);
}

.final-question {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 1rem;
}

.featured-question {
    margin-bottom: 30px;
    color: var(--heading);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
}

.closing-statement {
    margin-top: 45px;
    padding: 32px;
    background: var(--paper-soft);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    color: var(--heading);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.5rem, 3.5vw, 2.15rem);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}


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

.article-footer {
    margin-top: 75px;
    padding-top: 35px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

.article-footer p {
    margin-bottom: 8px;
}


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

.author-hero {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 28px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.author-hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.author-hero-overlay {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 8px 0 0;
    color: var(--text);
    text-align: center;
}

.author-hero-overlay h1 {
    color: var(--heading);
    margin-bottom: 10px;
}

.author-hero-overlay p:last-child {
    margin: 0;
    color: var(--muted);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
}

.author-attribution {
    margin-top: 70px;
    padding: 45px;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    text-align: center;
}

.author-attribution h2 {
    font-size: 2rem;
}

.author-attribution p {
    margin-bottom: 10px;
}

.back-link {
    margin-top: 50px;
    text-align: center;
    font-weight: 500;
}


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

.site-footer {
    padding: 45px 20px;
    background: #28231d;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    font-size: 0.82rem;
}

.site-footer p {
    margin: 5px 0;
}

.site-footer p:first-child {
    color: white;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    body {
        font-size: 17px;
    }

    .reading-container {
        margin: 45px auto;
        padding: 50px;
    }

    .author-hero {
        min-height: 380px;
    }

}


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

@media (max-width: 650px) {

    body {
        font-size: 16px;
        line-height: 1.75;
    }

    .container {
        width: min(calc(100% - 28px), var(--wide-width));
    }

    .site-header {
        position: relative;
    }

    .nav-container {
        min-height: auto;
        padding: 17px 0;
        flex-direction: column;
        gap: 12px;
    }

    .site-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .main-nav {
        gap: 22px;
    }

    .main-nav a {
        font-size: 0.82rem;
    }

    .hero,
    .author-hero {
        width: calc(100% - 24px);
        margin-top: 16px;
    }

    .hero-image,
    .author-hero-image {
        height: auto;
    }

    .reading-container {
        width: calc(100% - 24px);
        margin: 25px auto;
        padding: 32px 22px;
        box-shadow: 0 8px 25px rgba(45, 41, 36, 0.06);
    }

    .article-header {
        padding-bottom: 35px;
        margin-bottom: 40px;
    }

    h1 {
        font-size: clamp(2.45rem, 13vw, 3.4rem);
    }

    h2 {
        font-size: 2.15rem;
    }

    .intro {
        font-size: 1.35rem;
    }

    .teaching-section {
        margin-bottom: 52px;
    }

    blockquote {
        margin: 32px 0;
        padding: 23px 22px;
    }

    blockquote p {
        font-size: 1.4rem;
    }

    .emphasis {
        font-size: 1.3rem;
    }

    .warning {
        font-size: 1.35rem;
    }

    .final-section {
        margin-top: 65px;
        padding-top: 45px;
    }

    .featured-question {
        font-size: 1.8rem;
    }

    .closing-statement {
        padding: 25px 20px;
        font-size: 1.55rem;
    }

    .author-hero-overlay {
        width: 100%;
        padding: 4px 0 0;
    }

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

    .author-hero-overlay p:last-child {
        font-size: 1.25rem;
    }

    .author-attribution {
        padding: 30px 20px;
    }

    .site-footer {
        padding: 35px 15px;
    }

}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 380px) {

    .reading-container {
        width: calc(100% - 16px);
        padding: 28px 18px;
    }

    .site-title {
        font-size: 1.18rem;
    }

    .main-nav {
        gap: 17px;
    }

    h1 {
        font-size: 2.45rem;
    }

    h2 {
        font-size: 2rem;
    }

    blockquote {
        padding: 20px 18px;
    }

}


/* =========================================
   ACCESSIBILITY
   ========================================= */

a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
        animation: none !important;
    }

}