:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #222225;
  --muted: #707078;
  --line: #eaeaec;
  --action: #535353;
  --action-hover: #414141;
  --focus-ring: #8a8a92;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: weight;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
body {
  margin: 0;
}
button,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button {
  color: inherit;
}
button[hidden],
[hidden] {
  display: none !important;
}
a,
button,
summary,
textarea {
  outline-offset: 5px;
}
:focus-visible {
  outline: 2px solid var(--focus-ring);
}
button svg {
  display: block;
}
svg {
  flex-shrink: 0;
}
.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: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-200%);
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 8px;
}
.skip-link:focus {
  transform: none;
}
.navigation {
  min-height: 80px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  gap: 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
  background: var(--paper);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.wordmark img {
  display: block;
  width: 120px;
  height: 48px;
}
.primary-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 28px;
  font-size: 13px;
}
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links > a,
.sign-in {
  color: #65656d;
  padding: 12px 0;
  white-space: nowrap;
}
.nav-links > a:hover,
.sign-in:hover {
  color: var(--ink);
}
.nav-actions {
  gap: 24px;
}
.upgrade {
  background: var(--action);
  color: #fff;
  border-radius: 9px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s;
}
.upgrade:hover {
  background: var(--action-hover);
}
.tools-menu {
  position: relative;
}
.tools-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #65656d;
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
}
.tools-menu summary::-webkit-details-marker {
  display: none;
}
.tools-menu summary svg {
  width: 13px;
  height: 13px;
  transition: transform 0.15s;
}
.tools-menu[open] summary svg {
  transform: rotate(180deg);
}
.tools-dropdown {
  position: absolute;
  top: 43px;
  left: -20px;
  width: 310px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px #2020300c;
  border-radius: 14px;
  padding: 7px;
  display: grid;
  gap: 2px;
}
.tools-dropdown a {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
}
.tools-dropdown a:hover {
  background: #f7f7f8;
}
.tools-dropdown span {
  font-size: 13px;
  font-weight: 500;
}
.tools-dropdown small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  place-items: center;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}
.hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 89px 0 70px;
}
.hero h1 {
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(30px, 3.05vw, 43px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -1.7px;
  text-wrap: balance;
  margin: 0 0 31px;
}
.home-composer {
  text-align: left;
  background: #fff;
  border: 1px solid #dfdfe2;
  border-radius: 22px;
  padding: 7px 8px 9px;
  box-shadow:
    0 5px 15px #20203006,
    0 2px 3px #20203005;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.home-composer:focus-within {
  border-color: #b4b4bc;
  box-shadow: 0 5px 20px #20203009;
}
.home-composer textarea {
  display: block;
  resize: none;
  width: 100%;
  min-height: 92px;
  max-height: 220px;
  overflow-y: auto;
  padding: 17px 16px 8px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  border-radius: 16px;
}
.home-composer textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 5px 0 12px;
  min-height: 42px;
}
.composer-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.composer-send {
  display: flex;
  gap: 13px;
  align-items: center;
}
.send-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--action);
  color: #fff;
  transition: background 0.2s;
}
.send-button:disabled {
  background: #eeeef1;
  color: #aaaab0;
}
.send-button:not(:disabled):hover {
  background: var(--action-hover);
}
.send-button svg {
  width: 20px;
  height: 20px;
}
.composer-status {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  min-height: 18px;
  margin: 7px 0 0;
}
.starting-ideas {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.starting-ideas button {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid #e8e8ea;
  border-radius: 999px;
  font-size: 12px;
  padding: 9px 14px;
  color: #6a6a70;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.starting-ideas button:hover {
  background: #f7f7f8;
  color: #29292d;
  border-color: #d2d2d6;
}
.noscript-note {
  font-size: 13px;
  line-height: 1.7;
}
.noscript-note a {
  text-decoration: underline;
}
.characters {
  padding: 0 0 62px;
  scroll-margin-top: 32px;
}
.characters-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.characters h2,
.character-tools h2 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.5px;
  font-weight: 500;
  margin: 0;
}
.characters-heading > a {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.characters-heading > a:hover {
  color: var(--ink);
}
.character-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 23px;
}
.character-filters button {
  font-size: 11px;
  white-space: nowrap;
  padding: 8px 13px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 7px;
}
.character-filters button[aria-pressed="true"] {
  color: #29292d;
  background: #ededf0;
  border-color: #e7e7ea;
}
.character-filters button:hover {
  color: #29292d;
  background: #f4f4f6;
}
.character-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
  margin: 0;
  padding: 0;
}
.character-card {
  min-width: 0;
}
.character-card > button {
  display: block;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  border-radius: 13px;
}
.character-art {
  display: block;
  aspect-ratio: 1.18;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #eeeef1;
  isolation: isolate;
}
.character-art img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}
.character-card[data-category="anime"] img {
  object-position: center 30%;
}
.character-card > button:hover img {
  transform: scale(1.035);
}
.character-use {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 7px;
  background: #fffffff0;
  color: #36363b;
  padding: 9px 11px;
  font-size: 10px;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.character-card > button:hover .character-use,
.character-card > button:focus-visible .character-use {
  opacity: 1;
  transform: translateY(0);
}
.character-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px 0;
}
.character-caption > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.character-caption strong {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.character-caption > span > span {
  font-size: 10px;
  color: var(--muted);
}
.footer {
  max-width: 1224px;
  margin: 0 auto;
  padding: 28px 0 26px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 26px;
}
.footer-top .wordmark {
  font-size: 25px;
}
.footer-top p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.character-tools {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}
.tool-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
}
.tool-links a {
  display: block;
  border-radius: 4px;
}
.tool-links h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin: 0 0 8px;
}
.tool-links p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  max-width: 290px;
}
.tool-links a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-bottom a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 10px;
  color: var(--muted);
}
.footer-bottom nav {
  display: flex;
  gap: 23px;
}
@media (min-width: 1600px) {
  .hero {
    padding-top: 108px;
    padding-bottom: 86px;
  }
}
@media (max-width: 1320px) {
  .footer {
    margin-inline: 48px;
  }
  .navigation {
    gap: 48px;
  }
}
@media (max-width: 1000px) {
  .navigation {
    padding-inline: 28px;
    gap: 40px;
  }
  .hero {
    max-width: 680px;
    padding-top: 74px;
    padding-bottom: 58px;
  }
  main {
    padding-inline: 32px;
  }
  .footer {
    margin-inline: 32px;
  }
  .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 18px;
  }
  .character-caption > span:first-child {
    gap: 7px;
    flex-wrap: wrap;
  }
  .nav-links {
    gap: 23px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 24px;
  }
  .navigation {
    padding: 20px 22px;
    min-height: 76px;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .navigation > .wordmark {
    font-size: 28px;
  }
  .primary-navigation {
    width: 100%;
    flex-basis: 100%;
    gap: 20px;
    align-items: stretch;
    flex-direction: column;
    padding: 10px 0 2px;
  }
  .js .primary-navigation:not(.is-open) {
    display: none;
  }
  .js .nav-toggle {
    display: grid;
  }
  .nav-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .nav-links > a,
  .tools-menu summary {
    padding: 10px 0;
  }
  .nav-actions {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    justify-content: space-between;
  }
  .tools-dropdown {
    position: static;
    width: min(310px, calc(100vw - 44px));
    margin-bottom: 10px;
    box-shadow: none;
  }
  .hero {
    padding: 53px 0 46px;
  }
  .hero h1 {
    font-size: 30px;
    letter-spacing: -1.2px;
    margin-bottom: 25px;
  }
  main {
    padding-inline: 22px;
  }
  .home-composer {
    border-radius: 19px;
  }
  .home-composer textarea {
    font-size: 16px;
    padding: 13px 12px 8px;
    min-height: 104px;
  }
  .composer-toolbar {
    padding-left: 8px;
  }
  .composer-label {
    font-size: 10px;
  }
  .starting-ideas {
    gap: 7px;
  }
  .starting-ideas button {
    font-size: 11px;
    padding: 8px 12px;
  }
  .characters-heading {
    margin-bottom: 16px;
  }
  .characters h2 {
    font-size: 17px;
  }
  .characters-heading > a {
    font-size: 10px;
    gap: 5px;
  }
  .character-filters {
    gap: 3px;
    margin-bottom: 20px;
  }
  .character-filters button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
  .character-art {
    aspect-ratio: 0.95;
    border-radius: 10px;
  }
  .character-caption {
    padding-top: 11px;
  }
  .character-caption > span:first-child {
    display: grid;
    gap: 5px;
  }
  .character-caption strong {
    font-size: 12px;
  }
  .character-caption > span > span {
    font-size: 10px;
  }
  .character-use {
    left: 7px;
    right: 7px;
    bottom: 7px;
    padding: 8px;
    font-size: 9px;
  }
  .characters {
    padding-bottom: 40px;
  }
  .footer {
    margin-inline: 22px;
    padding-top: 24px;
  }
  .footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 21px;
  }
  .footer-top p {
    max-width: 300px;
  }
  .character-tools {
    padding: 28px 0 36px;
  }
  .tool-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 17px;
  }
  .footer-bottom nav {
    flex-wrap: wrap;
    gap: 16px 20px;
  }
  .composer-status {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
