:root {
  --bg: #f4eee0;
  --bg-deep: #eee4cf;
  --ink: #2a241b;
  --muted: #7d715c;
  --gold: #a97a34;
  --rule: rgba(169, 122, 52, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1730;
    --bg-deep: #080e1f;
    --ink: #ece6d6;
    --muted: #8b93ad;
    --gold: #d7a24a;
    --rule: rgba(215, 162, 74, 0.4);
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: radial-gradient(120% 90% at 50% 38%, var(--bg-deep) 0%, var(--bg) 62%);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2.5rem 1.5rem;
}
.plaque {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 28rem;
  opacity: 0;
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.frame {
  position: relative;
  width: 100%;
  max-width: 23.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(closest-side, var(--rule) 0%, transparent 72%);
  filter: blur(2px);
  opacity: 0.9;
}
@media (prefers-color-scheme: light) {
  .frame::before { opacity: 0.55; }
}
picture, img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}
.rule {
  width: 2.75rem;
  height: 1px;
  margin: 1.9rem 0 1.6rem;
  background: var(--rule);
}
.line-ru {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.line-la {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.back {
  margin-top: 2.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--gold);
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 0.15rem;
  transition: background-size 0.35s ease;
}
.back:hover, .back:focus-visible {
  background-size: 100% 1px;
}
.back:focus-visible {
  outline: 1px solid var(--rule);
  outline-offset: 4px;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .plaque { animation: none; opacity: 1; }
}
