/*
  Kilombo.

  Two colours: near-black on paper-white. A third only for the sold state,
  which is a functional state and not decoration.

  One typeface: the system monospace stack. Nothing is downloaded. The
  typewriter feel comes from a monospace face used plainly - never from a
  distressed or handwriting font. Real handwriting only ever appears here as a
  scan of actual writing.

  No framework. No animation, no transitions, no hover effects. Left aligned.
*/

:root {
  --ink: #141414;
  --paper: #faf9f6;
  --sold: #8a1b1b;
  --quiet: #7a7a7a;
  --rule: #d8d6d0;
}

html {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 2rem 1.5rem 6rem;
  max-width: 46rem;
}

/* --- navigation: one line of plain links, no hamburger, not sticky ------- */

nav ul,
footer ul {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

footer ul {
  margin: 5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
}

/* --- type ---------------------------------------------------------------- */

h1 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 2.5rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  max-width: 34rem;
}

a {
  color: inherit;
  text-decoration: underline;
}

.ref,
.extent,
.specific {
  color: var(--quiet);
  font-weight: 400;
}

.specific {
  font-size: 0.8rem;
}

.extent {
  margin-bottom: 2rem;
}

/* Placeholder copy. Visible on purpose so an unwritten entry is never mistaken
   for a finished one. */
.todo {
  color: var(--quiet);
  border-left: 2px solid var(--rule);
  padding-left: 0.75rem;
}

/* --- the ledger table ---------------------------------------------------- */

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.35rem 1rem 0.35rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-weight: 700;
  white-space: nowrap;
}

/* --- status -------------------------------------------------------------- */

.status-sold {
  color: var(--sold);
}

.status-reserved,
.status-in-progress {
  color: var(--quiet);
}

/* --- lists --------------------------------------------------------------- */

ul.runs,
ul.pieces,
ul.concordance {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
}

ul.runs li,
ul.pieces li,
ul.concordance li {
  padding: 0.2rem 0;
}

/* --- definition lists ---------------------------------------------------- */

dl {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.2rem 1rem;
}

dt {
  color: var(--quiet);
}

dd {
  margin: 0;
}

/* --- artifact images ----------------------------------------------------- */

/* The scans are the content. The whole performance budget lives here. */
.plates {
  margin: 1.5rem 0 2rem;
}

.plates img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

/* --- forms --------------------------------------------------------------- */

label {
  display: block;
  font-size: 0.9rem;
  color: var(--quiet);
}

input[type="text"] {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0.3rem 0;
  width: 14rem;
  margin: 0 1rem 1rem 0;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.3rem 1rem;
  cursor: pointer;
}

@media (max-width: 34rem) {
  dl {
    grid-template-columns: 1fr;
    gap: 0 0;
  }
  dt {
    margin-top: 0.6rem;
  }
}
