/* ============================================================
   Цифровое собрание сочинений Елены Шварц — design foundation
   Phase 3a: tokens, base typography, header/footer shell.
   Loaded after the legacy stylesheets; overrides them during the
   page-by-page migration. When every page is migrated, the legacy
   sheets (style.css, main.css, style-sasha.css, bootstrap) go away.
   ============================================================ */

:root {
  /* Warm paper palette */
  --paper:        #faf6ee;
  --paper-deep:   #f1ead9;   /* panels, drawers, hover fills      */
  --ink:          #26211b;   /* primary text                      */
  --ink-soft:     #6f675c;   /* secondary text, captions          */
  --accent:       #7a3742;   /* muted wine — quieter than burgundy, warmer than green */
  --accent-soft:  #a8848b;   /* decorative only                   */
  --rule:         #e0d7c4;   /* hairlines                         */
  --highlight:    #f1e3da;   /* search hits, variant-diff marking */

  /* Type — exactly two voices:
     serif (EB Garamond) = the literature: poems, titles, prose
     mono (PT Mono)      = the apparatus: nav, labels, metadata, UI */
  --font-serif: 'EB Garamond', 'PT Serif', Georgia, serif;
  --font-mono:  'PT Mono', 'Courier New', monospace;

  --measure: 38rem;          /* comfortable reading column        */
}

/* ---------- Base ------------------------------------------------ */

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  /* overrides legacy fixed width (main.css) and grey bg (style.css) */
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.6;
}

::selection {
  background: var(--highlight);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 120ms ease;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Site header ----------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.4rem clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--ink);
}

.site-header__brand img {
  height: 60px;
  width: auto;
  /* the ink sketch sits on white; blend onto paper */
  mix-blend-mode: multiply;
}

.site-header__titles {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-header__name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.site-header__subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.45;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.8rem;
}

.site-header__nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.site-header__search .field {
  height: 2rem !important;
  width: 7.5rem;
  font-size: 0.78rem;
  transition: width 160ms ease;
}

.site-header__search .field:focus {
  width: 12rem;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Site footer ----------------------------------------- */

.site-footer {
  margin-top: 4rem;
  padding: 1.6rem clamp(1rem, 5vw, 4rem) 2.2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0.15rem 0;
}

/* ---------- Poems: immediate typographic wins -------------------- */
/* These legacy classes are used on every poem page; restyling them
   here lets the new type system land before each page is rebuilt.  */

pre.text,
pre.epigraph,
pre.dedication,
pre.cycle_text {
  font-family: var(--font-serif);
  font-size: 1.24rem;   /* Garamond runs small; compensate */
  line-height: 1.66;
  color: var(--ink);
  white-space: pre-wrap;       /* long lines wrap instead of scrolling */
  margin-left: 0;
}

pre.epigraph,
pre.dedication {
  font-style: italic;
  color: var(--ink-soft);
}

p.head {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
}

/* Scholarly apparatus in samizdat mono: dates, sources, downloads */
.meta,
.meta p,
.meta .text,
.bibliography {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Poem page (book layout) ------------------------------ */

.poem-page {
  max-width: var(--measure);
  margin: 2.5rem auto 0;
  padding: 0 1.2rem;
}

.poem-nav {
  /* 3 fixed columns so the center link never shifts when
     «предыдущее»/«следующее» appear or disappear */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 3rem;
}

.poem-nav > :first-child {
  justify-self: start;
}

.poem-nav > :last-child {
  justify-self: end;
}

.poem-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.poem-nav a:hover {
  color: var(--accent);
}

.poem-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 2.2rem;
}

/* The poem block centers itself by its widest line while the
   text inside stays left-aligned — like a poem on a book page. */
.poem-body {
  width: fit-content;
  margin-inline: auto;
}

.poem-body pre {
  margin: 0 0 1.4rem;
}

/* ---------- Оглавление drawer (edition poem pages) --------------- */

.drawer {
  margin: -1.6rem 0 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
  position: relative;          /* anchor for the floating panel */
}

.drawer summary {
  display: inline-block;
  cursor: pointer;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  list-style: none;            /* no native triangle */
}

.drawer summary::-webkit-details-marker {
  display: none;
}

.drawer summary::after {
  content: " ▾";
  color: var(--accent-soft);
}

.drawer[open] summary::after {
  content: " ▴";
}

.drawer summary:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.drawer__list {
  /* floats above the poem instead of pushing it down */
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(34rem, calc(100vw - 2.4rem));
  max-height: 19rem;
  overflow-y: auto;
  margin: 0;
  padding: 1.2rem 1.4rem;
  text-align: left;
  background: rgba(250, 246, 238, 0.88);   /* translucent paper */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(38, 33, 27, 0.13);
  list-style-position: inside;
  color: var(--ink-soft);
}

.drawer__list li {
  margin: 0.3rem 0;
}

.drawer__list li.current::marker {
  color: var(--accent);
  font-weight: 600;
}

.drawer__list a {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
}

.drawer__list a:hover {
  color: var(--accent);
}

.drawer__list a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Edition index page ------------------------------------ */

.edition-page {
  max-width: 44rem;
  margin: 2.5rem auto 0;
  padding: 0 1.2rem;
}

.section-title {
  font-size: 1.25rem;
  margin: 2.4rem 0 1.2rem;
}

.prose p {
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.prose__signature {
  font-style: italic;
  color: var(--ink-soft);
  text-align: right;
}

.edition-contents {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 16rem;
  column-gap: 3rem;
}

.edition-contents li {
  margin: 0 0 0.45rem;
  break-inside: avoid;
}

.edition-contents a {
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.edition-contents a:hover {
  color: var(--accent);
}

/* ---------- Colophon (год написания, источник, действия) -------- */

.colophon {
  margin: 3.5rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

.colophon dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.55rem 1.4rem;
  width: fit-content;
  margin: 0 auto;
  max-width: 100%;
}

.colophon dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: right;
  padding-top: 0.18em;       /* optical alignment with serif dd */
}

.colophon dd {
  margin: 0;
  font-family: var(--font-mono);   /* metadata is apparatus: mono throughout */
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 30em;
}

.colophon dd p {
  margin: 0 0 0.3rem;
}

.colophon__actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.colophon__actions a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.colophon__actions a:hover {
  border-bottom-color: var(--accent);
}

.colophon__actions span[aria-hidden] {
  color: var(--rule);
}

/* ---------- Catalog (Произведения) ------------------------------- */

.page-title {
  font-size: 2rem;
  margin: 0 0 1.8rem;
}

.catalog {
  max-width: 52rem;
  margin: 2.5rem auto 0;
  padding: 0 1.2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0 0.7rem;
  height: 2.4rem;             /* every control the same height */
  box-sizing: border-box;
  appearance: none;           /* no native macOS chrome */
  -webkit-appearance: none;
}

.field:focus {
  border-color: var(--accent);
  outline: none;
}

select.field {
  /* custom chevron instead of the native macOS arrow */
  padding-right: 2rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236f675c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
}

/* with no edition chosen, «Все издания» reads like the search
   placeholder; the dropdown options themselves stay ink */
select.field--placeholder {
  color: var(--ink-soft);
}

select.field--placeholder option {
  color: var(--ink);
}

.field::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

/* tame the native number-spinner so year fields match the rest */
.field--year::-webkit-outer-spin-button,
.field--year::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field--year {
  -moz-appearance: textfield;
}

/* Safari refuses height styling on search inputs until every native
   piece is switched off; force one uniform control height for all. */
.field--search::-webkit-search-decoration,
.field--search::-webkit-search-cancel-button,
.field--search::-webkit-search-results-button {
  -webkit-appearance: none;
}

.catalog__filters input,
.catalog__filters select,
.catalog__filters .button {
  height: 2.4rem !important;
  min-height: 2.4rem;
  max-height: 2.4rem;
  line-height: normal;
  margin: 0;
}

.button {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 0 1.2rem;
  height: 2.4rem;
  box-sizing: border-box;
  cursor: pointer;
}

.button:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.field--search {
  flex: 1 1 16rem;
}

.catalog__years {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.field--year {
  width: 5.2rem;
}

.catalog__reset {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.catalog__decades {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.catalog__decades a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.catalog__decades a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.catalog__count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.catalog__year {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.4rem 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}

.catalog__year-label {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--accent);
  margin: 0.15rem 0 0;
}

.catalog__poems {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog__poems li {
  margin: 0 0 0.45rem;
}

.catalog__poems a {
  font-size: 1.08rem;
  color: var(--ink);
  text-decoration: none;
}

.catalog__poems a:hover {
  color: var(--accent);
}

.catalog__empty {
  font-style: italic;
  color: var(--ink-soft);
  padding: 2rem 0;
}

.catalog__snippet {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0.15rem 0 0.2rem;
}

.catalog__variant-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  color: var(--ink-soft);
}

.catalog__snippet-more {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  color: var(--accent-soft);
}

mark {
  background: var(--highlight);
  color: inherit;
  padding: 0 0.12em;
  border-radius: 1px;
}

.catalog__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin: 2.4rem 0 0.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.catalog__pages a {
  color: var(--accent);
  text-decoration: none;
}

.catalog__pages a:hover {
  color: var(--ink);
}

.catalog__pages span[aria-current] {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}

@media (max-width: 560px) {
  .catalog__year {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

/* ---------- About page (О проекте) -------------------------------- */

.about {
  /* one centered column, same width as the prose — headings and text
     align instead of leaving a ragged gap to the right of paragraphs */
  max-width: var(--measure);
  margin: 2.5rem auto 0;
  padding: 0 1.2rem;
}

.about .team {
  justify-content: center;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;  /* items fill the underlined width evenly */
  gap: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}

.anchor-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.anchor-nav a:hover {
  color: var(--accent);
}

.citation {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.7rem 0.9rem;
  display: inline-block;
}

.team {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.team__member {
  text-align: center;
  width: 8.5rem;
}

.team__photo {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--rule);
}

.team__name {
  font-size: 0.95rem;
  margin: 0.7rem 0 0;
}

/* ---------- Library (Библиотека): edition covers ------------------- */

.library {
  max-width: 62rem;
  margin: 2.5rem auto 0;
  padding: 0 1.2rem;
}

.library__hint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.covers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 2.4rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* every book sits in the same framed card, whatever the cover size */
.covers__item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.covers__item a:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(38, 33, 27, 0.14);
}

.covers__img {
  width: 100%;
  height: 13rem;
  object-fit: contain;
}

.covers__bibl {
  margin-top: auto;            /* bibliography pinned to the card bottom */
  padding-top: 0.25rem;
}

.covers__title {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 0.7rem;
  line-height: 1.35;
}

.covers__bibl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.covers__item--pending .covers__img {
  opacity: 0.65;
}

/* ---------- Materials (Материалы): photo gallery ------------------- */

.materials {
  max-width: 62rem;
  margin: 2.5rem auto 0;
  padding: 0 1.2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery__thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  filter: sepia(0.12);
  transition: filter 140ms ease, transform 140ms ease;
}

.gallery__link:hover .gallery__thumb,
.gallery__link:focus .gallery__thumb {
  filter: none;
  transform: scale(1.015);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(38, 33, 27, 0.88);
}

.lightbox[hidden] {
  display: none;               /* class display:flex must not defeat [hidden] */
}

.lightbox__img {
  max-width: min(82vw, 60rem);
  max-height: 86vh;
  border-radius: 2px;
}

.lightbox button {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--paper);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
}

.lightbox__close {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  font-size: 1.8rem;
}

/* ---------- Comparison (Сравнение версий) -------------------------- */

.compare {
  max-width: 62rem;
  margin: 2.5rem auto 0;
  padding: 0 1.2rem;
}

.compare__title {
  color: var(--ink-soft);
}

.compare__controls {
  text-align: center;
  margin-bottom: 2.2rem;
}

.compare__panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

/* panes flex vertically so both metadata blocks sit on one level,
   however different the texts' lengths */
.compare__pane {
  display: flex;
  flex-direction: column;
}

@media (max-width: 760px) {
  .compare__panes {
    grid-template-columns: 1fr;
  }
}

.compare__select {
  width: 100%;
  margin-bottom: 1.6rem;
}

.compare__meta {
  margin-top: auto;            /* pinned to the bottom of the taller pane row */
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.compare__meta dt {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.6rem;
}

.compare__meta dd {
  margin: 0.1rem 0 0;
}

.diff--a,
.diff--b {
  display: inline-block;
  padding: 0 0.3em;
  margin-left: -0.3em;
  border-radius: 2px;
}

.diff--a {
  background: #edc6bc;        /* muted red — the wine side of the palette */
  box-shadow: inset 3px 0 0 var(--accent);
}

.diff--b {
  background: #d6dab9;        /* dusty green — the palette's old accent */
  box-shadow: inset 3px 0 0 #5f6549;
}

/* ---------- Pending page (В разработке) ---------------------------- */

.pending {
  max-width: var(--measure);
  margin: 4rem auto;
  padding: 0 1.2rem;
  text-align: center;
}

.pending__img {
  max-width: 14rem;
  mix-blend-mode: multiply;
}

.pending__text {
  font-style: italic;
  color: var(--ink-soft);
  margin: 1.4rem 0 0.8rem;
}

/* ---------- Alerts & popup ----------------------------------------- */

.alert {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  background: var(--highlight);
  border: 1px solid var(--accent-soft);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.6rem;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 33, 27, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.popup[hidden] {
  display: none;
}

.popup__card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: 2px;
  box-shadow: 0 14px 36px rgba(38, 33, 27, 0.22);
  max-width: 24rem;
  margin: 1rem;
  padding: 1.6rem 1.8rem;
  text-align: center;
}

.popup__text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1.3rem;
}

