@font-face {
  font-family: Barlow Condensed;
  src: url('/static/fonts/BarlowCondensed-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #163dcc;
  --lime: #d7f65b;
  --sky: #bce8ee;
  --paper: #f5f7f8;
  --ink: #102024;
  --muted: #526268;
  --line: #c9d2d6;
  --radius: 12px;
  --display: 'Barlow Condensed', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scrollbar-color: #91a1aa var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 'Segoe UI', Arial, sans-serif;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button,
input,
select,
textarea {
  font: inherit;
  caret-color: var(--blue);
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
select {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

svg {
  flex-shrink: 0;
  vertical-align: middle;
}

button {
  color: inherit;
}

.wrap {
  width: min(1376px, calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: var(--lime);
  padding: 12px;
}

.skip-link:focus {
  top: 8px;
}

.demo-notice {
  background: var(--lime);
  text-align: center;
  padding: 6px 20px;
  font-size: 12px;
  color: var(--ink);
}

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.caritap-logo {
  display: block;
  width: 190px;
  height: auto;
  flex-shrink: 0;
}

.wordmark-sites {
  font-family: var(--display);
  font-size: 32px;
  color: var(--blue);
}

.site-header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-header nav > a {
  text-decoration: none;
}

.about-link {
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  min-height: 48px;
  transition: background 0.2s, color 0.2s;
}

.button:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.button-secondary {
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover {
  color: #fff;
}

.button-small {
  min-height: 42px;
  padding: 9px 16px;
  gap: 12px;
}

.intro {
  background: var(--blue);
  color: white;
}

.intro-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 72px;
  align-items: center;
  padding-block: 43px 48px;
}

.intro h1 {
  font-family: var(--display);
  font-size: clamp(3.5rem, 6.4vw, 5.75rem);
  line-height: 0.97;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.intro h1 span {
  display: block;
}

.intro h1 span + span {
  color: var(--lime);
}

.intro-copy {
  padding-top: 5px;
  max-width: 39ch;
}

.intro-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: #e5ebff;
}

.intro-copy a {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 25px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.intro a:focus-visible {
  outline-color: var(--lime);
}

.intro-copy a:hover {
  color: var(--lime);
}

.directory {
  padding-block: 32px 56px;
  scroll-margin-top: 0;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1.05fr;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.select-wrap,
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #b5c2c9;
  background: white;
  border-radius: 7px;
  min-height: 50px;
  padding-inline: 14px;
}

.select-wrap select {
  appearance: none;
  border: 0;
  outline-offset: 7px;
  background: transparent;
  width: 100%;
  padding: 13px 22px 13px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.select-wrap > svg:last-child {
  position: absolute;
  right: 14px;
  pointer-events: none;
}

.island-field .select-wrap {
  background: var(--sky);
  border-color: var(--sky);
}

.search-wrap input {
  border: 0;
  min-width: 0;
  width: 100%;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
}

.search-wrap input::placeholder {
  color: #63727a;
  opacity: 1;
}

.search-button {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  height: 40px;
  width: 40px;
  border-radius: 4px;
}

.search-button:hover {
  background: var(--paper);
}

.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-block: 28px 22px;
}

.results-heading h2 {
  font: 700 32px/1.15 var(--display);
  letter-spacing: -0.01em;
}

.result-count {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.reset-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 26px;
}

.site-window {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid #b9c5ca;
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.22s;
}

.site-window:hover {
  box-shadow: 0 8px 24px #10202418;
}

.window-bar {
  height: 35px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: #46565e;
  font-size: 10px;
  padding-inline: 13px;
  border-bottom: 1px solid #dce2e5;
}

.window-bar > svg {
  margin-left: auto;
}

.window-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9c6c9;
}

.site-window img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  object-fit: contain;
}

.example-badge {
  position: absolute;
  bottom: 9px;
  left: 10px;
  padding: 3px 8px;
  background: #fffffff2;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
}

.preview-missing {
  aspect-ratio: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: var(--sky);
  color: #344e57;
  font-size: 13px;
}

.business-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}

.business-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
}

.business-title h3 {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.business-title a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--blue);
}

.business-description {
  font-size: 13px;
  color: #4f6067;
  margin-top: 6px;
  max-width: 47ch;
  line-height: 1.7;
}

.report-link {
  font-size: 11px;
  color: var(--muted);
  display: inline-block;
  margin-top: 10px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.page-status {
  font-size: 13px;
  color: var(--muted);
}

.invitation {
  margin-top: 64px;
  padding: 36px 40px;
  background: var(--sky);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-radius: var(--radius);
}

.invitation h2 {
  font: 700 38px/1.1 var(--display);
  letter-spacing: -0.01em;
}

.invitation p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
  color: #344e57;
}

.invitation .button {
  flex-shrink: 0;
}

.site-footer {
  background: #e9eef0;
  padding-block: 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 30px;
  align-items: start;
  font-size: 12px;
  color: #526268;
}

.footer-brand {
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--ink);
  justify-self: start;
}

.footer-brand .caritap-logo {
  width: 160px;
}

.footer-inner > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-inner > span {
  font-size: 11px;
}

.empty-state {
  text-align: center;
  padding: 68px 20px 50px;
}

.empty-state > svg {
  color: var(--blue);
}

.empty-state h3 {
  font: 700 36px/1.15 var(--display);
  margin-top: 18px;
}

.empty-state p {
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 25px;
}

.prose-page {
  max-width: 880px;
  padding-block: 55px 85px;
}

.prose-page h1 {
  font: 700 clamp(2.8rem, 5vw, 4.5rem) / 1.03 var(--display);
  max-width: 19ch;
  letter-spacing: -0.02em;
}

.prose-page .lede {
  font-size: 20px;
  margin-top: 24px;
}

.prose-page p {
  max-width: 70ch;
  margin-top: 15px;
  color: #45585f;
}

.prose-page h2 {
  font: 700 30px/1.2 var(--display);
  margin-top: 34px;
}

.prose-page .button {
  margin-top: 30px;
}

.filter-error {
  padding: 14px;
  color: #7d271c;
  font-size: 13px;
}

.filter-error button {
  background: transparent;
  border: 0;
  text-decoration: underline;
  color: inherit;
  padding: 8px;
}

#results[aria-busy=true] {
  opacity: 0.6;
  transition: opacity 0.18s;
}

.notice {
  padding: 14px 18px;
  margin-top: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.notice.error {
  color: #842f22;
  background: #fff2ec;
}

.notice.success {
  background: #e7f5dd;
  color: #254b20;
}

.form-page {
  max-width: 860px;
}

.form-panel {
  max-width: 680px;
  margin-top: 30px;
}

.form-panel label {
  margin-top: 22px;
  font-size: 14px;
}

.form-panel input,
.form-panel textarea,
.form-panel select {
  display: block;
  width: 100%;
  border: 1px solid #a9bac2;
  border-radius: 7px;
  background: white;
  padding: 12px;
  color: var(--ink);
}

.form-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.form-panel .button {
  margin-top: 25px;
}

.form-help {
  font-size: 12px !important;
  color: var(--muted);
}

.field-error {
  color: #842f22 !important;
  font-size: 13px;
}

.honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.owner-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.owner-table th,
.owner-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 15px 10px;
  vertical-align: top;
}

.owner-section {
  margin-top: 32px;
}

.owner-section h2 {
  margin-bottom: 15px;
}

.inline-form {
  display: inline-block;
}

.inline-form button {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 12px;
}

.owner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.owner-details {
  overflow-wrap: anywhere;
}

.status-label {
  display: inline-block;
  background: #e5ecf5;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.table-scroll {
  overflow-x: auto;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.form-panel input[type=checkbox] {
  width: 20px;
  height: 20px;
  flex: none;
  padding: 0;
  accent-color: var(--blue);
}

@media (min-width: 1600px) {
  .intro-inner {
    padding-block: 52px 57px;
  }
}

@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .intro-inner {
    gap: 38px;
    grid-template-columns: 1.55fr 1fr;
  }
  .intro h1 {
    font-size: 5rem;
  }
  .intro-copy p {
    font-size: 15px;
  }
  .business-grid {
    gap: 32px 20px;
  }
  .filters {
    gap: 16px;
  }
  .business-meta {
    display: block;
  }
  .business-meta > span + span {
    display: block;
    margin-top: 3px;
  }
  .business-title h3 {
    font-size: 18px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .invitation {
    padding: 30px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    height: 76px;
    gap: 12px;
  }
  .wordmark {
    font-size: 21px;
    gap: 8px;
  }
  .caritap-logo,
  .footer-brand .caritap-logo {
    width: 120px;
  }
  .wordmark-sites {
    font-size: 28px;
  }
  .site-header nav {
    gap: 15px;
  }
  .about-link {
    display: none;
  }
  .button-small {
    font-size: 12px;
    padding: 8px 11px;
    gap: 6px;
  }
  .intro-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 30px 31px;
  }
  .intro h1 {
    font-size: clamp(3rem, 9vw, 4.5rem);
  }
  .intro-copy {
    max-width: 52ch;
    padding: 0;
  }
  .intro-copy p {
    font-size: 14px;
    line-height: 1.7;
  }
  .intro-copy a {
    margin-top: 15px;
    font-size: 12px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .search-field {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .category-field {
    grid-column: 2;
    grid-row: 1;
  }
  .filters label {
    font-size: 11px;
  }
  .select-wrap {
    padding-inline: 10px;
    gap: 6px;
  }
  .select-wrap select {
    font-size: 12px;
    padding-right: 18px;
  }
  .select-wrap > svg:first-child:not(:last-child) {
    width: 17px;
  }
  .select-wrap > svg:last-child {
    right: 9px;
    width: 13px;
  }
  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results-heading h2 {
    font-size: 28px;
  }
  .invitation {
    margin-top: 40px;
    display: block;
  }
  .invitation h2 {
    font-size: 34px;
  }
  .invitation .button {
    margin-top: 24px;
  }
  .result-count {
    display: block;
    text-align: right;
  }
  .reset-link {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
  }
  .directory {
    padding-top: 24px;
  }
  .footer-inner {
    gap: 25px;
  }
  .business-meta {
    display: block;
  }
  .prose-page {
    padding-block: 32px 55px;
  }
  .prose-page .lede {
    font-size: 18px;
  }
}

@media (max-width: 500px) {
  .business-grid {
    grid-template-columns: 1fr;
    gap: 31px;
  }
  .business-meta {
    display: flex;
    font-size: 11px;
  }
  .business-meta > span + span {
    margin: 0;
  }
  .business-title h3 {
    font-size: 21px;
  }
  .business-description {
    font-size: 14px;
  }
  .results-heading {
    margin-top: 24px;
  }
  .results-heading h2 {
    max-width: 15ch;
  }
  .invitation {
    padding: 28px 22px;
  }
  .invitation p br {
    display: none;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    font-size: 18px;
  }
  .footer-inner > span {
    align-self: end;
  }
  .form-panel .button {
    width: 100%;
  }
  .demo-notice {
    font-size: 10px;
    padding: 5px 18px;
  }
  .intro h1 {
    font-size: 2.65rem;
  }
  .intro-inner {
    padding-block: 25px;
    gap: 18px;
  }
  .filters {
    grid-template-columns: 1.15fr 1fr;
  }
  .island-field {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .search-field {
    grid-column: 1;
    grid-row: 2;
  }
  .category-field {
    grid-column: 2;
    grid-row: 2;
  }
  .search-wrap {
    padding-inline: 9px;
    gap: 4px;
  }
  .search-wrap input {
    font-size: 12px;
  }
  .intro-copy a {
    display: none;
  }
}

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