/* Author pages (2026-11-13, Max): the header is the mark «Мост» at the width of the page, the frame of Т in ink and the
   author's photograph filling the arch of Э (the same construction as the poster cover, public/poster.css). Below: the
   name, the role, a short bio, then the author's stories. Proportions come from the mark, 506.584 x 93.477, stroke 17. */
.author-flow { padding-top: clamp(8px, 2vw, 28px); padding-bottom: 96px; }
.author-mark { position: relative; width: 100%; aspect-ratio: 506.584 / 93.477; container-type: inline-size; }
.author-frame {
  position: absolute; left: 0; top: 5.255%; width: 51.729%; height: 94.745%; box-sizing: border-box;
  border: calc(100cqw * 17 / 506.584) solid var(--text); border-bottom: 0; z-index: 1;
  animation: author-frame 1.1s cubic-bezier(.16, 1, .3, 1) both;
}
.author-arch {
  position: absolute; left: 48.476%; top: 0; width: 51.524%; height: 98.645%; overflow: hidden; background: var(--line);
  clip-path: polygon(0.00% 100.00%, 0.70% 91.09%, 1.62% 82.65%, 2.73% 74.68%, 4.03% 67.17%, 5.51% 60.10%, 7.15% 53.48%, 8.93% 47.29%, 10.85% 41.53%, 12.90% 36.19%, 15.04% 31.26%, 17.29% 26.73%, 19.61% 22.59%, 22.54% 18.08%, 25.55% 14.10%, 28.62% 10.66%, 31.73% 7.73%, 34.86% 5.30%, 37.98% 3.35%, 41.08% 1.86%, 44.13% 0.81%, 47.11% 0.20%, 50.00% 0.00%, 52.89% 0.20%, 55.87% 0.81%, 58.92% 1.86%, 62.02% 3.35%, 65.14% 5.30%, 68.27% 7.73%, 71.38% 10.66%, 74.45% 14.10%, 77.46% 18.08%, 80.39% 22.59%, 82.71% 26.73%, 84.96% 31.26%, 87.10% 36.19%, 89.15% 41.53%, 91.07% 47.29%, 92.85% 53.48%, 94.49% 60.10%, 95.97% 67.17%, 97.27% 74.68%, 98.38% 82.65%, 99.30% 91.09%, 100.00% 100.00%);
  animation: author-arch 1.2s cubic-bezier(.16, 1, .3, 1) .14s both;
}
.author-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; scale: 1.06; transition: scale 1.2s cubic-bezier(.16, 1, .3, 1); }
.author-mark:hover .author-arch img { scale: 1.12; }
.author-copy { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px clamp(24px, 4vw, 64px); margin-top: clamp(24px, 3.6vw, 52px); }
.author-copy h1 { margin: 0; font-size: clamp(44px, 6.2vw, 112px); line-height: .96; letter-spacing: -.045em; font-weight: 300; }
.author-about { display: grid; gap: 12px; align-content: start; padding-top: .5em; font-family: 'ONY One', Arial, sans-serif; }
.author-role { color: var(--secondary); font-size: 14px; line-height: 20px; }
.author-bio { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; }
.author-count { color: var(--secondary); font-size: 14px; line-height: 20px; }
.author-stories { margin-top: clamp(48px, 6vw, 96px); padding-top: 20px; border-top: 1px solid var(--text); }
.author-all { margin-top: 48px; }
@keyframes author-frame { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes author-arch { from { opacity: 0; translate: 0 18%; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 760px) {
  .author-copy { grid-template-columns: 1fr; }
  .author-about { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .author-frame, .author-arch { animation: none; } .author-arch img { transition: none; } }

/* All authors: a list with a small arch for each. */
.author-index { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--text); }
.author-index a {
  display: grid; grid-template-columns: 96px minmax(0, 1.4fr) minmax(0, 1fr) 120px; gap: 24px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); font-family: 'ONY One', Arial, sans-serif;
}
.author-index a:hover { text-decoration: none; }
.author-index a:hover .author-index-name { color: var(--accent-text, var(--accent)); }
.author-index-arch { display: block; width: 96px; aspect-ratio: 261.014 / 92.21; overflow: hidden; background: var(--line); clip-path: polygon(0% 100%, 2.73% 74.68%, 7.15% 53.48%, 12.9% 36.19%, 19.61% 22.59%, 28.62% 10.66%, 37.98% 3.35%, 50% 0%, 62.02% 3.35%, 71.38% 10.66%, 80.39% 22.59%, 87.1% 36.19%, 92.85% 53.48%, 97.27% 74.68%, 100% 100%); }
.author-index-arch img { width: 100%; height: 100%; object-fit: cover; }
.author-index-name { font-family: 'ONY Lavr', Arial, sans-serif; font-size: clamp(22px, 2vw, 32px); line-height: 1.1; letter-spacing: -.03em; transition: color .2s; }
.author-index-role, .author-index-count { color: var(--secondary); font-size: 14px; line-height: 20px; }
.author-index-count { text-align: right; }
@media (max-width: 760px) {
  .author-index a { grid-template-columns: 72px minmax(0, 1fr); gap: 4px 16px; }
  .author-index-arch { width: 72px; grid-row: span 3; }
}


/* 2026-11-13 (Max): no mark header on author pages and no arches in the list. On the list a pointer over an author shows
   the picture of their latest story large beside the pointer; it follows the pointer and changes from author to author. */
.author-head { padding-top: clamp(24px, 4vw, 64px); }
.author-head .author-copy { margin-top: 0; }
.author-index a { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 120px; padding: 18px 0; }
.author-index-name { font-size: clamp(26px, 2.6vw, 40px); }
.author-peek {
  position: fixed; z-index: 40; left: 0; top: 0; width: clamp(280px, 30vw, 460px); aspect-ratio: 3 / 2; overflow: hidden;
  pointer-events: none; opacity: 0; scale: .92; transition: opacity .25s ease, scale .45s cubic-bezier(.16, 1, .3, 1);
  translate: var(--px, 0) var(--py, 0); box-shadow: 0 24px 70px #0000002e; background: var(--line);
}
.author-peek img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-peek.is-on { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse) { .author-peek { display: none; } }
@media (max-width: 760px) { .author-index a { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .author-peek { transition: opacity .2s; scale: 1; } }
