.cover-atlas-link {
  display:block;
  width:fit-content;
  margin:1.3rem auto 0;
  font-size:.78rem;
  color:#fff3a3;
  text-shadow:1px 2px 0 #23113e;
  text-underline-offset:.3em;
}
body:has(.atlas-index[open]) .cover.dismissed { transition:none; }

#poemas.atlas-index {
  --atlas-ground:#171421;
  --atlas-ink:#f4eadf;
  --atlas-accent:#eaf48c;
  --atlas-rule:#d3bde436;
  color:var(--atlas-ink);
  background:var(--atlas-ground);
  padding-block:clamp(1.25rem,4vw,3.5rem) clamp(3rem,7vw,6rem);
  overflow-x:clip;
  scrollbar-color:#8d7492 var(--atlas-ground);
}
#poemas.atlas-index [hidden] { display:none; }
.atlas-index .atlas-close {
  display:flex;
  align-items:center;
  min-height:44px;
  margin:0;
  color:#e7cee2;
  text-decoration:underline;
  text-underline-offset:.36em;
  cursor:pointer;
}
.atlas-close::marker { content:""; }
.atlas-open-label,
.atlas-index[open] .atlas-closed-label { display:none; }
.atlas-index[open] .atlas-open-label { display:inline; }
.atlas-index :focus-visible { outline:1.5px solid color-mix(in srgb,var(--atlas-accent) 72%,transparent); outline-offset:3px; }
.atlas-filters input:focus-visible { outline:none; border-color:color-mix(in srgb,var(--atlas-accent) 75%,transparent); box-shadow:0 0 0 1px color-mix(in srgb,var(--atlas-accent) 35%,transparent); }
.atlas-inner { width:min(100%,100rem); margin-inline:auto; }

.atlas-heading {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  column-gap:1rem;
  row-gap:.65rem;
  padding-block:.65rem clamp(.75rem,1.6vw,1.45rem);
}
.atlas-heading h2 {
  font:400 clamp(2.8rem,6.35vw,6.25rem)/.86 var(--serif);
  letter-spacing:-.045em;
}
.atlas-heading em { color:var(--atlas-accent); font-weight:400; }
.atlas-count {
  color:#d5bfda;
  font-size:.74rem;
  letter-spacing:.065em;
  font-variant-numeric:tabular-nums;
}

.atlas-filters {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.35rem .85rem;
  padding-block:0 .9rem;
}
.atlas-filters label { flex:1 1 14rem;max-width:25rem; }
.atlas-filters input,.atlas-reset {
  display:block;
  width:100%;
  min-height:44px;
  padding:.58rem .76rem;
  border:1px solid var(--atlas-rule);
  border-radius:0;
  background:#211c2c;
  color:var(--atlas-ink);
  font:inherit;
  font-size:max(.8rem,16px);
  color-scheme:dark;
}
.atlas-filters input::placeholder { color:#e4d1df; opacity:.86; }
.atlas-reset {
  width:auto;
  border-color:transparent;
  background:none;
  color:var(--atlas-accent);
  text-decoration:underline;
  text-underline-offset:.28em;
  font-size:.78rem;
}
.atlas-visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.atlas-empty { padding-block:1.2rem 3rem; color:#e3cce0; }

.atlas-index .anthology-index {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:0;
  margin:0;
}
.atlas-section {
  display:grid;
  grid-template-columns:minmax(9rem,15.75rem) minmax(0,1fr);
  gap:clamp(.95rem,3vw,2.75rem);
  padding-block:clamp(1.15rem,2.9vw,3.15rem);
  border-top:1px solid var(--atlas-rule);
  content-visibility:auto;
  contain-intrinsic-size:auto 290px;
}
.atlas-section h3 {
  align-self:start;
  color:#f4dfd8;
  font:400 clamp(1.8rem,3.35vw,3.75rem)/.93 var(--serif);
  letter-spacing:-.035em;
  text-wrap:balance;
}
.atlas-index .atlas-poems {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,10.8rem),1fr));
  align-items:start;
  gap:clamp(.8rem,2vw,1.6rem);
  margin:0;
}
.atlas-index .atlas-tile { margin:0; min-width:0; }
.atlas-tile a {
  display:grid;
  gap:.45rem;
  border-bottom:1px solid var(--atlas-rule);
  padding-bottom:.57rem;
  text-decoration:none;
}
.atlas-title {
  min-height:2.1em;
  font:400 clamp(1.03rem,1.6vw,1.4rem)/1.09 var(--serif);
  letter-spacing:.003em;
}
.atlas-art {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  aspect-ratio:1.66;
  background-color:var(--bg,#2e2737);
  border:1px solid #f1d8f140;
}
.atlas-art > * {
  position:absolute;
  z-index:auto;
  isolation:isolate;
  inset:0;
  width:100%;
  height:100%;
  min-height:0;
  max-height:none;
  border:0;
  box-shadow:none;
  aspect-ratio:auto;
}
.atlas-art :is(.edition-scene,.suardiaz-scape,.constellation-art,.alabarda-field)::after { display:none; }
.atlas-art :is(.edition-scene,.suardiaz-scape,.poem-art) { transition:transform .64s cubic-bezier(.2,.7,.3,1); }
.atlas-tile a:is(:hover,:focus-visible) { color:var(--atlas-accent); }
.atlas-tile a:is(:hover,:focus-visible) .atlas-art { border-color:#eaf48c9c; }
.atlas-tile a:is(:hover,:focus-visible) .atlas-art > * { transform:scale(1.065); }
.atlas-art .closing-scene i { translate:none; }
.atlas-art .rhythm-art { display:grid; min-height:0; border:0; }
.atlas-art .rhythm-art i { transform:scaleY(1); opacity:.83; }
.atlas-art .dawn-windows,.atlas-art .glow-flare { opacity:.8; }
.atlas-art .road-marks,.atlas-art .glow-flare { transform:none; }
.atlas-art .universe-sky { z-index:0; }
.atlas-art .inocentes-art { display:grid; }
.atlas-art .inocentes-ink { opacity:.9; font-size:clamp(.67rem,2vw,1.65rem); }
.atlas-art .inocentes-slip { transform:translate(4%,120%) rotate(-1deg); font-size:.62rem; }
.atlas-art .suitcase-red { opacity:.9; }
.atlas-art .mirage { --bowl-size:65%; }
.atlas-art .mirage-bowl,.atlas-art .mirage-tree,.atlas-art .mirage-sand { top:50%; }
.atlas-art .stream-stone { width:38%; min-width:0; }
.atlas-art .stream-stone:nth-child(2) { width:22%; }
.atlas-art .stream-leaf { width:15%; min-width:0; }
.atlas-art .white-wall-egg { top:15%; left:55%; width:43%; min-width:0; }
.atlas-art :is(.apple-fruit,.sand-spool) { width:32%; min-width:0; }

.atlas-chalk {
  background:
    linear-gradient(119deg,transparent 49%,#292722 49.4%,#211e18 50.5%,transparent 51%),
    linear-gradient(146deg,#615b4c,#35332a 72%);
}
.atlas-chalk i {
  position:absolute;
  inset:8% 59% 13% 18%;
  transform:rotate(-19deg);
  border:1px solid #ddd0ad88;
  background:repeating-linear-gradient(0deg,transparent 0 23%,#dbcda392 25%,transparent 28% 49%);
}
.atlas-chalk i:last-child { inset:17% 21% 10% 56%; transform:rotate(16deg); }
.atlas-grass i {
  position:absolute;
  inset:-10% -15% -10% 20%;
  transform:rotate(-33deg);
  background:
    repeating-linear-gradient(92deg,#9a845e48 0 1px,transparent 1px 6px),
    radial-gradient(ellipse at 58% 57%,#b39a6070,transparent 68%);
  mask-image:linear-gradient(112deg,transparent,#000 40%);
}

.atlas-samples {
  margin-top:1rem;
  border-top:1px solid var(--atlas-rule);
}
.atlas-samples > summary {
  width:fit-content;
  padding:.83rem .1rem;
  font-size:.82rem;
  color:#e7cee2;
  cursor:pointer;
}
.atlas-samples[open] > summary { margin-bottom:1rem; }
.atlas-samples .poem-list {
  margin-top:0;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,14.5rem),1fr));
}
@media (max-width:960px) {
  .atlas-section { grid-template-columns:minmax(0,1fr); }
  .atlas-index .atlas-poems { grid-template-columns:repeat(auto-fill,minmax(min(100%,10.5rem),1fr)); }
}
@media (max-width:425px) {
  .atlas-filters { grid-template-columns:minmax(0,1fr); }
  .atlas-title { font-size:1.15rem; }
}
@media (prefers-reduced-motion:reduce) {
  .atlas-art * { transition:none; }
  .atlas-tile a:is(:hover,:focus-visible) .atlas-art > * { transform:none; }
}

.atlas-study {
  --preview-ink:#bc9fbd;
  display:grid;
  grid-template-columns:minmax(0,2.55fr) minmax(0,1fr);
  gap:.66rem;
  align-items:stretch;
}

.atlas-authors {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:clamp(22rem,56svh,42rem);
  border:1px solid var(--atlas-rule);
  background:
    radial-gradient(ellipse at 77% 74%,#292c4d8c,transparent 63%),
    radial-gradient(ellipse at 41% 31%,#4d294c69,transparent 56%),
    #13131e;
}
.atlas-authors::before,.atlas-authors::after {
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
}
.atlas-authors::before {
  inset:0;
  background:
    repeating-radial-gradient(ellipse at 40% 34%,transparent 0 10.75%,#d0a0bd18 10.88% 11%,transparent 11.16% 18%),
    linear-gradient(141deg,transparent 43%,#9ba4c821 43.12%,transparent 43.24%);
  mask-image:radial-gradient(ellipse,#000 17%,transparent 76%);
}
.atlas-authors::after {
  inset:2.5% 1.5%;
  border:1px solid #cb9abe24;
  mask-image:conic-gradient(from -16deg,transparent 0 7%,#000 9% 18%,transparent 20% 30%,#000 31% 43%,transparent 45% 57%,#000 59% 68%,transparent 70% 82%,#000 83% 95%,transparent 97%);
}
.atlas-cluster {
  position:absolute;
  left:var(--wide-x);
  top:var(--wide-y);
  width:min(21%,10.25rem);
  aspect-ratio:164 / 78;
  translate:-50% -50%;
  transition:opacity .32s;
}
.atlas-cluster[data-muted] { opacity:.32; }
.atlas-cluster:focus-within { z-index:2; }
.atlas-cluster:has(.atlas-author[aria-pressed="true"]) { z-index:1; }
.atlas-cluster .atlas-author {
  position:absolute;
  top:calc(100% - .2rem);
  left:50%;
  translate:-50% 0;
  z-index:1;
  width:max-content;
  max-width:124%;
  min-height:34px;
  padding:.22rem .36rem;
  border:1px solid transparent;
  border-radius:2px;
  background:none;
  color:var(--atlas-ink);
  font:inherit;
  font-size:clamp(.68rem,1.10vw,.88rem);
  line-height:1.18;
  text-align:center;
  text-wrap:balance;
  text-shadow:0 1px .35em #100b17,0 1px .65em #100b17;
  transition:background-color .3s,border-color .3s,color .3s;
}
.atlas-cluster .atlas-author:is(:hover,:focus-visible,[aria-pressed="true"]) {
  background:#332638;
  border-color:color-mix(in srgb,var(--constellation-ink) 50%,transparent);
  color:var(--constellation-ink);
}
.atlas-cluster .atlas-author:disabled { cursor:default; }

.constellation-figure { position:absolute;inset:0; }
.constellation-line,.constellation-star {
  position:absolute;
  left:var(--point-x);
  top:var(--point-y);
}
.constellation-line {
  inline-size:var(--line-length);
  block-size:1px;
  background:var(--constellation-ink);
  transform:rotate(var(--line-angle));
  transform-origin:0 50%;
  opacity:.47;
  pointer-events:none;
}
.constellation-star {
  z-index:1;
  display:grid;
  place-items:center;
  inline-size:24px;
  block-size:24px;
  translate:-50% -50%;
  touch-action:manipulation;
}
.constellation-star::after {
  content:"";
  inline-size:5px;
  block-size:5px;
  border-radius:50%;
  background:var(--constellation-ink);
  box-shadow:0 0 .58rem color-mix(in srgb,var(--constellation-ink) 66%,transparent);
  transition:box-shadow .25s,background-color .25s,scale .25s;
}
.constellation-star:only-child::after { inline-size:8px;block-size:8px; }
.constellation-star[data-muted] { opacity:.27; pointer-events:none; }
.constellation-star:is(:hover,:focus-visible,.constellation-current)::after {
  scale:1.4;
  background:#fff7e5;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--constellation-ink) 36%,transparent),0 0 .9rem var(--constellation-ink);
}
.constellation-star:focus-visible { border-radius:50%; outline-offset:0; }

.atlas-preview {
  position:relative;
  isolation:isolate;
  display:grid;
  align-items:end;
  overflow:hidden;
  min-height:10rem;
  border:1px solid color-mix(in srgb,var(--preview-ink) 43%,transparent);
  background:#1d1826;
}
.atlas-map-image {
  position:absolute;
  z-index:-1;
  inset:0;
  overflow:hidden;
  pointer-events:none;
}
.atlas-map-image .atlas-art {
  position:absolute;
  inset:0;
  border:0;
  aspect-ratio:auto;
}
.atlas-map-image:not(:empty)::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,#13101a 0%,#13101aee 10%,#13101a30 50%,transparent 73%);
}
.atlas-map-poem {
  display:flex;
  align-items:end;
  justify-content:space-between;
  outline-offset:-5px;
  gap:.65rem;
  padding:clamp(.8rem,1.8vw,1.5rem);
  min-height:52px;
  color:#fff3e6;
  text-decoration:none;
}
.atlas-map-poem:is(:hover,:focus-visible) .atlas-map-title { text-decoration:underline;text-underline-offset:.15em; }
.atlas-map-author,.atlas-map-title { display:block; }
.atlas-map-author {
  padding-bottom:.4rem;
  color:var(--preview-ink);
  font-size:.72rem;
}
.atlas-map-title { font:400 clamp(1.45rem,2.38vw,3rem)/.96 var(--serif); }
.atlas-map-arrow { flex:none;color:var(--preview-ink);font-size:1.3rem; }

.atlas-catalog {
  border-top:1px solid var(--atlas-rule);
  margin-top:clamp(.9rem,2vw,1.5rem);
}
.atlas-catalog > summary {
  width:fit-content;
  padding:.83rem .1rem;
  font-size:.82rem;
  color:#e7cee2;
  cursor:pointer;
}
.atlas-catalog[open] > summary { margin-bottom:1rem; }

@media (prefers-reduced-motion:no-preference) {
  .atlas-index[open] .constellation-star { animation:constellation-appear .48s calc(var(--point-step) * 36ms) ease-out both; }
  @keyframes constellation-appear {
    from { opacity:0; }
  }
  .atlas-map-image .atlas-art { animation:atlas-art-appear .46s ease-out both; }
  @keyframes atlas-art-appear {
    from { opacity:.08;transform:scale(1.035); }
    to { opacity:1;transform:scale(1); }
  }
}
@media (min-width:1025px) {
  .atlas-index:not(:has(.atlas-catalog[open])) { padding-block-end:1.2rem; }
}
@media (max-width:1024px) {
  .atlas-study { grid-template-columns:minmax(0,1fr); }
  .atlas-preview { min-height:clamp(9.2rem,22svh,14rem); }
  .atlas-map-image:not(:empty)::after {
    background:linear-gradient(90deg,#13101aec,#13101a42 61%,transparent),linear-gradient(0deg,#13101aa8,transparent 72%);
  }
}
@media (max-width:780px) {
  .atlas-authors { min-height:clamp(19.25rem,47svh,29rem); }
  .atlas-cluster { left:var(--compact-x);top:var(--compact-y);width:min(29%,9rem); }
  .atlas-cluster .atlas-author { min-height:32px; }
  .constellation-star { inline-size:20px;block-size:20px; }
  .atlas-map-poem { padding:.65rem .75rem; }
}
@media (max-width:425px) {
  #poemas.atlas-index { padding-block-start:.8rem; }
  .atlas-cluster .atlas-author { font-size:.67rem; }
  .atlas-filters label { flex-basis:11rem; }
}
@media (prefers-reduced-motion:reduce) {
  .atlas-cluster,.atlas-author,.constellation-star::after { transition:none; }
}
