.author-gallery { width: 100%; }
.author-gallery__mosaic, .author-gallery__mosaic * { box-sizing: border-box; }
.author-gallery__mosaic {
  --constellation-center: 42%;
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-height: 600px;
  height: clamp(600px, 55vw, 680px);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 48%, color-mix(in srgb, var(--surface, #17130e) 65%, transparent), transparent 72%);
  border: 0;
}
.author-gallery__field { position: absolute; inset: 0; }
.author-gallery__field::before {
  position: absolute;
  top: var(--constellation-center);
  left: 50%;
  width: clamp(190px, 25vw, 310px);
  aspect-ratio: 1.25;
  content: '';
  background:
    radial-gradient(ellipse at 52% 47%, color-mix(in srgb, var(--manuscript-pigment, #f0dfbd) 12%, transparent), transparent 57%),
    radial-gradient(ellipse at 40% 50%, #9a695923, transparent 58%),
    radial-gradient(ellipse at 63% 57%, #8998a426, transparent 55%);
  mask-image: radial-gradient(ellipse closest-side, #000 35%, transparent 100%);
  transform: translate(-50%, -50%) rotate(-17deg);
  transition: opacity .45s ease;
  pointer-events: none;
}
.author-gallery__mosaic.is-expanded .author-gallery__field::before { opacity: 0; }
.author-gallery__field::after {
  position: absolute;
  top: var(--constellation-center);
  left: 50%;
  width: min(78%, 740px);
  aspect-ratio: 1.3;
  content: '';
  opacity: 0;
  background: conic-gradient(from -35deg, transparent, #a5a6a234 20%, transparent 42%, #ad786a42 67%, #d5b4783c 79%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side, transparent 39%, #000 68%, transparent 100%);
  filter: blur(4px);
  pointer-events: none;
}
.author-gallery__mosaic.is-expanded .author-gallery__field::after { animation: constellation-wave 1.05s cubic-bezier(.15,.57,.2,1) both; }
@keyframes constellation-wave {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-28deg) scale(.19); }
  24% { opacity: .9; }
  to { opacity: 0; transform: translate(-50%, -50%) rotate(24deg) scale(1.15); }
}
.author-gallery__toggle {
  --toggle-offset: 58px;
  --toggle-accent: var(--focus, #d5b478);
  position: absolute;
  z-index: 2;
  top: var(--constellation-center);
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid color-mix(in srgb, var(--toggle-accent) 50%, transparent);
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--toggle-accent) 14%, transparent), transparent 80%),
    color-mix(in srgb, var(--surface, #17130e) 92%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--toggle-accent) 12%, transparent);
  color: var(--ink, #f0dfbd);
  font: inherit;
  font-size: 13px;
  letter-spacing: .11em;
  white-space: nowrap;
  transform: translate(-50%, calc(-50% + var(--toggle-offset)));
  cursor: pointer;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), border-color .22s ease, box-shadow .22s ease, color .22s ease;
}
.author-gallery__mosaic.is-expanded .author-gallery__toggle {
  --toggle-offset: 0px;
  border-color: color-mix(in srgb, var(--toggle-accent) 26%, transparent);
  background: color-mix(in srgb, var(--surface, #17130e) 77%, transparent);
  box-shadow: none;
}
.author-gallery__mosaic:not(.is-expanded) .author-gallery__toggle::before {
  position: absolute;
  top: -78px;
  left: 50%;
  width: 140px;
  height: 79px;
  content: '';
  background: linear-gradient(transparent, color-mix(in srgb, var(--toggle-accent) 48%, transparent)) center bottom / 1px 18px no-repeat;
  transform: translateX(-50%);
}
.author-gallery__toggle-mark {
  position: relative;
  flex: 0 0 14px;
  height: 14px;
  color: var(--toggle-accent);
}
.author-gallery__toggle-mark::before,
.author-gallery__toggle-mark::after {
  position: absolute;
  width: 5px;
  height: 5px;
  content: '';
  border: solid currentColor;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.author-gallery__toggle-mark::before { top: 1px; left: 1px; border-width: 1px 0 0 1px; }
.author-gallery__toggle-mark::after { right: 1px; bottom: 1px; border-width: 0 1px 1px 0; }
.author-gallery__toggle[aria-expanded='true'] .author-gallery__toggle-mark::before,
.author-gallery__toggle[aria-expanded='true'] .author-gallery__toggle-mark::after { transform: rotate(180deg); }
.author-gallery__mosaic .author-gallery__toggle:focus-visible {
  border-color: var(--toggle-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--toggle-accent) 23%, transparent);
}
.author-gallery__toggle:focus-visible { outline: 1px solid var(--toggle-accent); outline-offset: 4px; }
@media (hover: hover) {
  .author-gallery__mosaic .author-gallery__toggle:hover {
    border-color: var(--toggle-accent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--toggle-accent) 23%, transparent);
  }
}
.author-gallery__image { position: absolute; z-index: -1; inset: 0; display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; opacity: .16; filter: saturate(.55); mask-image: radial-gradient(ellipse at 50% 48%, #000 15%, transparent 75%); pointer-events: none; }
.author-gallery__constellation { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.author-gallery__constellation--narrow { display: none; }
.author-gallery__connection {
  opacity: 0;
  stroke: var(--muted, #baa784);
  stroke-opacity: .3;
  stroke-width: .75;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke .25s ease, stroke-opacity .25s ease, opacity .2s ease, stroke-dashoffset .28s ease;
}
.author-gallery__mosaic.is-expanded .author-gallery__connection {
  opacity: 1;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  transition: stroke .25s ease, stroke-opacity .25s ease, opacity .32s ease var(--connection-delay);
  animation: constellation-connect .42s ease-out var(--connection-delay) backwards;
}
@keyframes constellation-connect {
  from { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
}
.author-gallery__connection.is-active { stroke: var(--manuscript-pigment, #f0dfbd); stroke-opacity: .85; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--manuscript-pigment, #f0dfbd) 30%, transparent)); }
.author-gallery__mosaic.has-highlight .author-gallery__connection:not(.is-active) { stroke-opacity: .12; }
.author-gallery__mosaic .author-gallery__connection.is-active { stroke-width: 1.1; }
.author-gallery__tile {
  --star-offset: -22px;
  --sweep-x: var(--sweep-x-wide);
  --sweep-y: var(--sweep-y-wide);
  position: absolute;
  z-index: 1;
  left: var(--star-x);
  top: var(--star-y);
  display: block;
  width: clamp(90px, 10vw, 132px);
  height: 68px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink, #f0dfbd);
  font: inherit;
  box-shadow: none;
  transform: translate(-50%, var(--star-offset));
  cursor: pointer;
  transition: left .48s cubic-bezier(.46,0,.28,1), top .48s cubic-bezier(.52,0,.31,1);
}
.author-gallery__mosaic:not(.is-expanded) .author-gallery__tile {
  left: calc(50% + var(--gather-x));
  top: calc(var(--constellation-center) + var(--gather-y));
}
.author-gallery__mosaic.is-expanded .author-gallery__tile {
  transition: left .76s cubic-bezier(.13,.67,.2,1) var(--spread-delay), top .76s cubic-bezier(.28,.42,.26,1) var(--spread-delay);
  animation: constellation-sweep .76s ease-out var(--spread-delay);
}
@keyframes constellation-sweep {
  0%, 100% { transform: translate(-50%, var(--star-offset)); }
  38% { transform: translate(calc(-50% + var(--sweep-x)), calc(var(--star-offset) + var(--sweep-y))); }
}
.author-gallery__tile:hover { background: transparent; }
.author-gallery__tile:focus-visible { outline: none; }
.author-gallery__tile:focus-visible .author-gallery__name { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--focus, #d5b478); }
.author-gallery__star { position: absolute; left: 50%; top: 22px; width: 5px; height: 5px; border-radius: 50%; background: var(--manuscript-pigment, #f0dfbd); box-shadow: 0 0 12px color-mix(in srgb, var(--manuscript-pigment, #f0dfbd) 40%, transparent); transform: translate(-50%, -50%); transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease; pointer-events: none; }
.author-gallery__mosaic:not(.is-expanded) .author-gallery__star { opacity: var(--gather-light); }
.author-gallery__star::before { position: absolute; inset: -5px; content: ''; background: var(--manuscript-pigment, #f0dfbd); clip-path: polygon(50% 0,59% 41%,100% 50%,59% 59%,50% 100%,41% 59%,0 50%,41% 41%); opacity: .65; }
.author-gallery__star::after { position: absolute; inset: -13px; content: ''; border: 1px solid var(--manuscript-pigment, #f0dfbd); border-radius: 50%; opacity: 0; transform: scale(.7); transition: transform .25s ease, opacity .25s ease; }
.author-gallery__tile:is(:hover, :focus-visible) .author-gallery__star { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 22px color-mix(in srgb, var(--manuscript-pigment, #f0dfbd) 65%, transparent); }
.author-gallery__tile:is(:hover, :focus-visible) .author-gallery__star::after { opacity: .3; transform: scale(1); }
.author-gallery__tile.is-highlighted .author-gallery__star { transform: translate(-50%, -50%) scale(1.27); }
.author-gallery__tile.is-highlighted .author-gallery__star::after { opacity: .6; transform: scale(1.07); }
.author-gallery__tile.is-related .author-gallery__star { transform: translate(-50%, -50%) scale(1.16); }
.author-gallery__tile:active .author-gallery__star { transform: translate(-50%, -50%) scale(.94); }
.author-gallery__name { position: absolute; top: 35px; left: 0; right: 0; display: block; max-width: 100%; font-size: clamp(12px, 1.1vw, 16px); line-height: 1.6; letter-spacing: .08em; text-align: center; overflow-wrap: anywhere; text-shadow: 0 0 9px var(--page, #17130e), 0 2px 14px var(--page, #17130e); }
.author-gallery__mosaic:not(.is-expanded) .author-gallery__name { visibility: hidden; opacity: 0; }
.author-gallery__mosaic.is-expanded .author-gallery__name { transition: opacity .28s ease calc(var(--spread-delay) + 390ms); }
.author-gallery__tile[data-kind='collection'] { --star-offset: -30px; width: clamp(118px, 14vw, 160px); height: 84px; }
.author-gallery__tile[data-kind='collection'] .author-gallery__star { top: 30px; width: 8px; height: 8px; }
.author-gallery__tile[data-kind='collection'] .author-gallery__star::after { inset: -15px; opacity: .32; transform: scale(1); }
.author-gallery__tile[data-kind='collection'] .author-gallery__name { top: 48px; font-size: 13px; letter-spacing: .15em; }
:root[data-theme='light'] .author-gallery__image { opacity: .11; filter: saturate(.25); }
:root[data-theme='light'] .author-gallery__star, :root[data-theme='light'] .author-gallery__tile:is(:hover, :focus-visible) .author-gallery__star { box-shadow: none; }
:root[data-theme='light'] .author-gallery__star::before { opacity: .35; }
:root[data-theme='light'] .author-gallery__connection.is-active { filter: none; }
body.author-works-open { overflow: hidden; }
.author-works, .author-works * { box-sizing: border-box; }
.author-works {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--ink, #f0dfbd);
}
.author-works[open] { display: block; }
.author-works::backdrop { background: transparent; }
.author-works__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: color-mix(in srgb, var(--page, #0a0805) 70%, transparent); }
.author-works__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 640px);
  overflow: hidden;
  background: var(--surface, #18140f);
  border-left: 1px solid var(--line, #f0dfbd1c);
  box-shadow: -22px 0 70px #0005;
  transform-origin: 0 0;
  will-change: transform;
}
.author-works[data-phase='closing'] .author-works__panel { pointer-events: none; }
.author-works__cover { position: absolute; z-index: 0; top: 0; right: 0; left: 0; height: clamp(180px, 32svh, 280px); background-image: var(--author-cover-image, none); background-size: cover; background-position: center; background-repeat: no-repeat; opacity: .18; pointer-events: none; }
.author-works__cover-veil { position: absolute; inset: 0; display: block; background: linear-gradient(180deg, transparent, var(--surface, #18140f)); pointer-events: none; }
.author-works__header { position: relative; z-index: 1; flex: 0 0 auto; padding: max(28px, env(safe-area-inset-top, 0px)) 76px 22px 28px; }
.author-works__header h2 { margin: 0; font: inherit; font-size: 23px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.author-works__count { margin: 8px 0 0; color: var(--muted, #baa784); font-size: 12px; }
.author-works__count[hidden] { display: none; }
.author-works__close { position: absolute; top: max(20px, env(safe-area-inset-top, 0px)); right: 20px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink, #f0dfbd); font: 28px/1 sans-serif; }
.author-works__body { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; padding: 0 28px max(28px, env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--muted, #806746) var(--surface, #18140f); scrollbar-width: thin; }
.author-works__empty { display: flex; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.author-works__empty p { margin: 0; color: var(--muted, #baa784); font-size: 14px; }
.author-works__empty button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--ink, #f0dfbd); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 6px; }
.author-works__stage {
  --leaf-height: clamp(218px, 47svh, 465px);
  --manuscript-pigment: #382b20;
  display: grid;
  width: 100%;
  height: var(--leaf-height);
  padding: 13px;
  border: 0;
  border-radius: 0;
  background: #dbc6a1;
  touch-action: pan-y pinch-zoom;
  cursor: zoom-in;
}
.author-works__stage:hover { background: #e3cfad; }
.author-works__leaf {
  display: grid;
  padding: 15px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #936b3f57;
  background: radial-gradient(ellipse at 50% 40%, #f3e8d2, #e4d0ae);
}
.author-works__leaf .manuscript-art {
  width: min(100%, calc((var(--leaf-height) - 58px) * var(--preview-ratio, 1)));
  max-width: 100%;
}
.author-works__navigation {
  display: flex;
  min-height: 52px;
  gap: 17px;
  align-items: center;
  justify-content: center;
  color: var(--muted, #baa784);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.author-works__navigation button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink, #f0dfbd);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.author-works__navigation button:disabled { opacity: .34; cursor: default; }
.author-works__strip {
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 3px 3px 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  list-style: none;
  scrollbar-width: thin;
}
.author-works__strip > li { flex: 0 0 78px; min-width: 0; margin: 0; padding: 0; }
.author-works__work { display: block; width: 100%; min-height: 44px; padding: 0; border: 1px solid var(--line, #e0cda317); border-radius: 0; background: var(--page, #120f0b); color: var(--muted, #baa784); font: inherit; cursor: pointer; }
.author-works__work:is(:hover,[aria-pressed='true']) { border-color: var(--muted, #d7b57699); color: var(--ink, #f0dfbd); }
.author-works__work[aria-pressed='true'] { box-shadow: inset 0 -2px #a95e40; }
.author-works__preview { display: grid; height: 67px; padding: 8px; place-items: center; }
.author-works__preview .manuscript-art { width: min(100%, calc(51px * var(--preview-ratio, 1))); max-width: 100%; margin: 0; pointer-events: none; }
.author-works__number { display: block; padding: 0 4px 8px; font-size: 10px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.author-works button:focus-visible { outline: 2px solid var(--ink, #f0dfbd); outline-offset: 2px; }
@media (max-width: 739px) {
  .author-gallery__mosaic { min-height: 680px; height: 680px; }
  .author-gallery__constellation--wide { display: none; }
  .author-gallery__constellation--narrow { display: block; }
  .author-gallery__tile { --sweep-x: var(--sweep-x-narrow); --sweep-y: var(--sweep-y-narrow); left: var(--star-mobile-x); top: var(--star-mobile-y); width: 84px; height: 64px; }
  .author-gallery__tile[data-kind='collection'] { width: 108px; }
  .author-gallery__name { font-size: 12px; letter-spacing: .03em; }
  .author-works__panel { top: auto; width: 100%; height: min(90svh, 100dvh); border-left: 0; border-top: 1px solid var(--line, #f0dfbd24); border-radius: 18px 18px 0 0; }
  .author-works__header { padding: 24px 70px 20px 20px; }
  .author-works__close { top: 16px; right: 12px; }
  .author-works__body { padding-right: 20px; padding-left: 20px; }
  .author-works__stage { --leaf-height: clamp(190px, 43svh, 390px); }
  .author-works__strip > li { flex-basis: 68px; }
}
body.motion-reduced .author-gallery__mosaic :is(.author-gallery__toggle, .author-gallery__tile, .author-gallery__name, .author-gallery__star, .author-gallery__connection),
body.motion-reduced .author-gallery__toggle-mark::before,
body.motion-reduced .author-gallery__toggle-mark::after,
body.motion-reduced .author-gallery__mosaic .author-gallery__star::after,
body.motion-reduced .author-gallery__mosaic .author-gallery__field::before,
body.motion-reduced .author-gallery__mosaic .author-gallery__field::after { transition: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .author-gallery__mosaic :is(.author-gallery__toggle, .author-gallery__tile, .author-gallery__name, .author-gallery__star, .author-gallery__connection),
  .author-gallery__toggle-mark::before,
  .author-gallery__toggle-mark::after,
  .author-gallery__mosaic .author-gallery__star::after,
  .author-gallery__mosaic .author-gallery__field::before,
  .author-gallery__mosaic .author-gallery__field::after { transition: none; animation: none; }
}
