:root {
  --ink: #171914;
  --paper: #e7dfcc;
  --paper-deep: #d5c8ad;
  --signal: #aa3e2c;
  --moss: #4b5641;
  --line: rgba(23, 25, 20, 0.22);
  --display: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --utility: Bahnschrift, "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 18%, transparent 0 8rem, rgba(75, 86, 65, 0.09) 8.1rem 8.2rem, transparent 8.3rem),
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(23, 25, 20, 0.025) 35px 36px),
    var(--paper);
  font-family: var(--utility);
  min-height: 100vh;
}

.top-rule {
  height: 7px;
  background: linear-gradient(90deg, var(--signal) 0 37%, var(--ink) 37% 100%);
}

.masthead,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.masthead {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
  font: 700 1.05rem/1 var(--utility);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 62px;
  aspect-ratio: 1;
  filter: drop-shadow(0 3px 3px rgba(23, 25, 20, 0.18));
}

.brand-mark img { display: block; width: 100%; height: auto; }

.alpha-stamp,
.eyebrow {
  color: var(--signal);
  font: 700 0.75rem/1.2 var(--utility);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.alpha-stamp {
  padding: 9px 12px 7px;
  border: 1px solid var(--signal);
  transform: rotate(-1.5deg);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 650px;
  margin-top: 34px;
  padding: 76px clamp(28px, 5vw, 68px) 72px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(23, 25, 20, 0.28);
  box-shadow: 14px 14px 0 rgba(75, 86, 65, 0.16);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(231, 223, 204, 0.98) 0%, rgba(231, 223, 204, 0.94) 37%, rgba(231, 223, 204, 0.45) 58%, rgba(231, 223, 204, 0.05) 79%),
    linear-gradient(0deg, rgba(23, 25, 20, 0.08), transparent 28%);
  pointer-events: none;
}

.hero-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  animation: reveal 1100ms 120ms ease-out both;
}

.hero-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.hero-copy {
  width: min(67%, 760px);
  animation: rise 700ms ease-out both;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 0;
}

h1 {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(3.4rem, 6.6vw, 6.6rem);
  line-height: 0.9;
}

.lede {
  max-width: 690px;
  margin: 34px 0 28px;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.65;
}

.text-link {
  color: inherit;
  text-underline-offset: 6px;
  font-weight: 700;
}

.field-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.field-notes p {
  margin: 0;
  padding: 25px 20px 23px;
  border-right: 1px solid var(--line);
  font-size: 0.89rem;
  letter-spacing: 0.025em;
}

.field-notes p:last-child { border-right: 0; }
.field-notes strong { color: var(--signal); margin-right: 12px; }

.map-story {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.7fr);
  align-items: center;
  padding: 132px 0 58px;
}

.map-frame {
  position: relative;
  margin: 0;
  background: var(--ink);
  box-shadow: 16px 16px 0 rgba(170, 62, 44, 0.2);
  overflow: hidden;
}

.map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(231, 223, 204, 0.25);
  box-shadow: inset 0 0 60px rgba(23, 25, 20, 0.18);
  pointer-events: none;
}

.map-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.map-frame:hover img { transform: scale(1.018); }

.map-frame figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 18px 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(231, 223, 204, 0.65);
  color: var(--paper);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 4px var(--ink);
  text-transform: uppercase;
}

.map-story-copy {
  position: relative;
  z-index: 2;
  margin-left: -52px;
  padding: clamp(32px, 5vw, 58px);
  background: rgba(231, 223, 204, 0.96);
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 rgba(75, 86, 65, 0.18);
}

.map-story-copy h2 {
  margin: 18px 0 25px;
  font-size: clamp(2.7rem, 4.8vw, 4.8rem);
}

.map-story-copy > p:last-of-type {
  margin: 0;
  line-height: 1.7;
}

.map-layers {
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.map-layers li {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 16px;
  padding: 13px 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
}

.map-layers span {
  color: var(--signal);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.map-layers strong { font-weight: 600; }

.faction-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.35fr);
  align-items: stretch;
  margin-top: 82px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: -14px 14px 0 rgba(75, 86, 65, 0.2);
  overflow: hidden;
}

.faction-story::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 calc(36.5% - 80px);
  width: 160px;
  background: linear-gradient(90deg, var(--ink), transparent);
  pointer-events: none;
}

.faction-story-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 66px);
}

.faction-story-copy h2 {
  margin: 18px 0 26px;
  font-size: clamp(2.7rem, 4.5vw, 4.65rem);
}

.faction-story-copy > p:not(.eyebrow) {
  margin: 0;
  color: #c7bda7;
  line-height: 1.7;
}

.faction-principles {
  margin-top: 35px;
  border-top: 1px solid rgba(231, 223, 204, 0.22);
}

.faction-principles p {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid rgba(231, 223, 204, 0.22);
  font-size: 0.76rem;
  line-height: 1.35;
}

.faction-principles strong { color: var(--signal); }

.faction-frame {
  position: relative;
  min-height: 610px;
  margin: 0;
  overflow: hidden;
}

.faction-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.faction-frame:hover img { transform: scale(1.018); }

.faction-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 70px rgba(23, 25, 20, 0.35);
  pointer-events: none;
}

.faction-frame figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 18px 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(231, 223, 204, 0.65);
  color: var(--paper);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 4px var(--ink);
  text-transform: uppercase;
}

.history-story {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 700px;
  margin-top: 116px;
  padding: clamp(46px, 6vw, 74px);
  color: var(--paper);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
  box-shadow: 14px 14px 0 rgba(170, 62, 44, 0.18);
}

.history-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 25, 20, 0.94) 0%, rgba(23, 25, 20, 0.76) 34%, rgba(23, 25, 20, 0.18) 64%, rgba(23, 25, 20, 0.04) 100%),
    linear-gradient(0deg, rgba(23, 25, 20, 0.7), transparent 45%);
  pointer-events: none;
}

.history-art {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.history-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 1100ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.history-story:hover .history-art img { transform: scale(1.012); }

.history-copy {
  width: min(57%, 630px);
  text-shadow: 0 2px 12px rgba(23, 25, 20, 0.45);
}

.history-copy h2 {
  margin: 18px 0 27px;
  font-size: clamp(3rem, 5.4vw, 5.65rem);
}

.history-copy > p:not(.eyebrow) {
  max-width: 550px;
  margin: 0;
  color: #ded4bd;
  font-size: 1.02rem;
  line-height: 1.7;
}

.history-sequence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid rgba(231, 223, 204, 0.5);
  list-style: none;
}

.history-sequence li {
  padding: 14px 15px 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

.history-sequence strong {
  display: block;
  margin-bottom: 7px;
  color: var(--signal);
}

.history-caption {
  position: absolute;
  inset: auto 18px 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(231, 223, 204, 0.65);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 4px var(--ink);
  text-transform: uppercase;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(400px, 1.2fr);
  gap: clamp(40px, 8vw, 120px);
  padding: 120px 0 130px;
}

h2 {
  margin: 18px 0 24px;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  line-height: 0.95;
}

.download-intro > p:last-child {
  max-width: 520px;
  line-height: 1.65;
}

.release-panel {
  align-self: start;
  padding: clamp(28px, 5vw, 54px);
  color: var(--paper);
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 24px 24px;
  box-shadow: 18px 18px 0 var(--paper-deep);
}

.release-heading {
  display: flex;
  gap: 20px;
  align-items: center;
}

.release-heading strong {
  display: block;
  margin-top: 7px;
  font: 700 clamp(1.25rem, 3vw, 2rem)/1.1 var(--display);
}

.release-platform {
  color: #d7caae;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.platform-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 44px;
  transform: perspective(60px) rotateY(-8deg);
}

.platform-mark i { display: block; height: 20px; background: var(--signal); }

.release-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 42px 0 32px;
  border-top: 1px solid rgba(231, 223, 204, 0.24);
  border-bottom: 1px solid rgba(231, 223, 204, 0.24);
}

.release-details div { padding: 19px 10px 18px 0; }
.release-details dt { color: #aa9f87; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; }
.release-details dd { margin: 7px 0 0; font-weight: 700; }

.download-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  color: var(--paper);
  background: var(--signal);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, background 180ms ease;
}

.download-button:not(.is-disabled):hover { transform: translateY(-2px); background: #c14a34; }
.download-button.is-disabled { color: #948d7e; background: #34362f; cursor: not-allowed; }

.release-message,
.checksum {
  margin: 17px 0 0;
  color: #aaa28f;
  font-size: 0.78rem;
  line-height: 1.55;
}

.checksum code { overflow-wrap: anywhere; color: #d7caae; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: #5f6259;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal {
  from { opacity: 0; transform: scale(0.94) rotate(-2deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 820px) {
  .masthead, main, footer { width: min(100% - 30px, 680px); }
  .hero {
    display: grid;
    min-height: auto;
    margin-top: 24px;
    padding: 0;
    overflow: visible;
    box-shadow: 9px 9px 0 rgba(75, 86, 65, 0.16);
  }
  .hero::after { display: none; }
  .hero-copy { width: 100%; padding: 52px 28px 48px; }
  .hero-art { position: relative; z-index: auto; height: clamp(270px, 64vw, 410px); order: 2; }
  .hero-art img { object-position: 67% center; }
  .map-story { grid-template-columns: 1fr; padding: 92px 0 28px; }
  .map-story-copy { margin: -34px 20px 0; }
  .faction-story { grid-template-columns: 1fr; margin-top: 64px; }
  .faction-story::before { display: none; }
  .faction-frame { min-height: 440px; }
  .history-story { display: grid; min-height: auto; margin-top: 84px; padding: 0; }
  .history-story::after { display: none; }
  .history-art { position: relative; z-index: auto; height: clamp(320px, 69vw, 470px); }
  .history-art img { object-position: 58% center; }
  .history-copy { width: 100%; padding: 48px 28px 72px; background: var(--ink); text-shadow: none; }
  .history-caption { inset: auto 18px 16px; }
  .download-section { grid-template-columns: 1fr; padding: 88px 0 100px; }
  .field-notes { grid-template-columns: 1fr; }
  .field-notes p { border-right: 0; border-bottom: 1px solid var(--line); }
  .field-notes p:last-child { border-bottom: 0; }
}

@media (max-width: 470px) {
  .brand { gap: 8px; font-size: 0.86rem; }
  .brand-mark { width: 50px; }
  .brand > span:last-child { max-width: 120px; line-height: 1.2; }
  .alpha-stamp { font-size: 0.62rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
  .hero-copy { padding: 44px 20px 40px; }
  .hero-art { height: 260px; }
  .map-frame { box-shadow: 9px 9px 0 rgba(170, 62, 44, 0.2); }
  .map-frame figcaption { inset: auto 12px 11px; }
  .map-story-copy { margin: -18px 10px 0; padding: 32px 22px; }
  .map-layers li { grid-template-columns: 1fr; gap: 5px; }
  .faction-story { box-shadow: -8px 8px 0 rgba(75, 86, 65, 0.2); }
  .faction-story-copy { padding: 42px 22px; }
  .faction-frame { min-height: 310px; }
  .faction-frame figcaption { inset: auto 12px 11px; }
  .history-story { box-shadow: 8px 8px 0 rgba(170, 62, 44, 0.18); }
  .history-art { height: 280px; }
  .history-copy { padding: 40px 22px 70px; }
  .history-sequence { grid-template-columns: 1fr; }
  .history-sequence li { display: grid; grid-template-columns: 36px 1fr; padding-top: 11px; }
  .history-sequence strong { margin: 0; }
  .history-caption { inset: auto 12px 11px; }
  .release-panel { box-shadow: 9px 9px 0 var(--paper-deep); }
  .release-details { grid-template-columns: 1fr; }
  .release-details div { border-bottom: 1px solid rgba(231, 223, 204, 0.16); }
  .release-details div:last-child { border-bottom: 0; }
  footer { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
