:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  --bg: #f5f6fb;
  --card: #ffffff;
  --text: #1f2333;
  --muted: #4b546a;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --border: #e3e5ef;
  --shadow: 0 20px 40px rgba(31, 35, 51, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.app {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  gap: 28px;
}

.app__header p {
  color: var(--muted);
  max-width: 60ch;
}

.card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1.5fr;
  gap: 24px;
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card__media {
  background: #eef1ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__content h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
}

button.primary:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button.secondary {
  background: #eef0ff;
  color: var(--accent);
}

button.secondary:hover:not(:disabled) {
  background: #e2e6ff;
  transform: translateY(-1px);
}

.details {
  background: var(--card);
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border);
}

.details__tip {
  margin-top: 12px;
  color: var(--muted);
}

.app__footer {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .card {
    grid-template-columns: 1fr;
  }
}
