:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --ink: #1a1720;
  --muted: #58535d;
  --line: #d8d1c5;
  --violet: #5424bd;
  --violet-dark: #3f168f;
  --lime: #d4fa58;
  --white: #fffdfa;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, summary, select { font: inherit; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
svg { display: inline-block; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }

.shell { width: min(100% - 96px, 1240px); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  transform: translateY(calc(-100% - 16px));
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 10px;
  width: fit-content;
}
.brand img { width: 36px; height: 36px; }
.brand > span { display: grid; gap: 3px; }
.brand strong { font-size: .98rem; line-height: 1; letter-spacing: -.035em; }
.brand small {
  color: var(--muted);
  font: 700 .59rem/1.1 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav-links a { padding-block: 12px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.nav-links a:hover, .footer-inner > a:hover { color: var(--violet); }
.language { position: relative; justify-self: end; z-index: 5; }
.language summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
}
.language summary:hover, .category-picker summary:hover { border-color: var(--violet); }
.language summary .globe { width: 17px; height: 17px; color: var(--violet); }
.language summary .chevron { width: 13px; height: 13px; }
.language[open] summary .chevron, .category-picker[open] summary .chevron { rotate: 180deg; }
.language ul, .category-picker ul {
  position: absolute;
  z-index: 3;
  inset: calc(100% + 6px) 0 auto;
  min-width: 100%;
  max-height: min(48vh, 320px);
  padding: 5px;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 12px 30px rgb(26 23 32 / 14%);
}
.language ul { inset-inline-start: auto; min-width: 168px; }
.language li a, .category-picker li a {
  display: block;
  padding: 10px 12px;
  border-radius: 2px;
  font-size: .92rem;
  line-height: 1.25;
}
.language li a:hover, .category-picker li a:hover, .language a[aria-current] {
  background: #eee5fa;
  color: var(--violet-dark);
}
.language li a:focus-visible, .category-picker li a:focus-visible { outline-offset: -2px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 82px);
  padding-block: 38px 44px;
}
.hero-copy { min-width: 0; padding-block: 12px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--violet-dark);
  font: 700 .72rem/1.35 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; flex: none; background: var(--violet); }
.hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 6.15vw, 6.3rem);
  font-weight: 900;
  line-height: .91;
  letter-spacing: -.072em;
}
.hero h1 span { display: block; color: var(--violet); }
.lede {
  max-width: 50ch;
  margin: 24px 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.19rem);
  line-height: 1.55;
}
.actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 9px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.button svg, .category-picker summary svg { width: 17px; height: 17px; }
.button.primary { background: var(--violet); border-color: var(--violet); color: white; }
.button.primary:hover { background: var(--violet-dark); border-color: var(--violet-dark); }
.button.secondary:hover { background: var(--ink); color: white; }
.picker-label {
  display: block;
  margin: 26px 0 7px;
  color: var(--muted);
  font: 700 .66rem/1.2 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.category-picker { position: relative; width: min(100%, 365px); z-index: 2; margin-top: 22px; }
.picker-label + .category-picker { margin-top: 0; }
.category-picker summary {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .9rem;
  font-weight: 700;
}
.category-picker summary svg { color: var(--violet); }
.hero-photo {
  position: relative;
  isolation: isolate;
  aspect-ratio: .83;
  margin: 0;
  overflow: hidden;
  background: #282034;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 63% 0 0;
  z-index: 0;
  background: linear-gradient(transparent, rgb(16 11 24 / 62%));
  pointer-events: none;
}
.hero-photo figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 16px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font: 700 .72rem/1.25 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-photo figcaption small {
  order: -1;
  min-width: 33px;
  min-height: 33px;
  display: grid;
  place-items: center;
  padding: 5px 7px;
  background: var(--lime);
  color: var(--ink);
  font: inherit;
}

.index-band { background: var(--ink); color: white; }
.band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 50px;
  padding-block: 12px;
  font: 700 .7rem/1.25 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.band-inner > span:first-child, .band-inner > span:nth-child(even) { color: var(--lime); }

.directory { padding-block: clamp(58px, 7vw, 105px); }
#categories, #guide { scroll-margin-top: 28px; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4.2vw, 3.9rem);
  font-weight: 900;
  line-height: .99;
  letter-spacing: -.055em;
}
.section-head p:not(.eyebrow) { max-width: 62ch; margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.category-grid li { min-width: 0; }
.category-grid li a {
  min-height: 84px;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.category-grid li a:hover { background: #eee5fa; border-color: var(--violet); }
.category-number { color: var(--violet-dark); font: 700 .69rem/1.2 var(--mono); }
.category-name { font-size: .96rem; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.category-grid .arrow { width: 16px; height: 16px; color: var(--violet); }

.guide { padding-block: clamp(50px, 6vw, 86px); background: #ede6f9; border-block: 1px solid #ded3f1; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.guide-grid article { padding: 20px 0 0; border-top: 1px solid #bfb1d5; }
.guide-number {
  display: inline-grid;
  min-width: 36px;
  min-height: 28px;
  place-items: center;
  padding: 4px 7px;
  color: white;
  background: var(--violet);
  font: 700 .71rem/1.25 var(--mono);
}
.guide-grid h3 { margin: 13px 0 8px; font-size: 1.24rem; line-height: 1.15; letter-spacing: -.025em; }
.guide-grid p { max-width: 47ch; margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.site-footer { padding-block: 25px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 26px; align-items: center; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.footer-inner > a:not(.brand) { font-size: .86rem; font-weight: 750; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 64px); }
  .hero { gap: 32px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 830px) {
  .shell { width: calc(100% - 48px); }
  .hero { gap: 25px; }
  .hero h1 { font-size: clamp(2.9rem, 6.2vw, 4.5rem); }
  .hero-photo { aspect-ratio: .71; }
  .lede { margin-block: 18px; }
  .button { padding-inline: 12px; }
}
@media (max-width: 675px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; grid-template-columns: 1fr auto; gap: 12px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 28px 25px; }
  .hero-copy { padding-block: 5px 0; }
  .hero h1 { font-size: clamp(2.6rem, 12.1vw, 5.35rem); }
  .eyebrow { margin-bottom: 14px; }
  .hero-photo { aspect-ratio: .93; }
  .hero-photo img { object-position: center 37%; }
  .band-inner { gap: 6px 10px; font-size: .62rem; letter-spacing: .07em; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid li a { min-height: 65px; padding: 9px; gap: 6px; }
  .category-name { font-size: .88rem; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 345px) {
  .shell { width: calc(100% - 28px); }
  .category-grid li a { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
