:root {
  --ink: #d8c18d;
  --ink-soft: #b5a06d;
  --gold: #d2b06f;
  --gold-strong: #f0be63;
  --mist: #c7d2bf;
  --mist-soft: #e3d4b4;
  --paper: #1a201e;
  --line: rgba(143, 179, 143, 0.28);
  --card: rgba(11, 27, 29, 0.86);
  --shadow: 0 18px 40px rgba(3, 7, 8, 0.52);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Rajdhani", sans-serif;
  background:
    radial-gradient(1100px 680px at 100% 2%, rgba(68, 34, 86, 0.34), transparent 58%),
    radial-gradient(880px 620px at 0% 100%, rgba(225, 123, 29, 0.26), transparent 52%),
    linear-gradient(165deg, #0b1013 0%, #0f2023 48%, #1b2b24 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(90deg, rgba(81, 139, 111, 0.25) 1px, transparent 1px),
    linear-gradient(rgba(81, 139, 111, 0.25) 1px, transparent 1px);
  background-size: 30px 30px;
}

.page {
  width: min(1000px, 92vw);
  margin: 0 auto;
  padding: 4rem 0 4.5rem;
  position: relative;
  z-index: 1;
}

.hero {
  display: block;
  margin-bottom: 1rem;
  animation: rise 0.7s ease-out both;
}

.panel {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 18px;
  backdrop-filter: blur(2px);
}

.hero-copy {
  padding: 1.4rem 1.5rem 1.5rem;
}

.title-bar {
  display: block;
  width: 100%;
  aspect-ratio: 2048 / 1139;
  margin-bottom: 0;
  border: 1px solid rgba(178, 135, 72, 0.55);
  border-radius: 14px;
  background:
    linear-gradient(130deg, rgba(9, 24, 20, 0.32), rgba(43, 76, 64, 0.18)),
    url("../img/title.png") center center / contain no-repeat;
  background-color: rgba(7, 15, 17, 0.9);
  box-shadow: 0 12px 28px rgba(3, 7, 8, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.title-bar:hover,
.title-bar:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(236, 176, 84, 0.8);
  box-shadow: 0 16px 34px rgba(201, 125, 35, 0.28);
  outline: none;
}

.kicker {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--gold-strong);
  text-transform: uppercase;
}

h1 {
  margin: 0.45rem 0 0.5rem;
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.03;
  letter-spacing: 0.02em;
}

.summary {
  margin: 0 auto 1.2rem;
  max-width: 60ch;
  text-align: center;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.versions {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.version-card {
  padding: 1.2rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: rise 0.7s ease-out both;
}

.version-card:nth-child(1) { animation-delay: 0.12s; }
.version-card:nth-child(2) { animation-delay: 0.2s; }
.version-card:nth-child(3) { animation-delay: 0.28s; }

.tag {
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fdf1ce;
  background: linear-gradient(120deg, #7a4a1e, #c07e2e);
}

.tag-current {
  color: #fff6df;
  background: linear-gradient(120deg, #9a5d22, #e3983a);
}

.tag-archive {
  color: #e4f3d7;
  background: linear-gradient(120deg, #2b5a4c, #3d7867);
}

.current-card {
  border-color: rgba(226, 170, 80, 0.64);
  box-shadow:
    0 0 0 1px rgba(234, 178, 86, 0.2),
    0 16px 34px rgba(201, 125, 35, 0.24);
  background:
    radial-gradient(900px 240px at -5% -40%, rgba(214, 141, 48, 0.16), transparent 65%),
    var(--card);
}

.current-card h2 {
  color: #f4d49c;
}

.version-card h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.version-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.actions {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  text-decoration: none;
  display: inline-block;
  border-radius: 12px;
  padding: 0.58rem 0.84rem;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  color: #fff4cf;
  background: linear-gradient(130deg, #a46527, #de9036);
  box-shadow: 0 10px 20px rgba(143, 73, 22, 0.34);
}

.btn-secondary {
  color: #c6dcb8;
  background: rgba(26, 59, 52, 0.8);
  border-color: rgba(139, 191, 160, 0.28);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(34, 77, 67, 0.92);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(43, 33, 20, 0.2);
  outline: none;
}

.history {
  margin-top: 1.4rem;
  border-top: 1px dashed rgba(163, 188, 142, 0.32);
  padding-top: 0.75rem;
  color: #b9c8a0;
  font-size: 0.96rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .page {
    padding-top: 2.6rem;
  }

  .title-bar {
    width: 100%;
  }

  .versions {
    grid-template-columns: 1fr;
  }
}
