@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #d8d0c4;
  background-color: #070604;
  font-family: "Oswald", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url("../assets/images/dark-texture.png") center / cover,
    #070604;
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 18%, rgba(93, 0, 0, 0.36), transparent 26%),
    radial-gradient(circle at 92% 94%, rgba(96, 0, 0, 0.34), transparent 30%),
    rgba(0, 0, 0, 0.46);
  pointer-events: none;
  content: "";
}

body.is-resource-loading {
  overflow: hidden;
}

.resource-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #f2eadc;
  background: #070604;
  transition: opacity .35s ease, visibility .35s ease;
}

.resource-loader.is-complete {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.resource-loader__panel {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(151, 27, 39, 0.72);
  background: rgba(18, 13, 11, 0.88);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.56);
}

.resource-loader__eyebrow {
  margin-bottom: 8px;
  color: #c7a36a;
  font-size: 14px;
  text-transform: uppercase;
}

.resource-loader h1 {
  margin: 0 0 22px;
  color: #fff7ea;
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.resource-loader__progress {
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(199, 163, 106, 0.58);
  background: rgba(0, 0, 0, 0.52);
}

.resource-loader__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #6b0f1a, #c7a36a);
  transition: width .18s ease;
}

.resource-loader__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: #d8d0c4;
  font-size: 16px;
}

.resource-loader__meta strong {
  color: #fff7ea;
}

@media (prefers-reduced-motion: reduce) {
  .resource-loader,
  .resource-loader__progress span {
    transition: none;
  }
}

a {
  color: inherit;
}

button,
a {
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #6b0f1a;
  color: #fff;
  background: #3a070d;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #520b13;
}
