/* The closing call: "The index". Pure type: in the headline STOP RENTING.
   is muted and a bright hairline strikes RENTING. through (src/sections/
   cta.js draws it into the word's outline), START OWNING. stays lit. Then
   a full-width hairline index of the software, one row per seed with a
   live site (data/home-seeds.json): its number, its logo, its name and
   line, its status and demo, and an arrow. The first row is shown
   inverted; the row under the pointer or keyboard takes that over. The
   name links the whole row to the seed's own site; the demo link sits
   above it. */

.cta { padding-top: round(var(--section-space), 1px); padding-bottom: 0; }
/* The band's pool of light (sections.css .band::before) rasters once in a
   layer of its own: re-rastered with the page's tiles (which a partial
   screenshot of the page does), its gradient's dither shifts, and a still
   frame changes by a level across the pool. */
.cta::before { will-change: transform; }

.cta-title [data-word="0"], .cta-title [data-word="1"] { color: #a3a29e; }
.cta-strike { stroke: var(--paper); stroke-width: 2px; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: left center; }

.index { margin: clamp(36px, 3.2vw, 56px) 0 0; padding: 0; list-style: none; }

.index-row {
  --bg: transparent;
  --fg: var(--paper);
  --dim: var(--text-faint);
  position: relative;
  display: grid;
  grid-template-columns: clamp(52px, 7.4vw, 112px) clamp(36px, 3vw, 48px) minmax(0, 1fr) auto clamp(56px, 7vw, 104px);
  column-gap: clamp(14px, 1.4vw, 24px);
  align-items: center;
  min-height: clamp(56px, 4.5vw, 70px);
  padding: 10px 0 10px clamp(14px, 1.6vw, 26px);
  border-bottom: 1px solid rgba(236, 235, 231, 0.34);
  background: var(--bg);
  color: var(--fg);
}
.index-no { font: 400 clamp(15px, 1.5vw, 24px)/1 var(--mono); color: var(--dim); }
/* Each logo on a paper tile of its own, so its colours read on the black
   band and on the inverted row alike. */
.index-logo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 9px;
  background: var(--paper);
  object-fit: contain;
}
.index-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.8em; row-gap: 2px; min-width: 0; }
.index-link { color: inherit; text-decoration: none; }
.index-link::after { content: ""; position: absolute; inset: 0; }
.index-name { font-size: clamp(22px, 2.5vw, 40px); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; }
.index-line { flex: 1 1 22em; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.4; color: var(--dim); }
.index-meta { display: flex; align-items: center; gap: 10px; justify-self: end; font: 400 clamp(12px, 0.85vw, 14px)/1 var(--mono); white-space: nowrap; }
.index-status { color: var(--dim); }
.index-status[data-status="released"] { color: var(--fg); }
.index-demo {
  position: relative;
  z-index: 1;
  padding: 7px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
}
.index-demo:hover { background: var(--fg); color: var(--bg); }
.index-arrow { justify-self: center; font-size: clamp(24px, 2vw, 32px); font-weight: 300; line-height: 1; }

/* Inverted: the first row at rest, or else the row being pointed at or
   focused. */
.index-row:first-child,
.index-row:hover,
.index-row:focus-within { --bg: var(--paper); --fg: #0d0d0d; --dim: #3a3a38; }
.index:is(:hover, :focus-within) .index-row:first-child:not(:hover, :focus-within) { --bg: transparent; --fg: var(--paper); --dim: var(--text-faint); }
.index-link:focus-visible, .index-demo:focus-visible { outline: none; }
.index-row:has(.index-link:focus-visible) { outline: 2px solid var(--paper); outline-offset: 3px; }
.index-demo:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .index-row, .index-no, .index-line, .index-status, .index-demo { transition: background-color 160ms ease, color 160ms ease; }
}

.cta-action { margin-top: clamp(40px, 4vw, 64px); }

/* The phone: number, logo and name on the first line; the line, then the
   status and demo, under the name. */
@media (max-width: 640px) {
  .index-row { grid-template-columns: 2.2em 32px minmax(0, 1fr) 1.6em; column-gap: 10px; row-gap: 8px; padding: 14px 0 14px 10px; align-items: start; }
  .index-no { font-size: 14px; padding-top: 9px; }
  .index-logo { border-radius: 7px; padding: 4px; }
  .index-text { grid-column: 3; }
  .index-name { font-size: 24px; }
  .index-line { flex-basis: 100%; font-size: 14px; }
  .index-meta { grid-column: 3; grid-row: 2; justify-self: start; }
  .index-arrow { grid-column: 4; grid-row: 1; font-size: 22px; padding-top: 4px; }
}
