:root {
  color-scheme: dark;
  --bg: #09090b;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.66);
  --line: rgba(244, 241, 234, 0.16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100svh;
  background:
    radial-gradient(ellipse 55% 40% at 50% 30%, rgba(72, 58, 64, 0.16), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

button,
a {
  font: inherit;
  color: inherit;
}

.back {
  position: fixed;
  z-index: 5;
  top: 18px;
  left: 22px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.back:hover,
.back:focus-visible {
  color: var(--text);
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 56px;
}

.intro {
  text-align: center;
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 560;
  letter-spacing: -0.03em;
}

.quote {
  width: 100%;
  margin: 48px 0 0;
  text-align: center;
}

blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 560;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

blockquote::before {
  content: "“";
}

blockquote::after {
  content: "”";
}

figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.controls > button,
.dots button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.05rem;
}

.dots {
  display: flex;
  gap: 8px;
}

.dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

.dots button[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
}

.controls button:focus-visible,
.back:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .back {
    top: 14px;
    left: 14px;
  }

  .app {
    width: calc(100% - 32px);
    padding-top: 72px;
  }

  .quote {
    margin-top: 36px;
  }
}
