/* AverPress — publisher site
   Книгите са на първо място: корици, рафтове, витрина.
   Мастиленосиньо, студена хартия, един кехлибарен акцент (капката мастило в писеца).
   Onest = интерфейсът („Aver“). Spectral = книгата („Press“). */

:root {
  --paper:  #eef2eb;
  --sheet:  #fafbf8;
  --ink:    #131b2e;
  --ink-2:  #1d2740;
  --ink-3:  #2a3655;
  --text:   #182036;
  --dim:    #586178;
  --rule:   #d6dcd2;
  --on-ink: #e8ebf2;
  --on-ink-dim: #a9b1c4;
  --amber:  #d59b2d;
  --amber-hi: #f0bd55;
  --amber-deep: #8a5c0b;

  --sans:  'Onest', system-ui, sans-serif;
  --serif: 'Literata', Georgia, serif;

  --wrap: 78rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --shadow-book: 0 1px 1px rgba(0,0,0,.18), 0 18px 30px -14px rgba(8,12,26,.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; }

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,251,248,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; flex: none; }
.brand img { width: 2.1rem; height: 2.1rem; }
.wordmark { font-size: 1.4rem; line-height: 1; letter-spacing: -.01em; }
.wordmark .a { font-family: var(--sans); font-weight: 700; }
.wordmark .p { font-family: var(--serif); font-weight: 400; }

.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a {
  padding: .45rem .8rem; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: .97rem; color: var(--dim);
}
.nav a:hover { color: var(--text); background: var(--paper); }
.nav a[aria-current] { color: var(--text); background: var(--paper); box-shadow: inset 0 -2px 0 var(--amber); }

.langs { position: relative; font-size: .9rem; }
.langs summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .85rem .4rem .65rem; border: 1px solid var(--rule); border-radius: 999px;
  font-weight: 600; color: var(--text); background: var(--sheet);
}
.langs summary:hover, .langs[open] summary { border-color: var(--text); }
.langs summary::after { content: ""; width: .4rem; height: .4rem; margin-left: .1rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.langs summary::-webkit-details-marker { display: none; }
.langs ul {
  position: absolute; right: 0; top: calc(100% + .45rem); z-index: 30;
  min-width: 11rem; padding: .4rem 0;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: .6rem;
  box-shadow: 0 16px 40px -16px rgba(19,27,46,.4);
}
.langs li a { display: block; padding: .4rem 1rem; text-decoration: none; }
.langs li a:hover { background: var(--paper); }
.langs li a[aria-current] { font-weight: 600; }

@media (max-width: 54rem) {
  .top-inner { flex-wrap: wrap; gap: .25rem 1rem; padding-top: .6rem; }
  .langs { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 calc(var(--gutter) * -1); padding: .2rem var(--gutter) .55rem; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: .35rem .7rem; }
}

/* ---------- buttons, chips ---------- */

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .75rem 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--amber); color: #1b1305; }
.btn-primary:hover { background: var(--amber-hi); }
.btn-ghost { border-color: rgba(232,235,242,.4); color: var(--on-ink); }
.btn-ghost:hover { border-color: var(--on-ink); }
.btn-ghost-dark { border-color: var(--rule); color: var(--text); background: var(--sheet); }
.btn-ghost-dark:hover { border-color: var(--text); }
.btn.is-disabled { background: rgba(213,155,45,.35); color: var(--on-ink); cursor: default; }
.btn small { font-weight: 500; font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(19,27,46,.45); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chip {
  font: 500 .92rem/1 var(--sans);
  padding: .55rem .95rem; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--sheet); color: var(--text);
  cursor: pointer; text-decoration: none;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-series { font-family: var(--serif); font-style: italic; font-size: .98rem; }
.chip-dark { background: transparent; border-color: rgba(232,235,242,.3); color: var(--on-ink); }
.chip-dark:hover { border-color: var(--on-ink); }

.pill {
  display: inline-block; margin-left: .35rem; vertical-align: .1em;
  padding: .15rem .6rem; border-radius: 999px;
  font: 600 .78rem/1.4 var(--sans); background: var(--amber); color: #1b1305;
}

/* ---------- book covers ---------- */

.book-cover {
  position: relative; margin: 0;
  aspect-ratio: 2 / 3;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: var(--shadow-book);
  container-type: inline-size;
}
.book-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* гръбчето: светлина и сянка покрай левия ръб */
.book-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.16) 2.2%, rgba(0,0,0,.1) 4%, transparent 8%),
              linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%);
}

/* генерирана корица, докато няма истинска */
.cover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 10cqw 9cqw 9cqw 11cqw;
  background: var(--cb); color: var(--ci);
  overflow: hidden;
}
.cover > span { position: relative; z-index: 1; }
.c-author { font: 600 5.6cqw/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.c-title { margin-top: auto; font: 500 13.5cqw/1.02 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.c-series { margin-top: 5cqw; font: 400 5.4cqw/1.25 var(--serif); font-style: italic; color: var(--ca); }

.cover::before { content: ""; position: absolute; pointer-events: none; }

/* любов и семейство: залязващо слънце */
.cover--warm::before {
  width: 78cqw; height: 78cqw; right: -24cqw; top: 14cqw; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--ca), transparent 68%);
  opacity: .55;
}
.cover--warm .c-title { font-style: italic; }

/* уютна загадка: двойна рамка и ключалка */
.cover--frame { padding: 15cqw 13cqw 14cqw; text-align: center; align-items: center; }
.cover--frame::before {
  inset: 5cqw; border: .8cqw solid var(--ca);
  box-shadow: inset 0 0 0 2.2cqw var(--cb), inset 0 0 0 2.6cqw var(--ca);
}
.cover--frame .c-title { margin-top: auto; margin-bottom: auto; }
.cover--frame::after {
  content: ""; position: absolute; left: 50%; top: 31%; width: 7cqw; height: 13cqw; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 30%, var(--ca) 0 34%, transparent 35%),
              linear-gradient(var(--ca), var(--ca)) 50% 100% / 34% 62% no-repeat;
  opacity: .8;
}

/* мрачно фентъзи: праг — арка с жар */
.cover--arch { text-align: center; align-items: center; }
.cover--arch::before {
  left: 50%; bottom: -1cqw; width: 58cqw; height: 86cqw; transform: translateX(-50%);
  border: 1.6cqw solid color-mix(in srgb, var(--ca) 70%, transparent);
  border-bottom: 0; border-radius: 29cqw 29cqw 0 0;
  background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--ca) 45%, transparent), transparent 65%);
}
.cover--arch .c-title { margin-top: 6cqw; text-transform: uppercase; font-size: 11cqw; letter-spacing: .04em; }
.cover--arch .c-series { margin-top: auto; }

/* военна фантастика: решетка на прицел */
.cover--grid::before {
  inset: 0;
  background:
    linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--ca) 30%, transparent) 58.4%, transparent 59%),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--ca) 12%, transparent) 0 1px, transparent 1px 12cqw),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--ca) 12%, transparent) 0 1px, transparent 1px 12cqw);
}
.cover--grid::after {
  content: ""; position: absolute; right: 12cqw; top: 30cqw; width: 26cqw; height: 26cqw;
  border: .9cqw solid var(--ca); border-radius: 50%;
  box-shadow: 0 0 6cqw color-mix(in srgb, var(--ca) 60%, transparent);
}
.cover--grid .c-title { font-family: var(--sans); font-weight: 700; font-size: 12cqw; letter-spacing: -.02em; text-transform: uppercase; }
.cover--grid .c-series { font-family: var(--sans); font-style: normal; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 4.4cqw; }

/* корица с картина: заглавието е горе, върху небето */
.cover--art { color: var(--cb); padding-top: 9cqw; align-items: flex-end; text-align: right; }
.c-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover--art .c-title { order: -1; margin-top: 4cqw; font-size: 15cqw; }
.cover--art .c-author { order: -2; }
.cover--art .c-series { display: none; }

/* ---------- cards & rails ---------- */

.card { display: block; text-decoration: none; }
.card .book-cover { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover .book-cover { transform: translateY(-4px); box-shadow: 0 1px 1px rgba(0,0,0,.18), 0 26px 36px -16px rgba(8,12,26,.6); }
.card-title { display: block; margin-top: .85rem; font: 500 1.06rem/1.25 var(--serif); }
.card-author { display: block; margin-top: .2rem; font-size: .88rem; color: var(--dim); }
.card:hover .card-title { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: .2em; }

.shelf { padding-top: clamp(2.5rem, 5vw, 3.75rem); }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.shelf-head h2, .block-title { font: 500 clamp(1.6rem, 3.2vw, 2.25rem)/1.1 var(--serif); letter-spacing: -.01em; }
.shelf-tools { display: flex; align-items: center; gap: .4rem; }
.more { margin-right: .6rem; font-weight: 600; font-size: .95rem; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.scroll-btn {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--sheet); color: var(--text);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.scroll-btn:hover:not(:disabled) { border-color: var(--text); }
.scroll-btn:disabled { opacity: .35; cursor: default; }

.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(9.25rem, 14vw, 11.5rem);
  gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: .5rem var(--gutter) 1.25rem; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.rail > li { scroll-snap-align: start; }

@media (max-width: 40rem) { .scroll-btn { display: none; } }

.grid {
  display: grid; gap: 2.25rem clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
}

/* ---------- hero ---------- */

.hero, .book-top {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 18% 55%, color-mix(in srgb, var(--ca) 28%, transparent), transparent 70%),
    radial-gradient(40rem 30rem at 100% 0%, rgba(60,80,140,.35), transparent 70%),
    var(--ink);
  color: var(--on-ink);
}
.hero-grid, .book-grid {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: minmax(12rem, 22rem) 1fr;
  padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero-cover .book-cover, .book-cover-wrap .book-cover {
  box-shadow: 0 2px 2px rgba(0,0,0,.3), 0 40px 60px -24px rgba(0,0,0,.8);
}
.hero-cover { display: block; transform: rotate(-2deg); }

.kicker { margin: 0 0 1rem; font-weight: 600; font-size: .95rem; color: var(--amber-hi); }
.kicker span { margin-left: .5rem; font-weight: 400; color: var(--on-ink-dim); }
.kicker a { color: inherit; }

.hero h1, .book-info h1 {
  font: 500 clamp(2.6rem, 6.5vw, 5rem)/1 var(--serif); letter-spacing: -.02em; color: #fff;
  text-wrap: balance;
}
.subtitle { margin: .9rem 0 0; font: 400 clamp(1.1rem, 2vw, 1.35rem)/1.35 var(--serif); font-style: italic; color: var(--on-ink-dim); }
.hero-author { margin: 1rem 0 0; font-weight: 600; font-size: 1.05rem; }
.hero-author a { text-decoration-color: var(--amber); text-underline-offset: .25em; }
.hero-ann { margin-top: 1.5rem; max-width: 36rem; font: 400 1.12rem/1.6 var(--serif); color: var(--on-ink); }
.hero-ann p { margin: 0 0 .8rem; }
.hero-ann b { font-weight: 600; color: #fff; }
.note { margin: 1rem 0 0; font-size: .9rem; color: var(--on-ink-dim); }

@media (max-width: 46rem) {
  .hero-grid, .book-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-cover, .book-cover-wrap { width: min(13rem, 60vw); }
}

/* ---------- blocks ---------- */

.block { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: .5rem; }
.block-title { margin-bottom: .4rem; }
.block-lead { margin: .4rem 0 0; color: var(--dim); font-size: 1.05rem; max-width: 40rem; }

/* жанрове */
.tiles { margin-top: 1.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: end;
  min-height: 9.5rem; padding: 1.2rem 1.3rem; border-radius: .9rem; overflow: hidden;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #000));
  color: #fff; text-decoration: none;
}
.tile-name { position: relative; z-index: 3; max-width: 58%; font: 500 1.35rem/1.15 var(--serif); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.tile-count { position: relative; z-index: 2; margin-top: .3rem; font-size: .88rem; color: rgba(255,255,255,.75); }
.minis { position: absolute; right: 1rem; top: 50%; width: 46%; height: 100%; transform: translateY(-50%); }
.mini { position: absolute; top: 50%; width: 3.5rem; transition: transform .3s ease; }
.mini:nth-child(1) { right: 3.1rem; transform: translateY(-50%) rotate(-9deg); }
.mini:nth-child(2) { right: 1.55rem; transform: translateY(-52%) rotate(-2deg); z-index: 1; }
.mini:nth-child(3) { right: 0; transform: translateY(-48%) rotate(7deg); z-index: 2; }
.tile:hover .mini:nth-child(1) { transform: translateY(-50%) rotate(-13deg) translateX(-.4rem); }
.tile:hover .mini:nth-child(3) { transform: translateY(-48%) rotate(11deg) translateX(.4rem); }
.mini .book-cover { box-shadow: 0 10px 18px -8px rgba(0,0,0,.6); }

/* тъмна лента: поредици */
.band { margin-top: clamp(3rem, 7vw, 5rem); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.band-dark { background: var(--ink); color: var(--on-ink); }
.band-dark .block-lead { color: var(--on-ink-dim); }
.series-grid { margin-top: 2.25rem; display: grid; gap: 2.5rem 2.5rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.series-card { display: block; text-decoration: none; }
.fan { position: relative; display: block; height: 13rem; margin-bottom: 1.25rem; }
.fan > span { position: absolute; bottom: 0; left: 50%; width: 7.2rem; transition: transform .3s ease; }
.fan-0 { transform: translateX(-112%) rotate(-8deg); }
.fan-1 { transform: translateX(-50%); z-index: 2; }
.fan-2 { transform: translateX(12%) rotate(8deg); z-index: 1; }
.fan-3 { transform: translateX(-88%) rotate(-6deg); }
.fan-4 { transform: translateX(-12%) rotate(6deg); z-index: 1; }
.series-card:hover .fan-0 { transform: translateX(-120%) rotate(-11deg); }
.series-card:hover .fan-2 { transform: translateX(20%) rotate(11deg); }
.series-card:hover .fan-3 { transform: translateX(-96%) rotate(-9deg); }
.series-card:hover .fan-4 { transform: translateX(-4%) rotate(9deg); }
.series-name { display: block; text-align: center; font: 500 1.45rem/1.2 var(--serif); color: #fff; }
.series-meta { display: block; text-align: center; margin-top: .3rem; color: var(--on-ink-dim); font-size: .92rem; }
.series-card:hover .series-name { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: .2em; }

/* услуги */
.band-services { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-services .wrap { display: grid; gap: 2.5rem; }
.services-head .btn { margin-top: 1.5rem; }
@media (min-width: 60rem) { .band-services .wrap { grid-template-columns: 20rem 1fr; } }
.services { display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.services li { padding: 1.2rem 0 1.3rem; border-top: 1px solid var(--rule); }
.services h3 { font: 500 1.3rem/1.2 var(--serif); }
.services h3::before {
  content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .6rem; vertical-align: .2em;
  border-radius: 50%; background: var(--amber);
}
.services p { margin: .4rem 0 0; color: var(--dim); }
.services-page { margin-top: .5rem; }
.services-page li { background: var(--sheet); padding: 1.4rem 1.4rem 1.5rem; border: 1px solid var(--rule); border-radius: .8rem; margin-bottom: 1rem; }
.block > .note { color: var(--dim); }

/* четене */
.reading { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .reading { grid-template-columns: 20rem 1fr; } }
.reading-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.reading-list li { padding: 1.3rem 1.3rem 1.4rem; border-radius: .8rem; background: var(--ink-2); color: var(--on-ink); }
.reading-list h3 { font: 500 1.5rem/1.1 var(--serif); color: var(--amber-hi); }
.reading-list p { margin: .5rem 0 0; color: var(--on-ink-dim); }

/* автори */
.authors-strip ul { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem; }
.authors-strip a { display: flex; align-items: center; gap: .8rem; text-decoration: none; font: 500 1.2rem/1.2 var(--serif); }
.authors-strip a:hover span:last-child { text-decoration: underline; text-decoration-color: var(--amber); }
.avatar, .portrait { display: block; overflow: hidden; background: var(--c); flex: none; }
.avatar { width: 3.6rem; height: 3.6rem; border-radius: 50%; box-shadow: 0 0 0 3px var(--sheet), 0 0 0 4px var(--c); }
.avatar img, .portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.initials { display: grid; place-items: center; height: 100%; color: #fff; font: 500 1.4rem/1 var(--serif); }

.author-row {
  display: grid; gap: 1.25rem 2rem; align-items: start;
  grid-template-columns: 8rem 1fr;
  padding: 2.25rem 0; border-top: 1px solid var(--rule);
}
.author-row:first-child { border-top: 0; padding-top: 0; }
.portrait { aspect-ratio: 4 / 5; border-radius: .5rem; box-shadow: inset 0 -5px 0 var(--c); }
.portrait .initials { font-size: 2.4rem; }
.author-text h2 { font: 500 clamp(1.8rem, 4vw, 2.5rem)/1.05 var(--serif); }
.genre { margin: .4rem 0 0; color: var(--dim); font-size: .95rem; }
.blurb { margin: .8rem 0 0; max-width: 40rem; font: 400 1.12rem/1.55 var(--serif); }
.author-row .rail { grid-column: 1 / -1; }
@media (min-width: 60rem) {
  .author-row { grid-template-columns: 9rem minmax(16rem, 24rem) 1fr; }
  .author-row .rail { grid-column: auto; margin: 0; padding-left: 0; padding-right: 0; grid-auto-columns: 8.5rem; }
}

/* заглавие на вътрешна страница */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 .5rem; }
.page-head h1 { font: 500 clamp(2.4rem, 6vw, 4rem)/1 var(--serif); letter-spacing: -.02em; }
.result-count { color: var(--text); font-weight: 600; }

/* страница на книга */
.book-grid { grid-template-columns: minmax(12rem, 20rem) 1fr; }
.book-info .chips { margin-top: 1.25rem; }
.book-body { max-width: calc(46rem + 2 * var(--gutter)); margin: 0 auto; }
.annotation { margin-top: 1rem; font: 400 1.2rem/1.7 var(--serif); }
.annotation p { margin: 0 0 1.1rem; }
.annotation b { font-weight: 600; }

/* за нас */
.about-hero { background: var(--ink); color: var(--on-ink); padding: clamp(3rem, 8vw, 6rem) 0; }
.about-hero h1 { max-width: 12ch; font: 500 clamp(3rem, 9vw, 6.5rem)/.98 var(--serif); letter-spacing: -.025em; color: #fff; }
.about-hero .stop { color: var(--amber); }
.about-hero .block-lead { margin-top: 1.5rem; color: var(--on-ink-dim); font-size: 1.2rem; }
.about-body { max-width: calc(42rem + 2 * var(--gutter)); margin: 0 auto; font: 400 1.22rem/1.7 var(--serif); }
.about-body p { margin: 0 0 1.2rem; }
.about-body em { color: var(--amber-deep); }

/* 404 */
.lost { padding-top: 6rem; padding-bottom: 8rem; }
.lost h1 { font: 500 clamp(2rem, 6vw, 3.5rem)/1.1 var(--serif); margin-bottom: 1.5rem; }

/* ---------- footer ---------- */

.foot { margin-top: clamp(3.5rem, 8vw, 6rem); background: var(--ink); color: var(--on-ink-dim); font-size: .95rem; }
.foot-grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.foot .wordmark { color: #fff; }
.foot-brand p { margin: .9rem 0 0; font: 400 1.25rem/1.3 var(--serif); font-style: italic; color: var(--on-ink); }
.foot h2 { font: 600 .95rem/1.3 var(--sans); color: #fff; margin-bottom: .7rem; }
.foot li { margin: .3rem 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.25rem; padding-bottom: 2rem; border-top: 1px solid rgba(255,255,255,.1); }
.foot-langs { display: flex; flex-wrap: wrap; gap: .2rem .8rem; }
.foot-langs a[aria-current] { color: #fff; text-decoration: underline; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-cover { animation: settle 1s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { opacity: 0; transform: rotate(-7deg) translateY(1.5rem); } }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* анотация, която липсва на езика на страницата */
.ann-missing { margin: 0 0 .9rem; font-family: var(--sans); font-size: .98rem; font-style: italic; opacity: .85; }
.ann-fallback summary {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none;
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid currentColor;
  font: 600 .92rem/1.2 var(--sans); opacity: .9;
}
.ann-fallback summary::-webkit-details-marker { display: none; }
.ann-fallback summary::after { content: ""; width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.ann-fallback[open] summary { margin-bottom: 1rem; }
.ann-fallback[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.ann-fallback summary:hover { opacity: 1; }

/* страница на автор */
.author-head { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; align-items: start; }
.author-head h1 { margin-bottom: .2rem; }
@media (min-width: 46rem) { .author-head { grid-template-columns: 10rem 1fr; gap: 2.5rem; } }
.author-text h2 a { text-decoration: none; }
.author-text h2 a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-head .block-lead a { color: var(--text); font-weight: 600; text-decoration-color: var(--amber); text-underline-offset: .25em; }
