* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #080704;
  color: #eee5d5;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
}

.forge-background {
  position: fixed;
  inset: 0;
  z-index: -3;

  background:
    url('/assets/forge-bg.png') center center / cover no-repeat;
}

.page-shade {
  position: fixed;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.18),
      rgba(0,0,0,.32)
    );
}

.forge-page {
  width: min(1260px, calc(100% - 30px));
  margin: auto;
  padding: 38px 0 28px;
}

.hero {
  text-align: center;
  text-shadow: 0 4px 20px #000;
}

.ornament {
  color: #dfa33b;
  font-size: 28px;
}

.hero h1 {
  margin: 2px 0 0;
  color: #d8b171;
  font-family: Georgia, serif;
  font-size: clamp(70px, 10vw, 140px);
  line-height: .9;
  letter-spacing: .08em;
}

.hero p {
  margin: 12px 0 22px;
  color: #d8d0c3;
  font-size: 18px;
  letter-spacing: .16em;
}

.search-wrap {
  width: min(760px, 100%);
  height: 70px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 15px;

  padding: 0 24px;

  background: rgba(8,8,8,.82);
  border: 1px solid rgba(218,158,58,.65);
  border-radius: 999px;

  box-shadow:
    0 0 0 3px rgba(208,137,38,.08),
    0 15px 40px rgba(0,0,0,.45);

  backdrop-filter: blur(12px);
}

.search-icon,
.spark {
  color: #e0a33d;
  font-size: 28px;
}

.search-wrap input {
  flex: 1;
  min-width: 0;

  color: #eee5d5;
  background: transparent;
  border: 0;
  outline: 0;

  font-size: 20px;
}

.search-wrap input::placeholder {
  color: #a9a298;
}

.quick-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;

  margin: 13px auto 24px;
}

.quick-tools button {
  padding: 9px 16px;

  color: #d8d0c3;
  background: rgba(7,7,7,.76);

  border: 1px solid rgba(216,157,57,.40);
  border-radius: 999px;

  backdrop-filter: blur(8px);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.tool-card {
  min-height: 165px;
  padding: 20px 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: #f0e8dc;
  text-decoration: none;
  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgba(15,15,13,.91),
      rgba(6,6,5,.82)
    );

  border: 1px solid rgba(218,158,58,.55);
  border-radius: 16px;

  box-shadow:
    0 12px 30px rgba(0,0,0,.42);

  backdrop-filter: blur(9px);

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.tool-card:hover {
  transform: translateY(-5px);

  border-color: #e5a640;

  background:
    linear-gradient(
      145deg,
      rgba(35,28,17,.96),
      rgba(10,9,7,.92)
    );
}

.tool-icon {
  margin-bottom: 12px;

  color: #dfa23b;
  font-size: 38px;
}

.tool-card h2 {
  margin: 0 0 7px;

  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: normal;
}

.tool-card p {
  margin: 0;

  color: #c6beb2;
  font-size: 13px;
  line-height: 1.45;
}

.bottom-strip {
  margin-top: 20px;
  padding: 16px 20px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;

  background: rgba(6,6,5,.76);
  border: 1px solid rgba(218,158,58,.35);
  border-radius: 16px;

  backdrop-filter: blur(10px);
}

.bottom-strip div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bottom-strip strong {
  color: #dfa23b;
}

.bottom-strip span {
  color: #aaa296;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .forge-page {
    width: calc(100% - 20px);
    padding-top: 24px;
  }

  .hero h1 {
    font-size: 68px;
  }

  .hero p {
    font-size: 13px;
  }

  .search-wrap {
    height: 58px;
  }

  .search-wrap input {
    font-size: 16px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottom-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .bottom-strip {
    grid-template-columns: 1fr;
  }
}
