/* The live page (site/live/): an AI's month on the clock, in public.
   Shared styles: site.css. The price tags and the form: home.css.
   Paper and ink like the home page; signal red marks only the money in and the calendar (variant B
   won the 2026-10-20 five-second test; the red poster look is the share image, img/og-live.jpg).
   One motion moment: the calendar crosses off the days gone, then circles today and beats twice. */

.now .wrap {
  padding-top: 28px;
  padding-bottom: 8px;
}
.now h1 {
  max-width: 13ch;
  margin: 0 0 12px;
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
}

.job {
  max-width: 30em;
  margin: 0 0 32px;
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* The money in: the one huge thing. --n is its length in characters, so "$1,299" still fits a phone. */
.earned {
  margin: 0;
}
.earned b {
  display: block;
  color: var(--red);
  font-size: min(15rem, 42vw, calc(150vw / var(--n, 2)));
  font-weight: 900;
  line-height: 0.82;
  font-variant-numeric: tabular-nums;
}
.earned span {
  display: block;
  margin-top: 14px;
  font-size: 1.25rem;
  font-weight: 700;
}

.tally {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--ink);
}
.tally li {
  padding: 10px 10px 0 0;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}
.tally li + li {
  padding-left: 14px;
  border-left: 3px solid var(--ink);
}
.tally b {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.today {
  max-width: 34em;
  margin: 24px 0 0;
  font-size: 1.1875rem;
}

/* The calendar: one cell per day, weeks from Sunday */
.cal {
  max-width: 24rem;
  margin-top: 28px;
}
.cal ol {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cal li {
  position: relative;
  display: grid;
  place-content: center;
  aspect-ratio: 1;
  border: 2px solid #8c8c8c;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cal small {
  display: block;
  margin-bottom: 2px;
  font-size: 0.6875rem;
  font-weight: 700;
}
.cal .pad {
  border: 0;
}
.cal .gone::before,
.cal .gone::after {
  --a: 45deg;
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: var(--red);
  transform: rotate(var(--a));
}
.cal .gone::after {
  --a: -45deg;
}
.cal .gone {
  border-color: var(--red);
}
.cal .now {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
/* A hand-drawn ring around today */
.cal .now::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 3px solid var(--red);
  border-radius: 52% 46% 55% 48%;
  transform: rotate(-8deg);
}
.cal .end {
  border: 3px solid var(--ink);
}
.cal .mark::after {
  content: "";
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--red);
}
.cal p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.go {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
.go .btn {
  width: 100%;
  font-family: inherit;
  cursor: pointer;
}
.go .btn[hidden] {
  display: none;
}

/* Reach: one square per business emailed */
.reach h2 {
  max-width: 18ch;
}
.units {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15px, 1fr));
  gap: 5px;
  max-width: 50rem;
  margin: 28px 0 32px;
}
.units i {
  aspect-ratio: 1;
  border: 2px solid #8c8c8c;
}
.units .p {
  border-color: var(--red);
  background: var(--red);
}
.score {
  max-width: 50rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 6px solid var(--ink);
}
.score li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 3px solid var(--ink);
  font-weight: 700;
  line-height: 1.3;
}
.score b {
  flex: none;
  min-width: 2ch;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.score .lit::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-left: auto;
  background: var(--red);
}

/* The log */
.entries {
  max-width: 46rem;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.entries li {
  padding: 18px 0 22px;
  border-top: 3px solid var(--ink);
}
.entries li:last-child {
  border-bottom: 3px solid var(--ink);
}
.entries time {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-weight: 800;
  font-size: 1rem;
}
.entries h3 {
  margin: 0 0 6px;
  font-size: 1.375rem;
}
.entries p {
  margin: 0;
}

/* The ask */
.ask-sec .redesign {
  max-width: 40rem;
  margin: 0;
  padding-top: 24px;
}
.ask-sec .redesign h2 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.ask-sec .lede {
  font-size: 1.1875rem;
}
.ask-sec .tags {
  margin-top: 32px;
}
.ask-sec .tags-note {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.live .tag {
  animation: none;
}

.live .contact {
  padding-top: 8px;
}
.live .foot {
  margin-top: 0;
  border-top: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .cal .gone::before,
  .cal .gone::after {
    animation: cross 0.22s ease-out both;
    animation-delay: calc(var(--i) * 110ms + 250ms);
  }
  .cal .gone::after {
    animation-delay: calc(var(--i) * 110ms + 340ms);
  }
  .cal .now::after {
    animation:
      ring 0.45s ease-out both,
      beat 2s ease-in-out 2;
    animation-delay:
      calc(var(--i) * 110ms + 350ms), calc(var(--i) * 110ms + 900ms);
  }
}
@keyframes cross {
  from {
    transform: rotate(var(--a)) scaleX(0);
  }
}
@keyframes ring {
  from {
    opacity: 0;
    transform: rotate(-40deg) scale(1.6);
  }
}
@keyframes beat {
  50% {
    transform: rotate(-8deg) scale(1.14);
  }
}

@media (min-width: 720px) {
  .go {
    grid-template-columns: auto auto;
    justify-content: start;
  }
  .go .btn {
    width: auto;
  }
  .entries li {
    display: grid;
    grid-template-columns: 5rem 1fr;
    column-gap: 24px;
  }
  .entries time {
    grid-row: span 2;
    padding-top: 4px;
  }
}
@media (min-width: 960px) {
  .now .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-auto-flow: row dense;
    column-gap: 72px;
    padding-top: 48px;
    padding-bottom: 24px;
  }
  .job {
    font-size: 1.1875rem;
  }
  .now .wrap > * {
    grid-column: 1;
  }
  .now .cal {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: center;
    width: 100%;
    max-width: 34rem;
    margin: 0;
    justify-self: end;
  }
  .cal li {
    font-size: 1.375rem;
  }
  .tally b {
    font-size: 3rem;
  }
  .cal small {
    font-size: 0.8125rem;
  }
}
