/* OnTarget — landing placeholder
   Light-mode warm-gray + archery target accents, gespiegeld op de app. */

:root {
  --bg: #f6f5f3;
  --panel: #ffffff;
  --panel-2: #faf9f7;
  --border: #e6e3de;
  --border-2: #d6d2cb;
  --text: #1c1917;
  --text-2: #44403c;
  --muted: #87827a;
  --muted-2: #a8a39a;

  --yellow: #f5c518;
  --yellow-soft: #fef4c8;
  --yellow-soft-border: #ecdfa2;
  --red: #e63946;
  --blue: #1d70b8;

  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 12px;

  --sans: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ─── Topbar ─────────────────────────────────────────── */

.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-mark { display: block; }

.topbar-spacer { flex: 1; }

.topbar-right {
  color: var(--muted);
  font-size: 13px;
}

/* ─── Content layout ─────────────────────────────────── */

.content {
  flex: 1;
  padding: 48px 32px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
}

/* ─── Hero ───────────────────────────────────────────── */

.hero {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 48px 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.hero-mark {
  margin-bottom: 24px;
  filter: drop-shadow(0 2px 6px rgba(28, 25, 23, 0.08));
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 24px;
  color: var(--text-2);
  font-size: 16px;
}

.chip {
  display: inline-block;
  padding: 6px 14px;
  background: var(--yellow-soft);
  color: #735604;
  border: 1px solid var(--yellow-soft-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  max-width: 440px;
  margin: 0 auto;
}

/* ─── Release box ────────────────────────────────────── */

.release-box {
  flex: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

/* ─── Skeleton ───────────────────────────────────────── */

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.9; }
}

.release-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skel {
  background: var(--border);
  border-radius: var(--radius-sm);
  animation: pulse 1.6s ease-in-out infinite;
}

.skel-label  { height: 12px; width: 28%; }
.skel-title  { height: 22px; width: 50%; }
.skel-meta   { height: 12px; width: 38%; }
.skel-line   { height: 12px; width: 88%; }
.skel-line--short { width: 60%; }
.skel-line--mid   { width: 74%; }
.skel-btn    { height: 36px; width: 100%; border-radius: var(--radius); margin-top: 4px; }
.skel-btn--sm { height: 36px; width: 85%; }

.skel-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ─── Release content ────────────────────────────────── */

.release-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.release-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
}

.release-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.release-version-chip {
  display: inline-block;
  padding: 4px 10px;
  background: var(--yellow-soft);
  color: #735604;
  border: 1px solid var(--yellow-soft-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: ui-monospace, 'Cascadia Code', 'Fira Mono', monospace;
}

.release-date {
  color: var(--muted);
  font-size: 12px;
}

.pre-release-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #fff3e0;
  color: #8a4a00;
  border: 1px solid #f5c07a;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

/* ─── Prose (markdown) ───────────────────────────────── */

.prose {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  max-height: 280px;
  overflow-y: auto;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 14px 0 4px;
}
.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }

.prose p { margin: 0 0 8px; }
.prose p:last-child { margin-bottom: 0; }

.prose ul, .prose ol {
  margin: 0 0 8px;
  padding-left: 18px;
}
.prose li { margin: 2px 0; }

.prose code {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 12px;
  font-family: ui-monospace, 'Cascadia Code', 'Fira Mono', monospace;
}

.prose pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  overflow-x: auto;
  margin: 0 0 8px;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

.prose a { color: var(--blue); }

/* ─── Download buttons ───────────────────────────────── */

.release-downloads {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.download-btn {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.12s;
}
.download-btn:hover { opacity: 0.82; text-decoration: none; }

.download-btn--primary {
  background: var(--blue);
  color: #fff;
}
.download-btn--secondary {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border-2);
}

.release-gh-link {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  display: block;
  margin-top: auto;
  padding-top: 4px;
}
.release-gh-link:hover { color: var(--blue); text-decoration: none; }

/* ─── Footer ─────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 16px 32px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.footer .dot { color: var(--border-2); }

/* ─── Mobile ─────────────────────────────────────────── */

@media (max-width: 760px) {
  .content {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 16px;
    gap: 16px;
  }
  .hero { padding: 32px 20px; }
  .hero h1 { font-size: 32px; }
  .hero-mark { width: 88px; height: 88px; }
}

@media (max-width: 560px) {
  .topbar { padding: 0 20px; height: 56px; }
  .topbar-right { display: none; }
}
