/* =========================================================
   MANIFESTO — 01, deep time
   ========================================================= */

.mf {
  position: relative;
  background: var(--ink-100);
  overflow: hidden;
}

/* Depth ticks: a survey scale running down the right margin, drifting at
   its own rate so the section has a floor behind the type. */
.mf__ticks {
  position: absolute;
  top: -14%;
  right: 0;
  height: 128%;
  width: clamp(2.5rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: var(--gutter);
  pointer-events: none;
}

.mf__ticks span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--bone-200);
}

.mf__ticks span:nth-child(5n + 1) {
  width: 180%;
  background: var(--gold-300);
}

@media (max-width: 900px) {
  .mf__ticks {
    display: none;
  }
}

/* ---------------- head ---------------- */

.mf__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: clamp(1.86rem, 4.2vw, 3.48rem);
  border-bottom: 1px solid var(--rule);
}

.mf__coords {
  color: var(--bone-500);
}

/* ---------------- statement ---------------- */

.mf__statement {
  /* Deliberately below --step-4. At display scale the diagonal reveal
     spans so many lines that the sweep stops reading as one gesture. */
  font-size: clamp(1.75rem, 1rem + 3.1vw, 3.55rem);
  line-height: 1.14;
  max-width: 26ch;
  margin-block: clamp(2.17rem, 4.8vw, 4.06rem);
  color: var(--bone-100);
  /* Words are ranked and lit along a diagonal; keeping the measure narrow
     means that diagonal actually reads as one. */
  text-wrap: pretty;
}

.mf__statement em {
  font-style: italic;
  color: var(--gold-200);
}

@media (max-width: 900px) {
  .mf__statement {
    max-width: none;
  }
}

/* ---------------- the figure ---------------- */

.mf__figure {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.48rem, 5.4vw, 4.64rem);
}

.mf__figure > .mono {
  grid-column: 1;
  color: var(--bone-500);
  align-self: start;
}

.mf__count {
  grid-column: 1;
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone-100);
  font-variant-numeric: tabular-nums;
  margin-top: 0.55rem;
}

.mf__count em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.3em;
  letter-spacing: 0.02em;
  color: var(--gold-300);
}

.mf__figure-note {
  grid-column: 2;
  font-size: var(--step--1);
  max-width: 40ch;
}

@media (max-width: 900px) {
  .mf__figure {
    grid-template-columns: 1fr;
  }
  .mf__figure > .mono,
  .mf__count,
  .mf__figure-note {
    grid-column: 1;
  }
}

/* ---------------- core log ---------------- */

.mf__log {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 2.25rem);
}

@media (max-width: 1100px) {
  .mf__log {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 3rem);
  }
}

@media (max-width: 560px) {
  .mf__log {
    grid-template-columns: 1fr;
  }
}

.mf__entry {
  position: relative;
  padding-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mf__entry-rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule-strong);
  transform-origin: left center;
}

/* The first tick of each entry is gold — the log reads as instrumented */
.mf__entry-rule::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.75rem;
  height: 1px;
  background: var(--gold-300);
}

.mf__entry-index {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--bone-500);
}

.mf__entry-age {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--gold-200);
  font-variant-numeric: tabular-nums;
}

.mf__entry-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.1;
  color: var(--bone-100);
  margin-top: 0.15rem;
}

.mf__entry-body {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--bone-400);
  text-wrap: pretty;
}
