:root {
    --ink: #1d1b22;
    --muted: #64606b;
    --paper: #fbfaf7;
    --surface: #ffffff;
    --line: #e4ddd8;
    --plum: #7a3554;
    --plum-dark: #512138;
    --teal: #247475;
    --sage: #dbe6df;
    --gold: #b88c46;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 18px clamp(20px, 5vw, 72px);
    background: rgba(251, 250, 247, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--plum-dark);
    text-decoration: none;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    box-shadow: 0 4px 14px rgba(29, 27, 34, 0.18);
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.05;
    letter-spacing: 0;
}

.brand strong {
    font-size: 18px;
    font-weight: 900;
}

.brand small {
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    font-weight: 700;
    color: #423a43;
}

.main-nav a,
.site-footer a {
    text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover,
.content-grid a:hover {
    color: var(--teal);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.button-donate,
.button-solid {
    background: var(--plum);
    color: #fff;
}

.button-donate:hover,
.button-solid:hover {
    background: var(--plum-dark);
}

.button-light {
    background: #fff;
    color: var(--plum-dark);
}

.button-outline {
    color: var(--plum-dark);
    border-color: #c7b6bd;
    background: transparent;
}

.button-blue {
    width: 100%;
    background: #3198d3;
    color: #fff;
    border: 0;
}

.button-blue:hover {
    background: #247fb4;
}

.hero {
    min-height: calc(100vh - 91px);
    display: grid;
    align-items: start;
    padding: clamp(28px, 4vw, 54px) clamp(24px, 7vw, 120px) clamp(20px, 3vw, 36px);
    color: #fff;
    background:
        linear-gradient(90deg, rgba(42, 21, 34, 0.88), rgba(42, 21, 34, 0.56) 48%, rgba(36, 116, 117, 0.2)),
        url("https://theinnerpeace.org/wp-content/uploads/2021/05/hero-01-free-img.jpg") center / cover;
}

.hero-inner {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero .eyebrow {
    color: #f1d9a6;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 74px);
    line-height: 1.02;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.08;
}

h3 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
}

.hero p {
    max-width: 660px;
    font-size: 20px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.hero-signup {
    overflow: hidden;
    border-radius: 8px;
    background: rgba(28, 35, 45, 0.92);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.hero-signup-head {
    padding: 18px 26px;
    background: #3198d3;
}

.hero-signup h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 28px;
    line-height: 1.12;
    text-align: center;
}

.hero-signup p {
    margin: 0;
    color: #eef8fd;
    font-size: 15px;
    text-align: center;
}

.hero-signup form {
    padding: 22px 26px 20px;
}

.hero-signup label {
    color: #fff;
    margin-bottom: 12px;
}

.hero-signup input {
    min-height: 46px;
    color: #fff;
    border-color: #3198d3;
    background: rgba(15, 22, 30, 0.82);
}

.hero-signup input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.profile-link {
    display: block;
    padding: 0 26px 20px;
    color: #90d7ff;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.profile-link:hover {
    color: #fff;
}

.split-section,
.content-grid,
.text-page,
.profile-frame-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 78px 0;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 46px;
    align-items: center;
}

.signup-card,
.details-panel,
.content-grid article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(29, 27, 34, 0.08);
}

.signup-card,
.details-panel {
    padding: 30px;
}

.signup-card.wide {
    width: 100%;
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: #4b4550;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cfc6c9;
    border-radius: 6px;
    font: inherit;
    background: #fff;
}

textarea {
    resize: vertical;
}

.form-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    color: #7a1f1f;
    background: #fff0f0;
    border: 1px solid #e7b6b6;
    border-radius: 6px;
    font-weight: 800;
}

.hero-signup .form-error {
    color: #fff;
    background: rgba(122, 31, 31, 0.4);
    border-color: rgba(255, 255, 255, 0.22);
}

.band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--plum-dark);
    color: #fff;
}

.metric {
    min-height: 160px;
    padding: 34px;
    display: grid;
    align-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.metric strong {
    font-size: 42px;
    line-height: 1;
}

.metric span {
    color: #eadfe5;
}

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

.content-grid article {
    padding: 30px;
}

.content-grid a {
    color: var(--plum);
    font-weight: 900;
}

.page-hero {
    padding: 96px clamp(24px, 8vw, 140px);
    background: linear-gradient(135deg, #f9f0eb, #dbe6df);
}

.page-hero.compact h1 {
    max-width: 980px;
    color: var(--plum-dark);
}

.page-hero.compact p:not(.eyebrow) {
    max-width: 760px;
    font-size: 20px;
}

.text-page {
    max-width: 980px;
}

.text-page p {
    font-size: 19px;
    color: var(--muted);
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 42px 0;
}

.programme-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.programme-grid article {
    min-width: 0;
}

.programme-grid h2 {
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.12;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
}

.profile-frame-section {
    padding-top: 34px;
}

.frame-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.profile-frame {
    width: 100%;
    height: 760px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr;
    gap: 38px;
    padding: 54px clamp(20px, 5vw, 72px);
    color: #efe9ec;
    background: #251722;
}

.site-footer h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d8cbd1;
}

.footer-brand {
    margin-top: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.footer-brand-lockup {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.footer-brand-lockup img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 960px) {
    .site-header {
        grid-template-columns: 1fr;
    }

    .main-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero-inner,
    .split-section,
    .content-grid,
    .programme-grid,
    .two-column,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .band {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        min-height: auto;
    }
}

@media (max-width: 620px) {
    .main-nav {
        gap: 12px;
        font-size: 14px;
    }

    .button {
        width: 100%;
    }

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

    .hero,
    .page-hero {
        padding-left: 20px;
        padding-right: 20px;
    }
}
