/* Content pages: holiday countdowns, guides, about. Same look as the
   privacy/terms pages, plus a live countdown frame and link groups. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1a1a2e;
  --fg: #e8e8f0;
  --muted: rgba(232, 232, 240, 0.68);
  --border: rgba(232, 232, 240, 0.12);
  --accent: #8ca7ff;
  --surface: rgba(255, 255, 255, 0.04);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  padding: 2rem 1rem 4rem;
}

/* Every link gets the light accent, visited ones included: the browser's
   default blue/purple is unreadable on this dark background. More specific
   rules (nav, buttons, footer) still set their own colors. */
a,
a:visited { color: var(--accent); }
.lede a { text-decoration: underline; text-underline-offset: 0.15em; }

.page { max-width: 760px; margin: 0 auto; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--fg);
}
.logo .dot { color: var(--accent); }
.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
.nav-cta:hover { border-color: var(--accent); }

.page-header { margin-bottom: 1.5rem; }
.page-header h1 {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.lede { color: var(--muted); font-size: 1rem; }
.lede strong { color: var(--fg); }

/* Live countdown */
.live-countdown { margin: 1.75rem 0 2.25rem; }
.countdown-frame {
  position: relative;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #11111f;
}
.countdown-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.countdown-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn-primary {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Body copy */
.content h2 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 2.25rem 0 0.6rem;
}
.content h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.4rem;
}
.content p,
.content li { color: var(--muted); font-size: 0.95rem; }
.content p { margin-bottom: 0.8rem; }
.content ul,
.content ol { padding-left: 1.4rem; margin-bottom: 0.9rem; }
.content li { margin-bottom: 0.35rem; }
.content strong { color: var(--fg); }
.content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.content code {
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.05rem 0.35rem;
  color: var(--fg);
}
.content pre {
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.content pre code { background: none; border: 0; padding: 0; font-size: 0.82rem; }

.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
th { color: var(--fg); font-weight: 600; }
td { color: var(--muted); }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
}
.callout p { margin: 0; color: var(--fg); }

.faq h3 { margin-top: 1.25rem; }

/* Footer link groups */
.page-footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
  font-size: 0.85rem;
}
.page-footer h2 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.page-footer ul { list-style: none; }
.page-footer li { margin-bottom: 0.3rem; }
.page-footer a { color: var(--fg); text-decoration: none; }
.page-footer a:hover { color: var(--accent); }
.page-footer .footer-copy { grid-column: 1 / -1; color: var(--muted); font-size: 0.75rem; }

@media (max-width: 600px) {
  /* Taller frame on phones so the numbers and the attribution badge don't collide */
  .countdown-frame { aspect-ratio: 4 / 3; }
}
