:root {
  color-scheme: light;
  --background: #f8f5f1;
  --surface: #fff;
  --text: #342a26;
  --muted: #756964;
  --accent: #a64f5f;
  --border: #ddd5d0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  color: var(--text);
  background: var(--background);
}

.card {
  width: min(100%, 24rem);
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.heart {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1.25rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  line-height: 1.15;
}

.intro {
  margin: 0.75rem auto 0;
  color: var(--muted);
  line-height: 1.5;
}

.count {
  margin: 1.5rem 0;
  color: var(--accent);
  font-size: clamp(4.5rem, 24vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.button {
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.6rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.button-primary {
  color: #fff;
  background: var(--accent);
}

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

.button:hover:not(:disabled) {
  filter: brightness(0.92);
}

.button:focus-visible {
  outline: 3px solid rgba(166, 79, 95, 0.25);
  outline-offset: 2px;
}

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

.message {
  min-height: 1.3rem;
  margin: 0.8rem 0 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 24rem) {
  .card {
    padding: 2rem 1.25rem;
  }
}
