:root {
  --bg: #111214;
  --glow: rgba(245, 196, 81, 0.07);
  --accent: #f5c451;
  --accent-hover: #ffd36b;
  --accent-ink: #1c1406;
  --focus: #fff3cf;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(60vmax 60vmax at 50% 50%, var(--glow), transparent 60%),
    var(--bg);
  color: #e9e6df;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.coffee {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px 16px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 10px 30px -8px rgba(245, 196, 81, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.coffee:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 16px 40px -10px rgba(245, 196, 81, 0.6),
    0 3px 8px rgba(0, 0, 0, 0.45);
}

.coffee:active { transform: translateY(0); }

.coffee:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.cup {
  width: 26px;
  height: 26px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cup .mug { fill: currentColor; fill-opacity: 0.12; }

.cup .steam {
  stroke-width: 1.5;
  opacity: 0.75;
  animation: steam 2.4s ease-in-out infinite;
}

@keyframes steam {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(-1px); opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .coffee, .cup .steam { transition: none; animation: none; }
  .coffee:hover { transform: none; }
}
