/* Drag Queen Name Generator — shared styles */
/* Self-hosted Poppins (Latin subset) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff") format("woff"); }

:root {
  --ink: #1b1230;
  --ink-soft: #4d4463;
  --plum: #2a1747;
  --plum-deep: #1d0f33;
  --magenta: #c81d6b;
  --magenta-dark: #a3135a;
  --gold: #e0a63a;
  --cream: #fbf7f2;
  --paper: #ffffff;
  --line: #e8dfd5;
  --tint: #f5eef8;
  --ok: #17724a;
  --err: #b3261e;
  --radius: 10px;
  --maxw: 1100px;
  --serif: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--magenta-dark); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .6em; color: var(--plum); font-weight: 700; }
h1 { font-size: clamp(1.85rem, 4.6vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
li { margin-bottom: .35em; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff;
  padding: 10px 16px; border-radius: 6px; z-index: 100; text-decoration: none;
}
.skip-link:focus { left: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 242, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); font-family: var(--serif); font-weight: 700; font-size: 1.02rem; line-height: 1.1; }
.brand:hover { color: var(--plum); }
.brand svg { flex: none; }
.brand span small { display: block; font-family: var(--sans); font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta-dark); margin-top: 3px; }
.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  white-space: nowrap;
  display: block; padding: 8px 13px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .9rem;
}
.site-nav a:hover { background: var(--tint); color: var(--plum); }
.site-nav a[aria-current="page"] { background: var(--plum); color: #fff; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; background: transparent; border: 1.5px solid var(--plum);
  color: var(--plum); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer;
}
.menu-toggle .bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.menu-toggle .bars::before, .menu-toggle .bars::after, .menu-toggle .bars i {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s, top .2s;
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars i { top: 5px; }
.menu-toggle .bars::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .bars i { opacity: 0; }

@media (max-width: 960px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { border-radius: 8px; padding: 12px 14px; }
  .header-inner { position: relative; }
  .no-js-nav, html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, transform .15s, border-color .15s;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: #fff; }
.btn-light { background: #fff; color: var(--plum); }
.btn-light:hover { background: var(--gold); color: var(--plum-deep); }
.btn-small { padding: 7px 14px; min-height: 38px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { background: var(--plum-deep); color: #f6eefc; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 29, 107, .35), transparent 65%); pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: #e3d6f0; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .btn-ghost:hover { background: #fff; color: var(--plum); }

.spin-card { background: var(--paper); color: var(--ink); border-radius: 16px; padding: 28px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.spin-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.spin-name {
  font-family: var(--serif); font-size: clamp(1.45rem, 3.6vw, 2rem); color: var(--plum); font-weight: 700;
  min-height: 2.6em; display: flex; align-items: center; margin: 16px 0; line-height: 1.15; word-break: break-word;
}
.spin-row { display: flex; gap: 10px; flex-wrap: wrap; }
.spin-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .95rem; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); }
@media (max-width: 640px) { .section { padding: 44px 0; } }

.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.style-grid li { margin: 0; }
.style-card {
  display: block; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.style-card:hover { border-color: var(--magenta); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(42, 23, 71, .08); color: var(--ink); }
.style-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.style-card p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 12px; }
.style-card .ex { font-family: var(--serif); color: var(--magenta-dark); font-weight: 600; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--plum); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--serif);
}
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--ink-soft); margin: 0; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.points h3 { font-size: 1.1rem; }
.points p { color: var(--ink-soft); margin: 0; }

.cta-band { background: var(--plum); color: #f1e6fb; text-align: center; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 36em; margin: 0 auto 22px; color: #dccdef; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--plum-deep); color: #e9dcf6; padding: 40px 0 44px; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { margin: 0; max-width: 40em; color: #dccdef; }
.breadcrumb { font-size: .88rem; margin-bottom: 14px; color: #c9b8dd; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Prose / legal ---------- */
.prose { padding: 48px 0 72px; }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.updated { display: inline-block; background: var(--tint); border-radius: 999px; padding: 4px 14px; font-size: .88rem; font-weight: 600; color: var(--plum); margin-bottom: 24px; }
.callout { background: var(--tint); border-left: 4px solid var(--magenta); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 0 0 1.4em; }
.callout p:last-child { margin: 0; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 32px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--tint); color: var(--plum); }
.table-wrap { overflow-x: auto; }

/* ---------- Tool ---------- */
.tool-wrap { padding: 40px 0 24px; }
.tool-grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.panel h2 { font-size: 1.25rem; margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .85rem; margin-top: 4px; }
select, input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #cfc4d8; border-radius: 8px;
  padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 140px; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--plum); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.error-text { color: var(--err); font-size: .88rem; margin-top: 4px; min-height: 0; }
.error-text:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.form-actions .btn-primary { flex: 1 1 auto; }

.results-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.results-head h2 { margin: 0; font-size: 1.25rem; }
.notice { font-size: .92rem; color: var(--ink-soft); background: var(--tint); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
.notice:empty { display: none; }
.name-list { list-style: none; padding: 0; margin: 0; }
.name-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 4px; border-bottom: 1px solid var(--line); margin: 0;
}
.name-row:last-child { border-bottom: 0; }
.name-text { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--plum); word-break: break-word; flex: 1 1 200px; }
.row-actions { display: flex; gap: 8px; }
.btn-chip {
  border: 1.5px solid var(--plum); background: #fff; color: var(--plum); border-radius: 999px; font: inherit;
  font-weight: 600; font-size: .9rem; padding: 8px 16px; min-height: 40px; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-chip:hover { background: var(--plum); color: #fff; }
.btn-chip[aria-pressed="true"] { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.btn-chip.danger { border-color: var(--err); color: var(--err); }
.btn-chip.danger:hover { background: var(--err); color: #fff; }
.fav-panel { margin-top: 28px; }
.fav-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.fav-head h2 { margin: 0; font-size: 1.25rem; }
.fav-head .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-state { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.status {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--plum-deep); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: opacity .2s, transform .2s; pointer-events: none; z-index: 80; max-width: calc(100% - 32px); text-align: center;
}
.status.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.fade-in { animation: fadeIn .3s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) { .tool-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--plum); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--magenta); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 16px; color: var(--ink-soft); }
.faq .answer p:last-child { margin: 0; }

.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.tips li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0; }
.tips strong { color: var(--plum); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-message { border-radius: 8px; padding: 12px 16px; margin-top: 16px; font-weight: 600; }
.form-message:empty { display: none; }
.form-message.ok { background: #e6f4ec; color: var(--ok); }
.form-message.bad { background: #fbe9e7; color: var(--err); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-deep); color: #cdbfe0; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .brand small { color: var(--gold); }
.footer-brand p { font-size: .95rem; max-width: 26em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 36px; padding-top: 20px; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0; }
.notfound .big { font-family: var(--serif); font-size: clamp(4rem, 14vw, 8rem); color: var(--magenta); line-height: 1; margin: 0 0 12px; }

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

/* ---------- Author card ---------- */
.author { display: flex; gap: 18px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--magenta); border-radius: var(--radius); padding: 20px; margin-bottom: 32px; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--plum); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.author p { margin: 0 0 .4em; }
.author .author-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--plum); margin: 0; }
.author .author-role { font-size: .88rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta-dark); margin-bottom: .7em; }
.byline { margin: 0 0 1em; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 480px) { .author { flex-direction: column; } }

/* ---------- Responsive refinements ---------- */
[id] { scroll-margin-top: 84px; }
@media (max-width: 960px) {
  .js .site-nav { box-shadow: 0 12px 24px rgba(27, 18, 48, .12); max-height: calc(100vh - 64px); overflow-y: auto; }
  .site-nav a { white-space: normal; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .panel { padding: 18px; }
  .name-row { padding: 12px 0; }
  .name-text { font-size: 1.25rem; flex-basis: 100%; }
  .row-actions { width: 100%; }
  .row-actions .btn-chip { flex: 1; }
  .hero-actions .btn { flex: 1 1 100%; }
  .spin-card { padding: 20px; }
  .page-head { padding: 28px 0 32px; }
  .cta-band { padding: 44px 0; }
}
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .brand { font-size: 1rem; gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .menu-toggle { padding: 7px 12px; }
}
@media (min-width: 1500px) {
  :root { --maxw: 1200px; }
  body { font-size: 1.0625rem; }
}
