html,
body {
    overflow-x: hidden;
    animation: gentle-project-in .42s ease both;
    transition: opacity .15s ease;
}

body.soft-leaving {
    opacity: 0;
}

@keyframes gentle-project-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reveal {
    opacity: 1;
    transform: none;
}

.main-nav {
    gap: clamp(16px, 2vw, 32px);
}

.simple-page-hero {
    display: grid;
    min-height: 520px;
    place-items: center;
    padding: 90px clamp(24px, 10vw, 170px);
    background: linear-gradient(120deg, var(--paper), #eee5d6);
}

.simple-page-hero > div {
    width: min(100%, 930px);
}

.simple-page-hero h1 {
    max-width: 880px;
    margin: 0;
    font: clamp(54px, 7vw, 96px)/.98 var(--serif);
    letter-spacing: -.035em;
}

.simple-page-hero h1 em {
    color: #9b6732;
    font-weight: 400;
}

.simple-page-hero > div > p:last-child {
    max-width: 700px;
    margin: 30px 0 0;
    color: #59615d;
    font-size: 18px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: clamp(28px, 7vw, 100px);
    padding: 100px clamp(24px, 10vw, 170px) 130px;
}

.contact-card {
    padding: clamp(28px, 5vw, 60px);
    border-top: 1px solid var(--line);
    background: #fffdf8;
}

.contact-card h2 {
    margin: 10px 0 24px;
    font: clamp(36px, 4vw, 58px)/1.05 var(--serif);
}

.contact-card > p:not(.chapter-label) {
    max-width: 680px;
    color: var(--muted);
}

.contact-address {
    display: inline-block;
    margin-bottom: 22px;
    color: #9b6732;
    font: clamp(20px, 2.2vw, 30px)/1.3 var(--serif);
    overflow-wrap: anywhere;
    border-bottom: 1px solid currentColor;
}

.contact-card .button {
    margin-top: 22px;
}

.contact-form-panel {
    margin-top: 22px;
    scroll-margin-top: 110px;
}

.contact-card .contact-form-panel > summary {
    width: fit-content;
    margin: 0;
    cursor: pointer;
    list-style: none;
}

.contact-form-panel > summary::-webkit-details-marker {
    display: none;
}

.contact-form-panel[open] > summary {
    background: var(--green-2);
}

.contact-form-panel[open] > summary span {
    transform: rotate(90deg);
}

.contact-form-panel > summary span {
    transition: transform .2s ease;
}

.contact-form-content {
    margin-top: 30px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    background: var(--paper);
}

.contact-form-heading {
    max-width: 680px;
    margin-bottom: 30px;
}

.contact-form-heading h3 {
    margin: 8px 0 12px;
    font: clamp(32px, 4vw, 48px)/1.05 var(--serif);
}

.contact-form-heading > p:last-child,
.contact-form-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.contact-form {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    align-content: start;
}

.contact-form label > span {
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-form label b {
    color: #9b6732;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 13px 14px;
    color: var(--ink);
    background: #fffdf8;
    font: 16px/1.55 var(--sans);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form textarea {
    min-height: 170px;
    resize: vertical;
}

.support-form textarea {
    min-height: 135px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #9b6732;
    box-shadow: 0 0 0 3px rgba(155, 103, 50, .12);
}

.contact-form [aria-invalid="true"] {
    border-color: #a34034;
}

.contact-form-wide {
    grid-column: 1 / -1;
}

.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 4px;
}

.contact-form-footer p {
    max-width: 520px;
}

.contact-form-footer .button {
    flex: 0 0 auto;
    margin: 0;
    border: 0;
    cursor: pointer;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.field-error {
    color: #8f352c;
    font-size: 12px;
}

.form-notice {
    display: grid;
    gap: 4px;
    margin-top: 20px;
    padding: 17px 20px;
    border-left: 3px solid currentColor;
    font-size: 14px;
}

.form-notice-success {
    color: #255c48;
    background: #eaf2ed;
}

.form-notice-error {
    margin-bottom: 22px;
    color: #8f352c;
    background: #f8ebe8;
}

body.has-modal {
    overflow: hidden;
}

.form-modal {
    width: min(900px, calc(100vw - 40px));
    max-width: none;
    max-height: 90dvh;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    overflow: visible;
}

.form-modal[open] {
    animation: modal-arrive .34s cubic-bezier(.2, .75, .25, 1) both;
}

.form-modal::backdrop {
    background: rgba(12, 27, 22, .68);
    backdrop-filter: blur(7px);
    animation: modal-backdrop .25s ease both;
}

.form-modal-shell {
    position: relative;
    max-height: 90dvh;
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    box-shadow: 0 30px 90px rgba(8, 22, 17, .32);
}

.form-modal .contact-form-content {
    margin: 0;
    padding: clamp(30px, 5vw, 58px);
    border: 0;
}

.form-modal-close {
    position: absolute;
    z-index: 3;
    top: 17px;
    right: 17px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.form-modal-close:hover,
.form-modal-close:focus-visible {
    border-color: #9b6732;
    color: #9b6732;
}

.character-count {
    justify-self: end;
    color: var(--muted);
    font-size: 11px;
}

.contact-form button[disabled] {
    cursor: wait;
    opacity: .72;
}

@keyframes modal-arrive {
    from { opacity: 0; transform: translateY(24px) scale(.975); }
    to { opacity: 1; transform: none; }
}

@keyframes modal-backdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

.partners-section {
    padding: 110px clamp(24px, 7vw, 112px) 125px;
    background: #f1ebdf;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.partner-card,
.partners-empty {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 22px;
    align-items: start;
    padding: 30px;
    border: 1px solid var(--line);
    background: var(--paper);
}

.partner-mark {
    display: grid;
    width: 72px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid #b68a50;
    border-radius: 50%;
    color: #9b6732;
    font: 24px var(--serif);
    text-transform: uppercase;
}

.partner-card h3,
.partners-empty h3 {
    margin: 3px 0 10px;
    font: 27px/1.1 var(--serif);
}

.partner-card p,
.partners-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.partner-card a {
    display: inline-block;
    margin-top: 16px;
    color: #8d5d2d;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid currentColor;
}

.partners-empty {
    width: min(100%, 760px);
}

.partners-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 45px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.partners-action p {
    max-width: 650px;
    margin: 0;
    font: 24px/1.35 var(--serif);
}

@media (max-width: 1000px) {
    .partners-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-note {
    align-self: center;
    padding: clamp(30px, 5vw, 55px);
    background: var(--green);
    color: #fff;
}

.contact-note span {
    color: #d5b779;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.contact-note p {
    margin: 24px 0 0;
    font: italic clamp(22px, 2.4vw, 31px)/1.45 var(--serif);
}

.professional-story {
    background: #f3eee4;
}

.professional-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.professional-tags li {
    padding: 9px 14px;
    color: var(--green);
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.about-cta-actions {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.button-outline-light {
    color: #fff;
    border: 1px solid rgba(255,255,255,.38);
}

.indigo {
    background: linear-gradient(145deg, #343552, #65658c);
}

.mini-book-5 {
    top: 41%;
    left: 36%;
    z-index: 3;
    transform: rotate(-3deg);
}

.emerald {
    background: linear-gradient(145deg, #1f4c43, #438476);
}

.mini-book-6 {
    bottom: -2%;
    left: 8%;
    z-index: 2;
    transform: rotate(7deg);
}

.workshop {
    background: linear-gradient(145deg, #4b382c, #a96528);
}

.mini-book-7 {
    right: 2%;
    bottom: 8%;
    z-index: 4;
    transform: rotate(6deg);
}

.agape {
    background: linear-gradient(145deg, #5d3343, #a85d68);
}

.mini-book-8 {
    right: 27%;
    bottom: -5%;
    z-index: 5;
    transform: rotate(-5deg);
}

.armor {
    background: linear-gradient(145deg, #273d39, #a47732);
}

.mini-book-9 {
    left: 30%;
    bottom: -12%;
    z-index: 6;
    transform: rotate(2deg);
}

.transformation {
    background: linear-gradient(145deg, #493c58, #b36a4c);
}

.mini-book-10 {
    left: 3%;
    top: 12%;
    z-index: 1;
    transform: rotate(-9deg);
}

.fruit {
    background: linear-gradient(145deg, #315443, #b17c34);
}

.mini-book-11 {
    right: 7%;
    top: 4%;
    z-index: 2;
    transform: rotate(9deg);
}

.prosperity {
    background: linear-gradient(145deg, #173f3b, #c08a35);
}

.mini-book-12 {
    left: 43%;
    top: 1%;
    z-index: 3;
    transform: rotate(-1deg);
}

@media (max-width: 760px) {
    .site-header {
        padding-inline: 16px;
    }

    .brand strong {
        font-size: 12px;
    }

    .hero-copy {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero h1,
    .about-hero h1 {
        max-width: 100%;
        font-size: clamp(2.8rem, 12vw, 3.55rem);
        line-height: .98;
        letter-spacing: -.03em;
        text-wrap: pretty;
        overflow-wrap: anywhere;
    }

    .hero h1 em {
        display: block;
    }

    .hero-text,
    .about-lead {
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-actions,
    .book-actions {
        width: 100%;
    }

    .hero-actions .button,
    .book-actions .button {
        width: 100%;
    }

    .section-heading h2,
    .story-copy h2,
    .calling h2 {
        font-size: clamp(2.35rem, 10.5vw, 3rem);
        text-wrap: balance;
    }

    .book-info h3 {
        font-size: clamp(2rem, 9vw, 2.4rem);
    }

    .invitation blockquote,
    .about-cta p {
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .simple-page-hero {
        min-height: 440px;
        padding: 70px 20px;
    }

    .simple-page-hero h1 {
        font-size: clamp(2.7rem, 12vw, 3.5rem);
    }

    .simple-page-hero > div > p:last-child {
        font-size: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        padding: 70px 20px 90px;
    }

    .partners-section {
        padding: 80px 20px 90px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-card,
    .partners-empty {
        grid-template-columns: 58px 1fr;
        gap: 17px;
        padding: 23px 20px;
    }

    .partner-mark {
        width: 58px;
        font-size: 19px;
    }

    .partners-action {
        align-items: stretch;
        flex-direction: column;
    }

    .partners-action .button {
        width: 100%;
    }

    .contact-card {
        padding: 30px 22px;
    }

    .contact-card .button,
    .about-cta-actions .button {
        width: 100%;
    }

    .contact-card .contact-form-panel > summary {
        width: 100%;
    }

    .contact-form-content {
        margin-inline: -22px;
        padding: 28px 20px;
        border-inline: 0;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form-wide {
        grid-column: auto;
    }

    .contact-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-form-footer .button {
        width: 100%;
    }

    .form-modal {
        width: calc(100vw - 20px);
        max-height: 94dvh;
    }

    .form-modal-shell {
        max-height: 94dvh;
    }

    .form-modal .contact-form-content {
        margin: 0;
        padding: 38px 20px 25px;
    }

    .form-modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .hero-proof {
        width: 100%;
    }

    .hero-proof li {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .site-header {
        padding-inline: 14px;
    }

    .brand-mark {
        width: 38px;
        height: 44px;
    }

    .hero,
    .about-hero {
        padding-inline: 18px;
    }

    .hero h1,
    .about-hero h1 {
        font-size: clamp(2.35rem, 11.5vw, 2.8rem);
    }

    .hero-proof strong {
        font-size: 21px;
    }

    .hero-proof span {
        font-size: 7px;
    }

    .library,
    .about-story,
    .calling {
        padding-inline: 18px;
    }

    .invitation,
    .about-cta {
        margin-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body, .form-modal[open], .form-modal::backdrop { animation: none; transition: none; }
}
