:root {
    --ink: #171714;
    --ink-soft: #2b2b26;
    --paper: #ebe7dc;
    --paper-deep: #d6d0c2;
    --white: #f8f6ef;
    --red: #8f2e2b;
    --red-bright: #b4453e;
    --olive: #73765b;
    --gold: #c2a66b;
    --line-light: rgba(248, 246, 239, .28);
    --line-dark: rgba(23, 23, 20, .18);
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 1rem;
    left: 1rem;
    padding: .65rem 1rem;
    color: var(--ink);
    background: var(--white);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.hero {
    position: relative;
    height: 92svh;
    min-height: 700px;
    max-height: 1080px;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
    isolation: isolate;
}

.site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    width: 100%;
    padding: 28px clamp(28px, 4vw, 78px);
    border-bottom: 1px solid var(--line-light);
}

.studio-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    margin-top: 10px;
    color: rgba(248, 246, 239, .78);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-decoration: none;
    text-transform: uppercase;
}

.studio-mark i {
    width: 34px;
    height: 1px;
    background: currentColor;
}

.wordmark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.wordmark__title {
    font-family: var(--serif);
    font-size: 2.35rem;
    letter-spacing: .24em;
    text-indent: .24em;
}

.wordmark__subtitle {
    margin-top: 8px;
    color: var(--gold);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-indent: .25em;
    text-transform: uppercase;
}

.account-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 2px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.account-nav a,
.link-button {
    min-height: 42px;
    padding: 11px 16px;
    border: 1px solid transparent;
    color: var(--white);
    background: transparent;
    cursor: pointer;
    letter-spacing: inherit;
    text-decoration: none;
    text-transform: uppercase;
}

.account-nav a:hover,
.link-button:hover {
    border-color: var(--line-light);
}

.account-nav .account-nav__primary {
    border-color: var(--line-light);
    background: rgba(23, 23, 20, .2);
}

.account-nav__name {
    max-width: 150px;
    overflow: hidden;
    color: var(--gold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-nav form {
    margin: 0;
}

.carousel,
.carousel__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carousel__slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease, visibility 1.1s;
}

.carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.carousel__slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.015);
    transition: transform 8s ease-out;
}

.carousel__slide.is-active > img {
    transform: scale(1.045);
}

.carousel__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 11, 10, .78) 0%, rgba(10, 11, 10, .42) 38%, rgba(10, 11, 10, .08) 70%),
        linear-gradient(180deg, rgba(10, 11, 10, .62) 0%, transparent 35%, transparent 64%, rgba(10, 11, 10, .68) 100%);
}

.carousel__copy {
    position: absolute;
    z-index: 2;
    left: clamp(28px, 8vw, 154px);
    bottom: clamp(150px, 19vh, 225px);
    width: min(690px, 58vw);
}

.eyebrow,
.section-number {
    margin: 0 0 22px;
    color: var(--gold);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow::before {
    display: inline-block;
    width: 48px;
    height: 1px;
    margin: 0 14px 4px 0;
    background: currentColor;
    content: "";
}

.carousel__copy h1,
.carousel__copy h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3.4rem, 5.5vw, 6.9rem);
    font-weight: 400;
    line-height: .94;
    letter-spacing: 0;
    text-wrap: balance;
}

.carousel__copy p:not(.eyebrow) {
    max-width: 610px;
    margin: 30px 0 34px;
    color: rgba(248, 246, 239, .84);
    font-family: var(--serif);
    font-size: 1.12rem;
    line-height: 1.65;
}

.command {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-width: 240px;
    min-height: 54px;
    padding: 14px 18px 14px 22px;
    border: 1px solid rgba(248, 246, 239, .5);
    color: var(--white);
    background: rgba(23, 23, 20, .18);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.command:hover {
    border-color: var(--white);
    color: var(--ink);
    background: var(--white);
}

.command span {
    font-size: 1.15rem;
}

.carousel__controls {
    position: absolute;
    z-index: 10;
    right: clamp(28px, 4vw, 78px);
    bottom: 48px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.carousel__arrow {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-light);
    border-radius: 50%;
    color: var(--white);
    background: rgba(23, 23, 20, .26);
    cursor: pointer;
    font-size: 1.1rem;
    place-items: center;
    transition: background .2s ease;
}

.carousel__arrow:hover {
    color: var(--ink);
    background: var(--white);
}

.carousel__status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.carousel__track {
    width: clamp(90px, 9vw, 168px);
    height: 1px;
    overflow: hidden;
    background: rgba(248, 246, 239, .35);
}

.carousel__track i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
}

.carousel__track i.is-running {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    to { transform: scaleX(1); }
}

.carousel__tabs {
    position: absolute;
    z-index: 10;
    bottom: 48px;
    left: 50%;
    display: flex;
    gap: 12px;
    transform: translateX(-50%);
}

.carousel__tabs button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(248, 246, 239, .4);
    cursor: pointer;
}

.carousel__tabs button.is-active {
    background: var(--white);
    box-shadow: 0 0 0 5px rgba(248, 246, 239, .14);
}

.hero__scroll {
    position: absolute;
    z-index: 10;
    bottom: 48px;
    left: clamp(28px, 4vw, 78px);
    display: flex;
    gap: 16px;
    align-items: center;
    color: rgba(248, 246, 239, .78);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-decoration: none;
    text-transform: uppercase;
}

.hero__scroll span {
    color: var(--gold);
    font-size: 1rem;
}

.introduction,
.pillars,
.enlist,
.site-footer {
    padding-right: clamp(28px, 8vw, 154px);
    padding-left: clamp(28px, 8vw, 154px);
}

.introduction {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
    gap: 64px 9vw;
    padding-top: clamp(90px, 11vw, 180px);
    padding-bottom: clamp(90px, 11vw, 180px);
}

.section-number {
    color: var(--red);
}

.introduction h2,
.pillars h2,
.enlist h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 4.4vw, 5.4rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: 0;
}

.introduction h2 em {
    color: var(--red);
    font-weight: 400;
}

.introduction__body {
    align-self: end;
    max-width: 650px;
    color: #47473f;
}

.introduction__body p {
    margin: 0;
}

.introduction__body p + p {
    margin-top: 24px;
}

.introduction__body .lead {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.3rem;
    line-height: 1.6;
}

.game-facts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 20px 0 0;
    border-top: 1px solid var(--line-dark);
}

.game-facts div {
    padding: 26px 28px 0 0;
}

.game-facts div + div {
    padding-left: 28px;
    border-left: 1px solid var(--line-dark);
}

.game-facts dt {
    margin-bottom: 8px;
    color: var(--red);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.game-facts dd {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.12rem;
}

.pillars {
    display: grid;
    grid-template-columns: .75fr 1.65fr;
    gap: 7vw;
    padding-top: clamp(80px, 9vw, 150px);
    padding-bottom: clamp(80px, 9vw, 150px);
    color: var(--white);
    background: var(--ink-soft);
}

.pillars .section-number {
    color: var(--gold);
}

.pillar-list {
    border-top: 1px solid rgba(248, 246, 239, .2);
}

.pillar-list article {
    display: grid;
    grid-template-columns: 60px minmax(120px, .65fr) 1fr;
    gap: 20px;
    align-items: baseline;
    padding: 32px 0;
    border-bottom: 1px solid rgba(248, 246, 239, .2);
}

.pillar-list article > span {
    color: var(--gold);
    font-size: .7rem;
    letter-spacing: .1em;
}

.pillar-list h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 400;
}

.pillar-list p {
    margin: 0;
    color: rgba(248, 246, 239, .66);
}

.enlist {
    padding-top: clamp(95px, 12vw, 190px);
    padding-bottom: clamp(95px, 12vw, 190px);
    text-align: center;
    background: var(--paper-deep);
}

.enlist .section-number {
    margin-bottom: 28px;
}

.enlist > p:not(.section-number) {
    max-width: 590px;
    margin: 28px auto 38px;
    color: #505047;
    font-family: var(--serif);
    font-size: 1.1rem;
}

.enlist__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.enlist__actions > a:not(.command) {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-underline-offset: 5px;
    text-transform: uppercase;
}

.command--dark {
    border-color: var(--ink);
    color: var(--white);
    background: var(--ink);
}

.command--dark:hover {
    border-color: var(--red);
    color: var(--white);
    background: var(--red);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    padding-top: 45px;
    padding-bottom: 45px;
    color: rgba(248, 246, 239, .6);
    background: var(--ink);
    font-size: .66rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.wordmark--footer {
    justify-self: start;
}

.wordmark--footer .wordmark__title {
    font-size: 1.4rem;
}

.wordmark--footer .wordmark__subtitle {
    font-size: .45rem;
}

.site-footer p {
    margin: 0;
}

.site-footer p:last-child {
    justify-self: end;
}

/* Authentication pages */
.auth-page {
    min-height: 100svh;
    color: var(--white);
    background: var(--ink);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr);
    min-height: 100svh;
}

.auth-visual {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
}

.auth-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 45%, rgba(23, 23, 20, .82) 100%);
    content: "";
}

.auth-visual .wordmark {
    position: absolute;
    z-index: 2;
    top: 32px;
    left: 42px;
    align-items: flex-start;
}

.auth-panel {
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 72px clamp(36px, 6vw, 100px);
    background: var(--ink);
}

.auth-panel__back {
    align-self: flex-start;
    margin-bottom: auto;
    color: rgba(248, 246, 239, .65);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}

.auth-panel__inner {
    width: 100%;
    max-width: 460px;
    margin: 80px auto;
}

.auth-panel .eyebrow {
    margin-bottom: 20px;
}

.auth-panel h1 {
    margin: 0 0 18px;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 4vw, 4.6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
}

.auth-panel__intro {
    margin: 0 0 34px;
    color: rgba(248, 246, 239, .65);
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-form__options {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
}

.auth-form__options a {
    color: rgba(248, 246, 239, .72);
    font-size: .76rem;
    text-underline-offset: 4px;
}

.auth-form__options a:hover {
    color: var(--white);
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: rgba(248, 246, 239, .7);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.form-field input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid rgba(248, 246, 239, .24);
    border-radius: 0;
    color: var(--white);
    background: rgba(248, 246, 239, .05);
}

.form-field input:focus {
    border-color: var(--gold);
    outline: 0;
}

.form-hint {
    margin: -2px 0 0;
    color: rgba(248, 246, 239, .48);
    font-size: .76rem;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    margin-top: 8px;
    padding: 14px 18px;
    border: 1px solid var(--red-bright);
    border-radius: 0;
    color: var(--white);
    background: var(--red);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.auth-submit:hover {
    background: var(--red-bright);
}

.auth-switch {
    margin: 28px 0 0;
    color: rgba(248, 246, 239, .62);
    font-size: .84rem;
}

.auth-switch a {
    color: var(--white);
    text-underline-offset: 4px;
}

.form-message {
    margin: 0 0 24px;
    padding: 12px 14px;
    border-left: 3px solid var(--red-bright);
    color: #f5cbc7;
    background: rgba(180, 69, 62, .12);
    font-size: .88rem;
}

.form-message--success {
    border-left-color: var(--olive);
    color: #e4e8cf;
    background: rgba(115, 118, 91, .18);
}

.auth-panel__footer {
    margin-top: auto;
    color: rgba(248, 246, 239, .4);
    font-size: .65rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 1000px) {
    .hero {
        min-height: 660px;
    }

    .site-header {
        grid-template-columns: 1fr auto;
    }

    .studio-mark {
        display: none;
    }

    .wordmark {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-items: flex-start;
    }

    .account-nav {
        grid-column: 2;
        grid-row: 1;
    }

    .carousel__copy {
        width: min(720px, 78vw);
    }

    .carousel__tabs {
        display: none;
    }

    .introduction,
    .pillars {
        grid-template-columns: 1fr;
    }

    .introduction__body {
        max-width: 760px;
    }

    .pillars__intro {
        max-width: 560px;
    }

    .auth-shell {
        grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr);
    }
}

@media (max-width: 720px) {
    .hero {
        height: 88svh;
        min-height: 640px;
        max-height: none;
    }

    .site-header {
        align-items: center;
        padding: 18px 20px;
    }

    .wordmark__title {
        font-size: 1.55rem;
    }

    .wordmark__subtitle {
        margin-top: 5px;
        font-size: .42rem;
    }

    .account-nav {
        gap: 2px;
        margin: 0;
        font-size: .62rem;
    }

    .account-nav a,
    .link-button {
        min-height: 38px;
        padding: 9px;
    }

    .account-nav__name {
        display: none;
    }

    .carousel__slide > img {
        object-position: 60% center;
    }

    .carousel__slide:nth-child(4) > img {
        object-position: 67% center;
    }

    .carousel__shade {
        background:
            linear-gradient(90deg, rgba(10, 11, 10, .75) 0%, rgba(10, 11, 10, .2) 100%),
            linear-gradient(180deg, rgba(10, 11, 10, .58) 0%, transparent 30%, rgba(10, 11, 10, .88) 78%);
    }

    .carousel__copy {
        right: 20px;
        bottom: 104px;
        left: 20px;
        width: auto;
    }

    .eyebrow {
        margin-bottom: 14px;
    }

    .eyebrow::before {
        width: 28px;
    }

    .carousel__copy h1,
    .carousel__copy h2 {
        font-size: clamp(2.8rem, 13vw, 4.25rem);
    }

    .carousel__copy p:not(.eyebrow) {
        margin: 20px 0 24px;
        font-size: .98rem;
        line-height: 1.5;
    }

    .command {
        min-width: min(240px, 100%);
    }

    .hero__scroll {
        display: none;
    }

    .carousel__controls {
        right: 20px;
        bottom: 24px;
        left: 20px;
        justify-content: flex-end;
    }

    .carousel__status {
        margin-right: auto;
    }

    .carousel__track {
        width: 90px;
    }

    .introduction,
    .pillars,
    .enlist,
    .site-footer {
        padding-right: 24px;
        padding-left: 24px;
    }

    .introduction {
        gap: 44px;
        padding-top: 78px;
        padding-bottom: 78px;
    }

    .introduction h2,
    .pillars h2,
    .enlist h2 {
        font-size: clamp(2.45rem, 12vw, 3.7rem);
    }

    .game-facts {
        grid-template-columns: 1fr;
    }

    .game-facts div,
    .game-facts div + div {
        padding: 20px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line-dark);
    }

    .pillars {
        gap: 52px;
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .pillar-list article {
        grid-template-columns: 40px 1fr;
    }

    .pillar-list p {
        grid-column: 2;
    }

    .enlist__actions {
        flex-direction: column;
    }

    .site-footer {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .site-footer p:last-child {
        justify-self: start;
    }

    .auth-shell {
        display: block;
    }

    .auth-visual {
        position: absolute;
        inset: 0;
        min-height: 100%;
        opacity: .24;
    }

    .auth-visual::after {
        background: rgba(23, 23, 20, .68);
    }

    .auth-visual .wordmark {
        display: none;
    }

    .auth-panel {
        position: relative;
        min-height: 100svh;
        padding: 28px 24px;
        background: transparent;
    }

    .auth-panel__inner {
        margin: 60px auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
