:root {
  --ink: #221f1b;
  --muted: #6d645c;
  --paper: #fffdf8;
  --paper-warm: #f5eee3;
  --accent: #8a5a2b;
  --accent-dark: #51320f;
  --line: rgba(34, 31, 27, 0.14);
  --shadow: 0 18px 60px rgba(34, 31, 27, 0.09);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(138, 90, 43, 0.15), transparent 26rem),
    linear-gradient(125deg, rgba(255, 253, 248, 0.98), rgba(245, 238, 227, 0.72));
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(34, 31, 27, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 31, 27, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.shell {
  position: relative;
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 5rem) 0 4rem;
}

.shell.compact { width: min(780px, calc(100% - 2rem)); }

.hero {
  margin-top: 1.4rem;
  padding: clamp(2rem, 7vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
}

h1, h2 { margin: 0; line-height: 1; letter-spacing: -0.055em; }
h1 { font-size: clamp(3.8rem, 12vw, 7.2rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.35rem); }
p { line-height: 1.65; }

.eyebrow, .kicker {
  margin: 0 0 0.8rem;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lede {
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
}

.back-link, footer a {
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}

.release-meta span {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.download-panel, .release-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1rem;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.8);
}

.download-panel p, .release-card p, .card p { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card, .notes, .checksums {
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.72);
}

.notes, .checksums { margin-top: 1rem; }
.notes li { margin: 0.65rem 0; line-height: 1.5; color: var(--muted); }

.button {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover { transform: translateY(-1px); }
.button span { margin-top: 0.18rem; font-size: 0.67rem; font-weight: 650; opacity: 0.72; }
.button.primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 28px rgba(34, 31, 27, 0.18); }
.button.secondary { border: 1px solid rgba(34, 31, 27, 0.24); color: var(--ink); background: rgba(255, 253, 248, 0.9); }

code {
  overflow-wrap: anywhere;
  padding: 0.16rem 0.38rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-warm);
  font-size: 0.86em;
}

.checksums summary { cursor: pointer; font-weight: 800; }
.checksums div { display: grid; gap: 0.35rem; margin-top: 1rem; }
.checksums code { display: block; padding: 0.65rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .download-panel, .release-card { align-items: stretch; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
  footer { flex-direction: column; }
}
