:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: rgba(246, 242, 232, 0.94);
  --ink: #171819;
  --muted: #67625a;
  --accent: #d84d32;
  --accent-dark: #a73525;
  --mint: #8fd3b5;
  --sky: #9bb8ff;
  --shadow: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 77, 50, 0.42), transparent 26rem),
    radial-gradient(circle at 84% 20%, rgba(143, 211, 181, 0.3), transparent 28rem),
    linear-gradient(135deg, #101114 0%, #24201e 48%, #14191b 100%);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 64px);
}

.quote-panel {
  position: relative;
  width: min(100%, 780px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: clamp(28px, 6vw, 58px);
  background: var(--panel);
  box-shadow: 0 28px 80px var(--shadow);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(32px, 7vw, 56px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.quote-art {
  position: absolute;
  inset: auto 24px 24px auto;
  display: grid;
  grid-template-columns: repeat(3, 42px);
  gap: 10px;
  opacity: 0.68;
}

.quote-art span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
}

.quote-art span:nth-child(2) {
  background: var(--mint);
}

.quote-art span:nth-child(3) {
  background: var(--sky);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.intro {
  max-width: 34rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.5;
}

.quote-card {
  position: relative;
  margin: clamp(34px, 7vw, 56px) 0 26px;
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid rgba(23, 24, 25, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1.18;
}

figcaption {
  margin-top: 18px;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 800;
}

.quote-button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  color: white;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(216, 77, 50, 0.28);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.quote-button:hover {
  background: var(--accent-dark);
  box-shadow: 0 18px 38px rgba(167, 53, 37, 0.3);
  transform: translateY(-1px);
}

.quote-button:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

.quote-card.is-changing {
  animation: quote-pop 220ms ease;
}

@keyframes quote-pop {
  0% {
    opacity: 0.4;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .page-shell {
    place-items: stretch;
  }

  .quote-panel {
    min-height: calc(100vh - 40px);
  }

  .quote-art {
    grid-template-columns: repeat(3, 28px);
    right: 18px;
    bottom: 18px;
  }

  .quote-button {
    width: 100%;
  }
}
