/* ============================================
   Megumi Life — Verse of the Day
   Clean white page, one floating verse card
   ============================================ */

/* --- Variables --- */
:root {
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --color-bg: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #6b6259;
  --color-border: #eee7d8;
  --color-gold: #b8952a;
  --color-gold-hover: #8f7120;
  --color-link: #2c4a7c;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* --- Page layout --- */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
}

/* --- Header --- */
.site-header { text-align: center; }
.header-cross {
  display: block;
  font-size: 1.75rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.site-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-date {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Floating verse (no box, just the words) --- */
.votd-card {
  width: 100%;
  padding: 1rem 0.5rem;
  animation: hover-float 6s ease-in-out infinite;
}

@keyframes hover-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .votd-card { animation: none; }
}

.votd-body { text-align: center; }
.votd-text {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.4rem, 3.8vw, 1.9rem);
  line-height: 1.6;
  /* soft drop shadow beneath the letters so they read as lifted off the page */
  text-shadow: 0 10px 18px rgba(26, 26, 46, 0.14);
}
.votd-ref {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-gold);
  letter-spacing: 0.03em;
}

/* --- Loading / error --- */
.card-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-msg { margin: 0; color: #9b2c2c; text-align: center; }

/* --- Phone note --- */
.phone-note {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.phone-link {
  color: var(--color-link);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.phone-link:hover,
.phone-link:focus-visible { text-decoration: underline; }

/* --- Footer --- */
.site-footer {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.site-footer p { margin: 0; }
.footer-link { color: var(--color-text-muted); }
.footer-link:hover { color: var(--color-gold-hover); }
