:root {
  --canvas: #f6f7f9;
  --paper: #fff;
  --ink: #202936;
  --muted: #606c7a;
  --line: #dce1e7;
  --blue: #214cc0;
  --blue-light: #edf2ff;
  --radius: 8px;
  --panel: 16px;
  --space: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--blue);
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: #173c9f;
}
.secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: var(--canvas);
  border-color: #aab4c1;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #4275e0;
  outline-offset: 4px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font:
    400 clamp(2rem, 4vw, 3rem) / 1.15 Georgia,
    serif;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.125rem;
  font-weight: 600;
}
p {
  margin-bottom: 12px;
}
small {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}
strong,
b {
  font-weight: 600;
}
.shell {
  max-width: 1120px;
  margin: auto;
  padding: 0 40px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font:
    400 28px Georgia,
    serif;
}
.site-header nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.site-header nav a {
  color: var(--muted);
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 8px;
}
.site-header nav a[aria-current] {
  color: var(--ink);
  background: #e9edf2;
}
.count {
  background: var(--blue);
  color: white;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.875rem;
}
main {
  padding: 48px 0;
  min-height: 75vh;
}
footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.heading-count {
  font:
    400 1.125rem -apple-system,
    sans-serif;
  letter-spacing: 0;
  vertical-align: middle;
  background: #e8ecf1;
  border-radius: 20px;
  min-width: 36px;
  display: inline-block;
  text-align: center;
  padding: 4px 10px;
  margin-left: 8px;
  color: var(--muted);
}
.search-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--panel);
  padding: 20px;
  margin-bottom: 32px;
}
.search-row {
  display: flex;
  gap: 12px;
}
.search-row input {
  flex: 1;
  min-width: 0;
}
.filters {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-top: 16px;
}
.filters > div {
  flex: 1;
}
.filters label {
  font-size: 0.875rem;
  color: var(--muted);
}
.filters select {
  font-size: 0.875rem;
  min-height: 42px;
}
.clear {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  white-space: nowrap;
}
label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}
input,
textarea,
select {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #bfc8d3;
  border-radius: var(--radius);
  padding: 11px 12px;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: #728092;
}
input[type="radio"] {
  width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.field {
  margin: 24px 0;
}
.field:first-child {
  margin-top: 0;
}
.help {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
  margin: 8px 0 0;
}
.muted {
  color: var(--muted);
}
.list-heading {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  padding: 0 20px 12px 72px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.people-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.person-row {
  display: grid;
  grid-template-columns: 44px 1fr 200px 20px;
  gap: 16px;
  align-items: center;
  padding: 24px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.person-row:hover {
  background: var(--paper);
}
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #cdd5e3;
  border-radius: 50%;
  background: #edf1f8;
  color: #435779;
  font:
    400 24px Georgia,
    serif;
}
.person-copy h2 {
  margin-bottom: 4px;
}
.person-copy p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--blue-light);
  color: #36528e;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}
.row-arrow {
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 64px 16px;
}
.empty h2 {
  font:
    400 1.75rem Georgia,
    serif;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.empty p {
  color: var(--muted);
  margin-bottom: 24px;
}
.empty-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  margin: 0 auto 24px;
  font-size: 28px;
  color: var(--muted);
}
.narrow {
  max-width: 640px;
  margin: auto;
}
.narrow h1 {
  margin-bottom: 24px;
}
.back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
}
.contact-heading .tags {
  margin-top: 16px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
}
.details-panel {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--panel);
}
.details-panel h2 {
  font-size: 0.875rem;
  margin-bottom: 12px;
}
.contact-link {
  display: block;
  overflow-wrap: anywhere;
  margin: 12px 0;
  font-size: 0.9375rem;
}
.section-label {
  margin-top: 32px;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.section-heading > span {
  font-size: 0.875rem;
}
.note-compose {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--panel);
  padding: 16px;
}
.note-compose textarea {
  border: 0;
  padding: 0;
  min-height: 100px;
}
.compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.compose-actions .help {
  margin: 0;
}
.compose-actions button {
  font-size: 0.875rem;
}
.timeline {
  margin-top: 32px;
}
.note {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.note-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.note-heading a {
  color: var(--muted);
  padding: 0 0 12px;
}
.notes-empty {
  text-align: center;
  padding: 24px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.auth {
  max-width: 380px;
  margin: 24px auto 80px;
}
.auth h1 {
  margin-bottom: 16px;
}
.auth form {
  margin-top: 32px;
}
.auth button {
  width: 100%;
  justify-content: space-between;
}
.notice {
  border: 1px solid #b9cbea;
  background: var(--blue-light);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.notice.error,
.errorlist {
  color: #992d2d;
}
.errorlist {
  padding-left: 20px;
}
.review-card {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--panel);
  margin-bottom: 24px;
}
.review-card h2 {
  margin-bottom: 16px;
}
.radio {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  font-weight: 400;
}
.radio small {
  margin-top: 4px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 16px 0;
}
details {
  margin-top: 12px;
  font-size: 0.875rem;
}
summary {
  cursor: pointer;
  color: var(--muted);
  padding: 8px 0;
}
blockquote {
  border-left: 2px solid var(--line);
  padding-left: 12px;
  margin: 8px 0 16px;
  color: var(--muted);
}
.settings-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.settings-section h2 {
  margin-bottom: 12px;
}
.token-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 8px;
}
@media (max-width: 760px) {
  .shell {
    padding: 0 20px;
  }
  .site-header {
    padding: 16px 0;
    gap: 12px;
  }
  .site-header nav {
    gap: 0;
  }
  .site-header nav a {
    font-size: 0.875rem;
    padding: 10px 8px;
  }
  .brand {
    gap: 8px;
  }
  main {
    padding: 32px 0;
  }
  .page-heading {
    gap: 16px;
  }
  .page-heading > .button {
    font-size: 0.875rem;
    padding: 10px 12px;
    flex-shrink: 0;
  }
  .search-panel {
    padding: 16px;
  }
  .filters {
    gap: 8px;
    flex-wrap: wrap;
  }
  .filters > div {
    min-width: 100px;
  }
  .filters label {
    font-size: 0.8125rem;
  }
  .filters select {
    padding: 10px 8px;
  }
  .list-heading {
    display: none;
  }
  .person-row {
    grid-template-columns: 40px 1fr 16px;
    padding: 20px 0;
    gap: 12px;
  }
  .person-row .tags {
    grid-column: 2;
    grid-row: 2;
  }
  .person-copy {
    min-width: 0;
  }
  .person-copy h2 {
    overflow-wrap: anywhere;
  }
  .person-row .row-arrow {
    grid-column: 3;
    grid-row: 1;
  }
  .avatar {
    width: 40px;
    height: 40px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-heading {
    align-items: start;
  }
  .contact-heading h1 {
    overflow-wrap: anywhere;
  }
  .details-panel {
    padding: 20px;
  }
  .empty {
    padding: 40px 8px;
  }
  .note-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .review-card {
    padding: 20px;
  }
  .auth {
    margin: 16px auto 40px;
  }
  .search-row {
    gap: 8px;
  }
  .search-row button {
    padding: 10px 12px;
  }
  .compose-actions .help {
    max-width: 140px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .button,
  a {
    transition: background-color 0.12s ease;
  }
}
