:root {
  --bg: #E9EEF3;
  --ink: #1F2A44;
  --muted: #5E6B80;
  --gold: #A97C2F;
  --line: #C9D2DD;
  --serif: "Frank Ruhl Libre", "Noto Serif", Georgia, serif;
  --sans: "Heebo", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141A2B;
    --ink: #EEF1F6;
    --muted: #A3AEC2;
    --gold: #D9B26A;
    --line: #2C3550;
    color-scheme: dark;
  }
}
:lang(ru) { --serif: "Noto Serif", Georgia, serif; }
:lang(ar) { --serif: "Noto Naskh Arabic", "Geeza Pro", Tahoma, serif; --sans: "Noto Naskh Arabic", Tahoma, sans-serif; }

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: calc(env(safe-area-inset-top, 0px) + 64px) 24px calc(env(safe-area-inset-bottom, 0px) + 40px);
}
main { width: 100%; max-width: 34rem; text-align: center; }

.gem {
  width: 14px; height: 14px; margin: 0 auto 2rem;
  border: 2px solid var(--gold); transform: rotate(45deg);
}
.title { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; margin-bottom: 2rem; }
.date { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }
.slogan { font-family: var(--serif); font-size: 1.35rem; line-height: 1.6; margin-bottom: 2.5rem; }

.stack { display: grid; gap: .85rem; }
button { font: inherit; color: var(--ink); background: transparent; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.big {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1rem; font-size: 1.1rem; line-height: 1.4;
}
.big:active { border-color: var(--gold); }

.lang-btn {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 14px); inset-inline-end: 16px;
  font-size: .9rem; color: var(--muted); border: 0; padding: .4rem .6rem;
}

.cat-title { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }
.item > * { animation: reveal .8s ease-out both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .item > * { animation: none; } }

.quote { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 7vw, 2.7rem); line-height: 1.45; }
.topic { color: var(--gold); font-size: .9rem; margin-bottom: .9rem; }
.q { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1.35; margin-bottom: 1.2rem; }
.a { font-size: 1.12rem; line-height: 1.75; text-align: start; }
.src { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: 1.2rem; text-align: start; }
.soon { color: var(--muted); font-size: 1.2rem; }

.actions { display: flex; gap: .75rem; justify-content: center; margin-top: 2.75rem; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.4rem; font-size: .95rem; }
.note { color: var(--muted); font-size: .85rem; min-height: 1.2em; margin-top: .75rem; }
.remember {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--muted); font-size: .9rem; margin-top: 1rem; cursor: pointer;
}
.remember input { width: 1.1rem; height: 1.1rem; accent-color: var(--gold); }
