/* Paths here are relative to this file, so pages work served or opened from disk. */
@font-face {
  font-family: "Philosopher";
  src: url("Philosopher-Regular.ttf");
  font-display: swap;
}

@font-face {
  font-family: "Philosopher";
  src: url("Philosopher-Bold.ttf");
  font-weight: bold;
  font-display: swap;
}

:root {
  --text: #eeeeee;
  --text-dim: #bbbbbb;
  --gold: #e6b462;
  --gold-bright: #f6cf86;
  --link: #33aaff;
  --link-hover: #77ddff;
  --card: rgba(17, 17, 17, 0.88);
  --card-edge: rgba(255, 255, 255, 0.14);
  --silver: #b0c5d1;
  --sapphire: #4788ff;
  --obsidian: #9267ff;
  --ok: #aaffaa;
  --warn: #fcba03;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

/* The town art behind every page, darkened like the airoguelite.net site. */
html {
  min-height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)) fixed, url("bg.webp") center / cover no-repeat fixed #120f0c;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Philosopher", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

h1, h2, h3 {
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0.05em 0.05em 0.1em #000;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 8, 6, 0.85);
  border-bottom: 1px solid var(--card-edge);
  backdrop-filter: blur(6px);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: bold;
  font-size: 1.15em;
}

.brand:hover {
  color: var(--gold-bright);
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.topbar nav a {
  color: var(--text);
}

.topbar nav a:hover,
.topbar nav a[aria-current="page"] {
  color: var(--gold);
}

/* Buttons: outlined, filled on hover, as on airoguelite.net */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.5em 1.4em;
  border: 3px solid var(--gold);
  border-radius: 0.4em;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--gold);
  color: #161616;
}

.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* Steam's own look for anything that goes through Steam. */
.btn-steam {
  border: 1px solid #3d4450;
  background: linear-gradient(#2a475e, #1b2838);
  color: #ffffff;
  font-family: "Motiva Sans", Arial, sans-serif;
  font-weight: normal;
  letter-spacing: 0.01em;
}

.btn-steam:hover {
  background: linear-gradient(#3a6f96, #2a475e);
  color: #ffffff;
  border-color: #66c0f4;
}

.btn-steam img {
  height: 22px;
}

/* The usual "open in new tab" glyph after a link's text. */
.ext {
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.3em;
  fill: currentColor;
  opacity: 0.8;
  vertical-align: -0.05em;
  flex: none;
}

/* Inside a flex button the gap already spaces it. */
.btn .ext {
  margin-left: -4px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 0.8em;
  padding: 20px 22px;
}

.muted {
  color: var(--text-dim);
}

.small {
  font-size: 0.85em;
}

/* Footer */
footer {
  margin-top: 64px;
  background: rgba(10, 8, 6, 0.85);
  border-top: 1px solid var(--card-edge);
  padding: 24px 0 36px;
  color: var(--text-dim);
  font-size: 0.9em;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

footer .spacer {
  flex: 1;
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .topbar nav {
    gap: 14px;
  }

  .brand span {
    display: none;
  }
}
