/* Comic branding layers over the shared Arcane appearance tokens. */
:root {
    --war-ink: rgb(25, 29, 21);
    --war-paper: rgb(245, 232, 201);
    --war-olive: rgb(142, 151, 99);
    --war-orange: rgb(239, 139, 63);
    --war-page: color-mix(in srgb, var(--background) 90%, rgb(192, 165, 108));
    --war-card: color-mix(in srgb, var(--modal-background) 94%, rgb(192, 165, 108));
    --war-rule: color-mix(in srgb, var(--border-color) 76%, rgb(110, 111, 74));
    --war-display: Georgia, 'Times New Roman', serif;
    --war-mono: 'Courier New', Courier, monospace;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    overflow: hidden;
    background: var(--war-page);
    color: var(--text-color);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

main {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scrollbar-color: var(--war-olive) var(--war-ink);
}

main:focus {
    outline: none;
}

section[id] {
    scroll-margin-top: 1rem;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 5px;
}

button {
    font: inherit;
}

.section-wrap {
    width: min(82rem, calc(100% - 6rem));
    margin-inline: auto;
}

.section-space {
    padding-block: clamp(4rem, 7vw, 7rem);
}

.eyebrow {
    margin-bottom: 1.35rem;
    font-family: var(--war-mono);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.5;
    text-transform: uppercase;
}

h2,
.page-title {
    font-family: var(--war-display);
    font-size: clamp(2.5rem, 4.3vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: 1.03;
}

h2 em,
.page-title em {
    font-weight: 400;
}

.lead {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.55;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 3.3rem;
    padding: .85rem 1.3rem;
    border: 1px solid rgba(25, 29, 21, .3);
    border-radius: 2px;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.button-primary {
    background: var(--war-orange);
    color: var(--war-ink);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .24);
}

.button-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    background: rgb(251, 158, 82);
}

.button-secondary {
    border-color: var(--war-rule);
    background: var(--text-color);
    color: var(--background);
}

.button-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
}

.button:disabled {
    cursor: default;
    opacity: .65;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 1.15rem;
    padding-block: .45rem;
    border-bottom: 1px solid currentColor;
    font-size: .87rem;
    font-weight: 700;
}

/* The header stays visible while the main element owns page scrolling. */
.skip-link {
    position: fixed;
    z-index: 10;
    top: .5rem;
    left: 1rem;
    padding: .75rem 1rem;
    transform: translateY(-160%);
    background: var(--war-orange);
    color: var(--war-ink);
    font-weight: 700;
}

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

.site-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-width: 0;
    padding: 1.05rem 3rem;
    border-bottom: 1px solid rgba(245, 232, 201, .2);
    background: var(--war-ink);
    color: var(--war-paper);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: .75rem;
    font-family: var(--war-display);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.wordmark-seal {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.9rem;
    border: 1px solid var(--war-olive);
    border-radius: 1px 1px 40% 40%;
    color: var(--war-orange);
    font-size: 1.15rem;
}

.wordmark small {
    display: block;
    margin-top: .3rem;
    color: var(--war-olive);
    font-family: var(--war-mono);
    font-size: .52rem;
    font-weight: 400;
    letter-spacing: .13em;
}

.site-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .3rem 1.8rem;
    font-size: .76rem;
}

.site-navigation a {
    padding-block: .45rem;
    border-bottom: 1px solid rgba(245, 232, 201, 0);
}

.site-navigation a:hover,
.site-navigation a[aria-current="page"] {
    border-bottom-color: var(--war-orange);
    color: var(--war-orange);
}

.header-command {
    flex-shrink: 0;
    padding: .65rem .85rem;
    border: 1px solid rgba(245, 232, 201, .35);
    font-size: .69rem;
    font-weight: 700;
}

.header-command span {
    margin-left: .6rem;
    color: var(--war-orange);
}

.header-command[aria-current="page"] {
    border-color: var(--war-orange);
    color: var(--war-orange);
}

.content-page main {
    display: flex;
    flex-direction: column;
    padding: clamp(1rem, 3vw, 2.5rem);
}

.content-page main > section {
    flex: 0 0 auto;
    width: min(78rem, 100%);
    margin: auto;
}

.content-page .screen-panel {
    padding: clamp(1.1rem, 2.7vw, 2.5rem);
    border: 1px solid var(--war-rule);
    border-radius: 0.25rem;
    background-color: color-mix(in srgb, var(--war-card) 97%, rgba(0, 0, 0, 0));
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.4);
}

.content-page .screen-panel.ink-panel {
    background-color: var(--war-ink);
}

.content-page .section-wrap {
    width: 100%;
}

.screen-tools {
    display: flex;
    justify-content: end;
    margin-bottom: 1rem;
}

.screen-tools .motion-toggle {
    position: static;
}

.content-page .heading-row {
    gap: 1.25rem;
    margin-bottom: 1.6rem;
}

.content-page .story-layout {
    gap: 2rem;
}

.content-page .edition-layout {
    gap: clamp(2rem, 4vw, 4rem);
}

.content-page .edition-art {
    justify-self: center;
    width: min(100%, 23rem);
}

.content-page .command-layout {
    gap: 2rem;
}

/* Ink, paper and fine hatch marks echo the printed comic. */
.ink-panel {
    background-color: var(--war-ink);
    background-image: repeating-linear-gradient(35deg, rgba(245, 232, 201, .018) 0, rgba(245, 232, 201, .018) 1px, rgba(25, 29, 21, 0) 1px, rgba(25, 29, 21, 0) 5px);
    color: var(--war-paper);
}

.hero {
    background-image: radial-gradient(ellipse at 82% 38%, rgba(104, 117, 58, .24), rgba(25, 29, 21, 0) 58%), repeating-linear-gradient(35deg, rgba(245, 232, 201, .018) 0, rgba(245, 232, 201, .018) 1px, rgba(25, 29, 21, 0) 1px, rgba(25, 29, 21, 0) 5px);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr .9fr;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 7rem);
    padding-block: 4.5rem 4rem;
}

.hero-copy {
    min-width: 0;
    padding-bottom: 1rem;
}

.hero-eyebrow {
    color: var(--war-olive);
}

.hero-eyebrow span {
    margin-right: .45rem;
    color: var(--war-orange);
}

.hero h1 {
    width: fit-content;
    font-family: var(--war-display);
    font-size: clamp(4.7rem, 8.2vw, 8.6rem);
    font-weight: 900;
    letter-spacing: -.075em;
    line-height: .78;
    text-shadow: 2px 3px 0 rgba(0, 0, 0, .4);
}

.hero h1 span {
    color: var(--war-orange);
}

.hero-year {
    margin-top: 1.3rem;
    font-family: var(--war-mono);
    font-size: .73rem;
    letter-spacing: .22em;
}

.hero-year span {
    padding-inline: .7rem;
    color: var(--war-olive);
}

.hero-deck {
    margin-top: 2rem;
    font-family: var(--war-display);
    font-size: clamp(1.7rem, 2.4vw, 2.3rem);
    font-style: italic;
    line-height: 1.18;
}

.hero-introduction {
    max-width: 27rem;
    margin-top: 1.1rem;
    color: rgb(197, 196, 177);
    font-size: .95rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.15rem 1.7rem;
    margin-top: 1.8rem;
}

.digital-note {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1.25rem;
    color: rgb(203, 205, 178);
    font-family: var(--war-mono);
    font-size: .7rem;
}

.status-dot {
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: var(--war-orange);
}

.hero-art {
    width: min(100%, 30rem);
    justify-self: end;
}

.cover-frame {
    position: relative;
    padding: .42rem;
    transform: rotate(2deg);
    border: 1px solid rgb(111, 110, 76);
    background: rgb(70, 73, 48);
    box-shadow: .8rem 1rem 0 rgba(0, 0, 0, .2), 0 2rem 4rem rgba(0, 0, 0, .4);
}

.hero-cover {
    width: 100%;
    height: auto;
}

.edition-stamp {
    position: absolute;
    right: -1.5rem;
    bottom: 2.8rem;
    display: grid;
    place-content: center;
    width: 6.8rem;
    height: 6.8rem;
    transform: rotate(-9deg);
    border: 3px double var(--war-ink);
    border-radius: 50%;
    outline: 5px solid var(--war-orange);
    background: var(--war-orange);
    color: var(--war-ink);
    font-family: var(--war-display);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.04;
    text-align: center;
}

.edition-stamp span {
    margin-top: .4rem;
    font-family: var(--war-mono);
    font-size: .55rem;
    letter-spacing: .15em;
}

.hero-art figcaption {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin-top: 1.9rem;
    color: rgb(169, 175, 144);
    font-family: var(--war-mono);
    font-size: .56rem;
    text-transform: uppercase;
}

.field-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .6rem 2.5rem;
    padding: 1.1rem 2rem;
    border-block: 1px solid rgba(245, 232, 201, .18);
    color: rgb(200, 204, 173);
    font-family: var(--war-mono);
    font-size: .65rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.field-strip span[aria-hidden] {
    color: var(--war-orange);
}

/* Story and personnel remain on theme-aware reading surfaces. */
.story-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem 6rem;
}

.story-copy p + p {
    margin-top: 1.2rem;
}

.story-copy > p:not(.lead) {
    color: var(--muted-text-color);
    font-size: .94rem;
}

.story-link {
    margin-top: 1.5rem;
}

.field-record {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-block: 1.4rem;
    border-block: 1px solid var(--war-rule);
}

.field-record div {
    padding-inline: 1.5rem;
    border-left: 1px solid var(--war-rule);
}

.field-record div:first-child {
    padding-left: 0;
    border-left: 0;
}

.field-record dt {
    margin-bottom: .35rem;
    color: var(--muted-text-color);
    font-family: var(--war-mono);
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.field-record dd {
    font-family: var(--war-display);
    font-size: 1.35rem;
    font-weight: 700;
}

.heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.heading-row > p {
    max-width: 22rem;
    padding-bottom: .3rem;
    color: var(--muted-text-color);
    font-size: .87rem;
}

.squad-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.dossier {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--war-rule);
    background: var(--war-card);
}

.portrait {
    position: relative;
    aspect-ratio: 1 / 1.03;
    border-bottom: 4px solid var(--war-ink);
    background-color: var(--war-ink);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.portrait-camo {
    background-image: url('./assets/marketing/portraits/camo.png');
}

.portrait-bunker {
    background-image: url('./assets/marketing/portraits/bunker.png');
}

.portrait-smirk {
    background-image: url('./assets/marketing/portraits/sergeant-smirk.png');
}

.portrait-boomstick {
    background-image: url('./assets/marketing/portraits/boomstick.png');
}

.bio-video {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--war-ink);
}

.bio-controls {
    display: grid;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--war-rule);
}

.bio-watch {
    min-height: 2.5rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
}

.bio-status {
    color: var(--muted-text-color);
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.bio-platform {
    font-size: 0.78rem;
    text-decoration: underline;
}

.file-number {
    position: absolute;
    bottom: .75rem;
    left: .75rem;
    padding: .15rem .55rem;
    border: 1px solid rgba(245, 232, 201, .4);
    background: var(--war-ink);
    color: var(--war-paper);
    font-family: var(--war-mono);
    font-size: .66rem;
    letter-spacing: .12em;
}

.dossier-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: start;
    padding: 1.45rem 1.2rem 1.25rem;
}

.dossier-role {
    margin-bottom: .45rem;
    color: var(--muted-text-color);
    font-family: var(--war-mono);
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.dossier h2 {
    margin-bottom: 1rem;
    font-family: var(--war-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.15;
}

.dossier-copy > p:not(.dossier-role) {
    font-size: .8rem;
    line-height: 1.75;
}

.dossier-detail {
    width: 100%;
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--muted-text-color);
}

.dossier-detail span {
    display: block;
    margin-bottom: .4rem;
    padding-top: .8rem;
    border-top: 1px solid var(--war-rule);
    font-family: var(--war-mono);
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Armory inventory keeps its visual and story ownership together. */
.armory-section .eyebrow,
.armory-section .page-title em {
    color: var(--war-orange);
}

.armory-section .heading-row > p {
    color: rgb(190, 194, 165);
}

.armory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-block: 1px solid rgba(245, 232, 201, .25);
}

.equipment-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2rem 1.6rem 1.5rem;
    border-left: 1px solid rgba(245, 232, 201, .25);
}

.equipment-card:first-child {
    padding-left: 0;
    border-left: 0;
}

.equipment-top {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.8rem;
    color: var(--war-olive);
    font-family: var(--war-mono);
    font-size: .5rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.equipment-number {
    color: var(--war-orange);
    font-family: var(--war-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.equipment-card h2 {
    margin-bottom: 1rem;
    font-family: var(--war-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.2;
}

.equipment-card h2 span {
    white-space: nowrap;
}

.equipment-card > p {
    color: rgb(191, 194, 173);
    font-size: .8rem;
}

.equipment-card .equipment-label {
    margin-top: auto;
    padding-top: 1.8rem;
    color: var(--war-olive);
    font-family: var(--war-mono);
    font-size: .5rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Physical edition, transparent pricing and digital availability. */
.edition-layout {
    display: grid;
    grid-template-columns: .85fr 1fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
    width: min(69rem, calc(100% - 6rem));
}

.edition-art {
    padding: 1.5rem 1.5rem 0;
    border: 1px solid var(--war-rule);
    background-color: color-mix(in srgb, var(--secondary-color) 82%, rgb(124, 126, 86));
    background-image: repeating-linear-gradient(-45deg, rgba(83, 85, 47, .06) 0, rgba(83, 85, 47, .06) 1px, rgba(83, 85, 47, 0) 1px, rgba(83, 85, 47, 0) 6px);
}

.edition-art img {
    width: 100%;
    height: auto;
    border: 3px solid var(--war-ink);
    box-shadow: .5rem .7rem 0 rgba(25, 29, 21, .17);
}

.edition-art figcaption {
    padding-block: 1.4rem;
    font-family: var(--war-mono);
    font-size: .55rem;
    letter-spacing: .12em;
    text-align: center;
}

.edition-subtitle {
    margin-top: 1.25rem;
    font-size: .86rem;
    font-weight: 700;
}

.release-date {
    margin-top: .3rem;
    color: var(--muted-text-color);
    font-family: var(--war-mono);
    font-size: .65rem;
}

.edition-copy .lead {
    margin-block: 1.7rem .9rem;
    font-size: 1.1rem;
}

.edition-copy > p:not([class]) {
    color: var(--muted-text-color);
    font-size: .9rem;
}

.price-breakdown {
    margin-top: 1.8rem;
    border-top: 1px solid var(--war-rule);
}

.price-breakdown div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .65rem;
    border-bottom: 1px solid var(--war-rule);
    font-size: .82rem;
}

.price-breakdown dd {
    flex-shrink: 0;
    font-family: var(--war-mono);
    font-weight: 700;
}

.price-breakdown .price-total {
    padding-block: 1rem;
    font-weight: 700;
}

.price-total dd {
    font-family: var(--war-display);
    font-size: 2.25rem;
    line-height: 1;
}

.price-total span {
    font-family: var(--war-mono);
    font-size: .6rem;
    font-weight: 400;
}

.purchase-button {
    width: 100%;
    margin-top: 1.3rem;
}

.purchase-status {
    margin-top: .8rem;
    color: var(--muted-text-color);
    font-size: .72rem;
    text-align: center;
}

.digital-edition {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--war-rule);
}

.digital-edition-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.4rem;
    height: 2.8rem;
    border: 1px solid var(--war-rule);
    border-radius: 2px;
    font-size: 1.2rem;
}

.digital-edition h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.65;
}

.digital-edition p {
    margin-top: .2rem;
    color: var(--muted-text-color);
    font-size: .76rem;
}

/* The application controller supplies actual dispatch and acceptance states. */
.command-section {
    border-top: 1px solid var(--war-rule);
    background: color-mix(in srgb, var(--secondary-color) 87%, rgb(133, 137, 84));
}

.command-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

.command-layout > div > p:not(.eyebrow) {
    margin-top: 1.25rem;
    color: var(--muted-text-color);
    font-size: .89rem;
}

.command-layout .button {
    margin-top: 1.5rem;
}

.command-layout > div > .notification-status {
    max-width: 30rem;
    margin-top: .85rem;
    font-size: .72rem;
}

.dispatch-board {
    border: 1px solid var(--war-rule);
    background: var(--war-card);
    box-shadow: .5rem .5rem 0 color-mix(in srgb, var(--war-rule) 60%, rgba(0, 0, 0, 0));
}

.dispatch-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--war-rule);
}

.dispatch-heading h2 {
    font-family: var(--war-mono);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.65;
    text-transform: uppercase;
}

.dispatch-heading span {
    color: var(--muted-text-color);
    font-size: .65rem;
}

.dispatch-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dispatch-list article {
    padding: 1.5rem;
    overflow-wrap: anywhere;
}

.dispatch-list article + article {
    border-top: 1px solid var(--war-rule);
}

.dispatch-list h3,
.dispatch-list h4 {
    margin: .35rem 0 .6rem;
    font-family: var(--war-display);
    font-size: 1.3rem;
    line-height: 1.3;
}

.dispatch-list time {
    color: var(--muted-text-color);
    font-family: var(--war-mono);
    font-size: .63rem;
}

.dispatch-list p {
    font-size: .84rem;
}

.dispatch-list a {
    text-decoration: underline;
    text-underline-offset: .2rem;
}

.dispatch-list .dispatch-empty {
    padding-block: 3rem;
    color: var(--muted-text-color);
    font-family: var(--war-display);
    font-size: 1.3rem;
    font-style: italic;
    text-align: center;
}

.site-footer {
    padding-block: 2.5rem;
    background: var(--war-ink);
    color: var(--war-paper);
}

.footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-wordmark {
    font-family: var(--war-display);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.2;
}

.footer-wordmark span {
    display: block;
    margin-top: .25rem;
    color: var(--war-olive);
    font-family: var(--war-mono);
    font-size: .58rem;
    font-weight: 400;
    letter-spacing: .28em;
}

.footer-layout p {
    color: rgb(184, 191, 163);
    font-size: .75rem;
}

.footer-layout strong {
    color: var(--war-paper);
    font-weight: 400;
}

.footer-top {
    font-family: var(--war-mono);
    font-size: .65rem;
}

.footer-top span {
    margin-left: 1rem;
    color: var(--war-orange);
}

.content-page .site-footer {
    padding: 0.65rem clamp(1rem, 3vw, 2.5rem);
    border-top: 1px solid var(--war-rule);
}

.content-page .footer-layout {
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
}

.content-page .footer-wordmark {
    font-size: 0.95rem;
}

.content-page .footer-wordmark span {
    display: inline-block;
    margin: 0 0 0 0.6rem;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
}

.content-page .footer-layout p {
    font-size: 0.68rem;
}

/* Narrow screens preserve the fixed shell and single main scroll surface. */
@media (max-width: 68rem) {
    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .75rem 1.3rem;
        padding-inline: 2rem;
    }

    .site-navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: start;
        gap: .3rem 1.8rem;
    }

    .header-command {
        grid-column: 2;
        grid-row: 1;
    }

    .section-wrap,
    .edition-layout {
        width: calc(100% - 4rem);
    }

    .hero-layout {
        gap: 3rem;
        padding-top: 3.5rem;
    }

    .hero-art {
        align-self: start;
        margin-top: 1.8rem;
    }

    .hero-actions {
        gap: 1rem;
    }

    .story-layout {
        gap: 3rem;
    }

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

    .portrait {
        aspect-ratio: 1.2 / 1;
    }

    .equipment-card:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .equipment-card:nth-child(n + 3) {
        border-top: 1px solid rgba(245, 232, 201, .25);
    }

    .edition-layout,
    .command-layout {
        gap: 3rem;
    }
}

@media (max-width: 45rem) {
    .site-header {
        align-items: center;
        gap: .7rem .6rem;
        padding: .9rem 1.25rem .65rem;
    }

    .wordmark {
        gap: .65rem;
        font-size: .78rem;
    }

    .wordmark-seal {
        width: 2.25rem;
        height: 2.45rem;
        font-size: 1rem;
    }

    .site-navigation {
        justify-content: space-between;
        gap: .2rem .8rem;
        width: 100%;
        font-size: .7rem;
    }

    .header-command {
        padding: .55rem .5rem;
        font-size: .61rem;
    }

    .header-command span {
        margin-left: .2rem;
    }

    .wordmark small {
        font-size: .43rem;
        letter-spacing: .07em;
    }

    .section-wrap,
    .edition-layout {
        width: calc(100% - 2.5rem);
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
        padding-block: 3.1rem 2.75rem;
    }

    .hero h1 {
        font-size: clamp(4.5rem, 18vw, 7rem);
    }

    .hero-deck {
        margin-top: 1.7rem;
    }

    .hero-art {
        justify-self: center;
        width: min(90%, 26rem);
        margin-top: 0;
    }

    .cover-frame {
        transform: rotate(1deg);
    }

    .edition-stamp {
        right: -.8rem;
        width: 5.7rem;
        height: 5.7rem;
        font-size: .89rem;
    }

    .field-strip {
        flex-direction: column;
        gap: .5rem;
        padding-block: 1.4rem;
        font-size: .6rem;
    }

    .field-strip span[aria-hidden] {
        display: none;
    }

    .story-layout,
    .edition-layout,
    .command-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.25rem;
    }

    .field-record {
        gap: 1rem;
        grid-template-columns: minmax(0, 1fr);
    }

    .field-record div {
        padding-left: 0;
        border-left: 0;
    }

    .field-record div + div {
        padding-top: 1rem;
        border-top: 1px solid var(--war-rule);
    }

    .heading-row {
        align-items: start;
        flex-direction: column;
        gap: 1.25rem;
    }

    .squad-grid {
        gap: .8rem;
    }

    .dossier-copy {
        padding: 1rem .85rem;
    }

    .dossier h2 {
        font-size: 1.35rem;
    }

    .dossier-copy > p:not(.dossier-role) {
        font-size: .76rem;
    }

    .equipment-card {
        padding-inline: 1.1rem;
    }

    .equipment-top {
        align-items: start;
        flex-direction: column;
        gap: .6rem;
        margin-bottom: 1.2rem;
    }

    .equipment-card h2 {
        font-size: 1.25rem;
    }

    .edition-art {
        justify-self: center;
        width: min(100%, 25rem);
    }

    .edition-copy {
        grid-row: 1;
    }

    .footer-layout {
        align-items: start;
        flex-direction: column;
        gap: 1.5rem;
    }

    .content-page main {
        padding: 0.85rem;
    }

    .content-page .screen-panel {
        padding: 1rem;
    }

    .content-page .footer-layout {
        align-items: center;
        flex-direction: row;
        gap: 0.3rem 1rem;
    }
}

@media (max-width: 25rem) {
    .wordmark-seal {
        display: none;
    }

    .squad-grid,
    .armory-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .equipment-card {
        padding-inline: 0;
        border-left: 0;
    }

    .equipment-card + .equipment-card {
        border-top: 1px solid rgba(245, 232, 201, .25);
    }

    .equipment-top {
        align-items: center;
        flex-direction: row;
    }
}

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

    .button {
        transition: none;
    }
}

:root[data-reduce-motion="true"] main {
    scroll-behavior: auto;
}

:root[data-reduce-motion="true"] .button {
    transition: none;
}
