@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plus-jakarta-400.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plus-jakarta-600.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/plus-jakarta-700.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-800.woff2") format("woff2");
}

:root {
  --cream: #ede8e0;
  --cream-raised: #f7f4ee;
  --cream-deep: #e3dcd1;
  --cream-deeper: #d9d2c6;
  --ink: #111111;
  --ink-soft: #2a2826;
  --line: rgba(17, 17, 17, 0.18);
  --line-strong: #111111;
  --shadow: 0 1px 0 rgba(17, 17, 17, 0.04);
  --sans: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-bottom: 4.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 0.9rem;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  padding: 0.55rem 0 0.15rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.header-cta,
.menu-toggle {
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  font-size: 0.92rem;
}

.brand {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  width: min(148px, 42vw);
  height: auto;
  display: block;
}

.brand-footer img {
  width: min(240px, 70vw);
}

.handle {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.handle:hover,
.nav a:hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.nav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.15rem 0 0.45rem;
}

.nav.is-open {
  display: flex;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.steps {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
  max-width: 40rem;
}

.faq {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  max-width: 42rem;
}

.faq details {
  border: 1px solid var(--ink);
  background: var(--cream-raised);
  padding: 0.2rem 0.9rem 0.2rem;
}

.faq summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  margin: 0 0 0.85rem;
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}

.results-bar .directory-status {
  margin: 0.6rem 0;
}

.to-top {
  position: fixed;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 6;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero {
  padding: 2.6rem 0 2.6rem;
}

.hero h1 {
  max-width: 760px;
  margin: 0.2rem 0 0;
  font-size: 1rem;
  line-height: 0;
  letter-spacing: 0;
}

.hero-logo {
  width: min(760px, 100%);
  height: auto;
  display: block;
}

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
}

h1 {
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dek {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin-top: 1.4rem;
}

.section {
  padding: 1.6rem 0 0.4rem;
  scroll-margin-top: 6.5rem;
}

.note,
.callout {
  border: 1px solid var(--line-strong);
  background: var(--cream-raised);
  padding: 0.9rem 1rem;
  margin: 0.9rem 0 0;
}

.note p,
.callout p {
  margin: 0.35rem 0 0;
}

.note p:first-child,
.callout p:first-child {
  margin-top: 0;
}

.picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 0 0.35rem;
}

.chip,
.btn,
button,
select,
input {
  font: inherit;
}

.chip {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
  max-width: 100%;
}

.chip.is-selected,
.btn {
  background: var(--ink);
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  text-decoration: none;
  padding: 0.85rem 1.1rem;
  min-height: 48px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.btn:hover {
  background: #2a2a2a;
}

.btn-line {
  background: transparent;
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.text-link {
  font-weight: 700;
  color: var(--ink);
}

.filter-tools {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  position: sticky;
  top: 5.6rem;
  z-index: 4;
  background: var(--cream);
  padding: 0.35rem 0 0.55rem;
}

.filter-tools .search-field {
  margin: 0;
}

.filter-toggle {
  min-height: 44px;
}

.filter-panel {
  display: grid;
  gap: 0.8rem;
}

.filter-panel.is-collapsed {
  display: none;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  background: var(--cream-raised);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.75rem 0.8rem;
  min-height: 48px;
  font-size: 16px;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  min-height: 48px;
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  accent-color: var(--ink);
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.directory-status {
  margin: 1rem 0;
  font-weight: 600;
}

.cards {
  display: grid;
  align-items: start;
  gap: 0.9rem;
  padding-bottom: 1rem;
}

.card {
  background: var(--cream-raised);
  border: 1px solid var(--line);
  padding: 1.05rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: flex-start;
}

.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0.22rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #2f6e49;
  color: #f7f4ee;
  white-space: nowrap;
}

.badge-open {
  background: #2f6e49;
  color: #f7f4ee;
}

.badge-closed,
.badge-paused {
  background: #a33b36;
  color: #f7f4ee;
}

.badge-limited,
.badge-unknown {
  background: #e0b44a;
  color: #111111;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.3rem;
  list-style: none;
  margin: 0.95rem 0 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.type-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta,
.fine,
.checked,
.detail {
  margin: 0;
  color: var(--ink-soft);
}

.amount {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.facts {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.facts div {
  display: grid;
  gap: 0.1rem;
}

.facts dt {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
}

.more {
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
}

.more summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.more .facts {
  margin-top: 0.55rem;
}

.card .btn {
  margin-top: auto;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.sources a {
  font-weight: 700;
}

.lender-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.about-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1rem;
  align-items: start;
}

.portrait {
  margin: 0;
  background: #1a1a1a;
  border: 1px solid var(--ink);
}

.portrait picture,
.ask-photo picture {
  display: block;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}

.ask-intro {
  display: grid;
  gap: 1.1rem;
  align-items: center;
}

.ask-photo {
  margin: 0;
  max-width: 260px;
}

.ask-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 42%;
  border: 1px solid var(--ink);
  display: block;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.contact-list a {
  font-weight: 700;
}

.form-panel {
  margin-top: 1rem;
  background: var(--cream-raised);
  border: 1px solid var(--ink);
  padding: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

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

.span-2 {
  grid-column: 1 / -1;
}

.form-error {
  border: 1px solid var(--ink);
  padding: 0.7rem 0.8rem;
  font-weight: 700;
}

.program-banner {
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.8rem;
  background: var(--cream-deep);
  font-weight: 600;
}

.thanks h2 {
  max-width: none;
}

.site-footer {
  margin-top: 2.5rem;
  padding: 1.6rem 0 2.4rem;
  border-top: 1px solid var(--ink);
}

.footer-brand {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.guild-logo {
  width: 200px;
  max-width: 70vw;
  height: auto;
  margin: 0.2rem 0 1.15rem;
}

.footer-copy {
  display: grid;
  gap: 0.85rem;
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}

.footer-copy h2 {
  margin: 0.4rem 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: none;
}

.footer-copy p {
  margin: 0;
}

.eho {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.btn:focus-visible,
.chip.is-selected:focus-visible,
.to-top:focus-visible,
.header-cta:focus-visible {
  outline-color: #f7f4ee;
  box-shadow: 0 0 0 3px #111111;
}

@media (min-width: 768px) {
  .brand img {
    width: min(280px, 34vw);
  }

  .menu-toggle {
    display: none;
  }

  .nav,
  .nav.is-open {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.15rem 1rem;
  }

  .filter-tools {
    position: static;
    padding: 0;
    margin-top: 1rem;
  }

  .filter-toggle {
    display: none;
  }

  .filter-panel,
  .filter-panel.is-collapsed {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-panel .checks {
    grid-column: 1 / -1;
  }
}

@media (min-width: 720px) {
  .checks {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 1.4rem;
  }

  .cards,
  .lender-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 300px 1fr;
  }

  .ask-intro {
    grid-template-columns: 1fr 260px;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
