:root {
  color-scheme: dark;
  --sand: #121212;
  --sand-soft: #1a1a1a;
  --card: #232323;
  --title: #c8a25a;
  --title-soft: #a88445;
  --text: #f2efe8;
  --author: #b8b2a8;
  --ink-soft: rgba(200, 162, 90, 0.25);
  --sand-night: #0d0a10;
  --title-night: #f9f3da;
  --text-night: #f6efd9;
  --author-night: #d3cab0;
  --ink-soft-night: rgba(246, 234, 199, 0.26);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    url("backgrounds/paramodia.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(2.75rem, 10vh, 6rem);
  padding-inline: clamp(12px, 2.8vw, 48px);
  line-height: 1.7;
}

body[data-mode='day'] {
  background-color: var(--sand);
  color: var(--text);
  color-scheme: dark;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(200, 162, 90, 0.08) 7.1%, transparent 7.35% 92.65%, rgba(200, 162, 90, 0.08) 92.9%, transparent 93.2%),
    radial-gradient(circle at 50% 78%, rgba(244, 225, 184, 0.24), transparent 18%),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(0, 0, 0, 0.28) 78%);
  mix-blend-mode: screen;
  opacity: 0.55;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main.wrap {
  width: min(720px, 100%);
  position: relative;
  z-index: 2;
}


.quote-flow {
  transition: color 0.9s ease, opacity 0.9s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3.2vh, 1.8rem);
  text-align: center;
  cursor: pointer;
  outline: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.quote-flow:focus-visible {
  outline: 2px solid rgba(200, 162, 90, 0.3);
  outline-offset: 10px;
}

h1 {
  margin: 0 0 clamp(1rem, 2.5vh, 1.35rem);
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.1;
  color: var(--title);
  text-shadow: 0 0 22px rgba(200, 162, 90, 0.12);
}

.quote-mark {
  height: 2.9rem;
  color: var(--title);
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(3.2rem, 8vw, 4.7rem);
  line-height: 0.8;
  opacity: 0.9;
}

.quote-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(260px, 55%);
  height: 1.2rem;
  margin-bottom: clamp(1.1rem, 3vh, 1.8rem);
}

.quote-rule::before,
.quote-rule::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(200, 162, 90, 0.42));
}

.quote-rule::after {
  background: linear-gradient(90deg, rgba(200, 162, 90, 0.42), transparent);
}

.quote-rule span {
  width: 0.55rem;
  height: 0.55rem;
  margin-inline: 0.35rem;
  background: var(--title);
  opacity: 0.85;
  transform: rotate(45deg);
}

.quote-rule--short {
  width: min(90px, 25%);
  height: 0.9rem;
  margin: clamp(1.4rem, 3vh, 2rem) 0 0.75rem;
}

.quote-rule--short span {
  width: 0.42rem;
  height: 0.42rem;
}

#quote-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(720px, 100%);
  max-width: 100%;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.2rem, 4.2vw, 3.2rem) 0;
  padding-left: clamp(1.2rem, 4.2vw, 3.2rem);
  padding-right: clamp(1.2rem, 4.2vw, 3.2rem);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(15, 12, 8, 0.5), rgba(15, 12, 8, 0.56)),
    radial-gradient(circle at 50% 0%, rgba(200, 162, 90, 0.12), transparent 42%);
  border: 1px solid rgba(200, 162, 90, 0.42);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42), inset 0 0 54px rgba(200, 162, 90, 0.035);
  overflow: hidden;
  transition: background-color 0.9s ease, border-color 0.9s ease;
}

body.night-fall #quote-card {
  background:
    linear-gradient(180deg, rgba(15, 12, 8, 0.54), rgba(15, 12, 8, 0.6)),
    radial-gradient(circle at 50% 0%, rgba(246, 234, 199, 0.1), transparent 42%);
}

blockquote {
  margin: 0 auto;
  width: 100%;
  max-width: 88%;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(1.35rem, 5vw, 2.1rem);
  line-height: 1.28;
  font-style: normal;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-inline: 0;
  overflow-wrap: normal;
  word-break: normal;
  /* text-wrap: pretty; -- nonstandard, limited browser support. Use overflow-wrap as a compatible fallback */
  overflow-wrap: anywhere;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

blockquote::before,
blockquote::after {
  content: none;
}

.watermark {
  font-size: 0.72rem;
  color: var(--author);
  opacity: 0.22;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  margin-top: 0.7rem;
}

body.night-fall .watermark {
  color: var(--author-night);
}

.word {
  display: inline-block;
  will-change: transform, color;
  transition: transform var(--word-return-duration, 0.75s) cubic-bezier(0.22, 0.61, 0.36, 1),
    color 0.25s ease,
    text-shadow 0.25s ease;
  transform-origin: center;
  transform: translate3d(0, 0, 0);
}

.word--quote-open,
.word--quote-close {
  font-style: normal;
}

.word--fall {
  transition: transform var(--word-fall-duration, 0.65s) cubic-bezier(0.24, 0.82, 0.34, 1);
  transform: translate3d(0, var(--word-fall-translate, 240px), 0)
    rotate(var(--word-fall-rotate, 0deg));
}

.word--returning {
  transition: transform var(--word-return-duration, 1s) cubic-bezier(0.19, 1, 0.22, 1);
}

.word--pulse {
  animation: word-beat 0.8s ease-in-out forwards;
}

.word--soft-glow {
  color: #b38b46;
  text-shadow: 0 0 6px rgba(243, 212, 130, 0.6);
}

@keyframes word-beat {
  0% {
    transform: scale3d(1, 1, 1);
    color: inherit;
    text-shadow: none;
  }
  50% {
    transform: scale3d(1.25, 1.25, 1);
    color: #b38b46;
    text-shadow: 0 0 8px rgba(243, 212, 130, 0.7);
  }
  100% {
    transform: scale3d(1, 1, 1);
    color: inherit;
    text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word {
    transition: color 0.2s ease, text-shadow 0.2s ease;
    transform: none;
  }
  .word--fall,
  .word--returning {
    transform: none;
  }
  .word--pulse {
    animation: none;
  }
}

.author {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: var(--title);
  text-align: center;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.author-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.38rem;
}

.meta-prefix {
  color: inherit;
}

.meta-link {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
  transition: color 0.8s ease, text-decoration-color 0.8s ease;
}

.meta-author {
  font-size: 1.05rem;
}

.meta-work {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--author);
}

.meta-label {
  color: #beb8ae;
}


.meta-separator[hidden],
.meta-link[hidden],
.meta-label[hidden],
.meta-prefix[hidden] {
  display: none;
}

.row {
  display: none;
}

.quote-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  width: calc(100% + clamp(2.2rem, 8.4vw, 6.4rem));
  margin-top: clamp(1.6rem, 4vh, 2.3rem);
  border-top: 1px solid rgba(200, 162, 90, 0.22);
  background: linear-gradient(180deg, rgba(200, 162, 90, 0.025), rgba(0, 0, 0, 0.08));
}

.quote-actions__divider {
  align-self: center;
  width: 1px;
  height: 4.1rem;
  background: rgba(222, 194, 135, 0.38);
}

.quote-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.05rem);
  min-height: 5.7rem;
  padding: 1rem clamp(0.6rem, 3vw, 1.45rem);
  border: none;
  background: transparent;
  color: var(--title);
  font: inherit;
  font-size: clamp(0.72rem, 1.9vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, opacity 0.35s ease;
}

.share-button {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.quote-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid rgba(200, 162, 90, 0.64);
  border-radius: 999px;
  color: var(--title);
}

.quote-action-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
}

.quote-action-button:hover,
.quote-action-button:focus-visible {
  background: rgba(200, 162, 90, 0.09);
  color: #cead6e;
  outline: none;
}

.quote-action-button:focus-visible .quote-action-icon {
  box-shadow: 0 0 0 3px rgba(200, 162, 90, 0.18);
}

.quote-action-button[disabled],
.quote-action-button.is-speaking {
  opacity: 0.62;
}

.quote-action-button[disabled] {
  cursor: progress;
}

.quote-action-button.is-speaking {
  background: rgba(200, 162, 90, 0.11);
}

body.night-fall .quote-action-button,
body.night-fall .quote-action-icon {
  color: var(--title-night);
  border-color: var(--ink-soft-night);
}

.tiny {
  display: block;
  margin: 1rem auto 0;
  max-width: 40ch;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--author);
  opacity: 0.52;
  text-align: center;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tiny::before {
  content: none;
}

.share-image-fallback {
  width: min(360px, 100%);
  margin: 1rem auto 0;
  position: relative;
  z-index: 20;
}

.share-image-fallback[hidden] {
  display: none;
}

.share-image-fallback img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(200, 162, 90, 0.42);
  border-radius: 10px;
}

body.night-fall {
  color-scheme: dark;
  background:
    linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.32)),
    url("backgrounds/paramonoche.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--sand-night);
  color: var(--text-night);
}

body.night-fall .info-button {
  border-color: var(--ink-soft-night);
  color: var(--title-night);
}

body.night-fall .info-button:hover,
body.night-fall .info-button:focus-visible {
  background: rgba(246, 234, 199, 0.08);
  border-color: rgba(246, 234, 199, 0.36);
  box-shadow: 0 0 0 3px rgba(246, 234, 199, 0.18);
}

body.night-fall h1 {
  color: var(--title-night);
}

body.night-fall blockquote {
  color: var(--text-night);
}

body.night-fall .author,
body.night-fall .tiny {
  color: var(--author-night);
}

body.night-fall .meta-link {
  color: #d6cdb3;
}

body.night-fall .meta-link:hover,
body.night-fall .meta-link:focus-visible {
  color: var(--title-night);
}

body.night-fall .tiny::before {
  background: var(--ink-soft-night);
}

#quote-card.quote-card--capturing,
#quote-card.quote-card--capturing * {
  transition: none !important;
  animation: none !important;
  box-shadow: none !important;
  filter: none !important;
}

body.night-fall blockquote::before,
body.night-fall blockquote::after {
  color: rgba(246, 234, 199, 0.28);
}


.mycelium-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background: var(--sand);
}

.mycelium-layer--visible {
  opacity: 1;
}

.mycelium-layer--resting {
  opacity: 1;
}

.mycelium-layer[data-reduce-motion='true'] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .mycelium-layer {
    display: none;
  }
}

.mycelium-canvas {
  width: 100%;
  height: 100%;
  transition: opacity 2s ease;
}

.mycelium-path {
  stroke: rgba(200, 162, 90, 0.05);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mycelium-path--accent {
  stroke: rgba(200, 162, 90, 0.08);
}

body[data-mode='day'] .mycelium-layer {
  background: linear-gradient(180deg, #121212 0%, #171717 100%);
}


.mycelium-layer--resting .mycelium-path[data-pulse='true'] {
  animation: mycelium-breathe var(--mycelium-pulse-duration, 18s) ease-in-out infinite;
}

.mycelium-layer--resting .mycelium-canvas {
  opacity: 0.82;
}

@keyframes mycelium-breathe {
  0%,
  100% {
    opacity: var(--mycelium-pulse-min-opacity, 0.4);
  }
  50% {
    opacity: var(--mycelium-pulse-max-opacity, 0.48);
  }
}

.paramo-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease;
}

.mycelium-layer--visible .paramo-illustration {
  opacity: 0.3;
}

.mycelium-layer--resting .paramo-illustration {
  opacity: 0.5;
}

.mycelium-layer__clearing {
  position: absolute;
  inset: min(12vh, 18%);
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(200, 162, 90, 0.1) 0%,
    rgba(200, 162, 90, 0.06) 35%,
    rgba(200, 162, 90, 0.03) 62%,
    rgba(200, 162, 90, 0) 82%
  );
  mix-blend-mode: lighten;
  opacity: 0;
  transition: opacity 2s ease;
}

.mycelium-layer--visible .mycelium-layer__clearing {
  opacity: 0.35;
}

.mycelium-layer--resting .mycelium-layer__clearing {
  opacity: 0.28;
}

.day-motes-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 2s ease;
  background: transparent;
}

.day-motes-layer--visible {
  opacity: 0.35;
}

.day-mote {
  position: absolute;
  filter: blur(0.2px);
  bottom: -24px;
  border-radius: 50%;
  width: 3px;
  height: 3px;
  opacity: var(--mote-opacity, 0.26);
  pointer-events: none;
  box-shadow: 0 0 4px rgba(200, 162, 90, 0.2);
  transform: translate3d(0, 0, 0);
  animation-name: day-mote-ascend;
  animation-duration: var(--mote-duration, 16s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.day-mote--primary {
  background: radial-gradient(circle, rgba(200, 162, 90, 0.2) 0%, rgba(200, 162, 90, 0) 72%);
}

.day-mote--secondary {
  background: radial-gradient(circle, rgba(168, 132, 69, 0.18) 0%, rgba(168, 132, 69, 0) 72%);
}

.day-motes-layer[data-reduce-motion='true'] .day-mote {
  animation: none;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes day-mote-ascend {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: var(--mote-opacity, 0.26);
  }
  45% {
    transform: translate3d(calc(var(--mote-drift-x, 0px) * 0.35), -80px, 0) scale(1.08);
    opacity: calc(var(--mote-opacity, 0.26) * 1.1);
  }
  100% {
    transform: translate3d(var(--mote-drift-x, 0px), -150px, 0) scale(1.2);
    opacity: 0;
  }
}

.fireflies-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
  opacity: 0;
  animation: fireflies-layer-in var(--firefly-fade-in, 2400ms) ease-out forwards;
}

.firefly {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, #f9e36b 0%, rgba(249, 227, 107, 0.3) 70%, rgba(249, 227, 107, 0) 100%);
  box-shadow: 0 0 14px 6px rgba(249, 227, 107, 0.35), 0 0 28px 12px rgba(248, 231, 142, 0.18);
  opacity: var(--firefly-base-opacity, 0.75);
  transform: translate3d(0, 0, 0);
  animation-name: firefly-drift, firefly-flicker;
  animation-duration: var(--drift-duration, 12s), var(--flicker-duration, 1.2s);
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: alternate, alternate;
  animation-delay: 0s, var(--flicker-delay, 0s);
}

.fireflies-layer[data-reduce-motion='true'] .firefly {
  animation-name: firefly-flicker;
  animation-duration: var(--flicker-duration, 1.2s);
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-delay: var(--flicker-delay, 0s);
}

@keyframes firefly-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  35% {
    transform: translate3d(calc(var(--dx, 0px) * 0.35), calc(var(--dy, 0px) * 0.3), 0) scale(1.05);
  }
  70% {
    transform: translate3d(calc(var(--dx, 0px) * 0.7), calc(var(--dy, 0px) * 0.65), 0) scale(0.95);
  }
  100% {
    transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) scale(1);
  }
}

@keyframes firefly-flicker {
  0% {
    opacity: calc(var(--firefly-base-opacity, 0.75) * 0.6);
  }
  45% {
    opacity: calc(var(--firefly-base-opacity, 0.75) * 1.05);
  }
  70% {
    opacity: calc(var(--firefly-base-opacity, 0.75) * 0.5);
  }
  100% {
    opacity: calc(var(--firefly-base-opacity, 0.75) * 0.9);
  }
}

@keyframes fireflies-layer-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.modal {
  transition: opacity 0.8s ease;
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  z-index: 12;
  pointer-events: none;
  opacity: 0;
}

.modal:not(.is-hidden) {
  opacity: 1;
  pointer-events: auto;
}

.modal.is-hidden {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 11, 0.45);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  background: linear-gradient(145deg, rgba(31, 31, 31, 0.96), rgba(26, 26, 26, 0.94));
  border-radius: 18px;
  padding: clamp(1rem, 3vw, 1.6rem);
  width: min(600px, 90vw);
  box-shadow: 0 16px 32px rgba(12, 10, 7, 0.36), 0 2px 8px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(200, 162, 90, 0.2);
}

body[data-mode='day'] .modal__subtitle,
body[data-mode='day'] .modal__close,
body[data-mode='day'] .modal__content {
  color: var(--author);
}


.modal__header {
  margin-bottom: 0.75rem;
}

.modal__title {
  margin: 0;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 3.4vw, 1.8rem);
  color: var(--title);
}

.modal__subtitle {
  margin: 0.15rem 0 0;
  color: var(--author);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.modal__content {
  margin-top: 0.85rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

.modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  border: none;
  background: none;
  font-size: 1.3rem;
  color: var(--author);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal__close:hover,
.modal__close:focus-visible {
  color: var(--title);
  outline: none;
}

.modal__dialog:focus-visible {
  outline: 3px solid rgba(86, 92, 51, 0.35);
}

body.night-fall .modal__dialog {
  background: linear-gradient(145deg, rgba(13, 10, 16, 0.94), rgba(21, 16, 26, 0.94));
  color: var(--text-night);
  border-color: rgba(246, 234, 199, 0.16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.2);
}

body.night-fall .modal__title {
  color: var(--title-night);
}

body.night-fall .modal__subtitle,
body.night-fall .modal__close,
body.night-fall .modal__content {
  color: var(--author-night);
}

body.night-fall .modal__close:hover,
body.night-fall .modal__close:focus-visible {
  color: var(--title-night);
}

.modal__dialog {
  max-width: 60vw;
}

@media (max-width: 960px) {
  .modal__dialog {
    max-width: 80vw;
  }
}


@media (max-width: 480px) {
  .quote-text {
    font-size: clamp(1.25rem, 4.8vw, 1.75rem);
    max-width: 90%;
    line-height: 1.3;
  }
}

@media (max-width: 600px) {
  body {
    min-height: 100dvh;
    padding-inline: 24px;
    padding-block: clamp(1.8rem, 7vh, 3rem);
    align-items: center;
  }

  main.wrap {
    width: 100%;
  }

  .quote-flow {
    gap: 1rem;
  }

  #quote-card {
    width: 100%;
    padding: 1.15rem 1rem 0;
  }

  h1 {
    font-size: clamp(1.5rem, 8vw, 2.25rem);
    letter-spacing: 0.22em;
  }

  blockquote {
    padding-inline: 0;
    font-size: clamp(1.25rem, 4.8vw, 1.75rem);
    max-width: 90%;
    line-height: 1.3;
  }

  .author {
    margin-top: 1.5rem;
    gap: 0.3rem;
  }

  .meta-author {
    font-size: 1.02rem;
  }

  .meta-work {
    font-size: 0.96rem;
  }

  .watermark {
    font-size: 0.84rem;
    opacity: 0.3;
  }

  .quote-actions {
    width: calc(100% + 2rem);
  }

  .quote-actions__divider {
    height: 3.5rem;
  }

  .quote-action-button {
    flex-direction: column;
    gap: 0.45rem;
    min-height: 5.25rem;
    letter-spacing: 0.11em;
  }

  .quote-action-icon {
    width: 2.55rem;
    height: 2.55rem;
  }

  .tiny {
    font-size: 0.78rem;
    max-width: 28ch;
    opacity: 0.5;
  }

  .firefly {
    box-shadow: 0 0 10px 4px rgba(249, 227, 107, 0.26), 0 0 18px 8px rgba(248, 231, 142, 0.14);
    background: radial-gradient(circle at center, rgba(249, 227, 107, 0.9) 0%, rgba(249, 227, 107, 0.25) 65%, rgba(249, 227, 107, 0) 100%);
  }
}
