@charset "UTF-8";
/* Shared dark foundation: preserves classic layout while setting dark defaults before page styles. */
:root {
  color-scheme: dark;
  --bg: #111a18;
  --deep: #0c1512;
  --panel: #17221d;
  --light: #eee7d8;
  --muted: #b3bcb0;
  --gold: #cfb184;
  --line: #b79a6545;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --white-error: #f0aaa0;
  --white-success: #b2d2a6;
}

body {
  background: var(--bg);
  color: var(--light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

::selection { background: #354a38; color: var(--light); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #ecc78b;
  outline-offset: 4px;
}

.wrap { width: min(1280px, calc(100% - 72px)); }
.header { min-height: 96px; gap: 24px; flex-wrap: wrap; }
.brand { color: var(--light); font-size: 29px; letter-spacing: 1.6px; }
.brand-year { color: var(--gold); }
.brand small { color: var(--muted); }
.brand img { width: 165px; height: auto; }
.header nav { flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; }
nav a { color: var(--muted); }
nav a:hover,
nav a[aria-current="page"] { color: var(--light); text-decoration: underline; text-underline-offset: 6px; }
.nav-register { border-color: var(--line); color: var(--gold); }

h1, h2, h3 { color: var(--light); }
h1 em, h2 em, h3 em { color: var(--gold); }
.eyebrow, .hero .eyebrow { color: var(--muted); }
.intro, .hero .intro { color: var(--muted); }
.text-link, .card-link, .hero-link { color: var(--gold); border-color: var(--line); }
.artwork-note a, .steps a, .notes-grid a { color: var(--gold); }
.hero-note, .painting-label, .artwork-note, .download-footnote,
.wide-scene figcaption, .release-status, .footer .footer-small { color: var(--muted); }
.painting-label { text-shadow: none; }

/* Neutral dark surfaces; artwork retains its original colours. */
.hero, .server-strip, .path-card, .journal-feature, .panel,
.window-title, .class-tabs, .class-art, .notice,
.portal-status, .portal-metric, .portal-table th, .portal-action,
.portal-pagination button, .portal-tabs button {
  background: #17221d;
  box-shadow: none;
  border-color: var(--line);
}
.hero-shade { display: none; }
.hero-painting, .memory-hero-art img { filter: none; }
.path-card:hover { border-color: #cfb184; transform: none; }
.journal-feature { gap: 0; }
.server-strip strong, .server-strip .strip-note { color: var(--light); }
.server-strip div > span, .strip-note small { color: var(--muted); }
.server-strip { border-top: 1px solid var(--line); }
.window-title { color: var(--light); }
.window-title-end { color: var(--muted); }
.class-tabs > button { background: #17221d; color: var(--muted); }
.class-tabs > button[aria-selected="true"] {
  background: #17221d;
  color: var(--light);
  border-bottom-color: var(--gold);
}
.class-tabs small { color: var(--muted); }
.class-copy h3, .class-copy .class-tagline, .rates-panel strong,
.town-list p { color: var(--light); }
.class-copy dt, .step-number { color: var(--gold); }
.notice { color: var(--muted); border-left-color: var(--gold); }

.button, .button-outline {
  background: #17221d;
  color: var(--light);
  border: 1px solid #b79a6570;
  box-shadow: none;
  transition: border-color .15s, color .15s;
  filter: none;
}
.button:hover, .button-outline:hover {
  background: #17221d;
  color: #f1d7aa;
  border-color: #eee7d8;
  filter: none;
}
.button-outline { color: var(--gold); border-color: var(--line); }
.checksum code { color: var(--light); }
.checksum button { background: #17221d; color: var(--gold); border-color: var(--line); }
.checksum > #copy-result { color: var(--white-success); }

label { color: var(--light); }
input, select, textarea {
  background: #17221d;
  color: var(--light);
  border-color: #73806c;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.field-help { color: var(--muted); }
#registration-result { color: var(--muted); }
#registration-result[data-error="true"] { color: var(--white-error); }
#registration-result[data-success="true"] { color: var(--white-success); }
.skip-link { background: #17221d; color: var(--light); border: 1px solid var(--gold); }
.rank-tools button { background: #17221d; color: var(--muted); }
.rank-tools button[aria-pressed="true"] { background: #17221d; color: var(--light); }
.rank-table td:first-child, .rank-table tr.top td:first-child { color: var(--gold); }
.rank-table tr.top td { color: var(--light); }

/* Private forms and administration keep their existing server-checked states. */
.portal-status { color: var(--muted); }
.portal-status[data-error="true"] { color: var(--white-error); border-color: #cf8c80; }
.portal-status[data-warning="true"] { color: #dfc18e; border-color: #b79a6566; }
.portal-metric strong, .portal-table th { color: var(--light); }
.portal-pagination button, .portal-tabs button { color: var(--muted); }
.portal-tabs button[aria-selected="true"] {
  background: #17221d;
  color: var(--light);
  border-color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.portal-state, .portal-result[data-success="true"] { color: var(--white-success); }
.portal-state[data-running="false"], .portal-result[data-error="true"] { color: var(--white-error); }
.portal-login-note a, .portal-note a, .portal-status a { color: var(--gold); }
.portal-panel, .portal-action, .portal-metric { min-width: 0; }
.portal-controls, .portal-pagination { max-width: 100%; }
.portal-table { background: #17221d; }
.portal-scroll { background: #17221d; }

/* Photographic portraits retain the complete helmet, weapon and feet. */
.path-card > img,
.guide-card img[src$="-starter.webp"] {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center;
  align-self: center;
  filter: none;
}
.class-art { display: grid; place-items: center; }
.class-art img {
  width: 100%;
  height: clamp(440px, 48vw, 720px);
  max-height: 720px;
  object-fit: contain;
  object-position: center;
  filter: none;
}
.registration-art { position: static; max-height: none; overflow: visible; }
.registration-art img {
  width: 100%;
  height: auto;
  max-height: 760px;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center;
  filter: none;
}
.photo-equipment-grid,
.photo-weapon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  margin-top: 28px;
}
.photo-equipment-card,
.photo-weapon-card {
  min-width: 0;
  margin: 0;
  background: #17221d;
  border: 1px solid var(--line);
  box-shadow: none;
}
.photo-equipment-card > a,
.photo-weapon-card > a { display: block; }
.photo-equipment-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center;
  filter: none;
}
.photo-weapon-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  filter: none;
}
.photo-equipment-card figcaption,
.photo-weapon-card figcaption,
.photo-equipment-card > div,
.photo-weapon-card > div { padding: 23px 22px; }
.photo-equipment-card h3,
.photo-weapon-card h3 { font-size: 27px; margin: 0 0 12px; }
.photo-equipment-card p,
.photo-weapon-card p { color: var(--muted); font-size: 12px; }
.photo-equipment-card p:last-child,
.photo-weapon-card p:last-child { margin-bottom: 0; }
.scene-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  object-position: center;
  filter: none;
}
.wide-scene img { max-height: none; height: auto; object-fit: contain; filter: none; }

/* Transparent scene assets contain their own empty space at the left. */
.memory-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 42vw, 650px);
  margin-top: 28px;
  overflow: hidden;
  background: #17221d;
  border: 0;
}
.memory-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.memory-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.memory-hero-copy {
  position: relative;
  z-index: 1;
  flex: 0 0 35%;
  max-width: 35%;
  padding: 38px 20px 48px 0;
}
.memory-hero-copy h1, .memory-hero-copy h2 {
  font-size: clamp(43px, 5.3vw, 76px);
  line-height: 1.06;
  letter-spacing: -1.8px;
  margin: 0 0 25px;
}
.memory-hero-copy .eyebrow { font-size: 9px; margin-bottom: 22px; }
.memory-hero-copy .intro {
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 25px;
}
.memory-hero-copy .hero-actions { gap: 16px; margin-top: 24px; }
.memory-hero-copy .hero-note { letter-spacing: .4px; line-height: 1.8; }

@media (max-width: 1000px) {
  .header { padding-block: 22px; gap: 18px; }
  .header nav { width: 100%; justify-content: flex-start; gap: 8px 20px; }
  .memory-hero { min-height: 430px; }
  .memory-hero-copy { padding-right: 12px; }
  .memory-hero-copy h1, .memory-hero-copy h2 { font-size: clamp(40px, 5.3vw, 58px); }
  .memory-hero-copy .intro { font-size: 12px; }
  .memory-hero-copy .button { padding-inline: 17px; }
  .class-art img { height: min(80vw, 660px); max-height: none; }
  .photo-equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-weapon-grid { gap: 20px 16px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header { align-items: flex-start; gap: 17px; }
  .header nav { gap: 8px 17px; }
  .brand { font-size: 27px; }
  .brand img { width: 145px; }
  .memory-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    margin-top: 30px;
  }
  .memory-hero-copy {
    order: 0;
    flex-basis: auto;
    max-width: none;
    width: 100%;
    padding: 0 8px 12px;
  }
  .memory-hero-copy h1, .memory-hero-copy h2 {
    font-size: clamp(43px, 10.5vw, 65px);
    max-width: 11ch;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
  }
  .memory-hero-copy .intro { font-size: 13px; max-width: 40ch; }
  .memory-hero-copy .eyebrow { margin-bottom: 18px; }
  .memory-hero-art {
    order: 1;
    position: relative;
    inset: auto;
    display: block;
    overflow: hidden;
    margin-top: 8px;
  }
  .memory-hero-art img {
    width: 138.889%;
    max-width: none;
    height: auto;
    transform: translateX(-28%);
  }
  .server-strip { margin-top: 20px; }
  .footer nav { justify-content: flex-start; }
  .portal-controls .button { overflow-wrap: anywhere; }
  .registration-art { max-height: none; overflow: visible; }
  .registration-art img { max-height: 660px; }
  .photo-weapon-grid { grid-template-columns: 1fr; }
  .photo-equipment-card figcaption,
  .photo-weapon-card figcaption,
  .photo-equipment-card > div,
  .photo-weapon-card > div { padding: 20px; }
}

@media (max-width: 560px) {
  .photo-equipment-grid { grid-template-columns: 1fr; gap: 25px; }
  .path-card { grid-template-columns: minmax(0, 1fr); }
  .path-card > img { max-height: 640px; }
  .class-art img { height: auto; max-height: 660px; aspect-ratio: 2 / 3; }
}

@media (max-width: 380px) {
  .memory-hero-copy { padding-inline: 0; }
  .memory-hero-copy .hero-actions { align-items: stretch; gap: 14px; }
  .memory-hero-copy .button { width: 100%; }
  .portal-metrics { grid-template-columns: 1fr; }
  .portal-account > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .button-outline { transition: none; }
}
