/* /vargje, the verses: one plate per poem. Loaded after static/d.css and static/read.css by templates/vargje.html.
   The poet's Albanian is set large in Instrument Serif (it is never translated), and the poet, work, year and the
   two sources sit beside it like a label in a gallery. A plate with long lines is set smaller (is-long,
   is-xlong, from its longest line), so on a desk every poem keeps its own line breaks. Each line is its own element and wraps with a hanging
   indent, so the poem's line breaks stay visible on a phone. Lines rise into view as they are scrolled to (a
   scroll-driven animation: CSS only, no script, and nothing hidden where it is unsupported or motion is reduced). */

.vg-hero { background: radial-gradient(60% 90% at 88% 0%, #FFF3DC 0%, rgba(255,243,220,0) 70%), radial-gradient(50% 70% at 0% 10%, #EEF3FA 0%, rgba(238,243,250,0) 70%); }
.vg-hero .rd-h1 { max-width: 11ch; }

.vg-list { margin-bottom: 104px; border-top: 1px solid var(--line); }
.vg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 48px 0 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
@media (min-width: 1000px) {
  .vg { grid-template-columns: 56px minmax(0, 1fr) 260px; column-gap: 44px; align-items: start; padding: 96px 0 104px; }
}
.vg-n { margin: 0; font: italic 400 26px/1 var(--display); color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
@media (min-width: 1000px) { .vg-n { padding-top: .5em; font-size: 30px; } }

.vg-sq { margin: 0; font: 400 clamp(31px, 3.9vw, 60px)/1.1 var(--display); letter-spacing: -0.02em; color: var(--navy); }
.is-long .vg-sq { font-size: clamp(27px, 3vw, 40px); }   /* lines of 39-52 characters (vargje.html) */
.is-xlong .vg-sq { font-size: clamp(25px, 2.8vw, 38px); }  /* longer still */
.vg-line { display: block; padding-left: 1.1em; text-indent: -1.1em; }
.vg-sq .vg-line + .vg-line { margin-top: .08em; }

.vg-attr { display: grid; gap: 4px; font-size: 16px; line-height: 1.5; color: var(--navy-2); }
@media (min-width: 1000px) { .vg-attr { padding-top: 16px; border-top: 1px solid var(--navy); } }
.vg-attr p { margin: 0; }
.vg-author { font: 600 18px/1.35 var(--ui); font-style: normal; color: var(--navy); }
.vg-work em { font-style: italic; color: var(--navy); }
.vg-source { margin-top: 4px; }
.vg-source summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font: 500 16px var(--ui); color: var(--cobalt); }
.vg-source summary::-webkit-details-marker { display: none; }
.vg-source summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
.vg-source[open] summary::after { transform: rotate(-135deg) translate(-1px, -1px); }
.vg-source p { padding: 0; font-variant-numeric: lining-nums; }
.vg-source a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cobalt); text-underline-offset: 3px; }   /* the 44 px tap floor */

.vg-review { margin: 0; padding: 40px 0 104px; font: italic 400 24px/1.35 var(--display); color: var(--navy-2); text-align: center; }

@supports (animation-timeline: view()) {
  @media screen and (prefers-reduced-motion: no-preference) {
    .vg-line { animation: vg-rise linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
  }
}
@keyframes vg-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vg-source summary::after { transition: none; } }
