:root {
  color-scheme: light;
  --paper: #f4f1ff;
  --ink: #24173b;
  --quiet: #55496a;
  --panel: #342154;
  --lavender: #cfb8ff;
  --lime: #e0ff9f;
  --line: #cfc4e3;
  font-family: 'Trebuchet MS', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
input, select, button { font: inherit; }
:focus-visible { outline: 3px solid #7544bf; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; padding: 12px; background: white; }
.skip:not(:focus) { clip-path: inset(50%); }
.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.42rem; font-weight: 800; text-decoration: none; letter-spacing: -.05em; }
.monogram { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 8px; background: var(--panel); color: var(--lime); font-size: 1rem; letter-spacing: 0; }
.nav { font-weight: 700; text-underline-offset: .25em; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  min-height: 445px;
  overflow: hidden;
  padding: clamp(1.5rem, 5.8vw, 4.8rem);
  border-radius: 12px 12px 78px 12px;
  background: var(--panel);
  color: white;
}
.hero-copy { z-index: 1; }
.tag { color: var(--lavender); font-weight: 700; margin: 0 0 1rem; }
.tag span { margin-inline: .3rem; }
h1 {
  margin: 0;
  font-family: 'Arial Black', 'Trebuchet MS', system-ui, sans-serif;
  font-size: clamp(3.1rem, 7.8vw, 7.4rem);
  font-weight: 900;
  line-height: .91;
  letter-spacing: -.089em;
}
h1 span { color: var(--lime); }
.intro { max-width: 36ch; color: #e9dffa; line-height: 1.56; font-size: 1.07rem; margin-block: 1.25rem 1.55rem; }
.cta { display: inline-block; padding: .86rem 1.12rem; border-radius: 7px; background: var(--lime); color: var(--ink); font-weight: 800; text-decoration: none; }
.cta:hover { background: #eeffc8; }
.cta:focus-visible { outline-color: white; }

.art { display: grid; place-items: center; min-height: 240px; }
.cover { grid-area: 1 / 1; width: min(69%, 265px); aspect-ratio: 4 / 5; border-radius: 17px; }
.cover-back { background: #8059b9; transform: rotate(-22deg) translate(-12%, -3%); }
.cover-middle { background: #a988e3; transform: rotate(16deg) translate(11%, 3%); }
.cover-front { isolation: isolate; display: grid; place-items: center; position: relative; overflow: hidden; transform: rotate(-7deg); color: var(--panel); background: var(--lavender); box-shadow: 0 18px 30px #1b0c345e; }
.cover-front span { font-family: 'Arial Black', system-ui, sans-serif; font-size: clamp(2.5rem, 10vw, 8rem); font-weight: 900; letter-spacing: -.14em; padding-right: .14em; }
.cover-front::after { content: ''; position: absolute; z-index: -1; inset: 70% -25% -15%; transform: rotate(-30deg); background: radial-gradient(circle, #34215465 1px, transparent 2px) 0 0 / 7px 7px; }

.directory { padding-block: clamp(2.5rem, 7vw, 5rem); scroll-margin-top: 1rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.055em; }
#total, .notice { margin: 0; color: var(--quiet); }
.notice { margin-block: 1.2rem; line-height: 1.5; }
#filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; gap: .8rem; margin-block: 1.15rem; }
#filters label { display: grid; gap: .4rem; min-width: 0; font-weight: 700; }
#filters input, #filters select, #filters button { width: 100%; min-width: 0; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fcfaff; color: var(--ink); padding-inline: .65rem; }
#filters select { appearance: none; padding-right: 1.9rem; background: linear-gradient(45deg, transparent 50%, currentColor 50%) right 15px center / 5px 5px no-repeat, linear-gradient(-45deg, transparent 50%, currentColor 50%) right 10px center / 5px 5px no-repeat, #fcfaff; }
#filters button { cursor: pointer; font-weight: 700; }
#filters button:hover { background: #e7ddf7; }
#profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
#profiles li { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fcfaff; }
.avatar { display: grid; place-items: center; min-height: 105px; background: #dbc4fa; font-size: 3rem; font-weight: 900; letter-spacing: -.09em; }
#profiles li:nth-child(3n + 2) .avatar { background: #e5f7b5; }
#profiles li:nth-child(3n + 3) .avatar { background: #f7ccdf; }
.profile-copy { padding: 1rem; }
.profile-copy h3, .profile-copy p { margin: 0 0 .25rem; }
.profile-copy p { color: var(--quiet); }
.profile-copy a { display: inline-block; margin-top: .5rem; font-weight: 700; text-underline-offset: .2em; }
.footer { flex-wrap: wrap; align-items: baseline; padding-block: 1rem 2rem; border-top: 1px solid var(--line); color: var(--quiet); }
.footer strong { color: var(--ink); }

@media (max-width: 840px) {
  .hero { min-height: 365px; border-bottom-right-radius: 55px; }
  #filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .top { min-height: 63px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 1.7rem 1.15rem 2.3rem; }
  h1 { font-size: clamp(2.58rem, 12vw, 4.4rem); }
  .art { min-height: 125px; width: 46%; justify-self: end; margin-top: .4rem; }
  .cover { width: min(63%, 107px); }
  .cover-front span { font-size: clamp(2.2rem, 10vw, 4rem); }
  #profiles { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { #filters { grid-template-columns: 1fr; } }
