@import url("fonts.css");
@import url("theme.css");
@import url("base.css");

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.index {
  display: block;
  width: 100%;
}

.index thead,
.index tbody {
  display: block;
}

.index tr {
  display: grid;
  grid-template-columns: 0 1fr auto 6.5rem;
  column-gap: var(--gutter);
  margin-inline-start: calc(-1 * var(--gutter));
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.index th,
.index td {
  padding: 0;
  text-align: start;
}

.index th,
.index .entry,
.index .date,
.index .tags,
.index .draft {
  font-family: var(--font-ui);
  font-size: 0.75em;
  font-variant-numeric: tabular-nums;
}

.index th {
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.index thead tr {
  border-bottom-color: var(--ink);
}

.index .entry {
  justify-self: end;
  margin-inline-end: 0.9rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.index .date {
  color: var(--ink-muted);
  text-align: end;
}

.index .tags {
  color: var(--ink-muted);
  text-align: end;
  max-inline-size: 15rem;
}

:where(.index .title) a {
  text-decoration: none;
}

.index .draft {
  margin-inline-start: 0.5em;
  padding: 0 0.35em;
  border: 1px solid var(--signal);
  color: var(--signal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (width <= 60rem) {
  .index tr {
    grid-template-columns: 2.5rem 1fr auto;
    column-gap: 0.75rem;
    margin-inline-start: 0;
  }

  .index .entry {
    justify-self: start;
    margin-inline-end: 0;
  }

  .index .tags {
    display: none;
  }
}

main + .colophon {
  margin-top: 0;
  border-top: 0;
}
