/* welcome.css: SpotMe's public welcome page. Standalone on purpose: the
   page loads no app bundle, no Tailwind and no DaisyUI, so it paints on first
   byte. See .claude/rules/welcome-page.md. */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --col-max: 720px;
  --r-card: 16px;
  --r-pill: 999px;
}

/* Dark is the fallback when the boot script could not run. */
:root, :root[data-spotme="dark"] {
  color-scheme: dark;
  --bg-0: #141A16;
  --bg-1: #1C241F;
  --bg-2: #26302A;
  --ink: #EEE6DA;
  --ink-muted: #A9A091;
  --line: #313C35;
  --line-strong: #3F4C44;
  --accent: #74C69D;
  --accent-ink: #86D1AB;
  --accent-fill: #2D6A4F;
  --on-accent: #FFFFFF;
}

:root[data-spotme="light"] {
  color-scheme: light;
  --bg-0: #F5E6D3;
  --bg-1: #FFF8F0;
  --bg-2: #F0E0CC;
  --ink: #2C2C2C;
  --ink-muted: #6E6455;
  --line: #E3D2BC;
  --line-strong: #D2BEA4;
  --accent: #2D6A4F;
  --accent-ink: #2D6A4F;
  --accent-fill: #2D6A4F;
  --on-accent: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}

a { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.wl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 12px 16px;
}

.wl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.wl-brand img { width: 32px; height: 32px; border-radius: 8px; }

.wl-signin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 600;
  text-decoration: none;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wl-main {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 16px 32px;
}

.wl-hero { padding: 40px 0 32px; }
.wl-hero h1 { font-size: clamp(32px, 8vw, 48px); letter-spacing: -0.01em; }
.wl-lede {
  margin: 16px 0 0;
  max-width: 36em;
  color: var(--ink-muted);
  font-size: 18px;
}

.wl-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: 600 16px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.wl-btn:active { transform: scale(0.98); }
.wl-btn--primary { background: var(--accent-fill); color: var(--on-accent); }
.wl-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
@media (hover: hover) {
  .wl-btn--ghost:hover { background: var(--bg-1); }
}

.wl-section { padding: 24px 0; }
.wl-section h2 { font-size: 24px; margin-bottom: 16px; }

/* ── Feature cards ──────────────────────────────────────────────────────── */
.wl-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) { .wl-cards { grid-template-columns: repeat(3, 1fr); } }

.wl-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
  animation: wlFadeUp 0.4s ease both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.wl-card__num {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.wl-card h3 { font-size: 18px; margin-bottom: 6px; }
.wl-card p { margin: 0; color: var(--ink-muted); font-size: 15px; }

/* ── Spoke: chips, lists, states ────────────────────────────────────────── */
.wl-panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
}

.wl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wl-chip {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  color: var(--ink);
  font: 500 15px/1 var(--font-sans);
  cursor: pointer;
}
.wl-chip:active { transform: scale(0.97); }
.wl-chip[aria-pressed="true"] {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: var(--on-accent);
}

.wl-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.wl-list:empty { display: none; }
.wl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  animation: wlFadeUp 0.3s ease both;
  animation-delay: calc(var(--i, 0) * 30ms);
}
.wl-row:active { background: var(--bg-2); }
@media (hover: hover) { .wl-row:hover { background: var(--bg-2); } }
.wl-row__dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--row-color, var(--accent));
}
.wl-row__body { flex: 1; min-width: 0; }
.wl-row__name { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-row__meta { display: block; color: var(--ink-muted); font-size: 14px; }
.wl-row__go { flex: none; color: var(--ink-muted); }

.wl-state {
  margin: 16px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
}
.wl-state button {
  margin-left: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: 600 14px/1 var(--font-sans);
  cursor: pointer;
}

.wl-skel {
  height: 18px;
  margin: 10px 0;
  border-radius: 6px;
  background: var(--bg-2);
  animation: wlPulse 1.2s ease-in-out infinite;
}

/* ── Spoke: a featured item (today's word) ─────────────────────────────── */
.wl-word__date { margin: 0 0 6px; color: var(--ink-muted); font-size: 14px; }
.wl-word__main {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-ink);
  overflow-wrap: anywhere;
}
.wl-word__def { margin: 12px 0 0; font-size: 17px; }
.wl-word__def em { color: var(--ink-muted); }
.wl-word__ety {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--ink-muted);
  font-size: 15px;
}
.wl-word__ety span {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.wl-foot {
  border-top: 1px solid var(--line);
  padding: 20px 16px 32px;
}
.wl-foot__links {
  max-width: var(--col-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.wl-foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-muted);
  font-size: 14px;
}

@keyframes wlFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes wlPulse { 50% { opacity: 0.5; } }

@media (prefers-reduced-motion: reduce) {
  .wl-card, .wl-row, .wl-skel { animation: none; }
}
