/* Home page: projects as records in a log. */

.intro { padding-block: 4.5rem 4rem; }
.intro .display { font-size: clamp(2.75rem, 7.5vw, 5.75rem); max-width: 11ch; }
.intro .lede { margin-top: 1.5rem; }

.log-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 3rem; margin-bottom: 1rem; }
.log-head p { color: var(--muted); }
@media (min-width: 52rem) { .log-head { grid-template-columns: 12rem minmax(0, 1fr); } }

.log { list-style: none; margin: 0; padding: 0; }
.record {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 52rem) { .record { grid-template-columns: 12rem minmax(0, 1fr); gap: 0 3rem; } }

/* The offset: the record's position in the log, set tall and narrow in amber. */
.offset {
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(5rem, 13vw, 10rem);
  line-height: 0.78;
  letter-spacing: -0.02em;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

.record-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3rem; }
@media (min-width: 72rem) { .record-body { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }

.record h3 { font-size: 2.25rem; font-weight: 800; font-stretch: 125%; letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.75rem; }
.record h3 a { color: inherit; text-decoration: none; }
.record h3 a:hover { text-decoration: underline; text-decoration-color: var(--harbor); }

/* Record fields, like a message's key and headers. */
.fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.3rem 1.25rem; margin: 0 0 1.5rem; font-size: 0.9375rem; }
.fields dt { color: var(--muted); }
.fields dd { margin: 0; }
.fields strong { font-weight: 600; }
.fields strong::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--signal);
  vertical-align: 0.1em;
}
.when-loaded { display: none; }
[data-loaded="true"] .when-loaded { display: block; }

/* A cropped live tail from the real UI, fading out at the bottom. */
.preview {
  position: relative;
  display: block;
  align-self: start;
  max-height: 22rem;
  overflow: hidden;
  border-radius: 8px;
  background: var(--t-bg);
  border: 1px solid #1f3140;
  text-decoration: none;
}
.preview-shot img { display: block; width: 100%; height: auto; }
.preview pre.tui { font-size: clamp(7px, 0.62vw, 9.5px); padding: 0.9rem; pointer-events: none; }
.preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 7rem;
  background: linear-gradient(transparent, var(--t-bg) 80%);
}
.preview-link {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 1;
  color: var(--t-cyan);
  font-weight: 600;
  font-size: 0.9375rem;
}
.preview:hover .preview-link { text-decoration: underline; }
