/* dailydraw - styling mirrors artbase-ui's tokens (violet accent, gray-900/800
   dark surfaces, Inter) so the app feels native to the artbase family. */
:root {
  --violet-700: #6d28d9;
  --violet-600: #7c3aed;
  --violet-500: #8b5cf6;
  --violet-400: #a78bfa;
  --gray-950: #0b0f19;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-400: #9ca3af;
  --gray-50: #f9fafb;
}

* { box-sizing: border-box; }

/* min-height, never height: `html, body { height: 100% }` plus the overflow-x
   rules below made the root a scroll box locked to the viewport, so anything
   taller than one screen was simply unreachable. On a 390x844 phone that hid the
   bottom third of /faq with no way to scroll to it. dvh so a phone's collapsing
   toolbar doesn't make the page lurch; vh first for anything that lacks it. */
/* touch-action drops double-tap-to-zoom (and the 300ms wait a browser spends
   deciding whether a tap was one); text-size-adjust stops Safari growing the
   body text by itself in landscape. Both keep a phone at 1x, matching the
   viewport meta and the pinch guard in app.js. */
html {
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--gray-950);
  color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Soft violet glow backdrop, echoing the artbase auth/landing pages. */
.shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 50% -5%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(500px 500px at 85% 20%, rgba(139, 92, 246, 0.10), transparent 70%),
    radial-gradient(500px 500px at 10% 80%, rgba(109, 40, 217, 0.10), transparent 70%);
}

.site-header,
.wrap,
.site-footer { position: relative; z-index: 1; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--violet-400);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { display: block; object-fit: contain; }
.brand-tag {
  color: var(--gray-400);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--gray-700);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}
.brand-tag:hover { color: var(--gray-50); border-color: var(--violet-500); }

/* Main card */
.wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}
.card {
  width: 100%;
  max-width: 720px;
  min-width: 0; /* let the card shrink below content width inside the flex wrap */
  background: rgba(31, 41, 55, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--gray-700);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--violet-400);
}
.eyebrow .dot { margin: 0 0.4rem; opacity: 0.6; }
/* "Coming up", on the days you can read ahead. The eyebrow is the only line that
   says which day this is, and an upcoming prompt otherwise looks like today's. */
.eyebrow .chip {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  letter-spacing: 0.1em;
}
/* The one thing anybody came for. Everything else on the page is sized and
   coloured to stay out of its way. */
.prompt {
  margin: 1.25rem 0 2rem;
  font-size: clamp(2.25rem, 8vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
/* Sits under the actions (today only), so it reads as context rather than
   interrupting the prompt. */
.countdown {
  color: var(--gray-400);
  font-size: 0.85rem;
  margin: 1.5rem 0 0;
}
.countdown .clock {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--gray-50);
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.75rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--violet-600);
  color: #fff;
}
.btn-primary:hover { background: var(--violet-700); }
.btn-ghost {
  background: transparent;
  color: var(--gray-50);
  border-color: var(--gray-700);
}
.btn-ghost:hover { border-color: var(--violet-500); color: #fff; }

/* Fine print under the actions (not-AI note → FAQ) */
.smallprint {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  color: var(--gray-400);
  font-size: 0.8rem;
  line-height: 1.5;
}
.smallprint a { color: var(--violet-400); text-decoration: none; }
.smallprint a:hover { text-decoration: underline; }

/* FAQ page */
.faq { text-align: left; }
.faq .eyebrow { text-align: center; }
.faq-title {
  margin: 0.75rem 0 1.5rem;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}
.faq section { margin-bottom: 1.5rem; }
.faq h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--violet-400);
}
.faq p { margin: 0; color: var(--gray-50); line-height: 1.65; font-size: 0.95rem; }
.faq p + p { margin-top: 0.5rem; }
.faq a { color: var(--violet-400); text-decoration: none; }
.faq a:hover { text-decoration: underline; }
.faq-back { margin-top: 2rem; text-align: center; }

/* Day navigation */
.daynav {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-700);
  font-size: 0.9rem;
}
.daynav a { color: var(--violet-400); text-decoration: none; }
.daynav a:hover { text-decoration: underline; }
.daynav .disabled { color: var(--gray-700); }
.daynav .sep { margin: 0 0.6rem; color: var(--gray-700); }

/* Footer */
.site-footer {
  padding: 1.25rem 1.5rem 2rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.85rem;
}
.site-footer a { color: var(--violet-400); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .tag { color: var(--violet-400); font-weight: 600; }
.site-footer .sep { margin: 0 0.15rem; opacity: 0.45; }
.site-footer .build { display: block; margin-top: 0.5rem; opacity: 0.5; font-size: 0.75rem; }

/* Phones: a poster, not a page.

   People arrive to read one line and maybe press one button, and the desktop
   layout gave them a bordered card inside a padded viewport, three buttons
   wrapping into three rows, a ticking clock above the prompt and a sentence of
   footer, with the prompt itself at 30px. The card's chrome goes here so the
   prompt sits on the page's own glow: fewer edges, the full screen width, and
   something worth screenshotting. Nothing is removed, only demoted. */
@media (max-width: 560px) {
  .site-header { padding: 0.875rem 1.125rem; }
  .wrap { padding: 1.5rem 1.25rem 2rem; }
  .card {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.12em; }
  .prompt { margin: 1rem 0 1.75rem; }
  /* The primary action takes its own row; the two ghosts share the next one, and
     drop to a row each when their labels are too long to sit side by side. */
  .btn { padding: 0.75rem 0.9rem; font-size: 0.9rem; }
  .btn-primary { flex: 1 0 100%; }
  .btn-ghost { flex: 1 1 auto; }
  .countdown { font-size: 0.8rem; }
  .smallprint { margin-top: 1.75rem; font-size: 0.75rem; }
  .daynav { margin-top: 1.5rem; padding-top: 1rem; font-size: 0.85rem; }
  .site-footer { padding: 1rem 1.25rem 1.5rem; font-size: 0.78rem; }
  .site-footer .foot-lede { display: none; }
}
