/* The game's site (M7 PR 10): dark fantasy, gold and night, the game's own faces (Cinzel for titles, Lora for text),
   served from here. Mobile first; no scripts. */

@font-face {
  font-family: "Cinzel";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Cinzel-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Lora";
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/Lora-Variable.ttf") format("truetype");
}

:root {
  --night: #0d0b10;
  --panel: #17141c;
  --line: #3a3127;
  --ink: #ece4d6;
  --muted: #b3a690;
  --gold: #e2b65c;
  --gold-bright: #fade96;
  --accord: #f2d48a;
  --dominion: #d9665a;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.65 "Lora", Georgia, serif;
}

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

a {
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

h2 {
  font-size: clamp(26px, 4.5vw, 40px);
  text-align: center;
}

h3 {
  font-size: 20px;
}

main > section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 16px;
}

.section__lead,
.eyebrow {
  color: var(--muted);
  text-align: center;
}

.eyebrow {
  margin: 0 0 4px;
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 13px;
}

/* The key art, full-bleed, with the logo, the tagline and the stores. */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero picture,
.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__art {
  object-fit: cover;
  object-position: 60% center;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--night) 0%, rgba(13, 11, 16, 0.85) 18%, rgba(13, 11, 16, 0) 55%),
    linear-gradient(90deg, rgba(13, 11, 16, 0.55), rgba(13, 11, 16, 0) 60%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 56px;
  text-align: center;
}

.hero__logo {
  width: min(560px, 88vw);
  margin: 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
}

.hero__tagline {
  margin: 8px 0 20px;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(20px, 3.4vw, 30px);
  color: var(--gold-bright);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store {
  padding: 10px 20px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: rgba(13, 11, 16, 0.7);
  font-family: "Cinzel", Georgia, serif;
  font-size: 15px;
  color: var(--gold-bright);
}

.hero__note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* The trailer (M7): our own video file, played on request, in a fixed 16:9 frame with the picture fitted inside it
   (owner, 2026-11-15: phones showed the poster and the video zoomed in when the video sized itself). */
.trailer__frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0c0d14;
}

.trailer__frame::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9, also where aspect-ratio isn't known */
}

.trailer__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0c0d14;
}

.story {
  max-width: 760px !important;
  text-align: center;
}

.story p {
  font-size: 19px;
}

/* The factions, side by side on wide screens. */
.factions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.faction {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.faction img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.faction__text {
  padding: 20px 22px 24px;
}

.faction h2 {
  font-size: 26px;
  text-align: left;
}

.faction--accord h2 {
  color: var(--accord);
}

.faction--dominion h2 {
  color: var(--dominion);
}

.faction__creed {
  margin: 4px 0 8px;
  font-style: italic;
  color: var(--muted);
}

/* The heroes: a row that scrolls sideways, a card per hero. */
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 260px);
  gap: 16px;
  margin: 24px 0 0;
  padding: 4px 4px 16px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--line) transparent;
}

.card {
  scroll-snap-align: start;
  padding: 0 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #221c25, var(--panel) 55%);
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin-top: 6px;
}

.card--accord {
  border-top: 3px solid var(--accord);
}

.card--dominion {
  border-top: 3px solid var(--dominion);
}

.card p {
  margin: 4px 0 0;
  font-size: 15px;
}

.card__meta {
  color: var(--muted);
  font-size: 13px !important;
  letter-spacing: 0.04em;
}

/* The features: a screenshot and its words, alternating sides on wide screens. */
.features {
  display: grid;
  gap: 40px;
}

.feature {
  display: grid;
  gap: 16px;
  align-items: center;
}

.feature img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.feature h3 {
  font-size: 24px;
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: 3fr 2fr;
    gap: 32px;
  }

  .feature:nth-of-type(even) {
    grid-template-columns: 2fr 3fr;
  }

  .feature:nth-of-type(even) img {
    order: 2;
  }
}

/* The footer: the game's opening screen, its dark (Boot.uss, rgb(12, 13, 20)) behind the studio's logo as the game shows it. */
.footer {
  padding: 40px 16px 48px;
  border-top: 1px solid var(--line);
  background: #0c0d14;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.footer__studio {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0 0 16px;
}

.footer__studio img {
  width: 220px;
  height: auto;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 12px;
}

/* The pages beside the site (M7 PR 11): Terms, Privacy, Support, Delete account. A readable column, the site's faces. */
.doc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}

.doc-bar img {
  width: 150px;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 56px;
}

.doc h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 4px;
}

.doc h2 {
  margin: 36px 0 8px;
  font-size: 22px;
  text-align: left;
}

.doc h3 {
  margin: 20px 0 4px;
  font-size: 17px;
}

.doc p,
.doc li {
  font-size: 16px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.doc th,
.doc td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc .updated {
  color: var(--muted);
  margin-top: 0;
}

.doc .note {
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  background: var(--panel);
}

.doc form {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.doc input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--night);
  color: var(--ink);
  font: inherit;
}

.doc button {
  justify-self: start;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: transparent;
  color: var(--gold-bright);
  font-family: "Cinzel", Georgia, serif;
  cursor: pointer;
}
