@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #141311;
  --ink-soft: #3f3a34;
  --paper: #f3efe6;
  --paper-2: #fffdf9;
  --line: #e4dcd0;
  --gold: #e0c48a;
  --gold-ink: #6b4e16;
  --cream: #f6f3ed;
  --cream-dim: #ddd6cb;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
}

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

.masthead :focus-visible,
.cta :focus-visible,
.footer :focus-visible {
  outline-color: #fffdf9;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 5;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}

.skip:focus {
  top: 12px;
}

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

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

.masthead {
  background:
    radial-gradient(ellipse 70% 80% at 0% -10%, rgba(224, 196, 138, 0.18), transparent 52%),
    var(--ink);
  color: var(--cream);
  border-bottom: 1px solid var(--gold);
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.wordmark-em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.nowrap {
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  text-underline-offset: 0.22em;
}

.hero {
  padding: 8px 0 22px;
}

.kicker-line {
  margin: 10px 0 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 8px 0 10px;
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.45rem, 1.35rem + 2.5vw, 3.85rem);
  font-optical-sizing: auto;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.lede {
  max-width: 40rem;
  margin: 0 0 16px;
  color: var(--cream-dim);
  font-size: 1.125rem;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: var(--paper-2);
  border: 1px solid var(--gold);
}

.search-bar input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

.search-bar input::placeholder {
  color: #5c564e;
  opacity: 1;
}

.button,
.search-submit,
.ghost,
.suggestions button,
.check,
select {
  font: inherit;
}

.button,
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.search-submit:hover {
  background: #efd7a4;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.suggestions button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(224, 196, 138, 0.65);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.suggestions button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.hint,
.filter-note {
  margin: 10px 0 0;
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.filters {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 0 40px 0 12px;
  border: 0;
  border-radius: 0;
  appearance: none;
  background-color: var(--paper-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23141311' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--ink);
  cursor: pointer;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(224, 196, 138, 0.45);
  background: rgba(255, 253, 249, 0.04);
  color: var(--cream);
  cursor: pointer;
}

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

.ghost {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(246, 243, 237, 0.4);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.results-wrap {
  padding: 22px 0 12px;
}

.banner {
  margin: 0 0 22px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: #f8f1e2;
  color: var(--ink);
}

.section-label {
  margin: 0 0 4px;
  color: var(--gold-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.count {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty {
  margin: 0;
  padding: 28px 18px;
  border: 1px dashed #cfc6b8;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards > li {
  display: flex;
  min-width: 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 0 1px 0 rgba(20, 19, 17, 0.04);
}

.card:hover {
  border-top-color: #a68446;
  box-shadow: 0 12px 28px rgba(20, 19, 17, 0.06);
}

.stamp {
  align-self: flex-start;
  margin: 0;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--gold);
  background: #f8f1e2;
  color: var(--gold-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}

.category {
  color: var(--gold-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge {
  padding: 0.15rem 0.45rem;
  border: 1px solid #d9c79a;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.owner {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0;
  margin: 0;
  color: var(--ink-soft);
}

.meta span + span::before {
  content: "·";
  margin: 0 0.5rem;
  color: #a68446;
}

.services {
  flex: 1;
  margin: 0;
  overflow-wrap: break-word;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 6px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.contacts a,
.source a {
  color: var(--gold-ink);
  font-weight: 600;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.source {
  margin: 0;
  font-size: 0.88rem;
}

.source a {
  color: var(--ink-soft);
  font-weight: 600;
}

.source a::after {
  content: " ↗";
}

mark {
  padding: 0 0.12em;
  background: #f3e2b8;
  color: inherit;
}

.cta {
  margin-top: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  background: var(--ink);
  color: var(--cream);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
}

.cta-copy {
  max-width: 40rem;
}

.cta h2,
.about h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 1.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.cta p,
.about p,
.footer p {
  margin: 0 0 12px;
}

.about {
  padding: 52px 0 64px;
}

.about p {
  max-width: 66ch;
}

.about code {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95em;
  padding: 0.05em 0.28em;
  background: #f8f1e2;
}

.footer {
  padding: 28px 0 36px;
  background: var(--ink);
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.copyright {
  color: var(--gold);
}

.footer a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer .credit {
  margin: 12px 0 0;
  color: var(--cream-dim);
}


@media (min-width: 720px) {
  .search-bar {
    flex-direction: row;
    align-items: stretch;
  }

  .search-bar input {
    flex: 1;
  }

  .search-submit {
    width: auto;
  }

  .filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    align-items: end;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

@media (max-width: 719px) {
  .search-submit,
  .cta .button,
  .ghost {
    width: 100%;
  }

  .meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .meta span + span::before {
    content: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .button,
  .search-submit,
  .ghost,
  .suggestions button,
  .card,
  .banner,
  .stamp,
  .badge,
  .check {
    border: 1px solid ButtonText;
  }

  .masthead,
  .cta,
  .footer {
    background: Canvas;
    color: CanvasText;
  }
}
