/* Every button is a struck piece of gilt metal with a seal that shows, and acts out, what it does. */
:root {
  --art-shuffle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7.5' y='5' width='9' height='14' rx='1.4' fill='%232a1422' transform='rotate%28-20 12 21%29'/%3E%3Crect x='7.5' y='5' width='9' height='14' rx='1.4' fill='%232a1422'/%3E%3Crect x='7.5' y='5' width='9' height='14' rx='1.4' fill='%232a1422' transform='rotate%2820 12 21%29'/%3E%3C/svg%3E");
  --art-three: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.2' y='7' width='5.6' height='10' rx='1'/%3E%3Crect x='9.2' y='7' width='5.6' height='10' rx='1'/%3E%3Crect x='16.2' y='7' width='5.6' height='10' rx='1'/%3E%3C/svg%3E");
  --art-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='3.5' width='10' height='17' rx='1.5'/%3E%3Cpath d='M12 8.3l1.2 2.5 2.5 1.2-2.5 1.2L12 15.7l-1.2-2.5-2.5-1.2 2.5-1.2z' fill='%23f6d99a'/%3E%3C/svg%3E");
  --art-letter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='1.5'/%3E%3Cpath d='M3.6 7l8.4 6.4L20.4 7'/%3E%3Ccircle cx='12' cy='14.6' r='1.5' fill='%23c2413a' stroke='none'/%3E%3C/svg%3E");
  --art-ask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l1.7 6.4 6-2.4-3.6 5.5 3.6 5.5-6-2.4L12 21.5l-1.7-6.4-6 2.4L7.9 12 4.3 6.5l6 2.4z'/%3E%3Ccircle cx='12' cy='12' r='1.3' fill='%23f6d99a'/%3E%3C/svg%3E");
  --art-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='12' r='3.6'/%3E%3Cpath d='M11.1 12H21M17 12v3.2M20 12v2.4'/%3E%3C/svg%3E");
  --art-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3A4 4 0 0 0 13 5.3l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3A4 4 0 0 0 11 18.7l1-1'/%3E%3C/svg%3E");
  --art-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 17L3 8l5 4 4-7 4 7 5-4-1.5 9zM4.5 20h15'/%3E%3C/svg%3E");
  --art-rune: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='12' rx='7.5' ry='9' fill='%232a1422'/%3E%3Cpath d='M10 7v10M10 8l4.2 3L10 14'/%3E%3C/svg%3E");
  --art-coin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Crect x='9.5' y='9.5' width='5' height='5'/%3E%3C/svg%3E");
  --art-number: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M9 8h6l-4 8.5'/%3E%3C/svg%3E");
  --art-hourglass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h10M7 21h10M8 3c0 5.5 8 5 8 9s-8 3.5-8 9M16 3c0 5.5-8 5-8 9s8 3.5 8 9'/%3E%3Cpath d='M10.5 19.5h3l-1.5-3z' fill='%23f6d99a'/%3E%3C/svg%3E");
  --art-listen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v4M8 7v10M12 4v16M16 7v10M20 10v4'/%3E%3C/svg%3E");
  --art-frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='14' rx='1.5'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M4 17l5-4 4 3 3-2 4 3'/%3E%3C/svg%3E");
  --art-next: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  --art-prev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
  --art-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6d99a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

:root body :is(button.primary, .button, form.signin button[type="submit"], form[data-subscribe] button[type="submit"]) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 58px;
  padding: 0.5em 1.9em;
  border: 1px solid #6f4a1b;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  font: 500 1.1875rem/1.1 var(--display, inherit);
  letter-spacing: 0.01em;
  color: #2b1509;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.65);
  background:
    radial-gradient(120% 90% at 50% -30%, rgba(255, 250, 225, 0.9), rgba(255, 250, 225, 0) 60%),
    linear-gradient(180deg, #f3d898 0%, #e0af5c 34%, #b9812f 64%, #dcae62 100%);
  outline: 1px solid rgba(112, 68, 20, 0.5);
  outline-offset: -5px;
  box-shadow:
    inset 0 1px 0 #fff4d2,
    inset 0 -3px 5px rgba(88, 48, 8, 0.55),
    0 2px 0 #5d3b12,
    0 12px 26px rgba(0, 0, 0, 0.6),
    0 0 44px rgba(217, 169, 91, 0.2);
  transition:
    translate 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s,
    filter 0.3s;
  -webkit-tap-highlight-color: transparent;
}

:root body :is(button.primary, .button, form.signin button[type="submit"], form[data-subscribe] button[type="submit"])[data-art] {
  padding-left: 0.55em;
  justify-content: flex-start;
}

.subscribe .primary[data-art],
form[data-subscribe] button[type="submit"][data-art] {
  justify-content: center !important;
}

/* the seal: a dark well sunk into the metal, with the button's own emblem in it */
:root body :is(button.primary, .button, form.signin button[type="submit"], form[data-subscribe] button[type="submit"])[data-art]::before {
  content: "";
  flex: none;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background:
    var(--art) center / 62% no-repeat,
    radial-gradient(circle at 35% 28%, #4a2338, #170a18 72%);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 0 1.5px #8a5d22,
    0 1px 0 2.5px rgba(255, 238, 195, 0.6);
}

/* light that crosses the metal */
:root body :is(button.primary, .button, form.signin button[type="submit"], form[data-subscribe] button[type="submit"])::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.7) 50%, transparent 62%);
  translate: -130% 0;
  animation: btn-glint 6s 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-glint {
  0%,
  72% {
    translate: -130% 0;
  }
  100% {
    translate: 130% 0;
  }
}

:root body :is(button.primary, .button, form.signin button[type="submit"], form[data-subscribe] button[type="submit"]):hover {
  translate: 0 -3px;
  filter: brightness(1.07) saturate(1.08);
  box-shadow:
    inset 0 1px 0 #fff4d2,
    inset 0 -3px 5px rgba(88, 48, 8, 0.55),
    0 5px 0 #5d3b12,
    0 20px 34px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(239, 200, 136, 0.42);
}

:root body :is(button.primary, .button, form.signin button[type="submit"], form[data-subscribe] button[type="submit"]):hover::after {
  animation: btn-sweep 0.9s ease-out;
}

@keyframes btn-sweep {
  from {
    translate: -130% 0;
  }
  to {
    translate: 130% 0;
  }
}

:root body :is(button.primary, .button, form.signin button[type="submit"], form[data-subscribe] button[type="submit"]):active {
  translate: 0 2px;
  filter: brightness(0.94);
  box-shadow:
    inset 0 3px 8px rgba(70, 36, 6, 0.7),
    0 0 0 #5d3b12,
    0 4px 10px rgba(0, 0, 0, 0.6);
}

:root body :is(button.primary, .button, form.signin button[type="submit"], form[data-subscribe] button[type="submit"]):focus-visible {
  outline: 2px solid #fff1cf;
  outline-offset: 4px;
}

/* at work: the seal turns while the reading is made */
:root body :is(button.primary, .button, form.signin button[type="submit"], form[data-subscribe] button[type="submit"]):disabled,
form.busy button[type="submit"] {
  filter: saturate(0.55) brightness(0.9);
  cursor: progress;
  opacity: 1;
}

:root body :is(button, a)[data-art]:disabled::before,
:root body form.busy button[data-art]::before {
  animation: btn-turn 1.4s linear infinite !important;
}

@keyframes btn-turn {
  to {
    rotate: 360deg;
  }
}

/* ---- each emblem acts out what its button does ---- */
[data-art="shuffle"] { --art: var(--art-shuffle); }
:root body [data-art="shuffle"]:is(:hover, :focus-visible)::before { animation: btn-riffle 0.7s ease-in-out 2; }
@keyframes btn-riffle {
  20% { rotate: -16deg; scale: 1.12; } 40% { rotate: 14deg; } 60% { rotate: -9deg; scale: 1.06; } 80% { rotate: 6deg; }
}

[data-art="three"] { --art: var(--art-three); }
:root body [data-art="three"]:is(:hover, :focus-visible)::before { animation: btn-deal 0.9s cubic-bezier(0.2,0.7,0.2,1); }
@keyframes btn-deal {
  0% { scale: 0.2 1; opacity: 0.3; } 60% { scale: 1.15 1; } 100% { scale: 1; }
}

[data-art="card"] { --art: var(--art-card); }
:root body [data-art="card"]:is(:hover, :focus-visible)::before { animation: btn-flip 0.9s cubic-bezier(0.3,0.1,0.2,1); }
@keyframes btn-flip {
  0% { transform: perspective(200px) rotateY(0); } 100% { transform: perspective(200px) rotateY(360deg); }
}

[data-art="letter"] { --art: var(--art-letter); }
:root body [data-art="letter"]:is(:hover, :focus-visible)::before { animation: btn-post 1s cubic-bezier(0.3,0.1,0.2,1); }
@keyframes btn-post {
  35% { translate: 0.5em -0.35em; rotate: -14deg; scale: 0.9; } 55% { translate: 0.5em -0.35em; rotate: -14deg; opacity: 0.4; } 56% { translate: -0.6em 0.3em; opacity: 0; } 100% { translate: 0 0; opacity: 1; }
}

[data-art="ask"] { --art: var(--art-ask); }
:root body [data-art="ask"]:is(:hover, :focus-visible)::before { animation: btn-spark 1.1s ease-in-out; }
@keyframes btn-spark {
  40% { rotate: 90deg; scale: 1.25; filter: brightness(1.6) drop-shadow(0 0 8px #ffd98a); } 100% { rotate: 180deg; }
}

[data-art="key"] { --art: var(--art-key); }
:root body [data-art="key"]:is(:hover, :focus-visible)::before { animation: btn-unlock 1s cubic-bezier(0.3,0.1,0.2,1); }
@keyframes btn-unlock {
  30% { translate: 0.18em 0; } 60% { translate: 0.18em 0; rotate: 90deg; } 100% { rotate: 0deg; }
}

[data-art="link"] { --art: var(--art-link); }
:root body [data-art="link"]:is(:hover, :focus-visible)::before { animation: btn-clasp 0.7s ease-in-out; }
@keyframes btn-clasp {
  40% { scale: 0.78; } 70% { scale: 1.16; }
}

[data-art="crown"] { --art: var(--art-crown); }
:root body [data-art="crown"]:is(:hover, :focus-visible)::before { animation: btn-crown 1s ease-in-out; }
@keyframes btn-crown {
  40% { translate: 0 -0.22em; filter: brightness(1.7) drop-shadow(0 0 8px #ffd98a); }
}

[data-art="rune"] { --art: var(--art-rune); }
:root body [data-art="rune"]:is(:hover, :focus-visible)::before { animation: btn-cast 0.9s cubic-bezier(0.3,0,0.4,1); }
@keyframes btn-cast {
  0% { translate: 0 -0.9em; rotate: -50deg; opacity: 0; } 55% { translate: 0 0.1em; rotate: 8deg; opacity: 1; } 75% { translate: 0 -0.14em; rotate: -3deg; }
}

[data-art="coin"] { --art: var(--art-coin); }
:root body [data-art="coin"]:is(:hover, :focus-visible)::before { animation: btn-toss 1s cubic-bezier(0.3,0,0.4,1); }
@keyframes btn-toss {
  0% { transform: perspective(160px) rotateX(0); translate: 0 0; } 50% { transform: perspective(160px) rotateX(540deg); translate: 0 -0.45em; } 100% { transform: perspective(160px) rotateX(1080deg); translate: 0 0; }
}

[data-art="number"] { --art: var(--art-number); }
:root body [data-art="number"]:is(:hover, :focus-visible)::before { animation: btn-count 1s steps(7); }
@keyframes btn-count {
  to { rotate: 360deg; }
}

[data-art="hourglass"] { --art: var(--art-hourglass); }
:root body [data-art="hourglass"]:is(:hover, :focus-visible)::before { animation: btn-glass 1.1s cubic-bezier(0.5,0,0.2,1); }
@keyframes btn-glass {
  to { rotate: 180deg; }
}

[data-art="listen"] { --art: var(--art-listen); }
[data-art="frame"] { --art: var(--art-frame); }

/* ---- quiet buttons: a small gilt emblem that moves, beside plain words ---- */
:root body .linkish[data-art] {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.1em 0.5em 0.5em;
  border: 1px solid rgba(217, 169, 91, 0.4);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(60, 30, 48, 0.75), rgba(22, 10, 24, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.18), 0 8px 18px rgba(0, 0, 0, 0.45);
  color: var(--bone);
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s, translate 0.25s;
}

:root body .linkish[data-art]::before {
  content: "";
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--art) center / 62% no-repeat, radial-gradient(circle at 35% 28%, #4a2338, #170a18 72%);
  box-shadow: 0 0 0 1px #8a5d22;
}

:root body .linkish[data-art]:hover {
  translate: 0 -2px;
  border-color: var(--gold-bright);
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.18), 0 12px 22px rgba(0, 0, 0, 0.5), 0 0 30px rgba(217, 169, 91, 0.3);
}

/* the voice speaks: the bars rise and fall */
:root body [data-art="listen"]:hover::before {
  animation: btn-voice 0.7s ease-in-out infinite alternate;
}

@keyframes btn-voice {
  from { background-size: 62% 30%, auto; }
  to { background-size: 62% 70%, auto; }
}

/* the picture is taken: a flash */
:root body [data-art="frame"]:hover::before {
  animation: btn-flash 0.8s ease-out;
}

@keyframes btn-flash {
  20% { filter: brightness(3); scale: 1.12; }
}

/* ---- music: three strings that sound while it plays ---- */
:root body :is(#sound, [data-music]) {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

:root body :is(#sound, [data-music])::before {
  content: "";
  width: 0.95em;
  height: 0.9em;
  background:
    linear-gradient(var(--gold-bright) 0 0) 0 100% / 3px var(--b1, 30%) no-repeat,
    linear-gradient(var(--gold-bright) 0 0) 50% 100% / 3px var(--b2, 30%) no-repeat,
    linear-gradient(var(--gold-bright) 0 0) 100% 100% / 3px var(--b3, 30%) no-repeat;
  opacity: 0.55;
}

:root body :is(#sound, [data-music])[aria-pressed="true"]::before {
  opacity: 1;
  animation: btn-strings 1.1s ease-in-out infinite;
}

@property --b1 { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --b2 { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --b3 { syntax: "<percentage>"; inherits: false; initial-value: 30%; }

@keyframes btn-strings {
  0%, 100% { --b1: 35%; --b2: 100%; --b3: 55%; }
  33% { --b1: 100%; --b2: 45%; --b3: 80%; }
  66% { --b1: 55%; --b2: 75%; --b3: 100%; }
}

/* ---- turning the page: two gilt studs; the arrow leans the way it goes ---- */
:root body .jr-turn button {
  width: 54px;
  height: 54px;
  border: 1px solid #6f4a1b;
  border-radius: 50%;
  background:
    var(--art) center / 46% no-repeat,
    radial-gradient(circle at 35% 28%, #4a2338, #170a18 70%);
  box-shadow:
    0 0 0 3px #caa052,
    0 0 0 4px #5d3b12,
    inset 0 2px 6px rgba(0, 0, 0, 0.9),
    0 10px 20px rgba(0, 0, 0, 0.6);
  transition: translate 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s, filter 0.3s;
}

:root body .jr-turn button[data-turn="1"] { --art: var(--art-next); }
:root body .jr-turn button[data-turn="-1"] { --art: var(--art-prev); }
:root body .jr-turn button svg { display: none; }

:root body .jr-turn button:hover:not(:disabled) {
  translate: calc(var(--way, 1) * 5px) 0;
  filter: brightness(1.25);
  box-shadow:
    0 0 0 3px #f0cf8a,
    0 0 0 4px #5d3b12,
    inset 0 2px 6px rgba(0, 0, 0, 0.9),
    0 10px 20px rgba(0, 0, 0, 0.6),
    0 0 34px rgba(239, 200, 136, 0.5);
}

:root body .jr-turn button[data-turn="-1"] { --way: -1; }
:root body .jr-turn button:active:not(:disabled) { translate: calc(var(--way, 1) * 9px) 0; }
:root body .jr-turn button:disabled { opacity: 0.3; }

/* ---- close: a stud with a cross that turns as it lets go ---- */
:root body dialog .close {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 0;
  border: 1px solid #6f4a1b;
  border-radius: 50%;
  background: var(--art-close) center / 44% no-repeat, radial-gradient(circle at 35% 28%, #4a2338, #170a18 70%);
  box-shadow: 0 0 0 2px #caa052, 0 6px 14px rgba(0, 0, 0, 0.6);
  transition: rotate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s;
}

:root body dialog .close:hover {
  rotate: 90deg;
  filter: brightness(1.35);
}

@media (prefers-reduced-motion: reduce) {
  :root body :is(button, a)::before,
  :root body :is(button, a)::after {
    animation: none !important;
  }
}

/* ---- Cyrillic: EB Garamond carries it, for the body face and, since IM Fell has none, for the display face too ---- */
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-cyrillic-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-cyrillic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/eb-garamond-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/eb-garamond-cyrillic-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---- the language menu: two letters in a small gilt ring, opening a short list ---- */
.langs {
  position: relative;
  display: inline-block;
}

.langs summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  border: 1px solid rgba(217, 169, 91, 0.55);
  background: radial-gradient(circle at 35% 28%, rgba(74, 35, 56, 0.9), rgba(23, 10, 24, 0.9) 72%);
  color: var(--gold-bright, #efc888);
  font-size: 0.8em;
  letter-spacing: 0.06em;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

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

.langs summary:hover,
.langs[open] summary {
  border-color: var(--gold-bright, #efc888);
  box-shadow: 0 0 22px rgba(217, 169, 91, 0.35);
}

.langs summary:focus-visible {
  outline: 2px solid var(--gold-bright, #efc888);
  outline-offset: 3px;
}

.langs ul {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  min-width: 10.5rem;
  border-radius: 12px;
  background: #1c0f1f;
  box-shadow:
    0 0 0 1px rgba(217, 169, 91, 0.45),
    0 22px 50px rgba(0, 0, 0, 0.7);
  animation: langs-open 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes langs-open {
  from {
    opacity: 0;
    translate: 0 -6px;
  }
}

.langs li {
  margin: 0;
}

:root body .langs a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: var(--bone, #efe6d6);
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.0625rem;
}

:root body .langs a:hover {
  background: rgba(217, 169, 91, 0.14);
  color: var(--gold-bright, #efc888);
}

:root body .langs a[aria-current] {
  color: var(--gold-bright, #efc888);
}

:root body .langs a[aria-current]::after {
  content: " ·";
}

@media (prefers-reduced-motion: reduce) {
  .langs ul {
    animation: none;
  }
}

/* ---- Polish and other accented Latin letters: EB Garamond carries them, for the display face too ---- */
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-ext-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/eb-garamond-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/eb-garamond-latin-ext-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- often-asked questions ---- */

.asks-open {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  font: italic 1rem/1.2 "EB Garamond", Georgia, serif;
  color: #d9a95b;
  text-decoration: underline;
  text-decoration-color: rgba(217, 169, 91, 0.45);
  text-underline-offset: 0.22em;
  cursor: pointer;
  white-space: nowrap;
}

.asks-open:hover {
  color: #efc888;
}

.asks ul,
.asks-dlg ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.asks li + li,
.asks-dlg li + li {
  border-top: 1px solid rgba(236, 223, 198, 0.12);
}

[data-ask-fill] {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  min-height: 44px;
  font: 400 1.125rem/1.25 "EB Garamond", Georgia, serif;
  color: #ecdfc6;
  text-align: start;
  cursor: pointer;
  transition: color 0.25s, padding-inline-start 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-ask-fill]:hover,
[data-ask-fill]:focus-visible {
  color: #efc888;
  padding-inline-start: 0.5rem;
}

dialog.asks-dlg,
dialog.about-dlg {
  width: min(31rem, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: auto;
  background: #22132a;
  color: #ecdfc6;
  border: 1px solid rgba(236, 223, 198, 0.2);
  border-radius: 14px;
  padding: 2.2rem clamp(1.4rem, 5vw, 2.4rem) 1.4rem;
}

dialog.asks-dlg::backdrop,
dialog.about-dlg::backdrop {
  background: rgba(10, 4, 11, 0.72);
  backdrop-filter: blur(6px);
}

.asks-dlg h2 {
  font: 400 2rem/1.1 "IM Fell English", Georgia, serif;
  margin: 0 3rem 0.6rem 0;
}

.asks-dlg .close,
.about-dlg .close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: 0;
  min-height: 44px;
  font: inherit;
  color: #b9a793;
  text-decoration: underline;
  cursor: pointer;
}

dialog.asks-dlg {
  overflow-x: hidden;
  scrollbar-width: none;
}

dialog.asks-dlg::-webkit-scrollbar {
  display: none;
}
