:root {
  color-scheme: light;
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --lilac: #B39DDB;
  --lilac-deep: #7E57C2;
  --blush: #F8BBD0;
  --blush-deep: #E891B2;
  --gold: #D4AF7A;
  --text: #2A1F35;
  --muted: #7A6B87;
  --border: #EDE6F3;
  --shadow: 0 2px 20px rgba(155, 142, 196, .10);
  --shadow-hover: 0 8px 28px rgba(126, 87, 194, .14);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: var(--lilac-deep); }
a:hover { color: var(--text); }
button { color: inherit; }
:focus-visible {
  outline: 3px solid var(--lilac-deep);
  outline-offset: 3px;
}
::selection { background: var(--blush); color: var(--text); }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 12px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 72px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.nav-wrap {
  display: flex;
  width: min(1180px, 100%);
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  padding: 0 24px;
}
.wordmark {
  flex: 0 0 auto;
  color: var(--text);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1;
  text-decoration: none;
}
.wordmark span { color: var(--lilac-deep); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--lilac-deep); }
.nav-search {
  display: flex;
  width: min(230px, 24vw);
  min-width: 170px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  padding: 5px 7px 5px 14px;
}
.nav-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}
.nav-search input::placeholder { color: var(--muted); opacity: 1; }
.nav-search:focus-within { border-color: var(--lilac-deep); }
.search-submit {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--lilac-deep);
  color: var(--surface);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.hero {
  padding: 66px 20px 74px;
  background: linear-gradient(128deg, rgba(179, 157, 219, .23) 0%, rgba(248, 187, 208, .23) 52%, rgba(251, 248, 243, .55) 100%);
  text-align: center;
}
.hero-eyebrow {
  margin: 0 0 16px;
  color: var(--lilac-deep);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 820px;
  margin: 0 auto 14px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.hero h1 em { color: var(--lilac-deep); font-weight: 400; }
.hero-copy {
  max-width: 590px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.gradient-strip {
  height: 3px;
  background: linear-gradient(90deg, var(--lilac), var(--blush), var(--lilac));
}

.generator-card {
  width: min(660px, 100%);
  margin: 34px auto 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  padding: 26px;
  box-shadow: var(--shadow);
  text-align: left;
}
.generator-heading {
  margin: 0 0 13px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}
.generator-label {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.generator-input-row { display: flex; gap: 9px; }
.generator-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg);
  padding: 11px 13px;
  color: var(--text);
  font-size: 14px;
}
.generator-input::placeholder { color: var(--muted); opacity: 1; }
.button-primary {
  min-height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--lilac-deep);
  border-radius: 11px;
  background: var(--lilac-deep);
  padding: 9px 20px;
  color: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: transform .18s ease, background-color .18s ease;
}
.button-primary:hover { transform: translateY(-1px); background: var(--lilac-deep); }
.filter-label {
  margin: 17px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.style-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip {
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  padding: 5px 12px;
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.filter-chip:hover { border-color: var(--lilac-deep); }
.filter-chip[aria-pressed="true"] { border-color: var(--lilac-deep); background: var(--lilac-deep); color: var(--surface); }
.generator-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}
.generator-result {
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg);
  padding: 8px 9px 8px 12px;
}
.generator-result-name {
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}
.generator-result-type { display: block; color: var(--muted); font-family: var(--sans); font-size: 9px; font-weight: 400; }
.copy-button {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 5px 9px;
  color: var(--text);
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.copy-button:hover, .copy-button.is-copied { border-color: var(--lilac-deep); background: var(--lilac-deep); color: var(--surface); }

.content-section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 62px 24px;
}
.section-heading { margin: 0; color: var(--text); font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.section-intro { max-width: 660px; margin: 8px 0 25px; color: var(--muted); font-size: 14px; }
.small-gold-mark { color: var(--gold); }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-card {
  display: flex;
  min-height: 138px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 17px 18px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.category-card:hover { transform: translateY(-2px); border-color: var(--lilac); color: var(--text); box-shadow: var(--shadow-hover); }
.category-icon { font-size: 21px; line-height: 1; }
.category-name { margin: 11px 0 1px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.category-count { color: var(--muted); font-size: 11px; }

.popular-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .64); }
.popular-band .content-section { padding-top: 55px; padding-bottom: 55px; }
.nickname-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.nickname-entry {
  display: flex;
  min-width: 0;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 8px 9px 8px 13px;
}
.nickname-text { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 1.35; }
.nickname-grid-status { min-height: 24px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.platform-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.platform-card {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 11px 17px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow);
}
.platform-icon { font-size: 19px; }
.platform-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; }

.page-hero { padding: 53px 24px 40px; text-align: center; }
.breadcrumbs { margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-hero h1 { max-width: 800px; margin: 0 auto 11px; font-family: var(--serif); font-size: clamp(36px, 6vw, 54px); font-weight: 400; letter-spacing: -.02em; line-height: 1.08; }
.page-hero p:not(.breadcrumbs) { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 15px; }
.page-main { padding-top: 5px; }
.list-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.list-search { width: min(280px, 100%); }
.list-toolbar h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.2; }
.list-count { margin: 0; color: var(--muted); font-size: 12px; }
.soft-girl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.soft-girl-grid .nickname-entry { background: var(--surface); }
.content-card { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 25px; box-shadow: var(--shadow); }
.content-card h2 { margin: 0 0 9px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.2; }
.content-card p { max-width: 72ch; margin: 0; color: var(--muted); font-size: 14px; }
.tips-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.tips-list li { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); padding: 14px; color: var(--muted); font-size: 13px; }
.tips-list strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 13px; font-weight: 500; }
.faq-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.faq-list li { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 15px 17px; }
.faq-list h3 { margin: 0 0 4px; font-size: 14px; font-weight: 500; line-height: 1.45; }
.faq-list p { max-width: 72ch; margin: 0; color: var(--muted); font-size: 13px; }
.related-strip { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.related-strip a { border: 1px solid var(--border); border-radius: 999px; background: var(--surface); padding: 8px 14px; color: var(--text); font-size: 12px; text-decoration: none; }
.related-strip a:hover { border-color: var(--lilac); color: var(--lilac-deep); }

/* Shared dropdown navigation and client-side search */
.nav-dropdown { position: relative; }
.nav-dropdown summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  white-space: nowrap;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: '⌄'; margin-left: 5px; color: var(--gold); }
.nav-dropdown[open] summary, .nav-dropdown summary:hover { color: var(--lilac-deep); }
.nav-dropdown-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 16px);
  left: -18px;
  width: min(480px, 80vw);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 15px;
  box-shadow: var(--shadow-hover);
}
.nav-dropdown-panel-narrow { width: 210px; }
.nav-dropdown-grid, .nav-dropdown-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 10px; margin: 0; padding: 0; list-style: none; }
.nav-dropdown-list { grid-template-columns: 1fr; }
.nav-dropdown-panel a {
  display: block;
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
}
.nav-dropdown-panel a:hover, .nav-dropdown-panel a[aria-current="page"] { background: var(--bg); color: var(--lilac-deep); }
.nav-dropdown-panel .nav-dropdown-all { margin-top: 7px; border-top: 1px solid var(--border); padding-top: 10px; color: var(--lilac-deep); }
.nav-search { position: relative; }
.search-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 9px);
  right: 0;
  width: min(430px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow-hover);
}
.search-panel-status { margin: 0 0 6px; padding: 0 4px; color: var(--muted); font-size: 11px; }
.search-results { display: grid; gap: 5px; max-height: 360px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.search-result { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; border-radius: 9px; padding: 7px 6px 7px 9px; }
.search-result.is-active, .search-result:hover { background: var(--bg); }
.search-result-name { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-family: var(--serif); font-size: 16px; line-height: 1.3; }
.search-result-category { color: var(--muted); font-size: 10px; text-decoration: none; white-space: nowrap; }
.search-result-category:hover { color: var(--lilac-deep); text-decoration: underline; }
.names-coming { margin: 15px 0 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 22px; color: var(--muted); font-family: var(--serif); font-size: 20px; text-align: center; }
.platform-card { text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.platform-card:hover { transform: translateY(-2px); border-color: var(--lilac); color: var(--text); box-shadow: var(--shadow-hover); }

.site-footer { border-top: 1px solid var(--border); padding: 26px 24px 30px; text-align: center; }
.footer-mark { color: var(--text); font-family: var(--serif); font-size: 19px; font-weight: 500; text-decoration: none; }
.footer-mark span { color: var(--lilac-deep); }
.footer-copy { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.toast {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: 20px;
  left: 16px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  transform: translateY(24px);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: var(--text);
  padding: 10px 18px;
  color: var(--surface);
  font-size: 12px;
  font-weight: 400;
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

/* Styleguide specimens */
.swatch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.swatch { min-height: 88px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.swatch-color { display: block; width: 100%; height: 30px; margin-bottom: 8px; border: 1px solid rgba(42, 31, 53, .12); border-radius: 6px; }
.swatch-name { font-size: 11px; font-weight: 500; }
.swatch-value { display: block; color: var(--muted); font-size: 10px; }
.type-sample { margin: 10px 0; }
.sample-display { font-family: var(--serif); font-size: clamp(30px, 5vw, 48px); line-height: 1.1; }
.sample-section { font-family: var(--serif); font-size: 32px; line-height: 1.2; }
.sample-body { max-width: 70ch; color: var(--muted); font-size: 16px; }
.sample-caption { color: var(--muted); font-size: 12px; }
.button-samples { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button-secondary { min-height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 8px 15px; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 500; }
.button-secondary:hover { border-color: var(--lilac-deep); color: var(--lilac-deep); }
.sample-card { max-width: 360px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 18px; box-shadow: var(--shadow); }
.sample-card .category-icon { font-size: 23px; }

@media (max-width: 900px) {
  .nav-wrap { gap: 18px; }
  .nav-links { gap: 14px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nickname-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soft-girl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .site-header, .nav-wrap { min-height: 64px; }
  .nav-wrap { flex-wrap: wrap; gap: 0 12px; padding: 11px 16px; }
  .wordmark { font-size: 23px; }
  .nav-links { display: none; }
  .nav-search { width: min(190px, 42vw); min-width: 128px; margin-left: auto; }
  .search-panel { width: min(430px, calc(100vw - 32px)); }
  .hero { padding: 48px 16px 52px; }
  .hero-eyebrow { font-size: 10px; }
  .hero-copy { font-size: 14px; }
  .generator-card { margin-top: 24px; padding: 18px 15px; border-radius: 16px; }
  .generator-results { grid-template-columns: 1fr; }
  .generator-heading { font-size: 22px; }
  .content-section { padding: 42px 16px; }
  .section-heading { font-size: 30px; }
  .section-intro { margin-bottom: 20px; font-size: 13px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { min-height: 125px; padding: 14px; }
  .category-name { font-size: 13px; }
  .category-count { font-size: 10px; }
  .popular-band .content-section { padding-top: 40px; padding-bottom: 40px; }
  .nickname-grid { grid-template-columns: 1fr; gap: 8px; }
  .nickname-entry { min-height: 49px; padding: 7px; }
  .nickname-text { font-size: 14px; }
  .copy-button { padding: 5px 7px; font-size: 9px; }
  .platform-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .platform-card { min-height: 48px; padding: 8px 11px; font-size: 12px; }
  .page-hero { padding: 38px 16px 30px; }
  .page-hero p:not(.breadcrumbs) { font-size: 14px; }
  .page-main { padding-top: 0; }
  .list-toolbar { align-items: start; flex-direction: column; gap: 2px; }
  .list-toolbar h2 { font-size: 25px; }
  .soft-girl-grid { grid-template-columns: 1fr; gap: 7px; }
  .soft-girl-grid .nickname-entry { min-height: 47px; }
  .content-card { padding: 19px 16px; }
  .content-card h2 { font-size: 25px; }
  .tips-list { grid-template-columns: 1fr; gap: 8px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { bottom: 14px; }
}
@media (max-width: 360px) {
  .nav-wrap { gap: 9px; }
  .wordmark { font-size: 21px; }
  .nav-search { width: 125px; min-width: 0; }
  .generator-input-row { flex-direction: column; }
  .button-primary { width: 100%; }
  .generator-results { grid-template-columns: 1fr; }
  .category-card { min-height: 119px; padding: 12px; }
  .nickname-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
