/* Katen. Warm paper, dark ink, one oxblood accent. Newsreader for display, IBM Plex Sans for text. */
:root {
  --paper: #f6f3ec;
  --ink: #17191c;
  --soft: #5b5f66;
  --rule: #d9d3c6;
  --accent: #7a2e22;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --text: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141517;
    --ink: #ece8df;
    --soft: #a3a39b;
    --rule: #2e3033;
    --accent: #e09a88;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.top, main, .foot {
  max-width: 46rem;
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.top-link { font-size: 0.9375rem; color: var(--soft); text-decoration: none; }
.top-link:hover { color: var(--accent); }
main { display: flex; flex-direction: column; gap: 3.5rem; padding-top: 3rem; padding-bottom: 5rem; }
a { color: var(--accent); text-underline-offset: 0.18em; }
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.lead { font-size: 1.3125rem; line-height: 1.5; margin: 0; max-width: 36rem; }
.label, .role h2 {
  font-family: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 1rem;
}
.note { margin: 0 0 1.5rem; max-width: 36rem; }
p { margin: 0 0 1rem; }
section > p:last-child { margin-bottom: 0; }

/* The list of open searches */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}
.row-title { font-family: var(--display); font-weight: 500; font-size: 1.625rem; line-height: 1.2; }
.row-meta { font-size: 0.9375rem; color: var(--soft); }
.row:hover .row-title { color: var(--accent); }

/* A role page */
.back { margin: 0; font-size: 0.9375rem; }
.back a::before { content: "\2190\00a0"; }
.role { margin-top: -1.5rem; }
.role h1 { font-size: clamp(2.125rem, 6vw, 3.25rem); }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 0 0 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.facts dd { margin: 0.125rem 0 0; }
.role h2 { margin-top: 2.5rem; }
.role ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.role li { margin-bottom: 0.5rem; }
.role li::marker { color: var(--accent); }

.foot-in {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--soft);
}
.foot p { margin: 0; }
.foot a { color: var(--soft); }
