/* =============================================================================
 * word-of-day.css — styles for the "Iryna" word-of-the-day plane
 * -----------------------------------------------------------------------------
 * The plane shell (slide-in, bar, back button) comes from styles.css "PROJECT
 * PLANES"; this file only styles the quote card and its day arrows. Tokens
 * only — dark mode flips for free. The caret reuses the global @keyframes
 * blink from styles.css.
 * ========================================================================== */

/* Stage: fills the plane under the 68px bar, card centered, arrows flanking. */
.wotd-stage {
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding: var(--gutter);
}

/* ------------------------------------------------------------- quote card */
.wotd-card {
  width: 100%;
  max-width: 34rem;
  padding: clamp(2.25rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.wotd-card.is-out {
  opacity: 0;
  transform: translateY(8px);
}

.wotd-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.wotd-word {
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  min-height: 1.1em;              /* holds the line while the word types out */
  overflow-wrap: break-word;      /* sesquipedalian words vs narrow screens */
}
.wotd-caret {
  color: var(--peach-deep);
  animation: blink 1s steps(1) infinite;
  margin-left: 0.06em;
}

.wotd-uk {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  color: var(--peach-deep);
  margin: 0.5rem 0 0;
}

.wotd-rule {
  width: 3rem;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.75rem auto;
}

.wotd-def {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.wotd-pos {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.wotd-ex {
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--muted);
  margin: 1rem 0 0;
}

/* ------------------------------------------------------------- day arrows */
.wotd-arrow {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.wotd-arrow:hover:not(:disabled),
.wotd-arrow:focus-visible {
  color: var(--peach-deep);
  border-color: var(--peach-deep);
}
.wotd-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
/* the → arrow parks invisibly while showing today, keeping the card centered */
.wotd-arrow.is-off {
  visibility: hidden;
  pointer-events: none;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 720px) {
  /* Card on top, both arrows in a row beneath it. */
  .wotd-stage { flex-wrap: wrap; align-content: center; }
  .wotd-card { order: 1; }
  .wotd-arrow--prev { order: 2; }
  .wotd-arrow--next { order: 3; }
}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wotd-card { transition: none; }
  .wotd-caret { animation: none; }
}
