@font-face {
    font-family: "Palash";
    src: url("../fonts/Palash-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #0b0b0d;
    --ivory: #f5f2eb;
    --linen: #f6f3ee;
    --stone: #d8d2c6;
    --taupe: #a89d8c;
    --gold: #b89a5b;
    --rose: #c9a4a4;
    --rose-deep: #a8757c;
    --forest: #2f4a3f;
    --shadow: 0 26px 80px rgba(11, 11, 13, 0.18);
    --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --display-font: "Palash", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--ivory);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--body-font);
    letter-spacing: 0;
}

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

button,
input {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 17% 22%, rgba(201, 164, 164, 0.2), transparent 28rem),
        linear-gradient(135deg, rgba(245, 242, 235, 0.98), rgba(216, 210, 198, 0.44));
}

.hero {
    position: relative;
    display: grid;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(1.25rem, 2.6vw, 2.4rem);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
}

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(245, 242, 235, 0.96) 0%, rgba(245, 242, 235, 0.78) 32%, rgba(245, 242, 235, 0.1) 58%, rgba(11, 11, 13, 0.04) 100%),
        linear-gradient(180deg, rgba(245, 242, 235, 0.28), rgba(245, 242, 235, 0.02) 50%, rgba(11, 11, 13, 0.08));
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    width: min(100%, 74rem);
    margin: 0 auto;
}

.brand-link {
    display: inline-flex;
    width: clamp(12rem, 22vw, 19rem);
}

.hero__content {
    width: min(100%, 40rem);
    align-self: center;
    margin: clamp(2.4rem, 7vh, 4.5rem) auto clamp(2.4rem, 6vh, 4rem);
    margin-left: max(0rem, calc((100vw - 74rem) / 2));
    padding: clamp(1.2rem, 3vw, 2.4rem) 0;
}

.eyebrow,
.site-footer,
.ritual-points span {
    text-transform: uppercase;
    letter-spacing: 0.24em;
}

.eyebrow {
    margin: 0 0 1.05rem;
    color: var(--gold);
    font-size: clamp(0.72rem, 1vw, 0.86rem);
    font-weight: 700;
}

h1 {
    max-width: 11ch;
    margin: 0;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(3.7rem, 7.3vw, 6.7rem);
    font-weight: 400;
    line-height: 0.94;
}

.lede {
    max-width: 35rem;
    margin: 1.55rem 0 2rem;
    color: rgba(11, 11, 13, 0.78);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.8;
}

.signup-form {
    width: min(100%, 26.5rem);
}

.signup-form__row {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) auto;
    gap: 0.55rem;
}

.signup-form input {
    min-width: 0;
    border: 1px solid rgba(184, 154, 91, 0.46);
    border-radius: 999px;
    background: rgba(246, 243, 238, 0.82);
    box-shadow: 0 18px 54px rgba(11, 11, 13, 0.11);
    color: var(--ink);
    padding: 0.72rem 2.6rem 0.72rem 1rem;
    outline: none;
    backdrop-filter: blur(10px);
}

.signup-form input::placeholder {
    color: rgba(11, 11, 13, 0.48);
}

.signup-form input:focus-visible {
    box-shadow: 0 18px 54px rgba(11, 11, 13, 0.11), inset 0 0 0 2px rgba(184, 154, 91, 0.62);
}

.signup-form button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--rose-deep));
    color: #fff;
    cursor: pointer;
    min-height: 2.55rem;
    padding: 0.72rem 1.18rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    white-space: nowrap;
}

.signup-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(168, 117, 124, 0.28);
}

.signup-form button:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.form-message {
    min-height: 1.4rem;
    margin: 0.8rem 0 0;
    color: var(--forest);
    font-size: 0.92rem;
    font-weight: 700;
}

.form-message.is-error {
    color: #7f1d1d;
}

.ritual-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2.4rem;
}

.ritual-points div {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(11, 11, 13, 0.68);
    font-size: 0.7rem;
    font-weight: 800;
}

.ritual-points img {
    width: 1.3rem;
    height: 1.3rem;
    object-fit: contain;
    opacity: 0.78;
}

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 0.45rem;
    align-self: end;
    width: min(100%, 74rem);
    margin: 0 auto;
    color: rgba(11, 11, 13, 0.64);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 760px) {
    .hero {
        min-height: 100svh;
        padding: 1rem;
    }

    .hero__media img {
        object-position: 68% center;
    }

    .hero__shade {
        background:
            linear-gradient(180deg, rgba(245, 242, 235, 0.96) 0%, rgba(245, 242, 235, 0.82) 42%, rgba(245, 242, 235, 0.42) 76%, rgba(11, 11, 13, 0.14) 100%),
            linear-gradient(90deg, rgba(245, 242, 235, 0.88), rgba(245, 242, 235, 0.24));
    }

    .site-header {
        justify-content: center;
    }

    .brand-link {
        width: min(72vw, 15rem);
    }

    .hero__content {
        width: 100%;
        margin: 1.4rem 0 1.7rem;
        align-self: center;
        padding-top: clamp(1.6rem, 8vh, 3.4rem);
    }

    h1 {
        max-width: 10ch;
        font-size: clamp(3.15rem, 15vw, 4.6rem);
        line-height: 0.96;
    }

    .lede {
        margin-top: 1.2rem;
        line-height: 1.65;
    }

    .signup-form__row {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .signup-form input,
    .signup-form button {
        width: 100%;
        border-radius: 999px;
    }

    .signup-form input {
        background: rgba(246, 243, 238, 0.86);
        box-shadow: var(--shadow);
        padding: 0.9rem 1.15rem;
    }

    .signup-form button {
        min-height: 3rem;
        padding: 0.9rem 1.2rem;
        font-size: 0.74rem;
    }

    .signup-form button {
        white-space: normal;
    }

    .ritual-points {
        gap: 0.85rem;
        margin-top: 1.8rem;
    }

    .site-footer {
        font-size: 0.62rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
