:root {
  color-scheme: light;
  --bg: #f4f2ee;
  --surface: #ffffff;
  --text: #111111;
  --muted: #5a5a5a;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #ffffff 0%, var(--bg) 60%);
}

.viewer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px clamp(16px, 4vw, 48px) 48px;
}

.viewer__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.viewer__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.viewer__title {
  margin: 0;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 600;
}

.viewer__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.viewer__button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.viewer__button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.viewer__button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.viewer__status {
  min-width: 110px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.viewer__stage {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(16px, 4vw, 40px);
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.viewer__image {
  width: min(100%, 1100px);
  height: auto;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .viewer__controls {
    width: 100%;
    justify-content: space-between;
  }

  .viewer__button {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viewer__button {
    transition: none;
  }
}
