:root {
  --accent: #8b1f1d;
  --bg: #070707;
  --muted: #9a9a9a
}

code {
  color: #8b1f1d !important;
}

* {
  box-sizing: border-box
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  margin: 0;
  color: #ececec;
  background: var(--bg);
  line-height: 1.5
}

a:hover {
  color: #c0392b !important;
}

.topbar {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.45));
  backdrop-filter: blur(4px);
  padding: .5rem 0
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none
}

.quake-logo {
  width: 40px;
  height: 40px;
  color: var(--accent);
  flex: 0 0 40px
}

.navbar .nav-link {
  color: #e6e6e6;
  transition: color .15s ease
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--accent);
  text-decoration: none
}

a {
  color: inherit;
  text-decoration: underline;
  opacity: .95
}

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

.hero {
  background-image: url('media/hero_background.jpg');
  min-height: 36vh;
  display: flex;
  align-items: center;
  color: white;
  background-size: cover;
  background-position: center;
  position: relative
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.78))
}

.hero .container {
  position: relative;
  z-index: 2
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px
}

@media(min-width:992px) {
  .gallery img {
    height: 260px
  }
}

.info-card {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.6), rgba(12, 12, 12, 0.65));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 1.25rem
}

footer {
  background: #050505;
  color: #bbb;
  padding: 2rem 0
}

.text-accent {
  color: var(--accent)
}

.btn-accent {
  background: var(--accent);
  border: none;
  color: #fff
}

.muted {
  color: var(--muted)
}

.shadow-sm {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4)
}

pre {
  color: #e9e9e9
}

code {
  background: #0f0f0f;
  padding: .15rem .35rem;
  border-radius: 4px
}

@media(max-width:576px) {
  .hero {
    min-height: 38vh
  }

  .quake-logo {
    width: 34px;
    height: 34px
  }
}

a:focus,
.nav-link:focus,
.btn:focus {
  outline: 3px solid rgba(192, 57, 43, 0.18);
  outline-offset: 2px
}

:root {
  color-scheme: dark;
}

.note-card {
  display: flex;
  align-items: flex-start;
  /* top-align text with icon */
  gap: .6rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: .9rem;
  margin-top: .75rem;
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--accent);
}

.note-card.warning {
  background: rgba(192, 57, 43, 0.12);
  border-left-color: var(--accent);
  color: #f5b4ad;
  font-weight: 500;
}

.note-card i {
  flex-shrink: 0;
  /* don't let the icon shrink */
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1.2;
}

.mono {
  font-family: monospace;
}

.gallery a:focus,
.gallery a:active,
.gallery img:focus,
.gallery img:active {
  outline: none;
  box-shadow: none;
}
