@font-face {
  font-family: ExocetLight;
  src: url("fonts/exocet.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: ExocetHeavy;
  src: url("fonts/exocet heavy.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}
:root {
  --bg: #080706;
  --gold: #c69b3c;
  --gold2: #f0ce73;
  --text: #c9c0ae;
  --magic: #6969ff;
  --rare: #ffff00;
  --set: #00c400;
  --unique: #ffb000;
  --normal: #c7c7c7;
  --socket: #8e8e8e;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(
      circle at 50% -10%,
      rgba(132, 91, 25, 0.17),
      transparent 38rem
    ),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.009) 1px, transparent 1px),
    #080706;
  background-size: auto, 38px 38px, 38px 38px, auto;
  font-family: ExocetLight, serif;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 35%,
    rgba(0, 0, 0, 0.72) 100%
  );
  z-index: -1;
}
.embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: radial-gradient(circle, #c88d32 0 1px, transparent 1.5px);
  background-size: 97px 83px;
  animation: drift 18s linear infinite;
}
@keyframes drift {
  to {
    background-position: 97px 83px;
  }
}
.topbar {
  height: 82px;
  border-bottom: 1px solid #30291d;
  background: linear-gradient(#15120e, #0c0a08);
  box-shadow: 0 4px 24px #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #6b5225;
  color: var(--gold2);
  font-family: ExocetLight;
  font-size: 23px;
  text-shadow: 0 0 12px #b07825;
  box-shadow: inset 0 0 18px #000, 0 0 15px rgba(155, 102, 22, 0.12);
}
.eyebrow {
  color: #73664e;
  letter-spacing: 3px;
  font-size: 9px;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: ExocetLight;
  letter-spacing: 2px;
}
h1 {
  color: #d6ae55;
  font-size: 24px;
  line-height: 1;
}
.status {
  color: #6d664e;
  font-size: 10px;
  letter-spacing: 1px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5f9a40;
  box-shadow: 0 0 8px #5f9a40;
  margin-right: 8px;
}
.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}
.hero {
  min-height: 245px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 45px 34px 35px;
  border-bottom: 1px solid #322919;
}
.hero-copy {
  max-width: 720px;
}
.rune-line {
  color: #795e2b;
  font-size: 12px;
  letter-spacing: 5px;
  margin-bottom: 17px;
}
.hero h2 {
  font-size: clamp(38px, 7vw, 72px);
  color: #ddd2b8;
  line-height: 0.95;
  text-shadow: 2px 3px 0 #000, 0 0 25px rgba(191, 133, 35, 0.12);
}
.hero h2 span {
  color: var(--unique);
}
.hero p {
  color: #837966;
  font-size: 16px;
  line-height: 1.65;
  max-width: 630px;
  font-family: book antiqua !important;
}
.sigil {
  width: 150px;
  height: 150px;
  border: 1px solid #4b3a20;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #a77b2d;
  font-size: 74px;
  text-shadow: 0 0 22px #a16d20;
  box-shadow: inset 0 0 35px #000, 0 0 40px rgba(137, 88, 18, 0.08);
  transform: rotate(12deg);
}
.controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0;
}
.search {
  flex: 1 1 310px;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #443721;
  background: #0d0c09;
  padding: 0 15px;
  height: 48px;
  box-shadow: inset 0 0 15px #000;
}
.search span {
  font-size: 25px;
  color: #80622a;
}
.search input {
  width: 100%;
  background: none;
  border: 0;
  outline: 0;
  color: #ddd0b6;
  font: 15px ExocetLight;
}
.search input::placeholder {
  color: #625b4e;
}
.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
   text-transform:none;
}
.filter {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #3b3121;
  background: #12100d;
  color: #817763;
  cursor: pointer;
  font: 13px Georgia, serif;
  letter-spacing: 0.5px;
  text-transform: none;
}
.filter:hover,
.filter.active {
  border-color: #765828;
  color: #d7bc7b;
  background: #1a160f;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #2e271c;
  border-bottom: 1px solid #2e271c;
  background: #0d0c09;
}
.stats div {
  text-align: center;
  padding: 15px;
  border-right: 1px solid #2e271c;
}
.stats div:last-child {
  border-right: 0;
}
.stats span {
  display: block;
  color: #c49a43;
  font-family: ExocetLight;
  font-size: 20px;
}
.stats small {
  color: #5d574a;
  font-size: 9px;
  letter-spacing: 3px;
}
.archive {
  padding: 24px 0 60px;
  display: grid;
  gap: 10px;
}
.item {
  position: relative;
  display: grid;
  grid-template-columns: 7px 1fr auto;
  gap: 17px;
  align-items: center;
  min-height: 86px;
  padding: 15px 17px 15px 0;
  background: linear-gradient(90deg, #15120e, #0e0d0a);
  border: 1px solid #30291e;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  transition: 0.16s ease;
}
.item:hover {
  transform: translateY(-1px);
  border-color: #594622;
  background: linear-gradient(90deg, #1b1710, #100e0b);
}
.item-accent {
  align-self: stretch;
  background: var(--normal);
}
.item-main {
  min-width: 0;
}
.item-name {
  font-family: Georgia, serif;
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--normal);
  text-shadow: 1px 1px #000;
  overflow-wrap: anywhere;
}
.item-meta {
  margin-top: 7px;
  color: #625b4d;
  font-size: 11px;
  font-family: Georgia, serif;
}
.item-description {
  color: #817663;
  font-size: 12px;
  margin-top: 7px;
  line-height: 1.4;
  font-family:Georgia, serif;
}
.download {
  white-space: nowrap;
  text-decoration: none;
  color: #bfa66d;
  border: 1px solid #4a3a22;
  background: #15110b;
  padding: 11px 15px;
  font-size: 11px;
  letter-spacing: 1px;
}
.download:hover {
  color: #f0d083;
  border-color: #8a692d;
  box-shadow: 0 0 16px rgba(173, 119, 30, 0.12);
}
.type-unique .item-name {
  color: var(--unique);
}
.type-rare .item-name {
  color: var(--rare);
}
.type-magic .item-name {
  color: var(--magic);
}
.type-set .item-name {
  color: var(--set);
}
.type-normal .item-name {
  color: var(--normal);
}
.type-socket .item-name {
  color: var(--socket);
}
.type-unique .item-accent {
  background: var(--unique);
}
.type-rare .item-accent {
  background: var(--rare);
}
.type-magic .item-accent {
  background: var(--magic);
}
.type-set .item-accent {
  background: var(--set);
}
.type-normal .item-accent {
  background: var(--normal);
}
.type-socket .item-accent {
  background: var(--socket);
}
.empty {
  text-align: center;
  padding: 75px 20px;
  border: 1px solid #2d271d;
  background: #0c0b09;
  margin: 24px 0 60px;
}
.empty-rune {
  color: #8a6425;
  font-size: 42px;
}
.empty h3 {
  color: #9a8968;
  margin: 12px 0;
}
.empty p {
  color: #5e574b;
}
.hidden {
  display: none !important;
}
footer {
  max-width: 1180px;
  width: calc(100% - 36px);
  margin: 0 auto;
  border-top: 1px solid #2c251a;
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #4f493e;
  font-size: 9px;
  letter-spacing: 2px;
}
@media (max-width: 700px) {
  .topbar {
    height: 70px;
    padding: 0 18px;
  }
  .status {
    display: none;
  }
  .hero {
    min-height: 210px;
    padding: 38px 10px 28px;
	font-family: Georgia, serif;
  }
  .sigil {
    width: 88px;
    height: 88px;
    font-size: 42px;
    flex: none;
    margin-left: 15px;
  }
  .hero p {
    font-size: 14px;
	font-family: Georgia, serif;
  }
  .stats span {
    font-size: 16px;
  }
  .item {
    grid-template-columns: 5px 1fr;
    padding-right: 12px;
  }
  .download {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }
  footer {
    flex-direction: column;
  }
}

/* Preserve normal capitalization */
.eyebrow,
.status,
.filter,
.stats small,
footer,
.item-name,
.item-meta,
.item-description,
.download {
  text-transform: none !important;
}
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at center, rgba(108, 73, 22, .14), transparent 35%),
    #080706;
}

.login-panel {
  width: min(420px, 100%);
  padding: 45px 35px;
  text-align: center;
  background: linear-gradient(#15120e, #0b0a08);
  border: 1px solid #4a3920;
  box-shadow:
    0 0 0 1px #17120b,
    0 20px 80px rgba(0,0,0,.8),
    inset 0 0 40px rgba(0,0,0,.7);
}

.login-rune {
  color: #b17c29;
  font-size: 42px;
  margin-bottom: 12px;
  text-shadow: 0 0 20px #9a641d;
}

.login-panel h2 {
  color: #d5aa52;
  font-family: ExocetLight, Georgia, serif;
  font-size: 30px;
  font-weight: normal;
  margin-bottom: 10px;
}

.login-panel p {
  color: #716653;
  margin-bottom: 25px;
  font-family: book antiqua;
}

.login-panel input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: #080706;
  border: 1px solid #443721;
  outline: none;
  color: #d7c59e;
  font: 15px Georgia, serif;
  text-align: center;
}

.login-panel input:focus {
  border-color: #806029;
  box-shadow: 0 0 15px rgba(160,110,30,.12);
}

.login-panel button {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border: 1px solid #594522;
  background: linear-gradient(#211a10, #110e09);
  color: #c9a75d;
  cursor: pointer;
  font: 14px Georgia, serif;
}

.login-panel button:hover {
  border-color: #927033;
  color: #f0d083;
}

.login-error {
  display: none;
  margin-top: 14px;
  color: #b64c3e;
  font: 12px Georgia, serif;
}

.login-error.visible {
  display: block;
}