:root {
  --ink: #1f1f1f;
  --paper: #f8f5ef;
  --accent: #f05d5e;
  --accent-strong: #dd4a4b;
  --muted: #6b6b6b;
  --panel: #ffffff;
  --shadow: rgba(31, 31, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff5e5 0%, #f7ecd8 50%, #efe1c8 100%);
}

.app {
  min-height: 100vh;
  padding: 48px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: rise 600ms ease-out;
}

.hero h1 {
  font-size: clamp(28px, 6vw, 44px);
  margin: 0;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.panel {
  width: min(820px, 100%);
  background: var(--panel);
  border-radius: 22px;
  padding: 28px 28px 32px;
  box-shadow: 0 24px 60px -36px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: rise 700ms ease-out;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.tip-title {
  font-size: clamp(20px, 4vw, 30px);
  margin: 0;
}

.tip-body {
  white-space: pre-wrap;
  line-height: 1.6;
}

.panel pre {
  white-space: pre-wrap;
  background: #f3ede2;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px -18px var(--accent-strong);
}

button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -20px var(--accent-strong);
}

button.secondary {
  background: #f1ebe0;
  color: var(--ink);
}

.status {
  color: var(--muted);
  font-size: 14px;
}

@keyframes rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .panel {
    padding: 20px;
  }
}
