:root {
  color-scheme: light;
  --paper: #f0e9dc;
  --paper-light: #faf7f0;
  --ink: #172c42;
  --muted: #63707a;
  --line: #b8b3aa;
  --signal: #e84f35;
  --signal-dark: #b92d1a;
  --lime: #dfe77a;
  --shadow: 0 12px 35px rgb(23 44 66 / 10%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-light);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, system-ui, sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }

a { color: inherit; }

.container {
  width: min(1240px, calc(100% - 3rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.masthead {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.07em;
  text-decoration: none;
}

.wordmark span { color: var(--signal); }

.edition, .kicker, .section-number {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.edition { margin: 0; color: var(--muted); }

.hero {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(1.5rem, 3.5vw, 3rem) 1rem;
}

.hero::after {
  content: "CL";
  position: absolute;
  z-index: 0;
  top: 1rem;
  right: -1rem;
  color: transparent;
  font-size: clamp(9rem, 27vw, 24rem);
  font-weight: 800;
  letter-spacing: -.14em;
  line-height: .85;
  -webkit-text-stroke: 1px rgb(23 44 66 / 15%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.kicker { margin: 0 0 1.25rem; color: var(--signal-dark); font-weight: 500; }

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 6.3vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .89;
}

.hero__intro {
  max-width: 560px;
  margin: 1.35rem 0 0;
  font-size: clamp(.95rem, 1.45vw, 1.15rem);
}

.search { max-width: 700px; margin-top: clamp(1.5rem, 3vw, 2.4rem); }

.search > label {
  display: block;
  margin-bottom: .65rem;
  font-weight: 700;
}

.search__field {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 60px;
  padding: .55rem .75rem .55rem 1.2rem;
  background: white;
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
}

.search__field:focus-within { outline: 4px solid var(--lime); outline-offset: 3px; }

.search__field input {
  min-width: 0;
  flex: 1;
  padding: .5rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.search__field input::-webkit-search-cancel-button { display: none; }

.search__clear, .status button {
  padding: .65rem .9rem;
  color: white;
  background: var(--ink);
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.search__clear:hover, .status button:hover { background: var(--signal-dark); }

.search__hint { margin: .8rem 0 0; color: var(--muted); font-size: .82rem; }

.featured {
  background: var(--paper-light);
  border: 2px solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
}

.featured__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 2px solid var(--ink);
}

.featured__heading h2 { margin-top: .15rem; font-size: 1.55rem; }

.featured__note {
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .65rem;
  text-align: right;
  text-transform: uppercase;
}

.featured__list { margin: 0; padding: 0; list-style: none; counter-reset: featured; }

.featured__list li { counter-increment: featured; }

.featured__list a {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: .6rem;
  align-items: center;
  min-height: 72px;
  padding: .75rem 1.15rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.featured__list li:last-child a { border-bottom: 0; }

.featured__list a::before {
  content: "0" counter(featured);
  color: var(--signal-dark);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .7rem;
}

.featured__list a:hover { background: var(--lime); }

.featured__text { display: block; min-width: 0; }

.featured__text strong,
.featured__text span { display: block; }

.featured__text strong { line-height: 1.25; }

.featured__text span {
  overflow: hidden;
  margin-top: .2rem;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured__arrow { color: var(--signal-dark); }

.continue-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .72rem;
  text-decoration: none;
  text-transform: uppercase;
}

.continue-link:hover { color: var(--signal-dark); }

.directory {
  display: grid;
  grid-template-columns: minmax(220px, 285px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.sector-index {
  position: sticky;
  top: 1rem;
  align-self: start;
  max-height: calc(100vh - 2rem);
}

.sector-index__heading, .results__heading {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.sector-index__heading { background: var(--paper-light); }

.section-number { margin: 0; color: var(--signal-dark); }

h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.04em; }

#sector-nav {
  max-height: calc(100vh - 90px);
  overflow: auto;
  scrollbar-width: thin;
}

.sector-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  padding: .72rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: .88rem;
}

.sector-link:hover { color: var(--signal-dark); padding-left: .35rem; }

.sector-link__count { font-family: "DM Mono", monospace; color: var(--muted); }

.results__heading { justify-content: space-between; }

.results__heading > div { flex: 1; }

.summary { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }

.sector-groups { display: grid; }

.sector-group {
  scroll-margin-top: 1rem;
  padding-block: 2.2rem;
  border-bottom: 1px solid var(--ink);
}

.sector-group.is-highlighted { animation: sector-highlight 1.6s ease-out; }

.sector-group__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sector-group__heading h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  letter-spacing: -.055em;
}

.sector-group__count {
  font-family: "DM Mono", monospace;
  color: var(--muted);
  font-size: .8rem;
  white-space: nowrap;
}

.site-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  min-height: 58px;
  align-items: center;
  padding: .75rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.site-link:hover .site-link__name { color: var(--signal-dark); }

.site-link:hover .site-link__arrow { transform: translate(2px, -2px); }

.site-link__text { min-width: 0; }

.site-link__name { display: block; font-weight: 700; line-height: 1.25; }

.site-link__domain {
  display: block;
  overflow: hidden;
  margin-top: .25rem;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-link__arrow { color: var(--signal-dark); transition: transform .18s ease; }

.status {
  margin-top: 2rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--ink);
}

.status__title { margin: 0; font-size: 1.35rem; font-weight: 800; }

.status button { margin-top: .5rem; }

.footer { color: var(--paper-light); background: var(--ink); }

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem;
  font-size: .85rem;
}

.footer p { margin: 0; }

.footer a { text-underline-offset: .2em; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

@keyframes sector-highlight {
  0%, 40% { background: var(--lime); box-shadow: 0 0 0 1.1rem var(--lime); }
  100% { background: transparent; box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 2rem, 700px); }
  .directory { display: block; }
  .sector-index { position: static; max-height: none; margin-bottom: 3rem; }
  .sector-index__heading { position: static; }
  #sector-nav { display: flex; gap: .5rem; max-height: none; overflow-x: auto; padding: .9rem 0; }
  .sector-link { flex: 0 0 auto; display: flex; padding: .55rem .75rem; border: 1px solid var(--ink); background: white; }
  .sector-link:hover { padding-left: .75rem; background: var(--lime); }
}

@media (max-width: 980px) {
  .masthead { min-height: 100svh; }
  .hero { justify-content: flex-start; padding-top: 1.25rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 1.15rem; }
  .hero::after { font-size: 13rem; }
  h1 { max-width: 620px; font-size: clamp(2.7rem, 9vw, 4.9rem); }
  .hero__intro { margin-top: .8rem; }
  .search { margin-top: 1rem; }
  .featured__heading { padding-block: .75rem; }
  .featured__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured__list a { min-height: 58px; }
  .featured__list li:nth-child(odd) a { border-right: 1px solid var(--line); }
  .continue-link { margin-top: 1rem; }
}

@media (max-width: 580px) {
  .masthead__bar { min-height: 60px; }
  .hero { padding-top: .8rem; }
  .kicker { margin-bottom: .55rem; font-size: .65rem; }
  h1 { font-size: clamp(2.35rem, 12.6vw, 3.25rem); line-height: .91; }
  .hero__intro { margin-top: .55rem; font-size: .85rem; line-height: 1.4; }
  .search { margin-top: .8rem; }
  .search > label { margin-bottom: .35rem; font-size: .8rem; }
  .search__field { min-height: 50px; padding-block: .25rem; box-shadow: 4px 4px 0 var(--ink); }
  .search__hint { display: none; }
  .featured { box-shadow: 4px 4px 0 var(--ink); }
  .featured__heading { padding: .55rem .75rem; }
  .featured__heading h2 { font-size: 1rem; }
  .featured__heading .section-number { font-size: .58rem; }
  .featured__note { font-size: .55rem; }
  .featured__list { display: block; }
  .featured__list li:nth-child(4) { display: none; }
  .featured__list li:nth-child(odd) a { border-right: 0; }
  .featured__list a { min-height: 49px; padding: .35rem .7rem; }
  .featured__text strong { font-size: .78rem; }
  .featured__text span { font-size: .57rem; }
  .continue-link { margin-top: .65rem; padding-top: .55rem; font-size: .62rem; }
  .site-list { grid-template-columns: 1fr; }
  .results__heading { align-items: flex-start; }
  .footer__inner { display: block; }
  .footer p + p { margin-top: .5rem; }
}

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