/* Top of the page: the sheet of graph paper, the headline, the moving grid
   (assets/js/hero.js), its controls, and the strip of plain facts. */

.sheet {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
  background-position: -1px -1px;
}

.hero { padding-bottom: 0; }
.hero-copy { padding-top: clamp(1.5rem, 4vw, 3.25rem); }
.hero h1 {
  font-stretch: 125%; font-weight: 800;
  font-size: clamp(2.125rem, 5.4vw, 4.5rem);
  line-height: 1.04; letter-spacing: -.015em;
  max-width: 17em;
}
.hero h1 .line { display: block; padding-left: .7em; text-indent: -.7em; }
.hero h1 .line + .line { margin-top: .08em; }

/* the chart's own symbols: filled dot = bought, ring = sold */
.key {
  display: inline-block; width: .44em; height: .44em; margin-right: .26em;
  border-radius: 50%; vertical-align: .1em; text-indent: 0;
}
.key-buy { background: var(--cobalt); }
.key-sell { box-shadow: inset 0 0 0 .1em var(--amber); background: var(--paper); }
.key-wait { box-shadow: inset 0 0 0 .1em var(--cobalt); background: var(--paper); }
.key-skip { box-shadow: inset 0 0 0 .08em var(--muted); }

.lede { max-width: 38rem; margin-top: 1.5rem; font-size: 1.3125rem; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.75rem; }
.status { margin-top: 1rem; color: var(--graphite); font-size: 1rem; }
@media (min-width: 1040px) {
  .hero-row {
    display: grid; grid-template-columns: minmax(0, 38rem) auto;
    justify-content: space-between; align-items: end; column-gap: 3rem;
  }
  .hero-cta .actions { margin-top: 0; }
}

/* the moving grid runs edge to edge, like footage under the headline */
.stage-fig { margin-top: clamp(1.5rem, 3.5vw, 2.5rem); }
.stage { position: relative; height: clamp(290px, 31vw, 420px); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.controls {
  display: grid; gap: 1.25rem 2rem; padding-block: 1.25rem 1.5rem;
  border-top: 2px solid var(--ink);
  background: var(--paper);
}
.readouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; }
.readouts dt { font-size: .875rem; color: var(--graphite); }
.readouts dd { font-weight: 700; font-size: 1.3125rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.controls .button { justify-self: start; padding: .55rem 1rem; font-size: .9375rem; }
@media (min-width: 900px) {
  .controls { grid-template-columns: minmax(12rem, 16rem) minmax(12rem, 16rem) 1fr auto; align-items: center; }
  .readouts { grid-template-columns: repeat(4, auto); justify-content: start; }
}

.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .9375rem; }
.legend .key { font-size: 1.4rem; margin-right: .35rem; vertical-align: -.05em; }
.stage-note { padding-bottom: clamp(2.5rem, 6vw, 4rem); background: var(--paper); }
.stage-note p { max-width: 46rem; margin-top: .6rem; color: var(--graphite); font-size: .9375rem; }

/* plain facts, no promises: each one stands on a rung */
.facts-strip {
  display: grid; gap: 1.75rem 2rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.facts-strip li { border-top: 4px solid var(--ink); padding-top: .9rem; }
.facts-strip strong {
  display: block; font-stretch: 125%; font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.05; letter-spacing: -.01em;
}
.facts-strip span { display: block; margin-top: .45rem; color: var(--graphite); font-size: 1rem; }
@media (min-width: 640px) { .facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .facts-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
