/* Brutalo: the colours of the menu (docs/brand.md): bone white letters,
   red hot under the cursor, blood, dark rusty steel */
:root {
  --bg: #120d0b;
  --steel: #1c1613;
  --steel-2: #261d18;
  --line: rgba(237, 222, 194, 0.14);
  --bone: #edddc2;
  --bone-dim: rgba(237, 222, 194, 0.72);
  --hot: #ff5c24;
  --blood: #c4271a;
  --ember: #ff8c40;
  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ember); }

/* ------------------------------------------------------------ background */
#bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
#bg .paint {
  position: absolute;
  inset: 0;
  background: var(--bg) url(../assets/bg.webp) center / cover no-repeat;
}
@media (max-width: 900px) {
  #bg .paint { background-image: url(../assets/bg-1280.webp); }
}
#bg .gear {
  position: absolute;
  max-width: none;
  animation: turn 72s linear infinite;
  will-change: transform;
}
@keyframes turn { to { transform: rotate(360deg); } }
#bg canvas { position: absolute; inset: 0; }
/* darker where the text is, the painting shows through at the top */
#bg .shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(18, 13, 11, 0) 0%, rgba(18, 13, 11, 0.45) 70%),
    linear-gradient(rgba(18, 13, 11, 0.15), rgba(18, 13, 11, 0.6) 60%, rgba(18, 13, 11, 0.8));
}
#bg.still .gear { animation: none; }
@media (prefers-reduced-motion: reduce) {
  #bg .gear { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ language */
.lang {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.lang button {
  font: 700 14px/1 var(--head);
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  background: rgba(18, 13, 11, 0.6);
  border: 1px solid var(--line);
  padding: 8px 10px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--bg); background: var(--bone); border-color: var(--bone); }
.lang button:focus-visible, .btn:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }

/* ------------------------------------------------------------ hero */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 16px 32px;
}
.hero h1 { margin: 0; width: min(640px, 92vw); }
.hero h1 img { width: 100%; height: auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.85)); }
.tagline {
  margin: 8px 0 28px;
  font: 500 clamp(20px, 3vw, 28px)/1.3 var(--head);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  max-width: 34ch;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font: 700 18px/1 var(--head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  background: rgba(18, 13, 11, 0.7);
  border: 1px solid rgba(237, 222, 194, 0.35);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:hover { background: rgba(38, 29, 24, 0.9); }
.btn-hot {
  color: #fff4e6;
  background: linear-gradient(#d63a1c, #9e1f12);
  border-color: #ff7a4a;
  box-shadow: 0 0 0 rgba(255, 92, 36, 0);
}
.btn-hot:hover { background: linear-gradient(#ee4a24, #b2261a); box-shadow: 0 0 28px rgba(255, 92, 36, 0.55); }
.btn-big { padding: 18px 32px; font-size: 21px; }
.btn.is-off { pointer-events: none; filter: grayscale(0.85) brightness(0.7); }

/* ------------------------------------------------------------ sections */
main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section { padding: 48px 0; }
h2 {
  font: 700 clamp(28px, 4vw, 40px)/1.1 var(--head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--bone);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 10px;
  background: var(--hot);
}

.video .frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
/* the poster with the play button, as on YouTube */
.play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}
.play .poster { width: 100%; height: 100%; object-fit: cover; transition: filter 0.2s; }
.play:hover .poster { filter: brightness(0.8); }
.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(64px, 9vw, 104px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(196, 39, 26, 0.92);
  box-shadow: 0 0 0 3px rgba(255, 244, 230, 0.85), 0 10px 40px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s, background 0.15s;
}
.play-icon::after {
  content: "";
  position: absolute;
  left: 38%;
  top: 28%;
  border-style: solid;
  border-width: 0.22em 0 0.22em 0.38em;
  border-color: transparent transparent transparent #fff4e6;
  font-size: clamp(64px, 9vw, 104px);
}
.play:hover .play-icon, .play:focus-visible .play-icon { transform: translate(-50%, -50%) scale(1.08); background: var(--hot); }
.play-label {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  font: 700 18px/1 var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
.play:focus-visible { outline: 2px solid var(--hot); outline-offset: -2px; }
.player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.caption { color: var(--bone-dim); font-size: 14px; margin: 10px 0 0; }
.caption a, footer a { color: var(--bone); text-underline-offset: 3px; }
.caption a:hover, footer a:hover { color: var(--hot); }

.about p { max-width: 68ch; color: var(--bone); margin: 0 0 14px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  background: linear-gradient(var(--steel-2), var(--steel));
  border: 1px solid var(--line);
  overflow: hidden;
}
.card img,
.card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0b0807;
  border-bottom: 1px solid var(--line);
}
.card img.contain { object-fit: contain; padding: 18px 8px; }
.card h3 {
  font: 700 20px/1.2 var(--head);
  letter-spacing: 0.03em;
  margin: 14px 16px 6px;
}
.card p { margin: 0 16px 16px; font-size: 15px; line-height: 1.5; color: var(--bone-dim); }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font: 700 12px/1 var(--head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--bone);
  padding: 5px 7px;
}

.demo-box {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(var(--steel-2), var(--steel));
  border: 1px solid var(--line);
  padding: 28px;
}
.demo-what ul { margin: 0 0 12px; padding-left: 20px; }
.demo-what li { margin: 4px 0; }
.demo-what li::marker { color: var(--hot); }
.how { color: var(--bone-dim); font-size: 15px; margin: 0; }
.demo-get { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; color: var(--bone-dim); }
.meta dt { color: var(--bone); }
.meta dd { margin: 0; }
.sha { font: 12px/1.4 ui-monospace, Consolas, monospace; word-break: break-all; }

footer {
  text-align: center;
  padding: 40px 16px 48px;
  font-size: 13px;
  color: var(--bone-dim);
}
footer p { margin: 4px 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { min-height: 78vh; padding-top: 72px; }
  section { padding: 32px 0; }
  .demo-box { grid-template-columns: 1fr; padding: 20px; }
  .btn { width: 100%; }
  .actions { width: 100%; max-width: 360px; flex-direction: column; }
}
