:root {
  --ink: #1C1C1E;
  --ink-soft: #5B6470;
  --rose: #B23A5C;
  --rose-light: #F0A8BE;
  --rose-pale: #FBEAEF;
  --sand: #F6F4EE;
  --paper: #FCFBF8;
  --line: #DCD8CC;
  --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

.wrap, .section-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; left: -9999px; }

/* ===== HEADER / NAV ===== */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 251, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-row { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo-word { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; color: var(--ink); }
.logo-word .accent { color: var(--rose); }

nav.primary { display: flex; align-items: center; gap: 32px; }
nav.primary ul { list-style: none; display: flex; gap: 28px; }
nav.primary a { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--rose); }

.btn { display: inline-block; padding: 10px 20px; border-radius: 4px; font-size: 14px; font-weight: 600; font-family: 'IBM Plex Sans', sans-serif; cursor: pointer; border: none; }
.btn-primary { background: var(--rose); color: white; }
.btn-primary:hover { background: #9A3050; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }

.menu-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 20px 24px 0; }
.breadcrumb ol { list-style: none; display: flex; gap: 6px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--rose); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--line); }

/* ===== PAGE HERO (smaller than homepage) ===== */
.page-hero { background: var(--ink); color: var(--sand); padding: 48px 24px 56px; }
.page-hero .eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose-light); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.page-hero .eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--rose-light); }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 44px); color: #FDFBF6; max-width: 720px; }
.page-hero p.sub { margin-top: 14px; font-size: 16px; color: #B8BEC6; max-width: 560px; }

/* ===== SECTIONS ===== */
section { padding: 56px 24px; }
.section-head { max-width: 600px; margin-bottom: 32px; }
.section-head .eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.section-head .eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--rose); }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); }
.section-head p { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 20px 24px; background: var(--sand); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line);
}
.filter-chip {
  font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); cursor: pointer;
}
.filter-chip[aria-pressed="true"] { background: var(--rose); color: white; border-color: var(--rose); }
.filter-count { margin-left: auto; font-size: 13px; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; }

/* ===== CATEGORY GRID ===== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 24px 20px; transition: border-color 0.15s ease, transform 0.15s ease; }
.cat-card:hover { border-color: var(--rose); transform: translateY(-2px); }
.cat-icon { width: 32px; height: 32px; margin-bottom: 16px; color: var(--rose); }
.cat-card h3 { font-size: 16px; margin-bottom: 4px; }
.cat-card p { font-size: 13px; color: var(--ink-soft); }

/* ===== LISTING CARDS ===== */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.listing-card { border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--paper); }
.listing-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.listing-logo { width: 44px; height: 44px; border-radius: 8px; background: var(--ink); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-weight: 600; color: white; font-size: 16px; }
.pill { display: flex; align-items: center; gap: 5px; background: var(--rose-pale); color: var(--rose); font-size: 11px; font-weight: 600; padding: 5px 10px 5px 8px; border-radius: 100px; }
.pill svg { width: 12px; height: 12px; }
.pill.unverified { background: #F1EFE7; color: var(--ink-soft); }
.listing-card h3 { font-size: 17px; margin-bottom: 4px; }
.listing-card .cat-label { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; font-family: 'IBM Plex Mono', monospace; margin-bottom: 14px; }
.listing-card .desc { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 18px; }
.listing-meta { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; }
.view-all { text-align: center; margin-top: 40px; }

/* pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; }
.page-btn[aria-current="page"] { background: var(--ink); color: white; border-color: var(--ink); }

/* ===== HOW IT WORKS (dark) ===== */
.how-section { background: var(--ink); color: var(--sand); }
.how-section .section-head .eyebrow { color: var(--rose-light); }
.how-section .section-head .eyebrow::before { background: var(--rose-light); }
.how-section .section-head h2 { color: #FDFBF6; }
.how-section .section-head p { color: #9AA5B1; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.how-step { border-top: 2px solid var(--rose-light); padding-top: 20px; }
.how-num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--rose-light); margin-bottom: 12px; }
.how-step h3 { color: #FDFBF6; font-size: 17px; margin-bottom: 8px; }
.how-step p { color: #9AA5B1; font-size: 14px; line-height: 1.55; }

/* ===== CTA ===== */
.cta-section { background: var(--rose); color: white; text-align: center; }
.cta-section h2 { color: white; font-size: clamp(24px, 3.5vw, 32px); max-width: 560px; margin: 0 auto; }
.cta-section p { color: #FBE3EA; margin: 14px auto 28px; max-width: 460px; font-size: 15px; }
.cta-section .btn-ghost { background: white; color: var(--rose); border: none; font-weight: 600; }

/* ===== PROFILE PAGE ===== */
.profile-header { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.profile-logo { width: 84px; height: 84px; border-radius: 12px; background: var(--ink); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-weight: 600; color: white; font-size: 32px; flex-shrink: 0; }
.profile-meta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: #B8BEC6; }
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.badge-item { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 18px; text-align: center; }
.badge-item svg { width: 22px; height: 22px; color: var(--rose); margin: 0 auto 10px; }
.badge-item p { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.profile-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.profile-block { margin-bottom: 32px; }
.profile-block h2 { font-size: 20px; margin-bottom: 14px; }
.profile-block p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.sidebar-card { background: var(--sand); border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin-bottom: 20px; }
.sidebar-card h3 { font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.sidebar-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sidebar-row:last-child { border-bottom: none; }
.service-tag { display: inline-block; background: var(--rose-pale); color: var(--rose); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 100px; margin: 0 6px 6px 0; }

/* ===== FOOTER ===== */
footer.site { background: var(--ink); color: #9AA5B1; padding: 56px 24px 28px; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-inner h4 { font-size: 13px; color: #FDFBF6; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 9px; font-size: 14px; }
.footer-inner a:hover { color: var(--rose-light); }
.footer-bottom { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 12px; font-family: 'IBM Plex Mono', monospace; flex-wrap: wrap; gap: 12px; }

/* ===== MOBILE ===== */
@media (max-width: 860px) {
  nav.primary ul, nav.primary .btn-ghost { display: none; }
  .menu-toggle { display: block; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .filter-count { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .how-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 44px 20px; }
  .page-hero { padding: 40px 20px 48px; }
  .profile-header { flex-direction: column; }
}

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