:root {
  --bg: #0f0f12;
  --card: #1a1a1f;
  --text: #f5f7fb;
  --muted: #b8bfd1;
  --accent: #ff8a00;   /* toast/golden */
  --accent-2: #ff3b3b; /* roast/red */
  --border: #2a2f3a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1000px 400px at 20% 0%, #15161a 0%, var(--bg) 60%);
  color: var(--text);
}

.site-header, .site-footer { text-align: center; padding: 1rem; }
.tagline { color: var(--muted); margin-top: 0.25rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 1rem; }

.pair {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
@media (max-width: 800px) { .pair { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, #202026, var(--card));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
}

.card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.choose-btn {
  width: 100%;
  margin-top: 0.75rem;
  background: var(--accent);
  color: #111;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .05s ease-in-out;
}
.choose-btn:active { transform: scale(0.98); }
.choose-btn.active { outline: 3px solid var(--accent-2); }

.roast-control {
  margin: 1rem auto;
  max-width: 560px;
  text-align: center;
  background: #191a20;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.roast-label { display: block; font-weight: 700; margin-bottom: .35rem; }
#roast-slider { width: 100%; }
.roast-scale {
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 0.9rem; margin-top: .25rem;
}
.roast-value { margin-top: .4rem; color: var(--accent); }

.actions { display: flex; gap: 0.75rem; justify-content: center; margin: 1rem 0; }
button.primary {
  background: var(--accent-2);
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 10px; font-weight: 700; cursor: pointer;
}
button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 10px; cursor: pointer;
}

.stats { margin-top: 1rem; }
.stats h2 { font-size: 1.1rem; color: var(--muted); }
#stats { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
