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

:root {
  color-scheme: dark;
  --ink: #17120d;
  --cream: #f5ead6;
  --paper: #e6d1a7;
  --paper-deep: #b78d55;
  --forest: #1f6f54;
  --frost: #8ec7d6;
  --ember: #c85a35;
  --gold: #d6aa54;
  --shadow: rgba(10, 8, 7, 0.58);
  --line: rgba(245, 234, 214, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #15100d;
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(245, 234, 214, 0.16);
  border-radius: 8px;
  background: rgba(23, 18, 13, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand-mark img {
  width: 172px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(245, 234, 214, 0.78);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
}

.language-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(245, 234, 214, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.lang-button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(245, 234, 214, 0.7);
  cursor: pointer;
  font-weight: 800;
}

.lang-button.is-active {
  background: var(--cream);
  color: var(--ink);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-art,
.hero-scrim,
.hero-relic {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-art {
  background-image: url("./assets/screens/battle-background.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.92) 0%, rgba(12, 10, 8, 0.62) 42%, rgba(12, 10, 8, 0.26) 100%),
    linear-gradient(0deg, rgba(21, 16, 13, 0.95) 0%, rgba(21, 16, 13, 0.05) 36%);
}

.hero-relic {
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 120px max(48px, calc((100vw - 1180px) / 2)) 40px 48px;
  pointer-events: none;
}

.hero-relic img {
  width: min(44vw, 720px);
  max-height: 72svh;
  object-fit: contain;
  opacity: 0.94;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.45));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 118px;
}

.status-pill,
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(214, 170, 84, 0.5);
  border-radius: 8px;
  background: rgba(23, 18, 13, 0.56);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 800;
  line-height: 1.05;
}

h1 {
  max-width: 880px;
  font-size: 4.75rem;
}

h2 {
  font-size: 2.7rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  line-height: 1.65;
}

.hero-lede {
  max-width: 670px;
  margin: 24px 0 0;
  color: rgba(245, 234, 214, 0.9);
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-action {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.secondary-action {
  border: 1px solid rgba(245, 234, 214, 0.3);
  color: var(--cream);
}

.release-note {
  color: rgba(245, 234, 214, 0.74);
  font-weight: 800;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-band {
  border-top: 1px solid rgba(245, 234, 214, 0.08);
  border-bottom: 1px solid rgba(245, 234, 214, 0.08);
  background: #201714;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 46px 0;
}

.intro-copy {
  max-width: 760px;
}

.intro-copy p:last-child,
.front-copy > p,
.roster-copy p,
.updates-copy p {
  color: rgba(245, 234, 214, 0.78);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 126px);
  gap: 8px;
}

.stat-strip div {
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(245, 234, 214, 0.14);
  border-radius: 8px;
  background: rgba(245, 234, 214, 0.07);
}

.stat-strip strong {
  display: block;
  color: var(--frost);
  font-family: "Cinzel", Georgia, serif;
  font-size: 2rem;
}

.stat-strip span {
  display: block;
  margin-top: 8px;
  color: rgba(245, 234, 214, 0.76);
  font-weight: 800;
}

.front-section,
.faction-section,
.roster-section,
.updates-section {
  padding: 92px 0;
}

.front-section {
  background: #18120f;
}

.front-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
}

.front-media {
  overflow: hidden;
  border: 1px solid rgba(245, 234, 214, 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.front-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.feature-card,
.faction-card {
  border: 1px solid rgba(245, 234, 214, 0.16);
  border-radius: 8px;
  background: rgba(245, 234, 214, 0.07);
}

.feature-card {
  min-height: 170px;
  padding: 18px;
}

.feature-card p,
.faction-card p {
  margin: 12px 0 0;
  color: rgba(245, 234, 214, 0.72);
  font-size: 0.95rem;
}

.faction-section {
  background:
    linear-gradient(180deg, rgba(32, 23, 20, 0.88), rgba(18, 14, 12, 0.96)),
    url("./assets/screens/world-map.png");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.faction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.faction-card {
  min-height: 430px;
  padding: 0 18px 18px;
  overflow: hidden;
}

.faction-art-wrap {
  position: relative;
  height: 284px;
  margin: 0 -18px 16px;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 234, 214, 0.16);
}

.faction-art-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(15, 11, 9, 0) 30%, rgba(15, 11, 9, 0.3) 64%, rgba(15, 11, 9, 0.88) 100%),
    radial-gradient(circle at 108px 236px, rgba(15, 11, 9, 0.82) 0%, rgba(15, 11, 9, 0.58) 26%, rgba(15, 11, 9, 0) 54%),
    linear-gradient(90deg, rgba(15, 11, 9, 0.24), rgba(15, 11, 9, 0));
}

.faction-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faction-crest {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 12px;
  width: 182px;
  height: 120px;
  object-fit: contain;
  filter:
    drop-shadow(0 14px 18px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 12px rgba(245, 234, 214, 0.18));
}

.faction-card h3 {
  font-size: 1.08rem;
}

.faction-card p {
  margin-top: 8px;
  line-height: 1.48;
}

.faction-card.greenwake {
  background: linear-gradient(180deg, rgba(31, 111, 84, 0.32), rgba(245, 234, 214, 0.06));
}

.faction-card.hearthguard {
  background: linear-gradient(180deg, rgba(142, 199, 214, 0.24), rgba(245, 234, 214, 0.06));
}

.faction-card.embermark {
  background: linear-gradient(180deg, rgba(200, 90, 53, 0.28), rgba(245, 234, 214, 0.06));
}

.roster-section {
  background: #241a15;
}

.roster-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.character-lineup {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: end;
  min-height: 360px;
  padding: 24px 18px 0;
  border-bottom: 1px solid rgba(245, 234, 214, 0.24);
}

.character-lineup img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.34));
}

.updates-section {
  background: #12100f;
}

.updates-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.8fr);
  gap: 60px;
  align-items: start;
}

.updates-copy {
  padding-top: 8px;
}

.updates-copy .secondary-action {
  margin-top: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
  color: rgba(245, 234, 214, 0.6);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand-mark img {
    width: 150px;
  }

  .site-nav {
    display: none;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-relic {
    align-items: flex-start;
    justify-content: flex-end;
    padding: 104px 18px 0;
    opacity: 0.4;
  }

  .hero-relic img {
    width: min(56vw, 380px);
    max-height: 46svh;
  }

  .intro-grid,
  .front-layout,
  .roster-layout,
  .updates-layout {
    grid-template-columns: 1fr;
  }

  .stat-strip,
  .feature-list,
  .faction-grid {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .stat-strip div {
    min-width: 150px;
  }

  .front-media img {
    height: 360px;
  }

  .front-section,
  .faction-section,
  .roster-section,
  .updates-section {
    padding: 68px 0;
  }

  .roster-copy {
    max-width: 620px;
  }

  .character-lineup {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
    min-height: 0;
    padding: 18px 0 0;
  }

  .character-lineup img {
    min-width: 0;
    max-height: clamp(150px, 26vw, 260px);
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 8px;
  }

  .brand-mark img {
    width: 126px;
  }

  .lang-button {
    min-width: 38px;
    min-height: 32px;
  }

  .section-inner,
  .hero-content,
  .site-footer {
    width: calc(100% - 28px);
  }

  .hero-content {
    padding-top: 92px;
  }

  .hero-relic {
    padding: 88px 4px 0 42vw;
    opacity: 0.34;
  }

  .hero-relic img {
    width: min(62vw, 300px);
    max-height: 36svh;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.82rem;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .front-media img {
    height: 270px;
  }

  .faction-card {
    min-height: 320px;
  }

  .character-lineup {
    gap: 2px;
    padding-top: 10px;
  }

  .character-lineup img {
    max-height: clamp(122px, 34vw, 180px);
  }

  .site-footer {
    flex-direction: column;
  }
}
