@font-face {
  font-family: "Grenze Gotisch";
  src: url("/fonts/GrenzeGotisch-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("/fonts/CrimsonPro.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("/fonts/CrimsonPro-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* The game's own UI palette (Assets/Scripts/Game/Ui.cs); --blood is its text crimson, 5.3:1 on ink. */
:root {
  --ink: #0a0a0d;
  --charcoal: #212126;
  --slate: #38383f;
  --ash: #918b81;
  --bone: #d9d1c2;
  --crimson: #9e0d14;
  --blood: #e64f59;
  --paper: #f7f3ea; /* the studio logo's paper, behind previews of its light-background versions */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 1.2rem/1.55 "Crimson Pro", Georgia, serif;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blood); }
a:hover { color: var(--bone); }
a:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
h1, h2, h3 { font-family: "Grenze Gotisch", "Crimson Pro", serif; font-weight: 500; line-height: 1.1; }
h2 { font-size: 2.2rem; margin: 3rem 0 1rem; }
p, li { max-width: 62ch; }
ul { padding-left: 1.2rem; }
li { margin-bottom: .4rem; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1.5rem;
  padding: .75rem 16px;
  border-bottom: 1px solid var(--charcoal);
}
.studio { display: block; line-height: 0; }
.studio img { height: 2.25rem; width: auto; }
.bar nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.bar nav a { color: var(--ash); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--bone); }

.hero { position: relative; }
/* Capped at the viewport under the header bar so the wishlist button is never below the fold on wide, short screens. */
.hero-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: calc(100vh - 4rem);
  max-height: calc(100svh - 4rem);
}
/* Logo sits bottom-left over the tower stone, as on the trailer thumbnail Mayu picked, with the wishlist button under it. */
.hero-text {
  position: absolute;
  z-index: 1;
  left: 5%;
  bottom: 7%;
  width: 40%;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(.6rem, 2vw, 1.4rem);
}
.hero h1 { width: 100%; margin: 0; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(transparent, var(--ink));
  pointer-events: none;
}

.lede { font-size: 1.45rem; max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; padding: 0; }
.button {
  display: inline-block;
  padding: .55rem 1.2rem;
  border: 1px solid var(--crimson);
  background: var(--crimson);
  color: var(--bone);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #b8121b; color: var(--bone); }
.button.big {
  padding: .55em 1.3em;
  font-size: clamp(1.15rem, 2.9vw, 2.3rem);
  white-space: nowrap;
  box-shadow: 0 4px 24px rgb(0 0 0 / .6);
}
.button.ghost { background: transparent; border-color: var(--slate); }
.button.ghost:hover { border-color: var(--bone); }
.note, .small { color: var(--ash); font-size: 1rem; }
.cta { margin-top: 2.5rem; }

.trailer { width: 100%; aspect-ratio: 16 / 9; background: var(--charcoal); margin-top: 2rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; align-items: center; margin-block: 3.5rem; }
.split h2 { margin-top: 0; }
.split.flip .clip { order: -1; }
.clip { width: 100%; aspect-ratio: 1170 / 658; background: var(--charcoal); }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .clip { order: 0; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.grid li { max-width: none; margin: 0; }
.grid figure { margin: 0; }
.grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--charcoal); }
.grid.art img { object-fit: contain; background: var(--charcoal); padding: .5rem; }
.grid.art img.on-paper { background: var(--paper); }
.grid figcaption { margin-top: .35rem; font-size: 1rem; line-height: 1.35; }
.grid figcaption span { display: block; color: var(--ash); }

.page h1 { font-size: 3rem; margin: 2.5rem 0 .75rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.5rem; margin: 0; }
.facts dt { color: var(--ash); }
.facts dd { margin: 0; }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: .6rem; }
}
.copy { max-width: 62ch; padding: 1rem 1.25rem; border-left: 3px solid var(--crimson); background: var(--charcoal); }

.prose h2 { font-size: 1.9rem; margin-top: 2.5rem; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: .5rem .65rem; border: 1px solid var(--slate); text-align: left; vertical-align: top; }
.prose th { background: var(--charcoal); }
@media (max-width: 640px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tr { margin-bottom: 1rem; border: 1px solid var(--slate); }
  .prose td { border: 0; border-top: 1px solid var(--charcoal); }
  .prose td:first-child { border-top: 0; background: var(--charcoal); font-weight: 600; }
  .prose td::before { content: attr(data-label); display: block; color: var(--ash); font-size: .9rem; }
}
.prose code { padding: 0 .25em; background: var(--charcoal); font-size: .85em; overflow-wrap: anywhere; }
.updated { color: var(--ash); }

.foot { margin-top: 4rem; padding-block: 1.5rem; border-top: 1px solid var(--charcoal); color: var(--ash); font-size: 1rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.foot a { color: var(--ash); }
.foot a:hover { color: var(--bone); }
