:root {
  --bg: #e7ece4;
  --ink: #16191a;
  --muted: #5b625c;
  --rule: #b9c0b5;
  --panel: #fffef4;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { overflow-x: clip; margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.page { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem 3rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.head { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; width: 100%; padding: 1rem clamp(1.25rem, 3vw, 2.5rem); background: var(--bg); border-bottom: 1px solid var(--rule); }
.nav { display: flex; gap: 0; margin-left: auto; }
.head__name { font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }

.btn {
  display: inline-block; padding: .6rem 1.1rem; font: inherit; font-size: .95rem; font-weight: 600;
  text-decoration: none; background: var(--ink); color: var(--panel); border: 2px solid var(--ink); border-radius: 999px;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: transparent; padding: .5rem .65rem; font-size: .9rem; }
.btn--ghost:hover { border-color: var(--ink); }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

section { padding: 3rem 0; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 1rem; }
h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: .6rem 0 .2rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

.video-bleed { width: 100vw; margin: 1.5rem 0 0 calc(50% - 50vw); background: #101213; }
.video-bleed { position: relative; }
.video-bleed::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); transition: background .2s; pointer-events: none; }
.video-bleed:hover::after, .video-bleed:focus-within::after { background: rgba(0, 0, 0, .5); }
.btn--video { position: absolute; width: max-content; max-width: 90%; text-align: center; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #0b5cd5; border-color: #0b5cd5; color: #fff; }
.btn--video:hover, .btn--video:focus-visible { background: #0848a8; border-color: #0848a8; color: #fff; }
.btn--video:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.video-bleed video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .85rem 0; border-top: 1px solid var(--rule); }
.list b { display: block; }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.photo { aspect-ratio: 1; display: grid; place-items: center; font-size: 2.5rem; font-weight: 800; background: var(--rule); border-radius: .5rem; }

.book { text-align: left; }
.foot { padding-top: 1.25rem; font-size: .8rem; color: var(--muted); }

.placeholder { background: rgb(243 197 36 / .45); padding: 0 .3em; font-size: .9em; color: var(--ink); }

.hero-photo { margin: 2rem 0 0; }
.hero-photo img, .gallery img { display: block; width: 100%; height: auto; border-radius: .5rem; background: var(--rule); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery figure { margin: 0; }

.headshot { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .5rem; background: var(--rule); }

.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--panel); }
.more { margin: 1.5rem 0 0; }
.btn[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }

/* Inner pages */
.page-title { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1rem; }
.back { display: inline-block; margin-bottom: 1.5rem; font-size: .9rem; color: var(--muted); }
.questions { margin: 1rem 0 0; padding: 0; list-style: none; }
main { counter-reset: q; }
.questions li { counter-increment: q; display: grid; grid-template-columns: 3rem 1fr; gap: .5rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.questions li::before { content: counter(q, decimal-leading-zero); font-weight: 700; color: var(--muted); }
.bio { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 1.5rem; align-items: start; }
.bio h2 { text-transform: none; letter-spacing: -.01em; font-size: 1.6rem; color: var(--ink); margin: 0 0 .25rem; }
.bio .role { margin: 0 0 1rem; color: var(--muted); }
@media (max-width: 36rem) { .bio { grid-template-columns: 1fr; } }
.dates li { display: flex; justify-content: space-between; gap: 1rem; }
.status { font-weight: 600; }
.status--full { color: var(--muted); font-weight: 400; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-top: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--wide { grid-column: 1 / -1; align-items: flex-start; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--muted); border-radius: .5rem; padding: .65rem .75rem; width: 100%; box-sizing: border-box; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid #0b5cd5; outline-offset: 2px; }
.form__note { margin: .75rem 0 0; color: var(--muted); }
@media (max-width: 36rem) { .form { grid-template-columns: 1fr; } }

.divider { display: flex; align-items: center; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.divider__loop { display: block; height: 28px; width: auto; aspect-ratio: 360 / 171; margin: 0 8px; }
@media (max-width: 36rem) {
  .head { padding: .6rem 1.25rem; gap: .2rem .5rem; }
  .head__name { flex-basis: 100%; font-size: .85rem; }
  .nav { margin-left: -.65rem; }
  .head > .btn:not(.btn--ghost) { margin-left: auto; padding: .4rem .9rem; font-size: .85rem; }
}
