/* PRD-009 and PRD-010: homepage. Every colour from tokens.css. */

/* --- Section 1. Hero -----------------------------------------------------
   Ink in BOTH colour modes, so it uses the Fixed Ink family from SPEC.md 3.1.
   Using --ink and --paper here inverts the whole hero in Ink mode. */
.stage {
  position: relative;
  background: var(--ink-fixed);
  color: var(--paper-fixed);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 620px;
}
.stage__bed {
  position: absolute;
  inset: 0;
  background-color: var(--ink-fixed);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Height is set by content, never 100vh. SPEC.md 5.3. */
/* padding-block, not the shorthand: .w supplies padding-inline and the
   shorthand's 0 would silently wipe the side gutter, putting the hero text
   flush to the screen edge on a phone. */
.stage__hero { position: relative; z-index: 2; padding-block: 160px var(--s8); }
.stage__hero .lbl { color: var(--slate-fixed); }
.stage__hero h1 { color: var(--paper-fixed); }
.stage__hero .dek { color: var(--slate-fixed); max-width: 56ch; }

.acts { display: flex; gap: var(--s3); flex-wrap: wrap; margin: var(--s6) 0 0; }
.stage .btn { color: var(--paper-fixed); border-color: var(--paper-fixed); }
.stage .btn--acc { background: var(--signal-text); border-color: var(--signal-text); color: var(--surface); }

@media (max-width: 760px) { .stage { min-height: 520px; } .stage__hero { padding-top: 120px; } }

/* --- Section 2. Proof numbers. Ink, never red. --------------------------- */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.proof > div { padding: var(--s6) var(--s5); border-right: 1px solid var(--line); }
.proof > div:first-child { padding-left: 0; }
.proof > div:last-child { border-right: 0; }
.proof__n {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
}
.proof__label { font-size: 16px; margin: var(--s3) 0 var(--s1); }
.proof__note { font-size: 14px; color: var(--slate); margin: 0; }
@media (max-width: 960px) {
  .proof { grid-template-columns: 1fr; }
  .proof > div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
}

/* --- Section 4. Weekly Signal ------------------------------------------- */
.weekly { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; }
@media (max-width: 960px) { .weekly { grid-template-columns: 1fr; gap: var(--s6); } }
.weekly__pitch { margin-top: var(--s3); }

.issue {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: var(--s6);
  border-radius: var(--radius-panel);
}
.issue__headline { font-weight: 600; margin: var(--s3) 0 var(--s4); }
.issue__headline a { color: var(--ink); }
.weekly__row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  font-size: 15px;
}
.weekly__row b { font-weight: 600; }

/* The week label on the issue card. Signal Red for the label, never --signal. */
.lbl--signal { color: var(--signal-text); }
.issue__week { margin-bottom: var(--s2); }

/* --- PRD-011: sections 3, 5 and 6. No approved visual; derived from the
   brand kit and the PRD-006 components. ---------------------------------- */
.sec__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s4); margin: 0 0 var(--s5);
}

/* Ink in both modes, so the Fixed Ink family. */
.ink-panel { background: var(--ink-fixed); color: var(--paper-fixed); padding: var(--s7) 0; }
.ink-panel .lbl { color: var(--slate-fixed); }

.home__tools { margin-top: var(--s5); }
.tool {
  display: block; text-decoration: none;
  border: 1px solid var(--ink-line-fixed); background: var(--ink-surface-fixed);
  padding: var(--s5); color: var(--paper-fixed);
}
.tool:hover { text-decoration: none; border-color: var(--slate-fixed); }
.tool__title { margin: var(--s3) 0 var(--s2); color: var(--paper-fixed); }
.tool__note { font-size: 14px; color: var(--slate-fixed); margin: 0; }

.home__shelf { margin-top: var(--s5); }
