:root {
  --paper: #f3f0e8;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: #d8d1c4;
  --panel: #fbf9f4;
  --accent: #8d3412;
  --good: #1d5c40;
  --bad: #8a2e2e;
  --warn: #8a5a10;
  --info: #2c4f6e;
  --sans: "Segoe UI", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.45;
}
a { color: var(--accent); }
a:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 3.2rem 1.4rem 4rem; }
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.nowrap { white-space: nowrap; }
h1 { font-size: 2.6rem; line-height: 1.05; font-weight: 500; margin: 0 0 0.4rem; }
.lede { font-size: 1.18rem; margin: 1rem 0 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 0; }
.metrics div { margin: 0; }
.metrics strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.metrics span { display: block; color: var(--muted); font-family: var(--sans); font-size: 0.82rem; margin-top: 0.25rem; }

h2 { font-size: 1.25rem; font-weight: 500; margin: 2rem 0 0.6rem; }
.lanes { margin: 0; padding: 0; }
.lanes div { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.lanes dt { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.lanes dd { margin: 0.2rem 0 0; }

.roles { list-style: none; margin: 0; padding: 0; }
.roles li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.8rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.roles time, .roles .when { color: var(--muted); font-family: var(--sans); font-size: 0.82rem; }

.contact { font-family: var(--sans); font-size: 0.95rem; }
.contact p { margin: 0.2rem 0; }

.app { font-family: var(--sans); }
.app .wrap { max-width: 68rem; padding-top: 1.4rem; }
.top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
  padding-bottom: 0.7rem;
}
.brand { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 1rem; font-size: 0.92rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a.on { color: var(--accent); }

.banner, .error, .notice {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--panel);
  margin: 0 0 1rem;
}
.banner { border-color: #e2c48a; }
.error { border-color: #e2b4b4; color: var(--bad); }
.notice { border-color: #b7d4c4; }

.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-bottom: 1.2rem; }
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
}
.stat b { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.stat span { color: var(--muted); font-size: 0.78rem; }
.bar { height: 4px; background: var(--line); margin-top: 0.45rem; }
.bar i { display: block; height: 100%; background: var(--accent); }

h1.app-title { font-family: var(--serif); font-size: 1.8rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th { text-align: left; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
th, td { padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.scroll { overflow-x: auto; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.05rem 0.35rem;
}
.tag.fit, .tag.submitted { color: var(--good); }
.tag.passed { color: var(--bad); }
.tag.new, .tag.screen { color: var(--info); }
.tag.offer, .tag.won { color: var(--warn); }
.tag.client { color: var(--accent); }

form.stack { display: grid; gap: 0.8rem; max-width: 42rem; }
label { display: grid; gap: 0.25rem; font-size: 0.85rem; color: var(--muted); }
input[type="text"], input[type="url"], input[type="number"], input[type="date"], select, textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  width: 100%;
}
textarea { min-height: 14rem; line-height: 1.4; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
button, .button {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.92rem;
}
button.ghost, a.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin-bottom: 0.8rem; }
.filters label { min-width: 9rem; }
.muted { color: var(--muted); }
.reasons { margin: 0.2rem 0 0; padding-left: 1.1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.brief {
  font-family: var(--serif);
  min-height: 22rem;
  white-space: pre-wrap;
}

@media (max-width: 800px) {
  h1 { font-size: 2.1rem; }
  .metrics, .statrow, .roles li, .row2, .split { grid-template-columns: 1fr; }
  .wrap { padding-top: 2rem; }
}
