/* =========================================================
   Home — the hero is the product, not a picture of it.
   ========================================================= */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--s-6);
  display: grid;
  gap: var(--s-5);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: var(--s-6); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-4);
  line-height: 0.78;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0;
}
.hero__title em {
  font-style: normal;
  display: block;
  color: var(--accent);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  padding-block: var(--s-2);
  border-block: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.hero__meta b { color: var(--fg); font-weight: 700; }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* live demo board */
.demo {
  position: relative;
  padding: var(--s-4);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  overflow: hidden;
}
.demo::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 70%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 41, 41, 0.14), transparent 70%);
  pointer-events: none;
}
.demo__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  position: relative;
}
.demo__head b { color: var(--accent); font-weight: 700; }

/* ---------- fixtures ---------- */
.fixtures {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 820px) { .fixtures { grid-template-columns: 1fr 1fr; } }

.fixture {
  position: relative;
  background: var(--bg);
  padding: var(--s-5) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background 0.22s var(--ease);
}
.fixture:hover { background: var(--bg-raised); }
.fixture::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--game);
  transform: scaleY(0.18);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.fixture:hover::before, .fixture:focus-visible::before { transform: scaleY(1); }

.fixture__no {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 0.8;
  color: var(--line-strong);
  transition: color 0.22s var(--ease);
}
.fixture:hover .fixture__no { color: var(--game); }

.fixture__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-2);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
}
.fixture__desc { margin: 0; color: var(--fg-muted); max-width: 42ch; }
.fixture__clues {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fixture__clues span {
  padding: 3px 7px;
  background: var(--miss);
  color: var(--fg-muted);
  border-radius: 1px;
}
.fixture__go {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--game);
  margin-top: auto;
}

/* ---------- how it reads ---------- */
.rules { padding-block: var(--s-6); display: grid; gap: var(--s-4); }
@media (min-width: 820px) { .rules { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.rule-item { display: flex; flex-direction: column; gap: var(--s-2); }
.rule-item h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-1);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.01em;
}
.rule-item p { margin: 0; color: var(--fg-muted); }
.rule-item .sample { display: flex; gap: 4px; }
.rule-item .sample .tile { min-height: 52px; flex: 0 0 72px; }
