/* Self-hosted: the site CSP is font-src 'self' data:, so a Google Fonts <link>
   is refused by the browser and the face never arrives. */
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-var.woff2?v=6c18d579") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #f97316;          /* brand orange: borders, icons, accents on dark */
  --accent-hover: #ea580c;
  /* White-on-#f97316 is 2.80:1 and orange-on-white is the same, so the primary
     CTA and every accent link failed WCAG AA. This darker orange keeps the brand
     reading while clearing 4.5:1 in both directions. */
  --accent-strong: #c2410c;
  --accent-strong-hover: #9a3412;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --bg-main: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border: #e2e8f0;
  --success: #047857;         /* #10B981 on --success-bg was 2.24:1 */
  --success-bg: #D1FAE5;
  --radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-strong);
}

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

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 50px;
  /* The <img> carries width/height attributes so the browser can reserve the box
     before the file loads. Constraining only `height` in CSS lets the width
     ATTRIBUTE win on the other axis, which rendered the logo 358px wide at 50px
     tall — stretched. Any rule that sizes one axis of this image must free the
     other. */
  width: auto;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
}

.nav-links a:hover {
  color: var(--accent-strong);
}

footer {
  background: var(--primary);
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
}

footer a {
  color: #CBD5E1;
}

footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Components */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-box {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
}

.search-box input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent-strong);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-strong-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
}

.section-padding {
  padding: 4rem 0;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--success-bg);
  color: var(--success);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.verified-badge svg {
  width: 16px;
  height: 16px;
}

/* Categories List */
.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 1.5rem 1rem;
  text-align: center;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Categories that are not built yet: shown so the directory reads honestly,
   but not interactive, because there is no page behind them. */
.category-card-pending {
  display: block;
  /* Was `color: var(--text-muted); opacity: 0.72`, which multiplied a 4.6:1 colour
     down to roughly 2.9:1 and was the site's only Lighthouse contrast failure.
     A dashed border and a solid readable colour say "not clickable" without
     making the label hard to read. */
  color: #475569;
  cursor: default;
  border-style: dashed;
  border-color: var(--border);
  background: transparent;
  box-shadow: none;
}

.category-card-pending:hover {
  border-color: var(--border);
  color: #475569;
  box-shadow: none;
  transform: none;
}

.category-card-pending small {
  display: block;
  margin-top: 0.35rem;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748B;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--primary-light);
  color: white;
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.check-icon {
  color: var(--success);
  font-weight: bold;
}

/* Profile Specifics */
.profile-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.reputation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.rep-item {
  background: var(--bg-main);
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}

.rep-item .platform {
  display: block;
  font-weight: 600;
  color: var(--primary);
}

.rep-item .score {
  display: block;
  font-size: 1.25rem;
  color: var(--text-main);
  margin-top: 0.25rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .nav-links {
    display: flex;
    /* A flex item defaults to min-width:auto, so the nowrap nav refused to shrink
       and pushed the whole document wider than the viewport: every page scrolled
       sideways on a phone and clipped its right edge. overflow-x only contains the
       nav once the item is allowed to be narrower than its content. */
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    gap: 1rem;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .nav-links::-webkit-scrollbar { display: none; } /* Safari and Chrome */
  .contact-actions { flex-direction: column; }
}

/* Breadcrumbs: added 2026-08-18 so a profile page states its own position in the
   directory instead of relying on the header nav alone. */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb a:hover {
  color: var(--accent-strong);
}

.breadcrumb span[aria-hidden] {
  margin: 0 0.4rem;
  opacity: 0.6;
}

/* Replaces the hero search box, whose input was ignored: the button navigated to
   /painters/ no matter what was typed. These go where they say they go. */
.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.listing-names {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.listing-names li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.listing-names li:last-child {
  border-bottom: none;
}

.listing-names a {
  font-weight: 600;
  color: var(--primary);
}

.listing-names a:hover {
  color: var(--accent-strong);
}

@media (max-width: 620px) {
  .contact-actions .btn,
  .hero-categories .btn {
    width: 100%;
  }
}
