:root {
  color-scheme: light;
  --ink: #17243a;
  --muted: #59677b;
  --paper: #f8f7f4;
  --surface: #fff;
  --line: #dce2e7;
  --brand: #1c5257;
  --brand-strong: #103b3f;
  --accent: #caa56a;
  --focus: #8b4f00;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: var(--brand-strong); text-underline-offset: .2em; }
a:hover { color: #0a3034; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 3px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; background: var(--surface); border: 2px solid var(--brand); }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1160px, calc(100% - 2.5rem)); margin: auto; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-size: 1.24rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.wordmark span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 1.1rem; font-weight: 650; }
.site-nav a:not(.button) { text-decoration: none; }
.locale-preference { display: flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 650; }
.locale-preference select { min-height: 2.3rem; max-width: 8.8rem; padding: .3rem 1.7rem .3rem .55rem; border: 1px solid #8794a3; border-radius: .45rem; background: var(--surface); color: var(--ink); font: inherit; }
.locale-preference select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.locale-preference__submit { min-height: 2.3rem; padding: .35rem .7rem; font: inherit; }
main { width: min(1160px, calc(100% - 2.5rem)); min-height: 68vh; margin: auto; }
.hero { padding: clamp(3rem, 8vw, 6rem) 0 3.5rem; max-width: 780px; }
.eyebrow { margin: 0 0 .65rem; color: var(--brand); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 1rem; font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: 1.05; letter-spacing: -.055em; }
h2 { margin-bottom: .5rem; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.035em; }
.hero__copy, .page-intro > p:last-child { max-width: 690px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero__actions, .profile-detail__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 1.5rem 0; }
.button { display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid var(--brand); border-radius: 999px; background: var(--brand); color: white; font-weight: 750; text-decoration: none; }
.button:hover { background: var(--brand-strong); color: white; }
.button--quiet { background: transparent; color: var(--brand-strong); }
.button--quiet:hover { background: #e8efed; color: #0a3034; }
.scope-note { max-width: 780px; color: var(--muted); font-size: .9rem; }
.section { padding: 1.5rem 0 4rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-heading h2 { margin-bottom: 0; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.profile-card { min-width: 0; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: 0 5px 18px rgb(23 36 58 / 4%); }
.profile-card__link { display: flex; height: 100%; gap: 1rem; padding: 1.2rem; color: inherit; text-decoration: none; }
.profile-card__link:hover .profile-card__name { text-decoration: underline; text-underline-offset: .2em; }
.profile-avatar { display: block; width: 4rem; height: 4rem; flex: 0 0 4rem; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: #e8efed; object-fit: cover; }
.profile-avatar--fallback { display: grid; place-items: center; color: var(--brand-strong); font-size: 1.15rem; font-weight: 800; }
.profile-avatar-slot { display: block; flex: 0 0 4rem; }
.profile-avatar[hidden] { display: none; }
.profile-card__body { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.profile-card .eyebrow { margin: .1rem 0 .2rem; font-size: .67rem; }
.profile-card__name { overflow-wrap: anywhere; font-size: 1.16rem; font-weight: 800; line-height: 1.3; }
.profile-summary { display: -webkit-box; overflow: hidden; margin: .55rem 0 .8rem; color: var(--muted); overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.profile-summary--muted, .profile-bio--muted { font-style: italic; }
.text-link { color: var(--brand-strong); font-weight: 750; }
.empty-state, .message-state { padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.empty-state p, .message-state > p:not(.eyebrow) { max-width: 620px; color: var(--muted); }
.page-intro { padding: 3.5rem 0 1rem; }
.page-intro h1, .message-state h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.muted { margin-bottom: 0; color: var(--muted); }
.discovery-form { display: grid; gap: 1.2rem; max-width: 780px; margin: 1.25rem 0 2rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.discovery-form__query { display: grid; gap: .45rem; }
.discovery-form__query > label, .type-filter legend { color: var(--ink); font-weight: 750; }
.discovery-form input[type="search"] { width: 100%; min-height: 2.9rem; padding: .65rem .8rem; border: 1px solid #8794a3; border-radius: .5rem; background: white; color: var(--ink); font: inherit; }
.discovery-form input[type="search"]:focus-visible, .type-filter__choice:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.form-hint { margin: 0; color: var(--muted); font-size: .9rem; }
.type-filter { min-width: 0; margin: 0; padding: 0; border: 0; }
.type-filter legend { margin-bottom: .55rem; }
.type-filter__choices { display: flex; flex-wrap: wrap; gap: .55rem; }
.type-filter__choice { display: inline-flex; min-height: 2.6rem; align-items: center; gap: .45rem; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.type-filter__choice input { width: 1rem; height: 1rem; accent-color: var(--brand); }
.discovery-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.discovery-form__actions button { font: inherit; cursor: pointer; }
.pagination { display: flex; flex-direction: column; align-items: center; padding: 2rem 0 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; padding: 1.5rem 0; color: var(--muted); font-size: .92rem; }
.profile-detail { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); padding: 2rem 0 5rem; }
.profile-detail__avatar .profile-avatar { width: min(12rem, 30vw); height: min(12rem, 30vw); min-width: 8rem; min-height: 8rem; font-size: 3rem; }
.profile-detail__body { max-width: 760px; }
.profile-detail h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.profile-bio { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.08rem; }
.site-footer { margin-top: 2rem; padding: 2rem max(1.25rem, calc((100% - 1160px) / 2)); border-top: 1px solid var(--line); background: #f0f1ed; color: var(--muted); font-size: .9rem; }
.site-footer p { margin-bottom: .4rem; }

@media (max-width: 850px) {
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .site-header, main { width: min(100% - 1.5rem, 1160px); }
  .site-header { flex-wrap: wrap; align-items: flex-start; }
  .site-nav { gap: .7rem; font-size: .92rem; }
  .site-nav .button { min-height: 2.4rem; padding: .45rem .7rem; }
  .locale-preference { margin-left: auto; }
  .hero { padding-top: 3rem; }
  .section-heading { align-items: flex-start; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card__link { padding: 1rem; }
  .profile-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .profile-detail__avatar .profile-avatar { width: 7rem; height: 7rem; min-width: 7rem; min-height: 7rem; font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.discovery-form__order { display: grid; gap: .45rem; max-width: 30rem; }
.discovery-form__order select { min-height: 2.9rem; padding: .65rem .8rem; border: 1px solid #8794a3; border-radius: .5rem; background: var(--surface); color: var(--ink); font: inherit; }
.discovery-form__order select:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.profile-introduction { margin: 1.6rem 0; }
.profile-introduction h2 { font-size: 1.15rem; }
.profile-facts { margin: 1rem 0; }
.profile-facts div { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; font-weight: 700; }
.profile-more { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin: 1.2rem 0; }
