@font-face {
    font-family: Barlow;
    src: url("/fonts/barlow.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: Spectral;
    src: url("/fonts/spectral.ttf") format("truetype");
    font-display: swap;
}
:root {
    color-scheme: dark;
    --ground: #121611;
    --surface: #1c2119;
    --line: #494535;
    --text: #f1ead8;
    --muted: #c3bdab;
    --gold: #e0b56a;
    --gold-hover: #f0c781;
    --ink: #1c170e;
    font-family: Barlow, system-ui, sans-serif;
    color: var(--text);
    background: var(--ground);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2 { font-family: Spectral, Georgia, serif; font-weight: 500; line-height: 1.04; margin: 0; }
p { margin: 0; line-height: 1.55; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 2px solid var(--gold-hover); outline-offset: 4px; }
.skip { position: fixed; top: .6rem; left: .6rem; background: var(--ground); padding: .7rem; z-index: 2; transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.site-width { width: min(calc(100% - 3.75rem), 75rem); margin-inline: auto; }
.site-header { background: #141911; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .68rem; color: var(--text); text-decoration: none; font-family: Spectral, Georgia, serif; font-size: 1.28rem; white-space: nowrap; }
.brand img { display: block; flex-shrink: 0; }
nav { display: flex; align-items: center; gap: 1.4rem; }
.nav-link { color: var(--text); font-size: 1rem; text-decoration: none; white-space: nowrap; }
.button { min-height: 3rem; display: inline-flex; justify-content: center; align-items: center; padding: .6rem 1.25rem; border: 1px solid var(--gold); border-radius: .2rem; color: var(--ink); background: var(--gold); text-decoration: none; font: 700 1.02rem Barlow, sans-serif; line-height: 1.2; cursor: pointer; }
.button:hover { color: var(--ink); background: var(--gold-hover); border-color: var(--gold-hover); }
.button-small, .button-outline { background: transparent; color: var(--gold); }
.button-small { min-height: 2.6rem; padding: .45rem .8rem; font-size: .93rem; white-space: nowrap; }
.hero {
    min-height: clamp(32rem, 68vh, 45rem);
    display: grid;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, #11150f 0%, #11150fe8 17%, #11150fb5 39%, #11150f36 70%, #11150f24 100%),
        linear-gradient(0deg, #11150f 0%, transparent 34%),
        #191a11 url("/art/gloamvault.webp") center 55% / cover;
}
.hero-content { padding-block: clamp(4rem, 10vh, 7rem); }
.eyebrow { color: var(--gold); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.hero h1 { font-size: clamp(4.1rem, 8.7vw, 8.7rem); line-height: .87; letter-spacing: -.055em; margin: 1rem 0 1.35rem; }
.hero-copy { color: var(--text); max-width: 27rem; font-size: 1.22rem; margin-bottom: 1.65rem; }
.field-note { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); padding-block: 3.5rem; }
.field-note img { width: 100%; height: auto; aspect-ratio: 2.15; object-fit: cover; border: 1px solid var(--line); border-radius: .25rem; }
.field-note h2 { font-size: clamp(2rem, 4vw, 3.6rem); margin: .6rem 0 .75rem; }
.field-note div > p:last-child { color: var(--muted); font-size: 1.09rem; max-width: 30rem; }
.auth-stage {
    min-height: calc(100vh - 9.1rem);
    display: grid;
    place-items: center;
    padding: 2.75rem 1.25rem;
    background:
        linear-gradient(0deg, #121611 0%, #11150f8c 54%, #11150fac 100%),
        #151a13 url("/art/gloamvault.webp") center 54% / cover;
}
.auth-panel { width: min(100%, 29rem); border: 1px solid #605343; border-top: 2px solid #b1894b; border-radius: .28rem; background: var(--surface); box-shadow: 0 1.2rem 3rem #0a0c09aa; padding: clamp(1.2rem, 4.7vw, 2.35rem); }
.auth-panel h1 { font-size: clamp(2rem, 6vw, 2.65rem); margin-bottom: .65rem; }
.auth-panel > p, .account-note p { color: var(--muted); }
.auth-panel form { margin-top: 1.4rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .36rem; font-weight: 700; }
.field input { width: 100%; min-height: 2.7rem; background: #131710; color: var(--text); border: 1px solid #6b6050; border-radius: .18rem; padding: .5rem .68rem; font: inherit; }
.field input.input-validation-error { border-color: #f1a798; }
.field-hint { display: block; margin-top: .34rem; color: var(--muted); font-size: .91rem; }
.validation { display: block; color: #ffc1ad; font-size: .96rem; }
.validation ul { padding-left: 1.25rem; margin: 0 0 .9rem; }
.validation-summary-valid, .field-validation-valid { display: none; }
.field-validation-error { margin-top: .28rem; }
.check { display: flex; align-items: center; gap: .52rem; margin: 0 0 1.05rem; }
.check input { margin: 0; width: 1.14rem; height: 1.14rem; accent-color: var(--gold); }
.full { width: 100%; }
.form-tail { margin-top: 1.25rem; }
.account-details { margin: 1.3rem 0; padding: .9rem 0; border-block: 1px solid var(--line); }
.account-details div { display: grid; grid-template-columns: 6rem 1fr; gap: .7rem; }
.account-details div + div { margin-top: .6rem; }
.account-details dt { font-weight: 700; }
.account-details dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.account-note h2 { font-size: 1.5rem; }
.account-note p { margin-top: .4rem; }
.site-footer { color: var(--muted); background: #141911; border-top: 1px solid var(--line); font-size: .95rem; }
.site-footer > div { min-height: 4.3rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
@media (max-width: 700px) {
    .site-width { width: calc(100% - 2rem); }
    .header-inner { min-height: 4rem; }
    nav { gap: .72rem; }
    .brand { font-size: 1.07rem; gap: .4rem; }
    .brand img { width: 24px; height: 27px; }
    .nav-link, .button-small { font-size: .9rem; }
    .button-small { padding-inline: .54rem; }
    .hero { min-height: 31rem; background-position: center, center, 60% center; }
    .hero h1 { font-size: clamp(3.4rem, 12.5vw, 5.75rem); }
    .hero-copy { font-size: 1.08rem; max-width: 21rem; }
    .field-note { grid-template-columns: 1fr; gap: 1.45rem; padding-block: 2.4rem; }
    .auth-stage { min-height: calc(100vh - 8.3rem); }
}
@media (max-width: 380px) {
    .brand img { display: none; }
}
