:root {
    color-scheme: dark;
    --ink: #101a1e;
    --paper: #eae5d8;
    --gold: #e9c584;
    --soft: #c5ccc7;
    --display: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font: 1rem/1.6 system-ui, sans-serif;
}
a { color: inherit; }
button, input { font: inherit; }
button, summary, label { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip-link {
    position: fixed;
    z-index: 3;
    top: 1rem;
    left: 1rem;
    padding: .75rem 1rem;
    background: var(--paper);
    color: var(--ink);
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.shell { width: min(100% - 5rem, 73rem); margin-inline: auto; }
.masthead {
    position: sticky;
    z-index: 2;
    top: 0;
    background: #101a1e;
    border-bottom: 1px solid #e9c58432;
}
.masthead-inner, .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.8rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    flex-shrink: 0;
    font: .9rem/1.05 var(--display);
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}
.brand strong { display: block; font-size: 1.42rem; color: var(--gold); }
.masthead nav, .footer-links { display: flex; gap: clamp(.9rem, 3vw, 2.8rem); align-items: center; }
.masthead nav { margin-left: auto; }
.masthead nav a, .footer-links a { font-size: .92rem; text-decoration-thickness: 1px; text-underline-offset: .35em; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover, .footer-links a:hover { color: var(--gold); }
.language {
    min-height: 2.65rem;
    min-width: 2.8rem;
    color: var(--gold);
    background: transparent;
    border: 1px solid #e9c58460;
    font-weight: 650;
    font-size: .85rem;
}
.language:hover { background: #e9c5841c; }
.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(34rem, 75vh, 53rem);
    --hero-overlay: linear-gradient(90deg, #0a1319df 0%, #0a1319b5 35%, #0a13191c 73%);
    background: var(--hero-overlay),
        url("/assets/raven-pass.svg") center 52% / cover no-repeat, #22333c;
    border-bottom: 3px solid #a57342;
}
.hero-inner { padding-block: 5.2rem 6.2rem; }
.eyebrow {
    margin: 0 0 .95rem;
    color: var(--gold);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .23em;
    text-transform: uppercase;
}
h1, h2 { margin: 0; font: 400 1rem/1.03 var(--display); letter-spacing: -.04em; }
h1 { font-size: clamp(3.35rem, 7.1vw, 7.45rem); }
h1 span, h1 em { display: block; }
h1 em { color: var(--gold); }
h2 { font-size: clamp(2.4rem, 5.15vw, 4.55rem); }
.hero-summary {
    max-width: 28rem;
    margin: 1.65rem 0 2rem;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    color: #e4e8e3;
}
.hero-actions { display: flex; gap: 1rem 1.6rem; align-items: center; flex-wrap: wrap; }
.button, .text-link {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-height: 2.9rem;
    font-weight: 700;
    text-underline-offset: .3em;
}
.button { padding: .6rem 1.1rem; background: var(--gold); color: var(--ink); text-decoration: none; }
.button:hover { background: #f3d9a9; }
.text-link:hover { text-decoration-thickness: 2px; }
.hero-caption {
    position: absolute;
    right: max(2.5rem, calc((100% - 73rem) / 2));
    bottom: 1.1rem;
    margin: 0;
    color: #f1eee4;
    font: italic 1rem/1.25 var(--display);
    padding: .38rem .6rem;
    background: #101a1ece;
}
.light-section { color: #1b2425; background: var(--paper); color-scheme: light; }
.light-section .eyebrow { color: #75512b; }
.realms, .tactics, .faq { padding-block: clamp(3.65rem, 8vw, 7.5rem); }
.section-heading, .faq-grid, .tactics-grid {
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: clamp(1.5rem, 6vw, 6rem);
}
.section-heading { align-items: end; margin-bottom: 2.25rem; }
.section-heading > p, .tactics-grid > div > p:last-child { max-width: 30rem; margin: 0; }
.realm-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    border-top: 1px solid #847762;
    border-bottom: 1px solid #847762;
}
.realm-list details + details { border-left: 1px solid #a39987; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.realm-list summary, .faq summary {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1.1rem 1.15rem;
}
.realm-list summary { font: 1.45rem/1.2 var(--display); }
summary::after { content: "+"; margin-left: auto; font: 1.25rem/1 system-ui, sans-serif; }
details[open] > summary::after { content: "−"; }
.realm-mark, .realm-location { color: #75512b; }
.realm-detail { padding: 0 1.15rem 1.1rem; }
.realm-detail p { margin: .25rem 0 .6rem; }
.realm-location { font-weight: 730; }
.tactics {
    background: radial-gradient(ellipse at 82% 5%, #334343, transparent 68%), var(--ink);
    border-block: 1px solid #b990573d;
}
.tactics-grid > div > p:last-child { margin-top: 1.1rem; color: var(--soft); }
.tactic-options { margin: 0; padding: 0; border: 0; min-width: 0; }
.tactic-options legend { margin-bottom: .6rem; font-weight: 700; color: var(--gold); }
.tactic-option {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .8rem .9rem;
    border-top: 1px solid #e9c58458;
}
.tactic-option input { margin: 0; accent-color: var(--gold); }
.tactic-option:has(input:checked), .tactic-option:hover { background: #e9c58416; }
.tactic-result { margin: 0; padding: .75rem 1rem 1rem 1rem; color: var(--soft); border-left: 1px solid var(--gold); }
.tactic-option:has(input:not(:checked)) + .tactic-result { display: none; }
.faq-grid { grid-template-columns: .8fr 1.2fr; }
.faq details { border-top: 1px solid #a39987; }
.faq details:last-child { border-bottom: 1px solid #a39987; }
.faq summary { padding-inline: 0; font-weight: 700; }
.faq details > p { margin: 0 0 1rem; }
.faq details > a { margin: -.4rem 0 .5rem; }
.footer-inner { padding-block: 1.6rem; }
@media (max-width: 48rem) {
    .shell { width: calc(100% - 2.75rem); }
    .hero {
        --hero-overlay: linear-gradient(90deg, #0a1319d9, #0a131983);
        min-height: 32rem;
        background-position: center, 60% center;
    }
    .section-heading, .tactics-grid, .faq-grid { grid-template-columns: 1fr; }
    .hero-caption { right: 1.375rem; }
}
@media (max-width: 34rem) {
    html { scroll-padding-top: 7.7rem; }
    .masthead-inner { display: grid; grid-template-columns: 1fr auto; gap: .65rem; padding-block: .65rem; }
    .masthead nav { grid-row: 2; grid-column: 1 / -1; margin-left: 0; justify-content: space-between; }
    .masthead nav a { padding: .3rem 0; }
    .hero { min-height: 32rem; }
    .hero-inner { padding-block: 3.2rem 4.9rem; }
    h1 { font-size: clamp(2.7rem, 10vw, 4.4rem); }
    .hero-summary { margin-block: 1.2rem 1.55rem; }
    .hero-actions { gap: .4rem 1rem; }
    .realm-list { grid-template-columns: 1fr; }
    .realm-list details + details { border-left: 0; border-top: 1px solid #a39987; }
    .realm-list summary, .realm-detail { padding-inline: 0; }
    .footer-inner { align-items: flex-start; flex-direction: column; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
