/* DionAcre Version 3.2 — public branding / landing page */

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

body.dionacre-landing {
    --brand-forest: #17331f;
    --brand-forest-2: #244a2c;
    --brand-gold: #b58b45;
    --brand-gold-soft: #d3b574;
    --brand-parchment: #efe3c8;
    --brand-parchment-light: #f7efdc;
    --brand-ink: #302718;
    --brand-muted: #716653;
    --brand-wine: #6f2c20;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(255,255,255,.05), transparent 20rem),
        linear-gradient(180deg, #12271a 0, #203d28 12rem, #d9c9a7 12rem, #e9dcc0 100%);
    color: var(--brand-ink);
    font-family: Georgia, "Times New Roman", serif;
}

body.dionacre-landing .dionacre-topbar,
body.dionacre-landing > .dionacre-topbar {
    display: none;
}

body.dionacre-landing .dionacre-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.dionacre-landing .page-title {
    display: none;
}

body.dionacre-landing a {
    color: #1f542d;
}

.landing-page {
    min-height: 100vh;
    background-color: var(--brand-parchment);
    background-image:
        radial-gradient(circle at 20% 15%, rgba(255,255,255,.33), transparent 34rem),
        repeating-linear-gradient(0deg, rgba(80,55,25,.018) 0, rgba(80,55,25,.018) 1px, transparent 1px, transparent 5px),
        repeating-linear-gradient(90deg, rgba(115,83,43,.012) 0, rgba(115,83,43,.012) 1px, transparent 1px, transparent 7px);
    box-shadow: inset 0 0 140px rgba(83,60,31,.16);
}

.landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    min-height: 610px;
    overflow: hidden;
    border-bottom: 1px solid rgba(85,61,28,.28);
    background:
        linear-gradient(90deg, rgba(246,236,213,.98) 0%, rgba(246,236,213,.95) 42%, rgba(246,236,213,.22) 61%, rgba(246,236,213,.02) 100%),
        linear-gradient(180deg, #f4e8cc, #e7d4aa);
}

.landing-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 76px;
    pointer-events: none;
    opacity: .14;
    background:
        linear-gradient(154deg, transparent 0 24%, #17331f 24% 30%, transparent 30% 37%, #17331f 37% 44%, transparent 44% 52%, #17331f 52% 58%, transparent 58% 100%);
}

.landing-hero-copy {
    position: relative;
    z-index: 3;
    align-self: center;
    padding: clamp(34px, 5vw, 78px) clamp(28px, 5vw, 84px);
}

.landing-logo {
    display: block;
    width: min(620px, 100%);
    height: auto;
    margin: 0 0 4px;
    filter: drop-shadow(0 6px 5px rgba(58,40,18,.20));
}

.landing-tagline {
    margin: 5px 0 20px;
    color: #4b3a21;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.landing-description {
    max-width: 650px;
    margin: 0;
    font-size: clamp(1.05rem, 1.55vw, 1.24rem);
    line-height: 1.55;
}

.landing-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 28px;
}

.invite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 24px;
    border: 1px solid #1d5a2a;
    border-radius: 7px;
    background: linear-gradient(#3e9449, #246f31);
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(26,57,31,.22), inset 0 1px rgba(255,255,255,.18);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 800;
    text-decoration: none;
}

.invite-button:not(.is-disabled):hover {
    background: linear-gradient(#48a654, #2d7d39);
}

.invite-button.is-disabled {
    cursor: default;
    opacity: .62;
    filter: saturate(.65);
}

.invite-note {
    color: var(--brand-muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .9rem;
}

.landing-hero-media {
    position: relative;
    z-index: 1;
    min-height: 610px;
    overflow: hidden;
    background: #34513a;
}

.landing-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(239,227,200,.30), transparent 24%),
        linear-gradient(180deg, transparent 55%, rgba(13,30,18,.38));
    pointer-events: none;
}

.landing-hero-media > img {
    width: 100%;
    height: 100%;
    min-height: 610px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.alpha-notice {
    position: absolute;
    z-index: 2;
    right: clamp(18px, 4vw, 54px);
    bottom: 34px;
    width: min(520px, calc(100% - 36px));
    padding: 14px 18px;
    border: 1px solid #3c1d16;
    border-radius: 8px;
    background: rgba(90,34,25,.94);
    color: #f7e9c9;
    box-shadow: 0 5px 18px rgba(0,0,0,.30), inset 0 0 0 2px rgba(222,172,104,.20);
}

.alpha-notice strong,
.alpha-notice span {
    display: block;
}

.alpha-notice strong {
    font-size: 1.15rem;
}

.alpha-notice span {
    margin-top: 4px;
    color: #e8d7bd;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .82rem;
}

.landing-gallery,
.landing-lower {
    width: min(1440px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.landing-gallery {
    padding: 54px 0 30px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading.compact {
    align-items: center;
}

.section-kicker {
    margin: 0 0 4px;
    color: #42613b;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.section-heading h2,
.tester-login h2 {
    margin: 0;
    color: #372a19;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.screenshot-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.screenshot-row figure {
    min-width: 0;
    margin: 0;
    border: 1px solid #a68858;
    border-radius: 7px;
    overflow: hidden;
    background: #f8eed8;
    box-shadow: 0 4px 12px rgba(72,53,28,.13);
}

.screenshot-row img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #9d936f;
}

.screenshot-row figure:nth-child(3) img,
.screenshot-row figure:nth-child(4) img {
    object-position: top center;
}

.screenshot-row figcaption {
    padding: 10px 12px 12px;
    color: #483a27;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .88rem;
    font-weight: 650;
}

.landing-lower {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(350px, .65fr);
    gap: 22px;
    padding: 18px 0 58px;
}

.devlog-card,
body.dionacre-landing .tester-login {
    border: 1px solid #b29a70;
    border-radius: 9px;
    background: rgba(249,240,219,.84);
    box-shadow: 0 7px 22px rgba(66,48,26,.12);
}

.devlog-card {
    padding: 22px 24px;
}

.bluesky-link {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}

.devlog-entry {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    padding: 15px 0;
    border-top: 1px solid rgba(121,95,55,.22);
}

.devlog-entry:first-child {
    border-top: 0;
}

.devlog-entry time {
    color: #766a56;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .82rem;
}

.devlog-entry h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.devlog-entry p {
    margin: 0;
    color: #5b5040;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .91rem;
    line-height: 1.45;
}

body.dionacre-landing .tester-login {
    max-width: none;
    margin: 0;
    padding: 22px;
    border-top: 4px solid #436c3c;
}

body.dionacre-landing .login-intro {
    margin: 8px 0 18px;
    color: #6e624f;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.dionacre-landing form.login,
body.dionacre-landing .account-links,
body.dionacre-landing .error {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.dionacre-landing form.login label {
    color: #463927;
}

body.dionacre-landing form.login input {
    border-color: #a5906d;
    background: rgba(255,255,255,.78);
}

body.dionacre-landing form.login button {
    color: #fff;
    border-color: #1d5a2a;
    background: linear-gradient(#3e9449, #246f31);
}

body.dionacre-landing .account-links {
    padding-top: 4px;
    color: #615644;
    font-size: .88rem;
}

.landing-footer {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px max(24px, calc((100vw - 1440px) / 2));
    border-top: 1px solid #17140f;
    background:
        repeating-linear-gradient(7deg, rgba(255,255,255,.018) 0 1px, transparent 1px 8px),
        linear-gradient(#30251a, #1e1812);
    color: #d9ccb5;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .85rem;
}

.landing-footer a {
    color: #e5d8bc !important;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 1050px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-hero-copy {
        padding-bottom: 34px;
    }

    .landing-hero-media,
    .landing-hero-media > img {
        min-height: 430px;
    }

    .screenshot-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-lower {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .landing-hero-copy {
        padding: 26px 20px 32px;
    }

    .landing-logo {
        width: 100%;
    }

    .landing-tagline {
        font-size: .95rem;
        letter-spacing: .10em;
    }

    .landing-hero-media,
    .landing-hero-media > img {
        min-height: 330px;
    }

    .alpha-notice {
        left: 14px;
        right: 14px;
        bottom: 16px;
        width: auto;
    }

    .landing-gallery,
    .landing-lower {
        width: min(100% - 22px, 1440px);
    }

    .landing-gallery {
        padding-top: 34px;
    }

    .screenshot-row {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .section-heading.compact {
        align-items: flex-start;
        flex-direction: column;
    }

    .devlog-entry {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .landing-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }
}
