@font-face {
    font-family: Cinzel;
    src: url("/assets/Cinzel.ttf") format("truetype");
    font-display: swap;
    font-weight: 400 900;
}

:root {
    color-scheme: dark;
    --bg: #17130f;
    --surface: #241c16;
    --surface-dark: #1b1511;
    --edge: #66503a;
    --line: #48372a;
    --text: #f5e7d5;
    --muted: #cdb8a2;
    --gold: #e7ba79;
    --ink: #20150b;
    --font-display: Cinzel, Georgia, serif;
    --page-pad: clamp(1rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: #936b43 #201710; }
body {
    margin: 0;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 1rem/1.55 system-ui, sans-serif;
}
main { flex: 1; }
main:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.18; font-family: var(--font-display); font-weight: 700; }
h1 { font-size: clamp(2rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h3 { font-size: 1.16rem; }
p { margin: .7rem 0 0; color: var(--muted); }
a { color: inherit; }
a[href], button, summary, select, label:has(input[type="checkbox"]), input[type="checkbox"] { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #ffd190; outline-offset: 4px; }
button, input, select, textarea { font: inherit; }
::selection { color: var(--ink); background: var(--gold); }
.wrap { width: min(100%, 91rem); margin-inline: auto; padding-inline: var(--page-pad); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: .8rem; left: .8rem; padding: .7rem 1rem; background: var(--bg); }

.topbar { background: #18130f; border-bottom: 1px solid #735638; }
.topbar-inner { display: grid; grid-template-columns: 10rem 1fr 10rem; align-items: center; gap: 1.1rem; min-height: 5.1rem; }
.brand { width: 8.8rem; display: block; }
.nav-primary { display: flex; align-items: center; justify-content: center; gap: clamp(.55rem, 2.3vw, 2.2rem); }
.nav-primary a, .footer-inner nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: .91rem;
}
.nav-primary a:hover, .footer-inner nav a:hover, .nav-primary a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: .38em; }
.top-account { justify-self: end; }
.account-mobile { display: none; }

.hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    display: grid;
    align-items: center;
    min-height: clamp(30rem, 43vw, 43rem);
}
.hero-art, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-art { object-fit: cover; object-position: center 47%; }
.hero::after {
    content: "";
    z-index: -1;
    background: linear-gradient(90deg, #120d0ae8 5%, #140e0ac9 33%, #1b120a22 74%), linear-gradient(0deg, #17130f 0%, transparent 32%);
}
.hero-inner { padding-block: 3rem 4.8rem; }
.hero-content { max-width: 46rem; }
.hero-logo { width: clamp(12rem, 28vw, 23rem); margin: 0 0 .65rem -.3rem; }
.hero h1 { font-size: clamp(2.6rem, 5.9vw, 5.1rem); color: #fff1d7; }
.hero p:not(.message) { max-width: 31rem; font-size: clamp(1.05rem, 1.5vw, 1.23rem); color: #f1ddc3; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.55rem; }
.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: .62rem 1.15rem;
    border: 1px solid var(--edge);
    border-radius: 3px;
    text-decoration: none;
    text-align: center;
    font-weight: 750;
    line-height: 1.3;
    transition: background-color .16s, border-color .16s, transform .16s;
}
.button:active { transform: translateY(2px); }
.primary { background: var(--gold); color: var(--ink); border-color: #ecc491; }
.primary:hover { background: #f6d29d; }
.secondary { color: var(--text); background: #271d15; border-color: #96704a; }
.secondary:hover { background: #3a2b1f; border-color: #c79963; }
.road-strip { border-block: 1px solid var(--edge); background: #241a12; }
.road-strip .wrap { display: flex; justify-content: space-between; gap: .75rem 2.5rem; padding-block: .95rem; }
.road-strip span { color: #e5c6a2; font: 700 clamp(.78rem, 1.5vw, .95rem)/1.3 var(--font-display); }
.road-strip span + span::before { content: "◆"; font: .45rem system-ui; vertical-align: middle; margin-right: 1rem; color: #c39360; }
.home-content { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(1.8rem, 5vw, 5rem); padding-block: clamp(2.3rem, 5vw, 4.4rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; }
.dispatch { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.dispatch h3 { margin-top: .35rem; }
.dispatch h3 a { text-decoration: none; }
.dispatch h3 a:hover { text-decoration: underline; text-underline-offset: .25em; }
.dispatch-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; color: var(--muted); font-size: .82rem; }
.dispatch-meta span, .rank { color: var(--gold); font-weight: 700; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; width: fit-content; color: var(--gold); font-weight: 700; text-underline-offset: .25em; }
.text-link:hover { color: #ffdbab; }
.field-feature { align-self: start; border: 1px solid var(--edge); background: var(--surface); }
.field-feature img { width: 100%; aspect-ratio: 2.3; object-fit: cover; object-position: center 55%; }
.field-feature div { padding: 1.2rem 1.4rem .8rem; }
.home-gallery { padding-top: clamp(2.3rem, 5vw, 4.4rem); }
.home-gallery > p, .gallery-intro { max-width: 48rem; margin-top: .35rem; }
.scene-grid { display: grid; gap: clamp(.9rem, 2.2vw, 1.65rem); margin-top: 1.25rem; }
.scene-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scene-card, .scene-detail { min-width: 0; border: 1px solid var(--edge); background: var(--surface); }
.scene-card { position: relative; display: grid; align-content: start; }
.scene-card a { color: inherit; text-decoration: none; }
.scene-card a::after { content: ""; position: absolute; inset: 0; }
.scene-card:hover, .scene-card:focus-within { border-color: var(--gold); }
.scene-card a:hover { text-decoration: underline; text-underline-offset: .24em; }
.scene-card img, .scene-detail img { width: 100%; aspect-ratio: 20 / 9; object-fit: contain; background: var(--surface-dark); }
.scene-feature { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: center; }
.scene-feature h3 { font-size: clamp(1.25rem, 2.3vw, 1.85rem); }
.scene-caption { padding: clamp(.95rem, 2.1vw, 1.65rem); }
.scene-caption .scene-region { margin: 0 0 .35rem; color: var(--gold); font-size: .86rem; font-weight: 700; }
.scene-caption p:last-child { margin-top: .4rem; }
.scene-detail { margin: 0; }
.scene-detail figcaption { max-width: 53rem; }
.scene-caption .scene-summary { color: var(--text); font-size: 1.13rem; font-weight: 700; }
.scene-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.4rem; }

.inner-banner {
    padding-block: clamp(1.65rem, 4.2vw, 3.8rem);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, #211710 0%, #271c14ed 48%, #21171045), url("/assets/gates.webp") center 56% / cover;
}
.breadcrumb { display: inline-flex; min-height: 44px; align-items: center; color: #e5bb88; text-decoration: underline; text-underline-offset: .22em; }
.content { padding-block: clamp(1.5rem, 4.6vw, 4rem); }
.panel {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--edge);
    border-top-color: #957044;
    padding: clamp(1.1rem, 3vw, 2.4rem);
}
.form-shell, .account-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.form-shell { max-width: 68rem; gap: 0; align-items: stretch; }
.form-shell > .panel { padding: clamp(1.25rem, 3.2vw, 2.65rem); }
.form-art {
    min-height: 20rem;
    border-block: 1px solid var(--edge);
    border-right: 1px solid var(--edge);
    background: linear-gradient(90deg,#25190e40,transparent), url("/assets/dais.webp") center / cover;
}
.reading { max-width: 51rem; }
.reading h2, .panel h3 { margin-top: .7rem; }
.stack { display: grid; align-content: center; justify-items: start; gap: .8rem; }
.stack p, .intro { margin-top: 0; }
.panel h2 + .intro { margin-top: .65rem; }
.platform { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold); font-weight: 700; }
.form { display: grid; gap: .9rem; margin-top: 1.1rem; }
.field { display: grid; gap: .33rem; font-weight: 650; }
.field input, .field select, .field textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: .55rem .7rem;
    color: var(--text);
    background: var(--surface-dark);
    border: 1px solid #9d7b59;
    border-radius: 2px;
    font-weight: 450;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field:focus-within span { color: var(--gold); }
.hint, .compact { color: var(--muted); font-size: .9rem; margin: 0; }
.hint { margin-top: -.55rem; }
.check { display: flex; align-items: center; gap: .55rem; min-height: 44px; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--gold); margin: 0; flex: none; }
.form-note { border-top: 1px solid var(--line); margin-top: 1.3rem; }
.message, .empty { margin: 0 0 1.1rem; border: 1px solid var(--edge); padding: .85rem 1rem; background: var(--surface-dark); }
.empty { margin: 1rem 0 0; }
.message.error { color: #ffd3c6; border-color: #ba7463; }
.message.success { color: #e4f0cf; border-color: #83946b; }
.class-list { margin: 1rem 0 0; }
.class-list div + div { border-top: 1px solid var(--line); }
.class-list div { padding-block: .8rem; }
.class-list dt { font-family: var(--font-display); font-weight: 750; color: var(--gold); }
.class-list dd { margin: .25rem 0 0; color: var(--muted); }
.guide-steps { padding-left: 1.25rem; }
.guide-steps li { padding-block: .4rem; }
.guide-nav { display: flex; flex-wrap: wrap; gap: .35rem .65rem; margin-bottom: 1.4rem; }
.guide-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .68rem; border: 1px solid var(--edge); color: var(--text); text-decoration: none; }
.guide-nav a:hover { border-color: var(--gold); text-decoration: underline; }
.guide-section { scroll-margin-top: 1rem; }
.guide-section + .guide-section { margin-top: clamp(2.2rem, 4.5vw, 4rem); }
.guide-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 1.3rem; }
.guide-split-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.guide-classes, .guide-progression { display: grid; gap: .7rem 1.7rem; margin-top: 1.15rem; }
.guide-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-progression { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-classes article, .guide-progression article { border-top: 1px solid var(--edge); padding: 1rem 0; }
.guide-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin: 1rem 0 0; }
.guide-controls div { border-top: 1px solid var(--line); padding-top: .75rem; }
.guide-controls dt { font-weight: 700; }
.guide-controls dd { color: var(--muted); margin: .25rem 0 0; }
.guide-lead { max-width: 50rem; }
.guide-lead strong { color: var(--text); }
.guide-section p a, .guide-steps a { color: var(--gold); text-underline-offset: .2em; }
.tabs { display: flex; flex-wrap: wrap; align-items: stretch; gap: .45rem; margin-bottom: 1.25rem; }
.tabs a {
    display: inline-flex; align-items: center; min-height: 46px; padding: .55rem .85rem;
    border: 1px solid var(--edge); color: var(--muted); font-weight: 650; text-decoration: none;
}
.tabs a:hover { background: var(--surface); text-decoration: underline; }
.tabs a[aria-current] { border-bottom: 3px solid var(--gold); color: var(--text); background: var(--surface); }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .7rem clamp(.2rem, 1.2vw, .75rem); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead th { color: var(--muted); font-size: .9rem; }
tbody tr:nth-child(odd) { background: #201811; }
.profile-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem 1.25rem; }
.profile-details dt { font-weight: 650; }
.profile-details dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.record { border-top: 1px solid var(--line); padding: .7rem 0; margin-top: .7rem; }
.record summary { min-height: 44px; padding: .5rem .1rem; font-weight: 700; }
.record summary span { font-size: .82rem; color: var(--muted); font-weight: 500; }
.record .form { padding-bottom: .6rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--edge); background: #1b1511; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; min-height: 6rem; padding-block: .65rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; column-gap: clamp(.7rem, 2vw, 1.45rem); }
.footer-inner .brand { width: 7rem; }
.footer-inner small { color: var(--muted); }
.footer-inner .form { margin: 0; }

@media (max-width: 760px) {
    .topbar-inner { grid-template-columns: 1fr auto; gap: 0 .7rem; padding-top: .35rem; }
    .brand { width: 7.4rem; }
    .nav-primary { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--line); }
    .nav-primary a { min-width: 44px; justify-content: center; font-size: clamp(.76rem, 3vw, .92rem); }
    .top-account { grid-column: 2; grid-row: 1; }
    .account-mobile { display: block; }
    .account-wide { display: none; }
    .home-content, .account-grid, .guide-split, .guide-progression { grid-template-columns: 1fr; }
    .form-shell { grid-template-columns: 1fr; }
    .form-art { display: none; }
    .hero { min-height: clamp(27rem, 99vw, 34rem); }
    .hero::after { background: linear-gradient(90deg, #120d0ae8, #160e09ae 57%, #140e0a78), linear-gradient(0deg, #17130f 0%, transparent 35%); }
    .hero-art { object-position: 63% center; }
    .hero-inner { padding-block: 2.6rem 3.5rem; }
    .road-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
    .road-strip span + span::before { content: none; }
    .road-strip span + span { padding-left: .65rem; border-left: 1px solid var(--edge); }
    .scene-preview, .gallery-grid, .scene-feature { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .guide-controls { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
    .hero .actions .button { width: 100%; }
    .road-strip span { font-size: .72rem; }
    th, td { font-size: .84rem; }
    .nav-primary { gap: .15rem; }
    .guide-classes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
