/* ============================================================
   UBeLong — Design System
   "Where you belong." — A warm, welcoming community for LGBTQ+ adults.
   Palette: deep teal + warm amber/honey + cream
   ============================================================ */

:root {
  /* ---- Color palette ---- */
  --teal-900: #0d3b3a;
  --teal-800: #124745;
  --teal-700: #1a5e5b;
  --teal-600: #22746f;
  --teal-500: #2d8a83;
  --teal-300: #6fb5ae;
  --teal-100: #d6ece9;

  --amber-600: #c8771a;
  --amber-500: #e08c2a;
  --amber-400: #eaa645;
  --amber-300: #f2c275;
  --amber-200: #f7d9a6;
  --amber-100: #fcefda;

  --cream: #fbf6ee;
  --cream-deep: #f4ead7;
  --ink: #20302f;
  --ink-soft: #3d524f;
  --muted: #6b807c;
  --line: #e3d9c5;

  /* ---- Semantic colors ---- */
  --bg: var(--cream);
  --bg-alt: #ffffff;
  --bg-deep: var(--teal-900);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --text-muted: var(--muted);
  --text-on-deep: #f7efe0;
  --text-on-deep-muted: #b9d2cd;
  --primary: var(--teal-700);
  --primary-hover: var(--teal-600);
  --accent: var(--amber-500);
  --accent-hover: var(--amber-600);
  --danger: #b3322a;
  --success: #2d7a4f;
  --border: var(--line);

  /* ---- Typography ---- */
  --font-head: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* ---- Spacing & radius ---- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 34px;
  --r-full: 999px;

  --sh-sm: 0 1px 2px rgba(13,59,58,.08);
  --sh-md: 0 6px 24px rgba(13,59,58,.10);
  --sh-lg: 0 18px 50px rgba(13,59,58,.16);

  --maxw: 1180px;
  --gut: clamp(18px, 4vw, 40px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-600); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--teal-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }

/* ---- Layout helpers ---- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 9vw, 110px); }
.section--tight { padding-block: clamp(40px, 6vw, 70px); }
.section--deep { background: var(--bg-deep); color: var(--text-on-deep); }
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }
.lead { font-size: clamp(1.12rem, 2vw, 1.32rem); color: var(--text-soft); max-width: 60ch; }
.section--deep .lead { color: var(--text-on-deep-muted); }
.mx-auto { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: .8em;
}
.section--deep .eyebrow { color: var(--amber-300); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85em 1.5em; border-radius: var(--r-full);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #2a1700; box-shadow: var(--sh-sm); }
.btn--primary:hover { background: var(--accent-hover); color: #2a1700; box-shadow: var(--sh-md); }
.btn--ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-300); }
.btn--ghost:hover { background: var(--teal-100); color: var(--teal-700); }
.btn--ondeep { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ondeep:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn--lg { font-size: 1.1rem; padding: 1em 1.9em; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ---- Cards ---- */
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--sh-sm);
}
.card--hover { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.card--deep { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--text-on-deep); }

/* ---- Badge ---- */
.badge {
  display: inline-flex; align-items: center; gap: .4em;
  background: var(--teal-100); color: var(--teal-800);
  font-size: .8rem; font-weight: 700; padding: .3em .8em; border-radius: var(--r-full);
}
.badge--accent { background: var(--amber-100); color: var(--amber-600); }
.badge--verified { background: var(--teal-700); color: #fff; }

/* ---- Grid ---- */
.grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---- Pills / chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: .35em;
  background: var(--cream-deep); color: var(--teal-800);
  border: 1px solid var(--border); border-radius: var(--r-full);
  padding: .35em .85em; font-size: .85rem; font-weight: 600;
}

/* ---- Divider ---- */
.rule { height: 1px; background: var(--border); border: 0; margin-block: 0; }
.section--deep .rule { background: rgba(255,255,255,.14); }

/* ---- Accessibility ---- */
:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 2px; border-radius: 4px; }
.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--teal-800); color: #fff; padding: .7em 1.1em; border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

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