/* Colours from the app (print-server/public/buster/styles.css) and its icon. */
:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --border: #d9d8d3;
  --border-soft: #ebeae6;
  --ink: #2a2a28;
  --muted: #6b6a65;
  --coral: #ff6b5b;
  --coral-ink: #c8402f;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--ink); }
main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.top { max-width: 1040px; margin: 0 auto; padding: 20px 24px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);  /* minmax: the video's own width must not widen the page */
  gap: 40px;
  align-items: center;
  padding: 40px 0 32px;
}
h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.02em; }
.lede { font-size: 18px; color: var(--muted); margin: 0; max-width: 34em; }
.hero-video {               /* the app's intro: transparent WebM, so it sits on the page */
  width: min(100%, 400px);
  aspect-ratio: 1 / 1;
  justify-self: center;
  display: block;
}

.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-head { display: flex; align-items: center; gap: 14px; }
.os { width: 36px; height: 36px; fill: var(--ink); flex: none; }
.card h2 { margin: 0; font-size: 20px; }
.meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.btn {
  display: block;
  text-align: center;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 10px;
}
.btn:hover { background: #000; }
.btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.hint { margin: 0; font-size: 14px; color: var(--muted); }

.news { padding: 48px 0 24px; max-width: 760px; }
.news > h2 { font-size: 24px; margin: 0 0 8px; }
.release { border-top: 1px solid var(--border); padding: 18px 0 6px; }
.release h3 { margin: 0 0 6px; font-size: 17px; }
.release h3 .date { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 8px; }
.release h4 { margin: 10px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.release ul { margin: 0; padding-left: 20px; }
.release li { margin: 4px 0; }
.tag { font-size: 12px; font-weight: 600; color: var(--coral-ink); margin-left: 6px; white-space: nowrap; }
.muted { color: var(--muted); }

.foot { max-width: 1040px; margin: 0 auto; padding: 24px 24px 40px; color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px 0 24px; }
  .hero-video { width: min(70%, 280px); }
  .downloads { grid-template-columns: minmax(0, 1fr); }
}
