* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
}
body {
  margin:0;
  background:#f6f7f9;
  color:#303b4b;
  font:15px/1.8 -apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
}
button,a,summary {
  -webkit-tap-highlight-color:transparent;
}
button {
  font:inherit;
  cursor:pointer;
}
a {
  color:inherit;
  text-decoration:none;
}
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:3px solid #778fb9;
  outline-offset:5px;
}
header {
  max-width:1280px;
  margin:auto;
  padding:27px 40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid #e1e5eb;
}
header>a {
  font-weight:700;
  letter-spacing:.08em;
}
nav {
  display:flex;
  gap:25px;
  font-size:13px;
  color:#677489;
}
main {
  max-width:1280px;
  margin:auto;
  padding:70px 40px;
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:65px;
}
.profile {
  position:sticky;
  top:35px;
  align-self:start;
}
.avatar {
  width:76px;
  height:76px;
  object-fit:cover;
  border-radius:50%;
  margin-bottom:20px;
}
h1 {
  font-size:36px;
  letter-spacing:-.05em;
  margin:0 0 15px;
}
p {
  margin:0 0 20px;
  color:#6a7585;
}
.intro {
  font-size:14px;
}
.eyebrow {
  font-size:10px;
  letter-spacing:.16em;
  color:#8090a8;
  font-weight:600;
}
.tags {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:20px 0 30px;
}
.tags span {
  background:#e9edf4;
  color:#607596;
  border-radius:5px;
  padding:3px 9px;
  font-size:12px;
}
.note {
  border-top:1px solid #dce2ea;
  padding:20px 0;
  font-size:13px;
}
.note h2 {
  font-size:11px;
  letter-spacing:.12em;
  margin:0 0 10px;
  color:#7386a3;
}
.note p {
  margin:0;
}
.note ul {
  padding-left:18px;
  margin:0;
  color:#77818f;
}
.heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  margin:0 0 28px;
}
.heading h2 {
  font-size:29px;
  font-weight:500;
  letter-spacing:-.04em;
  margin:6px 0 0;
}
.heading>span {
  font-size:12px;
  color:#8590a0;
}
.gallery {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:25px;
  align-items:start;
}
.card {
  background:white;
  border:1px solid #e3e7ec;
  border-radius:12px;
  overflow:hidden;
}
.image {
  position:relative;
  width:100%;
  padding:0;
  border:0;
  background:#e9edf3;
  display:block;
  overflow:hidden;
}
.image img {
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  object-position:top;
  display:block;
  transition:transform .4s;
}
.image:hover img {
  transform:scale(1.025);
}
.image span {
  position:absolute;
  bottom:14px;
  right:14px;
  background:#ffffffed;
  border-radius:20px;
  padding:4px 12px;
  font-size:11px;
  color:#43526a;
}
.card-body {
  padding:23px;
}
h3 {
  font-size:22px;
  font-weight:500;
  margin:5px 0 20px;
}
summary {
  cursor:pointer;
  list-style:none;
  border-top:1px solid #edf0f4;
  padding-top:15px;
  font-size:12px;
  color:#70809a;
  display:flex;
  justify-content:space-between;
}
summary::-webkit-details-marker {
  display:none;
}
details[open] summary span {
  transform:rotate(45deg);
}
pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:11px/1.8 ui-monospace,monospace;
  color:#6c7787;
  max-height:300px;
  overflow:auto;
  background:#f7f8fa;
  padding:14px;
  border-radius:6px;
}
.copy {
  background:#edf1f7;
  color:#526a8b;
  border:0;
  border-radius:5px;
  padding:7px 12px;
  margin-top:15px;
  font-size:12px;
}
footer {
  max-width:1200px;
  margin:0 auto;
  padding:25px 40px;
  border-top:1px solid #e1e5eb;
  color:#8a95a5;
  font-size:11px;
  display:flex;
  justify-content:space-between;
}
dialog {
  border:0;
  border-radius:12px;
  padding:14px;
  background:#fff;
  max-width:92vw;
  max-height:92dvh;
}
dialog::backdrop {
  background:#182332b8;
}
dialog img {
  display:block;
  max-width:83vw;
  max-height:78dvh;
  object-fit:contain;
}
dialog button {
  display:block;
  margin-left:auto;
  border:0;
  background:white;
  padding:5px 10px;
}
#status {
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  background:#33435b;
  color:white;
  border-radius:30px;
  padding:10px 22px;
  font-size:13px;
  pointer-events:none;
}
#status:empty {
  display:none;
}
@media(min-width:1100px) {
  .gallery {
    gap:28px;
  }
}
@media(max-width:900px) {
  main {
    gap:30px;
    grid-template-columns:220px minmax(0,1fr);
  }
  .gallery {
    grid-template-columns:1fr;
  }
}
@media(max-width:620px) {
  header {
    padding:21px 22px;
  }
  main {
    padding:35px 22px;
    display:block;
  }
  .profile {
    position:static;
    margin-bottom:45px;
  }
  .avatar {
    float:right;
    width:68px;
    height:68px;
  }
  h1 {
    font-size:32px;
  }
  .intro {
    max-width:95%;
  }
  .note {
    padding:16px 0;
  }
  .gallery {
    grid-template-columns:1fr;
    gap:22px;
  }
  .heading h2 {
    font-size:26px;
  }
  .image img {
    aspect-ratio:4/4.5;
  }
  footer {
    padding:24px 22px;
  }
  nav {
    gap:17px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  .image img {
    transition:none;
  }
}
[hidden] {
  display:none!important;
}
main {
  display:block;
  max-width:1200px;
  min-height:calc(100dvh - 165px);
}
.profile {
  position:static;
  max-width:620px;
  margin:0 auto;
}
.profile h1 {
  max-width:440px;
}
.profile .avatar {
  float:right;
  width:90px;
  height:90px;
}
.profile .intro {
  font-size:16px;
}
.next-page {
  display:inline-flex;
  align-items:center;
  margin-top:25px;
  background:#526b90;
  color:white;
  padding:12px 22px;
  border-radius:8px;
  font-size:14px;
}
.next-page:hover {
  background:#40597e;
}
nav a {
  padding:8px 0;
  border-bottom:2px solid transparent;
}
nav a[aria-current="page"] {
  border-color:#637c9f;
  color:#364d6e;
  font-weight:600;
}
.gallery {
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.prompt-label {
  font-size:12px;
  margin:0;
  color:#7a879b;
}
.copy {
  width:100%;
  margin:12px 0 0;
  padding:10px;
}
pre {
  max-height:330px;
}
.card-body {
  padding:20px;
}
.card h3 {
  margin-bottom:12px;
}
@media(max-width:960px) {
  .gallery {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:620px) {
  .gallery {
    grid-template-columns:1fr;
  }
  .profile {
    margin-bottom:10px;
  }
  .profile .avatar {
    width:68px;
    height:68px;
  }
  .profile h1 {
    max-width:240px;
    font-size:30px;
  }
  .image img {
    aspect-ratio:4/3;
    object-position:50% 20%;
  }
  header {
    gap:12px;
  }
  nav {
    gap:14px;
    font-size:12px;
  }
  main {
    padding-top:35px;
  }
}
/* Refined archive — visual layer */
:root {
  --ink:#28354b;
  --accent:#657faa;
}
body {
  background:radial-gradient(ellipse at 85% 0%,#e6eafa 0,transparent 45%),radial-gradient(ellipse at 0% 55%,#edf0f7 0,transparent 45%),#f8f9fb;
  color:var(--ink);
}
header {
  max-width:1360px;
  padding:25px 48px;
  background:#ffffff78;
  backdrop-filter:blur(18px);
  border-color:#ffffffa8;
  position:relative;
  z-index:2;
}
header>a {
  font-size:15px;
}
nav a {
  transition:color .25s,border-color .25s;
}
main {
  padding:85px 48px 100px;
  max-width:1280px;
}
.profile {
  max-width:740px;
  padding:40px 0;
}
.profile h1 {
  font-size:clamp(38px,5.5vw,64px);
  line-height:1.3;
  letter-spacing:-.065em;
  max-width:550px;
  margin:20px 0 26px;
  font-weight:600;
  word-break:keep-all;
}
.profile>.eyebrow {
  letter-spacing:.25em;
}
.profile .avatar {
  width:112px;
  height:112px;
  border:7px solid #ffffffbc;
  box-shadow:0 15px 45px #465d8320;
  margin-top:20px;
}
.profile .intro {
  line-height:1.9;
  font-size:16px;
}
.tags span {
  border:1px solid #dce3ef;
  background:#ffffff80;
  padding:4px 12px;
}
.note {
  border-color:#d7deea;
  padding:23px 0;
  display:grid;
  grid-template-columns:135px 1fr;
  gap:18px;
}
.note h2 {
  padding-top:3px;
  letter-spacing:.18em;
  font-size:10px;
}
.note p,.note ul {
  font-size:14px;
  line-height:1.9;
}
.next-page {
  padding:15px 25px;
  border-radius:30px;
  box-shadow:0 8px 25px #4c66852b;
  transition:transform .25s,box-shadow .25s;
  background:#425a7e;
}
.next-page:hover {
  transform:translateY(-3px);
  box-shadow:0 14px 30px #4c668536;
}
.heading {
  margin-bottom:40px;
}
.heading h2 {
  font-size:clamp(30px,4vw,44px);
  letter-spacing:-.055em;
  margin-top:12px;
}
.heading>span {
  border:1px solid #dbe2ec;
  border-radius:25px;
  padding:6px 13px;
  font-size:11px;
}
.gallery {
  gap:26px;
}
.card {
  border:1px solid #fff;
  border-radius:18px;
  box-shadow:0 10px 35px #34476c09;
  transition:box-shadow .35s,transform .35s;
  background:#ffffffbd;
}
.card:hover {
  box-shadow:0 20px 50px #34476c19;
  transform:translateY(-5px);
}
.image img {
  transition:transform .8s cubic-bezier(.2,.65,.3,1);
}
.image:hover img {
  transform:scale(1.055);
}
.image:after {
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(transparent 70%,#172a4325);
}
.image span {
  backdrop-filter:blur(8px);
  background:#ffffffd9;
  z-index:1;
}
.card-body {
  padding:25px;
}
.card h3 {
  font-size:28px;
  letter-spacing:-.04em;
}
.copy {
  background:#edf1f8;
  border:1px solid #dde5f0;
  border-radius:8px;
  transition:background .2s,transform .2s;
  color:#526c92;
}
.copy:hover {
  background:#e0e8f4;
}
.copy:active {
  transform:scale(.98);
}
pre {
  background:#f6f8fb;
  border:1px solid #e9edf3;
  padding:16px;
  border-radius:9px;
  scrollbar-width:thin;
  scrollbar-color:#c4cede transparent;
}
footer {
  max-width:1184px;
  padding:25px 0;
  letter-spacing:.08em;
}
footer a:hover {
  color:#425a7e;
}
.reveal {
  opacity:0;
  transform:translateY(26px);
  transition:opacity .8s ease,transform .8s cubic-bezier(.2,.65,.3,1);
}
.reveal.is-visible {
  opacity:1;
  transform:translateY(0);
}
.page-enter {
  animation:pageEnter .6s ease both;
}
@keyframes pageEnter {
  from {
    opacity:0;
    transform:translateY(10px);
  }
  to {
    opacity:1;
    transform:translateY(0);
  }
}
dialog[open] {
  animation:pageEnter .25s ease;
}
#status {
  box-shadow:0 10px 35px #24324c30;
}
@media(max-width:960px) {
  main {
    padding:60px 32px 80px;
  }
  header {
    padding:24px 32px;
  }
  footer {
    margin:0 32px;
  }
  .profile {
    padding:15px 0;
  }
}
@media(max-width:620px) {
  header {
    padding:22px;
  }
  .profile h1 {
    font-size:39px;
    max-width:285px;
  }
  .profile .avatar {
    width:72px;
    height:72px;
    border-width:4px;
    margin-top:8px;
  }
  .profile .intro {
    font-size:14px;
  }
  main {
    padding:42px 22px 65px;
  }
  .note {
    grid-template-columns:90px 1fr;
    gap:14px;
  }
  .note p,.note ul {
    font-size:13px;
  }
  .gallery {
    gap:28px;
  }
  .heading {
    margin-bottom:28px;
  }
  .heading>span {
    font-size:10px;
    padding:4px 10px;
  }
  .card-body {
    padding:24px;
  }
  .image img {
    aspect-ratio:4/4.5;
  }
  .next-page {
    font-size:13px;
  }
  footer {
    margin:0 22px;
    padding:22px 0;
    font-size:10px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
  .reveal {
    opacity:1;
    transform:none;
  }
}
/* Theme toggle and dark palette */
#theme-toggle {
  border: 1px solid #cdd7e6;
  border-radius: 20px;
  padding: 6px 12px;
  background: #ffffff80;
  color: #526784;
  font-size: 12px;
  white-space: nowrap;
}
html {
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="dark"] body {
  background: radial-gradient(ellipse at 85% 0%, #25314b 0, transparent 45%), #141b27;
  color: #e0e7f2;
}
html[data-theme="dark"] header {
  background: #182130cc;
  border-color: #303d52;
}
html[data-theme="dark"] nav a {
  color: #a9b9d0;
}
html[data-theme="dark"] nav a[aria-current="page"] {
  color: #ecf2ff;
  border-color: #9eb7e0;
}
html[data-theme="dark"] p, html[data-theme="dark"] .note ul {
  color: #b2bfd1;
}
html[data-theme="dark"] .eyebrow, html[data-theme="dark"] .note h2 {
  color: #9eb4d4;
}
html[data-theme="dark"] .note, html[data-theme="dark"] footer {
  border-color: #344157;
}
html[data-theme="dark"] .tags span, html[data-theme="dark"] #theme-toggle {
  background: #253248;
  border-color: #3a4c66;
  color: #c3d2e8;
}
html[data-theme="dark"] .card {
  background: #1d2839;
  border-color: #344157;
  box-shadow: 0 12px 38px #00000020;
}
html[data-theme="dark"] .image {
  background: #26334a;
}
html[data-theme="dark"] pre {
  background: #141e2d;
  border-color: #344157;
  color: #c2cede;
  scrollbar-color: #536781 transparent;
}
html[data-theme="dark"] .copy {
  background: #2b3c56;
  color: #d0def3;
  border-color: #415674;
}
html[data-theme="dark"] .copy:hover {
  background: #374e70;
}
html[data-theme="dark"] .next-page {
  background: #9eb6da;
  color: #162236;
}
html[data-theme="dark"] .heading>span {
  border-color: #40516a;
  color: #b7c6dd;
}
html[data-theme="dark"] dialog, html[data-theme="dark"] dialog button {
  background: #1d2839;
  color: #e0e7f2;
}
html[data-theme="dark"] footer, html[data-theme="dark"] footer a:hover {
  color: #a5b5cd;
}
@media(max-width:620px) {
  header {
    padding: 18px 16px;
  }
  nav {
    gap: 10px;
  }
  #theme-toggle {
    padding: 5px 8px;
    font-size: 11px;
  }
  header>a {
    font-size: 13px;
  }
}
/* Bottom page navigation */
.pagination {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin:0 auto 40px;
  padding:0 22px;
}
.pagination button {
  width:42px;
  height:42px;
  border:1px solid #d4ddea;
  border-radius:50%;
  background:#ffffffb0;
  color:#526b90;
  font-size:19px;
  transition:background .2s, opacity .2s;
}
.pagination button:hover:not(:disabled) {
  background:#e3eaf5;
}
.pagination button:disabled {
  opacity:.3;
  cursor:default;
}
.pagination .page-dot {
  width:10px;
  height:10px;
  padding:0;
  border:1px solid #9cacc2;
  border-radius:50%;
  background:transparent;
  position:relative;
}
.pagination .page-dot::before {
  content:'';
  position:absolute;
  inset:-10px;
}
.pagination .page-dot[aria-current="page"] {
  background:#607da5;
  border-color:#607da5;
  box-shadow:0 0 0 4px #607da514;
}
.page-position {
  flex-basis:100%;
  text-align:center;
  font-size:11px;
  letter-spacing:.08em;
  color:#7b8ba2;
}
html[data-theme="dark"] .pagination button {
  background:#253248;
  border-color:#40516a;
  color:#d0def3;
}
html[data-theme="dark"] .pagination button:hover:not(:disabled) {
  background:#374e70;
}
html[data-theme="dark"] .pagination .page-dot[aria-current="page"] {
  background:#b0c7e8;
  border-color:#b0c7e8;
}
html[data-theme="dark"] .page-position {
  color:#a9bad2;
}
/* Persona filters */
.character-filters {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.character-filters button {
  border:1px solid #d7e0ed;
  background:#ffffff90;
  color:#687c99;
  border-radius:24px;
  padding:9px 18px;
  font-size:13px;
  transition:background .2s,color .2s;
}
.character-filters button span {
  font-size:10px;
  margin-left:6px;
  opacity:.7;
}
.character-filters button[aria-pressed="true"] {
  background:#425a7e;
  border-color:#425a7e;
  color:white;
}
.filter-status {
  font-size:11px;
  margin-bottom:24px;
  color:#8290a5;
}
.gender-tag {
  display:inline-block;
  font-size:10px;
  color:#7185a2;
  background:#eef2f8;
  padding:2px 9px;
  border-radius:12px;
  margin-bottom:15px;
}
html[data-theme="dark"] .character-filters button {
  background:#253248;
  border-color:#40516a;
  color:#bacbe2;
}
html[data-theme="dark"] .character-filters button[aria-pressed="true"] {
  background:#adc3e4;
  border-color:#adc3e4;
  color:#182638;
}
html[data-theme="dark"] .gender-tag {
  background:#2b3c56;
  color:#c2d3eb;
}
html[data-theme="dark"] .filter-status {
  color:#a9bad2;
}
/* Prompts start collapsed; copying remains available. */
.prompt-details {
  margin-top:16px;
}
.prompt-details summary {
  align-items:center;
  gap:12px;
  padding:14px 0 2px;
}
.prompt-details summary span {
  display:inline-block;
  transition:transform .2s;
}
.prompt-details[open] summary span {
  transform:rotate(180deg);
}
html[data-theme="dark"] .prompt-details summary {
  border-color:#344157;
  color:#b7cae5;
}
