/* gayhub — single stylesheet, no external dependencies */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f3efe9;
  --text: #17181a;
  --muted: #54585f;
  --border: #e3ded6;
  --accent: #8a2b4e;
  --accent-ink: #ffffff;
  --accent-soft: #f7e8ee;
  --link: #7d2a49;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 16, 12, 0.06), 0 10px 28px rgba(23, 16, 12, 0.06);
  --maxw: 1060px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: ui-serif, Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111216;
    --surface: #181a20;
    --surface-2: #1f222b;
    --text: #ecebe7;
    --muted: #a9aeb9;
    --border: #2c303a;
    --accent: #f0a6c4;
    --accent-ink: #1b1016;
    --accent-soft: #241a21;
    --link: #f0a6c4;
    --shadow: none;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.68 var(--font-sans);
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 0 0 10px 0;
  z-index: 50;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand-mark { display: block; width: 30px; height: 30px; color: var(--accent); }
.brand:hover { text-decoration: none; color: var(--accent); }

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px; right: -160px; top: -220px;
  background: radial-gradient(circle at 30% 30%, rgba(180, 74, 112, 0.20), transparent 68%);
}
.hero::after {
  width: 420px; height: 420px; right: 60px; bottom: -260px;
  background: radial-gradient(circle at 50% 50%, rgba(96, 118, 168, 0.18), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  .hero::before { background: radial-gradient(circle at 30% 30%, rgba(240, 166, 196, 0.14), transparent 68%); }
  .hero::after { background: radial-gradient(circle at 50% 50%, rgba(120, 148, 210, 0.16), transparent 70%); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 64px 22px 58px;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 14px;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 600;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 62ch;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 15.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-2); filter: none; }

.btn svg { width: 15px; height: 15px; flex: none; }

/* ---------- sections & cards ---------- */

.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.42rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 2.2em 0 0.6em;
  font-weight: 600;
  text-wrap: balance;
}
.section-head h2 { margin: 0; }

h3 {
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 700;
  margin: 1.9em 0 0.4em;
}

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card h3 { margin: 0; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.card .card-kicker {
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 2px;
}

.card-link { margin-top: auto; padding-top: 10px; font-size: 15px; font-weight: 600; }
.card-link a { text-decoration: none; }
.card-link a:hover { text-decoration: underline; }

/* ---------- article ---------- */

.post { max-width: 720px; }
.post > p { margin: 0 0 1.15em; }
.post ul, .post ol { margin: 0 0 1.3em; padding-left: 1.25em; }
.post li { margin-bottom: 0.55em; }
.post li::marker { color: var(--accent); }

.post h2 { scroll-margin-top: 90px; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 10px;
}

.disclosure {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin: 18px 0 34px;
  max-width: 68ch;
}

.pull {
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  padding: 14px 18px;
  margin: 1.8em 0;
  border-radius: 0 10px 10px 0;
  color: var(--text);
}
.pull p { margin: 0; }

/* ---------- offer cards ---------- */

.offers { display: grid; gap: 16px; margin: 2em 0 1em; }

.offer {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.offer-body { flex: 1 1 320px; }
.offer-name { font-weight: 700; font-size: 1.02rem; margin: 0 0 4px; }
.offer-blurb { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.offer-tag {
  display: inline-block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 8px;
}
.offer .btn { flex: none; align-self: center; }

/* ---------- table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 1.6em 0 2em;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}
caption {
  text-align: left;
  padding: 14px 18px 0;
  font-size: 13px;
  color: var(--muted);
}
th, td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
thead th {
  background: var(--surface-2);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; white-space: nowrap; }
td .verdict { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- callout / steps ---------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.4em 0 1.8em; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 1em;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.note {
  font-size: 14px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 1.6em 0;
}

/* ---------- related / footer ---------- */

.related {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding-top: 28px;
}
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.related li a { text-decoration: none; font-weight: 600; font-size: 15.5px; }
.related li a:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 64px;
  padding: 44px 0 30px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 30px;
}
.footer-grid h3 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin: 0 0 10px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- utilities ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero-inner { padding: 44px 22px 40px; }
  .section { padding: 38px 0; }
  .nav { gap: 2px; }
  .nav a { padding: 7px 8px; font-size: 14px; }
  .offer { padding: 18px; }
  .offer .btn { width: 100%; justify-content: center; }
}
