﻿:root {
  color-scheme: light;
  --background: #f4f1e8;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: #fffdf8;
  --line: rgba(37, 46, 52, 0.14);
  --text: #1f2d36;
  --muted: #58656c;
  --accent: #c95c2b;
  --accent-strong: #a84518;
  --accent-soft: rgba(201, 92, 43, 0.14);
  --shadow: 0 18px 48px rgba(38, 46, 51, 0.12);
  --radius-large: 28px;
  --radius-medium: 18px;
  --radius-small: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(201, 92, 43, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(49, 124, 120, 0.16), transparent 32%),
    linear-gradient(180deg, #fbf7ee 0%, var(--background) 100%);
  color: var(--text);
  font-family: "Segoe UI", "Aptos", system-ui, sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 44px 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at top center, rgba(201, 92, 43, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.97), rgba(255, 247, 234, 0.94));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 92, 43, 0.18), transparent 70%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(37, 46, 52, 0.1);
}

.hero-sidebar {
  display: grid;
  gap: 6px;
  align-self: start;
}

.hero-artwork {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 12px 0 18px;
}

.hero-artwork img {
  display: block;
  width: min(100%, 860px);
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(38, 46, 51, 0.16);
  border: 1px solid rgba(37, 46, 52, 0.06);
  background: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  animation: hero-image-fade 780ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

@keyframes hero-image-fade {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.eyebrow,
.release-meta dt {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--muted);
}

h2,
.asset-name,
.changelog-details summary {
  font-family: Georgia, "Times New Roman", serif;
}

.lede,
.release-status {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 52ch;
  margin: 0;
  font-size: 0.98rem;
  font-style: italic;
}

.manual-link-row {
  margin: 10px 0 0;
}

.manual-link {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.manual-link:hover {
  color: var(--accent);
}

.release-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.release-meta div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.58);
}

.release-meta dt,
.release-meta dd {
  margin: 0;
}

.release-meta dd {
  margin-top: 8px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-links,
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-links {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
}

.hero-actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fffaf4;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

.older-releases-link {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
}

.older-releases-link:hover {
  color: var(--accent-strong);
}

.primary-download-card {
  display: grid;
  gap: 14px;
  width: min(100%, 440px);
  padding: 18px 20px;
  border-radius: var(--radius-medium);
  border: 1px solid rgba(201, 92, 43, 0.22);
  background: var(--accent-soft);
}

.asset-name {
  font-size: 1.1rem;
  margin: 0;
}

.download-size {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.release-status:empty {
  display: none;
}

.changelog-panel {
  margin-top: 22px;
  padding: 0 4px;
}

.changelog-details {
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.changelog-details summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-size: 1.4rem;
  font-weight: 700;
}

.changelog-details summary::-webkit-details-marker {
  display: none;
}

.changelog-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.changelog-body {
  padding: 22px 26px 26px;
  color: var(--muted);
  line-height: 1.7;
}

.changelog-body h2,
.changelog-body h3 {
  margin: 1.2em 0 0.45em;
  color: var(--text);
}

.changelog-body h2:first-child,
.changelog-body h3:first-child,
.changelog-body p:first-child,
.changelog-body ul:first-child {
  margin-top: 0;
}

.changelog-body ul {
  margin: 0.4em 0 1.1em;
  padding-left: 20px;
}

.changelog-body code {
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(31, 45, 54, 0.08);
}

.changelog-body a {
  color: var(--accent-strong);
}

.empty-state,
.error-state {
  padding: 16px 18px;
  border-radius: var(--radius-medium);
}

.empty-state {
  border: 1px dashed var(--line);
  color: var(--muted);
}

.error-state {
  border: 1px solid rgba(169, 63, 31, 0.2);
  background: rgba(169, 63, 31, 0.08);
  color: #7a2a14;
}

@media (max-width: 860px) {
  .release-meta {
    grid-template-columns: 1fr;
  }

  .hero-footer {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .hero-sidebar {
    gap: 10px;
  }

  .hero-links,
  .hero-actions {
    justify-content: flex-start;
  }

  .primary-download-card {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 20px, 1120px);
    padding-top: 10px;
  }

  .hero,
  .primary-download-card {
    padding: 20px;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero-artwork img {
    width: min(100%, 720px);
  }

  .changelog-details summary,
  .changelog-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    border-radius: 22px;
  }
}

