/* coffee-facts.css */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: #1a0f0a;
  color: #f0e6d3;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  min-height: 100vh;
}

header {
  text-align: center;
  margin-bottom: 56px;
}

header .eyebrow {
  margin-top:30px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b5651d;
  margin-bottom: 12px;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: #f0e6d3;
  letter-spacing: -0.01em;
}

header .date {
  margin-top: 10px;
  font-size: 12px;
  color: #8a6a50;
  letter-spacing: 0.1em;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.card {
  background: #fff9f2;
  color: #3d2314;
  border-radius: 4px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.card.beginner::before { background: #b5651d; }
.card.exclusive::before { background: #1a0f0a; }

.card-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
}

.card.beginner .card-label { color: #b5651d; }
.card.exclusive .card-label { color: #8a6a50; }

.card h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: #2c1a0e;
  line-height: 1.3;
  margin-bottom: 20px;
}

.card p {
  font-size: 15px;
  line-height: 1.8;
  color: #4a2e1a;
}

.card p + p { margin-top: 14px; }

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 12px;
}

.loading-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #b5651d;
  display: inline-block;
  animation: pulse 1.2s ease-in-out infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.loading-text {
  font-size: 12px;
  color: #8a6a50;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

.refresh-btn {
  display: block;
  margin: 48px auto 0;
  background: transparent;
  border: 1px solid #3d2314;
  color: #b5651d;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: #b5651d;
  color: #fff9f2;
  border-color: #b5651d;
}

.error-text {
  color: #8a6a50;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

