/* Fonts are self-hosted: no request leaves this site. */
@font-face { font-family: "Grenze Gotisch"; src: url("assets/fonts/grenze-gotisch-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Grenze Gotisch"; src: url("assets/fonts/grenze-gotisch-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("assets/fonts/alegreya-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("assets/fonts/alegreya-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("assets/fonts/alegreya-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("assets/fonts/alegreya-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* Palette taken from the Draxtor Games logo */
  --night: #0e1335;    /* page: the night sky behind the dragon */
  --plate: #1c2152;    /* raised surfaces: the name plate */
  --rule: #343b7a;     /* borders: the clouds */
  --cream: #f4e3b8;    /* text: "Draxtor" lettering, horns */
  --mist: #aeb1d9;     /* secondary text */
  --gold: #fdb113;     /* links, primary action: "Games" lettering */
  --flame: #e0321a;    /* dragon red */
  --gem: #b07cff;      /* in development: the purple gem */

  --display: "Grenze Gotisch", "Times New Roman", serif;
  --text: "Alegreya", Georgia, serif;

  --measure: 38rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 20;
  background: var(--gold); color: var(--night); padding: 0.4rem 0.8rem;
}
.skip:focus { top: 1rem; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.75rem var(--gutter);
  background: rgb(14 19 53 / 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--cream); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1;
}
.brand img { display: block; border: 1px solid var(--rule); }
.top nav { display: flex; gap: 1.25rem; margin-left: auto; }
.top nav a { color: var(--mist); text-decoration: none; }
.top nav a:hover { color: var(--cream); }
.lang { display: flex; border: 1px solid var(--rule); }
.lang button {
  font: inherit; font-size: 0.85rem; letter-spacing: 0.04em;
  background: none; color: var(--mist); border: 0; padding: 0.15rem 0.55rem; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--night); }

@media (max-width: 560px) {
  .top { gap: 0.9rem; flex-wrap: wrap; }
  .brand span { display: none; }
  .top nav { gap: 0.9rem; font-size: 1rem; }
}

/* Hero: the torch is the one loud thing on the page */
.hero {
  position: relative;
  min-height: min(88vh, 46rem);
  display: grid; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.torch {
  position: absolute; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 30rem) minmax(0, 26rem);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.5rem, 7vh, 4.5rem) var(--gutter);
  max-width: 72rem;
}
.logo { margin: 0; line-height: 0; }
.logo img {
  width: 100%; height: auto;
  filter: drop-shadow(0 0.6rem 1.6rem rgb(5 6 25 / 0.7));
}
.lede {
  margin: 0;
  font-size: 1.3rem;
  text-shadow: 0 0 1em var(--night);
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.5rem; }
  .logo { width: min(78vw, 24rem); }
  .hero-actions { justify-content: center; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }

.btn {
  display: inline-block;
  font: inherit; font-size: 1rem; font-weight: 500;
  padding: 0.55rem 1.1rem;
  color: var(--cream); background: rgb(14 19 53 / 0.6);
  border: 1px solid var(--rule);
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--gold); }
.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn-primary:hover { background: #ffc54a; border-color: #ffc54a; }

/* Sections */
.section {
  padding: clamp(3.5rem, 9vw, 6rem) var(--gutter);
  max-width: 64rem;
}
.section h2 {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.75rem);
  line-height: 1;
}
.section-intro { margin: 0.75rem 0 2.5rem; color: var(--mist); max-width: var(--measure); }

/* Games: a ledger, not a card grid */
.games { list-style: none; margin: 0; padding: 0; }
.game {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.game:last-child { border-bottom: 1px solid var(--rule); }
.sigil {
  width: 6rem; height: 6rem;
  background: var(--plate);
  padding: 0.75rem;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
}
.game h3 {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.4rem); line-height: 1.05;
}
.game .meta { margin: 0.35rem 0 0; color: var(--mist); font-size: 0.95rem; }
.status { color: var(--gem); font-style: italic; }
.game p.summary { margin: 0.85rem 0 0; max-width: var(--measure); }
.game .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
@media (max-width: 560px) {
  .game { grid-template-columns: 4rem 1fr; gap: 0 1.1rem; }
  .sigil { width: 4rem; height: 4rem; padding: 0.5rem; }
}

/* Devlog */
.posts { max-width: 42rem; }
.post { padding: 0 0 2.25rem; margin: 0 0 2.25rem; border-bottom: 1px solid var(--rule); }
.post:last-child { border-bottom: 0; margin-bottom: 0; }
.post time { color: var(--mist); font-size: 0.95rem; }
.post h3 { margin: 0.15rem 0 0.6rem; font-size: 1.45rem; line-height: 1.25; font-weight: 700; }
.post h3 a { color: var(--cream); text-decoration: none; }
.post h3 a:hover { text-decoration: underline; }
.post p { margin: 0; }
.post .about-game { margin-top: 0.75rem; font-size: 0.95rem; }
.post:target h3 { color: var(--gold); }
.more { margin-top: 1rem; }

/* About */
.about-body { max-width: var(--measure); margin-top: 1.5rem; }
.about-body p { margin: 0 0 1rem; }
.links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }

.foot {
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--rule);
  color: var(--mist); font-size: 0.95rem;
}
.foot p { margin: 0; }
.foot a { color: var(--mist); }
.foot a:hover { color: var(--cream); }
