/* v04-phosphor — the poster page.

   Centred, mono, amber. The catalogue is a real multi-column block (CSS
   columns, not a grid), so it reads top-to-bottom down one column and then
   down the next, the way a printed index does. Nothing in the catalogue is
   boxed: the columns are separated by rules. */

/* ---------- hero ---------- */

.v4-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 7rem);
}
.v4-burn {
  position: absolute;
  inset: 0 0 52%;
  z-index: -1;
  background-image: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 62%, #000) 0%, var(--bg) 88%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 25%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 25%, #000 20%, transparent 100%);
  will-change: transform;
}
.v4-hero-inner { position: relative; }
.v4-claim {
  font-family: var(--font-mono);
  font-size: var(--display-1);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.25;
  max-width: 24ch;
  margin-inline: auto;
  text-wrap: balance;
}
.v4-support {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin: clamp(1.75rem, 4vw, 3rem) auto 0;
  max-width: 44ch;
}
.v4-adopt {
  margin: var(--space-18) auto 0;
  max-width: 48ch;
}
.v4-actions { justify-content: center; margin-top: clamp(2rem, 5vw, 3.5rem); gap: var(--space-16); }

/* ---------- the catalogue ---------- */

.v4-heading {
  font-family: var(--font-mono);
  font-size: var(--display-2);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  text-align: center;
  color: var(--accent-hi);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.v4-columns {
  columns: 3;
  column-gap: clamp(2rem, 4vw, 4rem);
  column-rule: 1px solid var(--border-2);
}
.v4-entry {
  break-inside: avoid;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  transition: opacity var(--dur-base) ease;
}
.v4-entry-name {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
}
.v4-entry-name a { color: var(--text); text-shadow: 0 0 14px transparent; transition: color var(--dur-base) ease, text-shadow var(--dur-base) ease; }
.v4-entry-lang {
  margin: var(--space-4) 0 var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-3xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.v4-entry-desc {
  margin: 0;
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.v4-entry-links { display: flex; gap: var(--space-14); margin: var(--space-8) 0 0; }
.v4-entry-links a {
  font-family: var(--font-mono);
  font-size: var(--text-3xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  border-bottom: 1px solid transparent;
}
.v4-entry-links a:hover { border-color: var(--accent-2); }

/* The pointed-at entry takes an amber rule down its left edge and steps aside
   by the width of that rule. The type on it does not move and does not change
   colour: a printed index stays readable while you run a finger down it. */
.v4-entry {
  border-left: 3px solid transparent;
  padding-left: var(--space-14);
  transition: border-color var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
}
.v4-entry:hover, .v4-entry.is-hover, .v4-entry:focus-within { border-left-color: var(--accent); transform: translateX(3px); }
.v4-entry.is-near { border-left-color: var(--border-2); }

/* ---------- sign-up ---------- */

.v4-narrow { max-width: 42rem; }
.v4-nl { --fill: var(--surface); --line: var(--accent); }
.v4-nl h2 { font-family: var(--font-mono); font-size: var(--display-3); letter-spacing: 0.06em; }
.v4-signup { text-align: left; }
.v4-band { border-block: 1px solid var(--border-2); }
.v4 .st-footer { text-align: center; }
.v4 .st-footer-row { justify-content: center; gap: var(--space-28); }

/* ---------- narrower windows ---------- */

@media (max-width: 1100px) {
  .v4-columns { columns: 2; }
}

/* ---------- mobile (390px) ---------- */

@media (max-width: 899px) {
  .v4-hero { min-height: auto; text-align: left; padding-block: clamp(9.5rem, 52vw, 14rem) clamp(2.5rem, 10vw, 4rem); }
  /* The burn is a band above the claim on a phone too: the type never sits on
     the amber. */
  .v4-burn { inset: 0 0 68%; }
  .v4-hero .v4-claim { margin-inline: 0; max-width: none; letter-spacing: 0.02em; font-size: clamp(1.375rem, 6.1vw, 2rem); }
  /* The mono face reads large for its size, so the two lines under the motto
     come down with it and the order of the three stays obvious. */
  .v4-hero .st-support { font-size: clamp(1rem, 4.6vw, 1.25rem); }
  .v4-hero .st-adopt { font-size: var(--text-lg); }
  .v4-support, .v4-adopt { margin-inline: 0; }
  .v4-actions { justify-content: stretch; flex-direction: column; align-items: stretch; }
  .v4-actions .st-btn { width: 100%; }
  .v4-heading { text-align: left; letter-spacing: 0.18em; }
  .v4-columns { columns: 1; }
  .v4-entry { padding-block: var(--space-16); border-bottom: 1px solid var(--border); }
  .v4-entry-name { font-size: var(--text-2xl); }
  .v4-entry-desc { font-size: var(--text-base); -webkit-line-clamp: 99; line-clamp: 99; }
  .v4-entry-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: var(--text-xs); }
}
