:root {
  --bg: #f2f0eb;
  --ink: #0d0d0d;
  --muted: rgb(13 13 13 / 0.55);
  --accent: #ff3b1f;
  --gap: 1rem;
  --pad: clamp(1rem, 2.5vw, 2rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.poster {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad);
}

/* 12-column rows separated by a heavy rule */
.rule-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  border-top: 3px solid var(--ink);
  padding-top: 0.6rem;
}

.top {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.top span:first-child { grid-column: 1 / 4; }
.top .top-mid { grid-column: 4 / 10; }
.top .top-end { grid-column: 10 / -1; text-align: right; }

/* ---- wordmark ---- */
.hero-title {
  align-self: center;
  margin: clamp(1.5rem, 4vh, 3rem) 0;
  font-weight: 900;
  /* sized by width, but capped by height so the index stays above the fold */
  font-size: clamp(5rem, min(27vw, 30svh), 26rem);
  line-height: 0.78;
  letter-spacing: -0.075em;
}

.hero-line {
  display: block;
}

.hero-line.accent {
  color: var(--accent);
  margin-left: 22%;
}

/* ---- index ---- */
.index {
  row-gap: 2rem;
  align-items: start;
}

.intro {
  grid-column: 1 / 4;
  margin: 0;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.group {
  grid-column: span 3;
}

.group h2 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.group h2 span {
  color: var(--accent);
  margin-right: 0.35rem;
}

.group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.group li {
  border-top: 1px solid var(--ink);
}

.group li:last-child {
  border-bottom: 1px solid var(--ink);
}

.group a,
.group .pending {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0;
  color: inherit;
  text-decoration: none;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.label img {
  width: 0.9rem;
  height: 0.9rem;
  object-fit: contain;
}

.group small {
  font-size: 0.8rem;
  color: var(--muted);
}

/* OneZeroFour: square logo beside the label and caption */
.feature a {
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  align-items: center;
}

.feature .logo {
  grid-row: span 2;
  width: 2.75rem;
  height: 2.75rem;
  display: block;
  /* logo has a white fill; multiply lets the page colour show through */
  mix-blend-mode: multiply;
}

.feature a:hover .logo,
.feature a:focus-visible .logo {
  filter: none;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.feature .label {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.arrow {
  display: inline-block;
  transition: transform 160ms ease;
}

.group a:hover,
.group a:focus-visible {
  color: var(--accent);
  outline: none;
}

.group a:focus-visible .label {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.group a:hover .arrow,
.group a:focus-visible .arrow {
  transform: translate(3px, -3px);
}

.group a:hover img,
.group a:focus-visible img {
  /* tint flat icons toward the accent red */
  filter: invert(36%) sepia(94%) saturate(4200%) hue-rotate(352deg) brightness(101%);
}

.pending .label {
  color: var(--muted);
}

.colophon {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .intro { grid-column: 1 / -1; }
  .group,
  .group:nth-of-type(2) { grid-column: span 6; }
  .group:nth-of-type(1) { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .top .top-mid { display: none; }
  .top .top-end { grid-column: 4 / -1; }
  .group,
  .group:nth-of-type(2) { grid-column: 1 / -1; }
  .hero-line.accent { margin-left: 18%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
