:root {
  --ink: #151823;
  --muted: #5e6878;
  --blue: #2074d4;
  --orange: #ef8a24;
  --paper: #fbfdff;
  --line: rgba(21, 24, 35, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(239, 138, 36, 0.18), transparent 25%),
    linear-gradient(135deg, #e9f6ff 0%, #fbfdff 48%, #dcefff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  justify-items: center;
  width: min(780px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 46px) 0;
}

.copy {
  max-width: 760px;
  text-align: center;
}

.kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.copy p:last-child {
  margin-bottom: 0;
}

.slideshow {
  display: grid;
  gap: 18px;
  width: 100%;
}

.frame {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(23, 42, 77, 0.18);
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
}

button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

#previousButton,
#nextButton {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  font-size: 1.8rem;
  line-height: 1;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 50%;
}

.dot.active {
  background: var(--orange);
  border-color: var(--orange);
}

button:hover,
button:focus-visible {
  border-color: var(--blue);
  outline: 3px solid rgba(32, 116, 212, 0.2);
}

@media (max-width: 820px) {
  h1 {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }
}
