/* The Index / record.css — the indexed list used on the inner pages. */

.back { color: inherit; text-decoration: none; }
.back:not(.btn-back):hover { color: var(--ink); text-decoration: underline; text-underline-offset: .22em; }

.record { list-style: none; margin: 0; padding: 0; }

.record__row {
  display: grid;
  grid-template-columns: 42px 76px minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.record__row:first-child { border-top: 1px solid var(--line); }

.record__no {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 18px;
  color: var(--marker-text);
  letter-spacing: .04em;
}

.record__media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: var(--ground);
  aspect-ratio: 1 / 1;
}
.record__media video { width: 100%; height: 100%; object-fit: cover; display: block; }

.record__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.record__title { font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: -.01em; }
.record__gloss { font-size: 13px; line-height: 19px; color: var(--ink-muted); }

/* Reach is stated, never summed. */
.record__reach {
  text-align: right;
  letter-spacing: .04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---- Interactions as big squares, three across ---------------------------- */
.record--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  width: min(1040px, calc(100vw - 48px));
  margin-inline: calc(50% - min(520px, 50vw - 24px));
}
.record--grid .record__row {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "media media" "body body";
  align-content: start;
  gap: 14px 8px;
  padding: 0 0 20px;
  row-gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--ink) 2.5%, var(--ground));
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .3s ease;
}
.record--grid .record__row:first-child { border-top: 1px solid var(--line); }
.record--grid .record__row:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--ink) 20%, transparent); }
.record--grid .record__media { grid-area: media; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.record--grid .record__no { grid-area: no; padding-left: 18px; }
.record--grid .record__reach { grid-area: reach; padding-right: 18px; }
.record--grid .record__body { grid-area: body; padding: 0 18px; gap: 6px; }
.record--grid .record__title { font-size: 17px; line-height: 22px; }
.record--grid .record__row { position: relative; }
.record__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.record__link:focus-visible { outline: 2px solid var(--marker); outline-offset: 2px; }
.record__live { margin-top: 6px; font: 500 10px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--marker); }
.record--grid .record__row:hover .record__live { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 900px) { .record--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .record--grid { grid-template-columns: minmax(0, 1fr); }
  .record--grid .record__row { grid-template-columns: minmax(0, 1fr) auto; }
  .record--grid .record__reach { grid-column: auto; text-align: right; }
}
@media (prefers-reduced-motion: reduce) { .record--grid .record__row { transition: none; } }

.pending { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.pending li {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, auto) auto;
  align-items: baseline;
  gap: var(--s-3);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 19px;
}
.pending li > span:first-child { min-width: 0; }
.pending li > span:nth-child(2) { min-width: 0; text-align: right; }
.pending code { font-family: var(--font-mono); font-size: 11px; }

.footnote {
  margin: var(--s-5) 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}

@media (max-width: 620px) {
  .record__row { grid-template-columns: 34px 60px minmax(0, 1fr); }
  .record__reach { grid-column: 2 / -1; text-align: left; }
  .pending li { grid-template-columns: minmax(0, 1fr) auto; }
  .pending li > span:nth-child(2) { grid-column: 1 / -1; }
}

/* ---- Work with me ---------------------------------------------------------
 * Taken from the reference's services section: a label, a number, a title, a
 * dotted rule, a promise, then the points beside it and two facts at the foot.
 */
.offer-list { list-style: none; margin: 0; padding: 0; }

.offer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-5) var(--s-6);
  margin-bottom: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

.offer-no {
  position: absolute;
  top: var(--s-5); right: var(--s-5);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .08em;
  color: var(--marker-text);
}

.offer-main { min-width: 0; }
.offer-for { margin: 0; text-transform: none; letter-spacing: .04em; }

.offer-title {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.offer-rule {
  display: block;
  height: 1px;
  margin: var(--s-3) 0;
  background: repeating-linear-gradient(90deg, var(--line) 0 3px, transparent 3px 9px);
}
.offer-promise {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}
.offer-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}

/* The points start below the record number, so the two never collide at the
   top right of the card. */
.offer-points { list-style: none; margin: 0; padding: 22px 0 0; min-width: 0; }
.offer-points li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: var(--s-2);
  padding: 7px 0;
  font-size: 13px;
  line-height: 20px;
}
/* The dash is the marker, and it is the only colour in the card. */
.offer-points li::before {
  content: "";
  margin-top: 9px;
  height: 1px;
  background: var(--marker-text);
}

.offer-feet {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-3) var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.offer-feet p { margin: 0; font-size: 13px; line-height: 19px; }
.offer-feet .meta { display: block; margin-bottom: 3px; }

.status { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.status li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: var(--s-3);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 21px;
}
.status li:first-child { border-top: 1px solid var(--line); }
.status em { color: var(--ink-muted); font-style: normal; }
.status a { color: var(--ink); }

@media (max-width: 620px) {
  .offer { grid-template-columns: minmax(0, 1fr); }
  .offer-points { padding-top: 0; }
  .offer-feet { grid-template-columns: minmax(0, 1fr); }
  .status li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---- Experience, from the resume ------------------------------------------ */
.dl-row { margin: var(--s-4) 0 0; }
.btn-dl { background: var(--ink); color: var(--ground); }
.btn-dl:hover { background: color-mix(in srgb, var(--ink) 86%, var(--ground)); color: var(--ground); }
.btn-dl:hover svg { transform: translateY(2px); }
.cv { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.cv > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cv > li:first-child { border-top: 1px solid var(--line); }
.cv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-size: 15px; line-height: 21px; }
.cv-head b { font-weight: 600; letter-spacing: -.01em; }
.cv-role { margin: 2px 0 8px; font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.cv ul { margin: 0; padding-left: 18px; }
.cv ul li { margin: 0 0 6px; font-size: 14px; line-height: 21px; color: var(--body); }
