*,
*::before,
*::after {
    box-sizing: border-box;
}


/* --------------------------------
   VARIABLES
-------------------------------- */

:root {
    --tff-background: #F1F3EE;
    --tff-brown: #6B3F2A;
    --tff-green: #5F783C;
    --tff-text: #24241F;
    --tff-muted: #686A63;
    --tff-border: rgba(36, 36, 31, 0.12);
}


/* --------------------------------
   BASE
-------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--tff-background);
    color: var(--tff-text);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1080px, calc(100% - 56px));
    margin-inline: auto;
}


/* --------------------------------
   HEADER
-------------------------------- */

.site-header {
    border-bottom: 1px solid var(--tff-border);
    background: rgba(241, 243, 238, 0.82);
    backdrop-filter: blur(10px);
}

.site-header__inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.site-brand {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

.site-brand__name,
.site-footer__brand {
    color: var(--tff-brown);
    font-family: "DM Serif Display", serif;
    font-size: 1.45rem;
    line-height: 1.05;
}

.site-brand__tagline {
    color: var(--tff-green);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.88rem;
}

.site-navigation a {
    transition:
        color 180ms ease,
        opacity 180ms ease;
}

.site-navigation a:hover {
    color: var(--tff-green);
}

.site-menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}


/* --------------------------------
   MAIN
-------------------------------- */

main {
    overflow: hidden;
    background: var(--tff-background);
}


/* --------------------------------
   HERO
-------------------------------- */

.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(95, 120, 60, 0.055),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(107, 63, 42, 0.045),
            transparent 30%
        ),
        radial-gradient(
            circle at 60% 90%,
            rgba(95, 120, 60, 0.04),
            transparent 34%
        ),
        var(--tff-background);
}

.hero__inner {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding-block: 105px 120px;
}


/* --------------------------------
   HOMEPAGE ORGANIC ARTWORK
-------------------------------- */

.hero--home {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero--home .hero__inner {
    position: relative;
    z-index: 2;
}

.hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-art svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 900px;
    min-height: 650px;
}

.hero-art__shape {
    vector-effect: non-scaling-stroke;
}

.hero-art__shape--green {
    fill: rgba(95, 120, 60, 0.065);
    transform: translate(18px, -10px) scale(0.91);
    transform-origin: 78% 22%;
}

.hero-art__shape--brown {
    fill: rgba(107, 63, 42, 0.04);
}

.hero-art__glow {
    pointer-events: none;
}

.hero-art__glow--green {
    opacity: 0.7;
}

.hero-art__glow--brown {
    opacity: 0.62;
}

.hero-art__curve {
    fill: none;
    stroke: var(--tff-brown);
    stroke-width: 2.2;
    stroke-linecap: round;
    opacity: 0.2;
}

.hero-art__curve--soft {
    fill: none;
    stroke: var(--tff-green);
    stroke-width: 1.7;
    stroke-linecap: round;
    opacity: 0.17;
}

.hero--home .eyebrow,
.hero--home h1,
.hero--home .hero__lead,
.hero--home .hero__text {
    position: relative;
    z-index: 3;
}


/* --------------------------------
   TYPOGRAPHY
-------------------------------- */

.eyebrow {
    margin: 0 0 20px;
    color: var(--tff-green);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero h1 {
    position: relative;
    max-width: 820px;
    margin: 0;
    color: var(--tff-brown);
    font-family: "DM Serif Display", serif;
    font-size: clamp(2rem, 1.06rem + 4.19vw, 4.2rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.hero__lead {
    margin: 34px 0 0;
    color: var(--tff-brown);
    font-size: 1.12rem;
    font-weight: 500;
}

.hero__text {
    max-width: 580px;
    margin: 7px 0 0;
    color: var(--tff-muted);
}


/* --------------------------------
   INNER PAGES
-------------------------------- */

.inner-page {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background: var(--tff-background);
}

.inner-page__inner {
    padding-block: 100px 110px;
}

.inner-page h1 {
    max-width: 760px;
    margin: 0;
    color: var(--tff-brown);
    font-family: "DM Serif Display", serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.018em;
}

.inner-page__text {
    max-width: 600px;
    margin: 28px 0 0;
    color: var(--tff-muted);
}

.inner-page__text + .inner-page__text {
    margin-top: 8px;
}


/* --------------------------------
   CONTACT PAGE
-------------------------------- */

.contact-page {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background: var(--tff-background);
}

.contact-page__inner {
    padding-block: 100px 110px;
}

.contact-page h1 {
    max-width: 760px;
    margin: 0;
    color: var(--tff-brown);
    font-family: "DM Serif Display", serif;
    font-size: clamp(2.4rem, 3.5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.018em;
}

.contact-page__content {
    max-width: 600px;
    margin-top: 34px;
}

.contact-page__content p {
    margin: 0;
    color: var(--tff-muted);
}

.contact-page__email {
    display: inline-block;
    margin: 8px 0 22px;
    color: var(--tff-green);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(95, 120, 60, 0.55);
    transition:
        color 180ms ease,
        text-decoration-color 180ms ease;
}

.contact-page__email:hover {
    color: var(--tff-brown);
    text-decoration-color: rgba(107, 63, 42, 0.55);
}


/* --------------------------------
   SECTIONS
-------------------------------- */

.section {
    position: relative;
    padding-block: 110px;
    border-top: 1px solid var(--tff-border);
    background: var(--tff-background);
}

.section .book-cover {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin-top: 24px;
    border-radius: 3px;
    box-shadow: 0 8px 22px rgba(36, 36, 31, 0.12);
}


.section--book {
    background:
        radial-gradient(
            circle at 90% 30%,
            rgba(95, 120, 60, 0.035),
            transparent 30%
        ),
        var(--tff-background);
}

.section--philosophy {
    background:
        radial-gradient(
            circle at 10% 70%,
            rgba(107, 63, 42, 0.035),
            transparent 32%
        ),
        var(--tff-background);
}

.section__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 85px;
}

.section h2,
.philosophy h2 {
    margin: 0;
    color: var(--tff-brown);
    font-family: "DM Serif Display", serif;
    font-size: clamp(2.65rem, 4.4vw, 4.15rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.018em;
}

.section__subtitle {
    margin: 10px 0 0;
    color: var(--tff-green);
    font-family: "DM Serif Display", serif;
    font-size: 1.25rem;
}

.section__content {
    max-width: 610px;
}

.section__content > p:first-child {
    margin-top: 0;
    font-size: 1.06rem;
    line-height: 1.8;
}

.section__status {
    margin-top: 32px;
    color: var(--tff-green);
    font-weight: 600;
}

.section__author {
    margin-top: 4px;
    color: var(--tff-muted);
}

.text-link {
    display: inline-flex;
    gap: 10px;
    margin-top: 26px;
    color: var(--tff-green);
    border-bottom: 1px solid var(--tff-green);
    padding-bottom: 3px;
    font-size: 0.88rem;
    font-weight: 600;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        gap 180ms ease;
}

.text-link:hover {
    color: var(--tff-brown);
    border-color: var(--tff-brown);
    gap: 14px;
}


/* --------------------------------
   BOOK PARTS
-------------------------------- */

.book-parts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.book-part {
    padding-top: 18px;
    border-top: 1px solid var(--tff-border);
}

.book-part__number {
    margin: 0 0 12px;
    color: var(--tff-green);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.book-part h3 {
    margin: 0;
    color: var(--tff-brown);
    font-family: "DM Serif Display", serif;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.15;
}

.book-part > p:last-child {
    margin: 14px 0 0;
    color: var(--tff-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}


/* --------------------------------
   PHILOSOPHY
-------------------------------- */

.philosophy {
    max-width: 900px;
}

.philosophy__body {
    max-width: 650px;
    margin-top: 38px;
}

.philosophy__body p {
    margin: 0 0 16px;
    font-size: 1.04rem;
}

.philosophy__closing {
    margin-top: 34px !important;
    color: var(--tff-green);
    font-weight: 500;
}


/* --------------------------------
   FOOTER
-------------------------------- */

.site-footer {
    padding-block: 65px 38px;
    border-top: 1px solid var(--tff-border);
    background: var(--tff-background);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    align-items: start;
}

.site-footer p {
    margin: 7px 0 0;
    color: var(--tff-muted);
    font-size: 0.82rem;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.84rem;
}

.site-footer__nav a:hover {
    color: var(--tff-green);
}

.site-footer__meta {
    text-align: right;
}


/* --------------------------------
   ARTICLE
-------------------------------- */

.article__content blockquote {
    margin: 40px 0;
    padding-left: 28px;
    border-left: 2px solid var(--tff-green);
    color: var(--tff-brown);
    font-family: "DM Serif Display", serif;
    font-size: 1.65rem;
}


/* --------------------------------
   RESPONSIVE
-------------------------------- */

@media (max-width: 900px) {

    .section__grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .book-parts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__meta {
        text-align: left;
    }
}


@media (max-width: 768px) {

    .container {
        width: min(100% - 36px, 1080px);
    }

    .site-header__inner {
        min-height: 72px;
    }

    .site-menu-toggle {
        display: block;
    }

    .site-navigation {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 14px 18px 18px;
        border-bottom: 1px solid var(--tff-border);
        background: rgba(241, 243, 238, 0.97);
        backdrop-filter: blur(12px);
        z-index: 20;
    }

    .site-navigation.is-open {
        display: flex;
    }

    .site-navigation a {
        width: 100%;
        padding: 10px 0;
    }

    .hero {
        min-height: 600px;
    }

    .hero__inner {
        padding-block: 85px 95px;
    }

    .hero-art svg {
        min-width: 700px;
        min-height: 600px;
        left: -120px;
    }

    .hero-art__shape--green {
        fill: rgba(95, 120, 60, 0.055);
        transform: translate(10px, -5px) scale(0.94);
        transform-origin: 78% 22%;
    }

    .hero-art__shape--brown {
        fill: rgba(107, 63, 42, 0.035);
    }

    .hero-art__curve {
        stroke-width: 1.8;
        opacity: 0.16;
    }

    .hero-art__curve--soft {
        stroke-width: 1.4;
        opacity: 0.13;
    }

    .hero--home h1 {
        font-size: clamp(2.5rem, 9vw, 3.5rem);
        line-height: 1.07;
    }

    .hero--home .hero__lead {
        margin-top: 30px;
    }

    .inner-page,
    .contact-page {
        min-height: 600px;
    }

    .inner-page__inner,
    .contact-page__inner {
        padding-block: 80px 90px;
    }

    .inner-page h1,
    .contact-page h1 {
        font-size: clamp(2.3rem, 8vw, 3rem);
    }

    .section {
        padding-block: 80px;
    }

    .section h2,
    .philosophy h2 {
        font-size: clamp(2.35rem, 8vw, 3.2rem);
    }

    .book-parts {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 45px;
    }

    .site-footer {
        padding-block: 50px 30px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer__meta {
        text-align: left;
    }
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .hero-art {
        transform: none;
    }
}



/* --------------------------------
   BOOK PAGE
-------------------------------- */

.book-page {
    min-height: 650px;
    display: flex;
    align-items: center;
    background: var(--tff-background);
}

.book-page__inner {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 620px);
    justify-content: center;
    align-items: center;
    gap: clamp(36px, 7vw, 80px);
    padding-block: 90px 100px;
}

.book-page__cover {
    display: flex;
    justify-content: center;
}

.book-page__cover img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 12px 30px rgba(36, 36, 31, 0.14);
}


.book-page__content h1 {
    margin: 0;
    color: var(--tff-brown);
    font-family: "DM Serif Display", serif;
    font-size: clamp(2.4rem, 3.5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.018em;
}

.book-page__subtitle {
    margin: 12px 0 26px;
    color: var(--tff-green);
    font-size: 1.05rem;
}

.book-page__content > p:not(.eyebrow):not(.book-page__subtitle):not(.book-author) {
    margin: 0 0 16px;
    color: var(--tff-muted);
}

.book-page__content .book-author {
    margin: 24px 0;
    color: var(--tff-muted);
}

.book-page__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--tff-brown);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 180ms ease;
}

.book-page__button:hover {
    background: var(--tff-green);
}

@media (max-width: 768px) {
    .book-page__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-block: 60px 75px;
    }

    .book-page__cover img {
        max-width: 220px;
    }
}
