/*
 * duello.css - Duello's identity, layered on top of /includes/styles.css.
 *
 * Every page under /duello/ links the site-wide stylesheet first and this one second. Prefer
 * overriding the site tokens here over restating rules; add a rule only for something the
 * site-wide sheet has no notion of.
 *
 * Not used by /duello/technical/ - those pages are copied verbatim from the game repo and
 * carry their own styles.
 */

@font-face {
  font-family: "Kubasta";
  src: url("/duello/fonts/Kubasta.ttf") format("truetype");
  font-display: swap;
}

:root {
  /* Taken from the title wordmark: blood red and parchment on near-black */
  --duello-red: #c0141d;
  --duello-cream: #f1e6cc;

  --ground: #141217;
  --panel: #211e25;
  --ink: #e4ddd0;
  --dim: #9d968a;
  --rule: #38333d;
  --accent: #e2353e;
  --heading: var(--duello-cream);
  --link: var(--duello-cream);

  --font-display: "Kubasta", var(--font-body);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.site-header {
  background: #0d0c10;
}

.brand {
  color: var(--ink);
}

/* Kubasta is a pixel face: it only reads at heading sizes, so h3 and smaller stay in the body font */
h1,
h2 {
  letter-spacing: 0.03em;
}

h2 {
  font-size: 1.9rem;
}

h3 {
  font-family: var(--font-body);
}

/* Section nav under the site header: Duello / Press kit / Review sheets */
.subnav {
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.subnav .container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.subnav a {
  text-decoration: none;
  color: var(--dim);
}

.subnav a:hover,
.subnav a[aria-current="page"] {
  color: var(--duello-cream);
}

.hero {
  position: relative;
  background: url("/duello/images/screen-portal.jpg") center / cover no-repeat;
  text-align: center;
  padding: 4.5rem 1.25rem 4rem;
}

/* Darken the portal art so the wordmark and text stay legible */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(20, 18, 23, 0.35), rgba(20, 18, 23, 0.9));
}

.hero > * {
  position: relative;
}

.hero .logo {
  width: min(560px, 90%);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

.hero .pitch {
  font-size: 1.25rem;
  max-width: 34rem;
  margin: 1.5rem auto;
  color: var(--duello-cream);
}

.hero .actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button.secondary {
  color: var(--duello-cream);
}

.feature h3,
.factsheet dt {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Press kit */

.presskit {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 260px minmax(0, 1fr);
  margin-top: 2.5rem;
}

.factsheet {
  align-self: start;
}

.factsheet dl {
  margin: 0;
}

.factsheet dt {
  margin-top: 1rem;
}

.factsheet dt:first-child {
  margin-top: 0;
}

.factsheet dd {
  margin: 0;
}

.presskit h2:first-child {
  margin-top: 0;
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.gallery a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

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

.gallery .logo-tile {
  background: var(--panel);
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 1rem;
}

.gallery .logo-tile img {
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 760px) {
  .presskit {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 1rem;
  }
}
