:root {
  color-scheme: light;
  --canvas: #f8f6f1;
  --surface: #ffffff;
  --sage-700: #355e4c;
  --sage-600: #466452;
  --sage-100: #edf3eb;
  --sage-200: #c9d8cc;
  --ink: #20342b;
  --muted: #60706a;
  --border: #e5e2d9;
  --danger: #a6473f;
  --radius: 1.25rem;
  font-family: Inter, Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }

.site-shell { width: min(100% - 2rem, 72rem); margin: 0 auto; padding: 2.75rem 0 4rem; }
.page-header { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.wordmark { color: var(--sage-700); font-family: Quicksand, Arial, sans-serif; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
h1, h2, h3 { font-family: Quicksand, Arial, sans-serif; }
h1 { margin: .75rem 0; font-size: clamp(2.3rem, 6vw, 4.35rem); line-height: 1.05; letter-spacing: -.05em; }
.page-header p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.search-label { display: block; margin-bottom: .65rem; font-family: Quicksand, Arial, sans-serif; font-size: 1.2rem; font-weight: 700; }
.search-wrap { position: relative; }
.search-wrap::before { content: ''; position: absolute; top: 50%; left: 1.15rem; width: .8rem; height: .8rem; border: 2px solid var(--sage-700); border-radius: 50%; transform: translateY(-60%); pointer-events: none; }
.search-wrap::after { content: ''; position: absolute; left: 1.92rem; top: calc(50% + .3rem); width: .5rem; height: 2px; background: var(--sage-700); transform: rotate(45deg); pointer-events: none; }
#staff-search { width: 100%; min-height: 4.6rem; padding: 1rem 1.2rem 1rem 3.5rem; border: 2px solid var(--sage-700); border-radius: .9rem; background: var(--surface); color: var(--ink); font-size: 1.05rem; outline: none; }
#staff-search:focus-visible { box-shadow: 0 0 0 4px rgba(53, 94, 76, .2); }
.filter-group { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.25rem 0; }
.filter-button { min-height: 2.7rem; padding: .5rem 1rem; border: 1px solid var(--sage-700); border-radius: .7rem; background: transparent; color: var(--sage-700); font-weight: 700; cursor: pointer; }
.filter-button:hover, .filter-button:focus-visible { background: var(--sage-100); outline: none; }
.filter-button.is-active { background: var(--sage-700); color: white; }
.result-count { margin: 1.5rem 0 .85rem; color: var(--muted); font-size: .95rem; }
.staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.staff-card, .status-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 9px 20px rgba(39, 51, 44, .05); }
.staff-card { padding: 1.75rem; }
.staff-card h3 { margin: 0; font-size: 1.85rem; line-height: 1.15; letter-spacing: -.035em; }
.team { margin: .4rem 0 1.15rem; color: var(--sage-700); font-weight: 700; }
dl { margin: 0; border-top: 1px solid var(--border); }
.favorite-row { display: grid; grid-template-columns: minmax(8rem, .8fr) minmax(0, 1.2fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.favorite-row:last-child { border-bottom: 0; }
dt { color: var(--muted); font-size: .82rem; font-weight: 700; }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.status-card { max-width: 38rem; margin: 3rem auto; padding: 2rem; text-align: center; }
.status-card h2 { margin: 0 0 .55rem; font-size: 1.65rem; }
.status-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.status-card[data-state='error'] h2 { color: var(--danger); }
.sample-notice { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: .75rem; background: #fff1e8; color: #704333; font-size: .9rem; font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 700px) {
  .site-shell { width: min(100% - 1.25rem, 42rem); padding-top: 1.75rem; }
  .page-header { margin-bottom: 2rem; }
  .staff-grid { grid-template-columns: 1fr; }
  .staff-card { padding: 1.35rem; }
  .favorite-row { grid-template-columns: 1fr; gap: .2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .filter-button { transition: background-color 140ms ease, color 140ms ease; }
}
