:root {
  --bg-1: #fff7ed;
  --bg-2: #fef3c7;
  --bg-3: #f5e8cf;
  --ink-1: #2a1807;
  --ink-2: #5b3311;
  --brand-1: #d4780b;
  --brand-2: #b8650a;
  --brand-3: #7a4507;
  --line-soft: rgba(122, 69, 7, 0.18);
  --panel: rgba(255, 251, 235, 0.86);
  --shadow: 0 20px 45px rgba(122, 69, 7, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink-1);
  background:
    radial-gradient(circle at 8% -10%, var(--bg-2) 0%, transparent 45%),
    radial-gradient(circle at 85% 10%, #fde68a 0%, transparent 50%),
    linear-gradient(145deg, var(--bg-1) 0%, var(--bg-3) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(#7a4507 0.35px, transparent 0.35px);
  background-size: 4px 4px;
}

.page-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  animation: page-in 550ms ease-out;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--brand-1), var(--brand-3));
  box-shadow: 0 0 0 5px rgba(212, 120, 11, 0.18), 0 8px 18px rgba(122, 69, 7, 0.24);
}

.brand-kicker {
  margin: 0;
  color: var(--ink-2);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

h1,
h2 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink-1);
}

h1 {
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  letter-spacing: -0.02em;
}

.content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.hero {
  padding: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--brand-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.hero-text {
  margin: 10px 0 0;
  color: var(--ink-2);
  max-width: 70ch;
  line-height: 1.55;
}

.download-guide {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guide-card {
  border: 1px solid rgba(122, 69, 7, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.52);
}

.guide-card h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: #5b3311;
  font-size: 15px;
}

.guide-card p {
  margin: 6px 0 0;
  color: #7f4c1e;
  line-height: 1.45;
  font-size: 13px;
}

.meta-row {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(184, 101, 10, 0.28);
  background: rgba(255, 251, 235, 0.92);
  color: #7c4608;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  text-decoration: none;
}

.chip-link:hover {
  background: #fef3c7;
}

.release {
  padding: 22px;
}

.status {
  color: var(--ink-2);
  font-weight: 600;
}

.release-root {
  display: grid;
  gap: 16px;
  animation: section-in 430ms ease-out;
}

.release-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.label {
  margin: 0;
  color: #9a590d;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

#releaseTitle {
  margin-top: 6px;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
}

.sub {
  margin: 5px 0 0;
  color: #7f4c1e;
}

.secondary-link {
  color: #9a590d;
  text-underline-offset: 2px;
  font-size: 14px;
}

.asset-list {
  display: grid;
  gap: 10px;
}

.asset {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(122, 69, 7, 0.15);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  padding: 12px;
}

.asset-action {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.asset-action-note {
  margin: 0;
  font-size: 12px;
  color: #7f4c1e;
  max-width: 280px;
  text-align: right;
}

.asset-name {
  font-weight: 600;
  color: #4a290c;
}

.asset-kind {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 3px 8px;
  vertical-align: middle;
}

.asset-kind-setup {
  color: #5d350d;
  background: rgba(251, 191, 36, 0.25);
  border: 1px solid rgba(180, 83, 9, 0.22);
}

.asset-kind-portable {
  color: #7a4507;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(180, 83, 9, 0.18);
}

.asset-meta {
  margin-top: 2px;
  font-size: 12px;
  color: #88511e;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  color: #fff8ee;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2), var(--brand-3));
  box-shadow: 0 10px 22px rgba(122, 69, 7, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(122, 69, 7, 0.36);
}

.notes-wrap {
  border-top: 1px solid rgba(122, 69, 7, 0.14);
  padding-top: 14px;
}

.asset-filter-info {
  margin: 4px 0 0;
  color: #7f4c1e;
  font-size: 12px;
}

.notes {
  margin: 8px 0 0;
  white-space: pre-wrap;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: #4f2d0f;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(122, 69, 7, 0.12);
  border-radius: 12px;
  padding: 12px;
  max-height: 260px;
  overflow: auto;
}

.status-error {
  color: #9b1c1c;
  background: rgba(254, 226, 226, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 10px;
}

@keyframes page-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes section-in {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding: 18px 14px 28px;
  }

  .release-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-guide {
    grid-template-columns: 1fr;
  }

  .asset {
    flex-direction: column;
    align-items: flex-start;
  }

  .asset-action {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .asset-action-note {
    max-width: 100%;
    text-align: left;
  }

  .download-btn {
    width: auto;
  }
}