:root {
  --teal: #0E5E6F;
  --teal-dark: #08424E;
  --mango: #F2A541;
  --mango-soft: #FCEBCF;
  --ink: #1B2430;
  --muted: #5A6472;
  --line: #E3E1DB;
  --paper: #FFFFFF;
  --sand: #F6F4EF;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* header */
#site-header { background: var(--teal); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.01em; }
.brand-tag { font-size: 14px; color: var(--mango-soft); margin-top: 4px; }
#site-header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
#site-header nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 500; font-size: 15px; }
#site-header nav a:hover { background: rgba(255,255,255,0.12); }
#site-header nav a[aria-current="page"] { background: var(--mango); color: var(--ink); }

/* intro band */
.intro { background: var(--teal-dark); color: #fff; padding: 46px 0 52px; }
.intro h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 72px); line-height: 0.98; margin: 0 0 14px; letter-spacing: -0.02em; }
.lede { max-width: 58ch; margin: 0 0 24px; font-size: 18px; color: #DCEBEE; }
.btn { display: inline-block; background: var(--mango); color: var(--ink); font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 0; font-size: 16px; cursor: pointer; }
.btn:hover { background: #F6B865; }
.btn-quiet { background: transparent; border: 2px solid var(--teal); color: var(--teal); font: inherit; font-weight: 600; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.btn-quiet:hover { background: var(--teal); color: #fff; }
.btn-quiet:disabled { opacity: 0.5; cursor: progress; }

/* directory */
.directory { padding-top: 34px; padding-bottom: 60px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips button { font: inherit; font-size: 15px; border: 1px solid var(--line); background: var(--sand); color: var(--ink); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.status { color: var(--muted); margin: 0 0 16px; }
.status:empty { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px 22px; transition: opacity 0.2s; }
.grid.is-fetching { opacity: 0.5; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card-img { aspect-ratio: 16 / 9; background: var(--sand); border-radius: 8px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .initial { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 54px; color: var(--teal); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; margin: 12px 0 4px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .more-link { margin-top: 8px; color: var(--teal); font-weight: 600; font-size: 15px; }
.card:hover h3 { color: var(--teal); }
.more-row { display: flex; justify-content: center; margin-top: 36px; }

/* prose pages */
.prose { padding-top: 40px; padding-bottom: 64px; max-width: 820px; }
.prose h2 { font-family: var(--display); font-size: 30px; margin: 34px 0 10px; }
.prose h3 { font-family: var(--display); font-size: 21px; margin: 22px 0 6px; }
.prose p { margin: 0 0 14px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; }
.note { color: var(--muted); font-size: 15px; margin-top: 26px; }

/* listing detail */
.listing { padding-top: 34px; padding-bottom: 64px; }
.back { display: inline-block; margin-bottom: 18px; font-weight: 500; }
.listing-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.listing-photo { border-radius: 10px; overflow: hidden; background: var(--sand); }
.listing-photo img { width: 100%; height: auto; }
.listing-logo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 3px solid var(--mango); margin-bottom: 14px; background: #fff; }
.listing-logo img { width: 100%; height: 100%; object-fit: cover; }
.listing h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.02; margin: 0 0 8px; }
.listing .meta { color: var(--muted); margin: 0 0 4px; }
.phone-big { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 26px; margin: 16px 0; text-decoration: none; }
.contact-list { list-style: none; margin: 0 0 18px; padding: 0; }
.contact-list li { margin: 6px 0; }
.listing-body { max-width: 70ch; margin-top: 34px; white-space: pre-line; }
.badge { display: inline-block; background: var(--mango-soft); color: var(--ink); font-size: 14px; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px 24px; }
.post-card time, .post-card .read { color: var(--muted); font-size: 14px; }
.post-card p.excerpt { color: var(--ink); margin-top: 6px; }
.article { padding-top: 34px; padding-bottom: 64px; max-width: 780px; }
.article h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 50px); line-height: 1.05; margin: 0 0 10px; }
.article .byline { color: var(--muted); margin-bottom: 22px; }
.article .cover { border-radius: 10px; overflow: hidden; margin-bottom: 28px; max-height: 460px; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body img { border-radius: 8px; margin: 18px 0; height: auto; }
.article-body h2, .article-body h3 { font-family: var(--display); }

/* footer */
#site-footer { background: var(--ink); color: #C9CED6; padding: 44px 0 22px; font-size: 15px; }
#site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; margin: 0 0 8px; }
.footer-links, .social { list-style: none; margin: 0; padding: 0; }
.footer-links li, .social li { margin: 0 0 8px; }
.copyright { border-top: 1px solid #333D4B; margin-top: 30px; padding-top: 16px; font-size: 14px; }

@media (max-width: 760px) {
  .listing-head { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .grid { transition: none; } }