:root {
  --bg: #07090d;
  --bg-2: #0c1017;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8edf4;
  --muted: #8a94a6;
  --dim: #4b5466;
  --mint: #5ef2c0;   /* AI / evergreen */
  --berry: #ff5c7a;  /* holiday red */
  --gold: #ffd36e;   /* star */
  --grad: linear-gradient(100deg, var(--mint) 0%, #8fd3ff 45%, var(--berry) 100%);
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* faint dot grid */
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
a { color: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 0.85rem; }
.accent { color: var(--mint); }

/* ambient layers */
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.glow { position: fixed; width: 50vmax; height: 50vmax; border-radius: 50%; filter: blur(110px); opacity: 0.16; pointer-events: none; z-index: 0; }
.glow-a { background: var(--mint); top: -22vmax; left: -15vmax; }
.glow-b { background: var(--berry); bottom: -28vmax; right: -18vmax; opacity: 0.12; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(7, 9, 13, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; }
.brand-star { color: var(--gold); text-shadow: 0 0 12px rgba(255, 211, 110, 0.7); }
.nav-links { display: flex; gap: 22px; font-size: 0.9rem; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

main, .footer { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* hero */
.hero { padding: clamp(64px, 12vh, 128px) 0 48px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; margin: 0 0 20px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(94, 242, 192, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(94, 242, 192, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 242, 192, 0); } }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.03; letter-spacing: -0.045em; font-weight: 800; margin: 0 0 24px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 640px; margin: 0 auto 40px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }
.tag { color: var(--mint); text-decoration: none; }
.tag:hover { text-decoration: underline; }

.countdown { display: inline-block; margin-bottom: 36px; }
.cd-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 10px; }
.cd-grid { display: flex; gap: 10px; justify-content: center; }
.cd-grid div { min-width: 76px; padding: 14px 10px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.cd-grid span { display: block; font-family: var(--mono); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.cd-grid small { display: block; margin-top: 6px; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font: 600 0.95rem var(--font);
  text-decoration: none; cursor: pointer; transition: transform .15s, border-color .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.3); }
.btn-primary { background: var(--text); color: var(--bg); border-color: transparent; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 30px -8px rgba(94, 242, 192, 0.5); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; }
.copy-hint { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.btn-sm { padding: 8px 12px; font-size: 0.85rem; }

/* sections */
.section { padding: 72px 0 24px; scroll-margin-top: 60px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head .section-title { margin: 0; }
.section-head p { margin: 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.03em; margin: 0 0 28px; display: flex; align-items: baseline; gap: 14px; }
.num { font-size: 0.85rem; color: var(--mint); font-weight: 500; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.steps li { padding: 22px; }
.step-icon { font-size: 1.4rem; margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-size: 1.05rem; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* calendar */
.calendar { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.day {
  position: relative; aspect-ratio: 1 / 1; padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font: inherit; cursor: pointer; overflow: hidden;
  transition: transform .18s, border-color .18s, background .18s;
}
.day::after { /* hover sheen */
  content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(94,242,192,0.12), transparent 40%);
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.day:hover::after { opacity: 1; }
.day:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.day-num { font-family: var(--mono); font-size: 2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.day-title { font-size: 0.85rem; color: var(--muted); }
.day-meta { font-family: var(--mono); font-size: 0.7rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }

.day.is-locked { cursor: not-allowed; }
.day.is-locked .day-num { color: var(--dim); }
.day.is-locked:hover { transform: none; }
.day.is-locked .day-title::before { content: "🔒 "; filter: grayscale(1) opacity(0.6); }

.day.is-past .day-num { color: var(--text); }
.day.is-past .day-meta { color: var(--mint); }

.day.is-today { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 0 40px -10px rgba(94, 242, 192, 0.5); }
.day.is-today .day-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.day.is-today .day-meta { color: var(--gold); }

.day.is-25 .day-num::after { content: " ✦"; color: var(--gold); font-size: 1.2rem; vertical-align: top; }

/* feed */
.feed-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: 500 0.85rem var(--font); cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.is-active { color: var(--bg); background: var(--text); border-color: var(--text); }
.feed-status { font-size: 0.75rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.feed-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.feed-status.is-live::before { background: var(--mint); box-shadow: 0 0 8px var(--mint); }

.feed-layout { display: grid; grid-template-columns: 1fr 240px; gap: 16px; align-items: start; }
.feed { columns: 2 300px; column-gap: 14px; }
.post { break-inside: avoid; margin: 0 0 14px; padding: 16px; display: block; text-decoration: none; transition: border-color .15s; }
.post:hover { border-color: var(--border-strong); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); object-fit: cover; flex: none; }
.who { min-width: 0; flex: 1; }
.who strong { display: block; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-badge { font-family: var(--mono); font-size: 0.68rem; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); flex: none; }
.pf-badge.bluesky { color: #7cc4ff; border-color: rgba(124,196,255,0.3); }
.pf-badge.mastodon { color: #b7a6ff; border-color: rgba(183,166,255,0.3); }
.post-text { margin: 0; font-size: 0.92rem; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.post-img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; margin-top: 12px; border: 1px solid var(--border); }
.post-time { display: block; margin-top: 10px; font-family: var(--mono); font-size: 0.72rem; color: var(--dim); }

.feed-empty { column-span: all; padding: 40px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.feed-empty strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 6px; }
.skeleton { height: 140px; break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.elsewhere { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 10px; }
.elsewhere > p { margin: 0; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 14px; text-decoration: none; transition: border-color .15s; }
.link-card:hover { border-color: var(--border-strong); }
.link-card strong { display: block; font-size: 0.92rem; }
.link-card small { display: block; color: var(--muted); font-size: 0.8rem; }
.pf { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; font-weight: 800; background: var(--surface-2); border: 1px solid var(--border); }
.pf-li { color: #66b3ff; font-family: var(--font); }

/* faq */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.faq details { padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--mint); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 0.93rem; }

.footer { padding: 64px clamp(16px, 4vw, 40px) 40px; text-align: center; color: var(--dim); }
.footer a { color: var(--muted); }

/* dialog */
.dialog { padding: 0; border: none; background: transparent; color: var(--text); max-width: min(520px, calc(100vw - 32px)); width: 100%; }
.dialog::backdrop { background: rgba(3, 4, 7, 0.7); backdrop-filter: blur(6px); }
.dialog-inner { position: relative; padding: 28px; border-radius: 18px; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); }
.dialog .eyebrow { margin-bottom: 12px; }
.dialog h3 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -0.03em; }
.dlg-prompt { font-size: 1.05rem; margin: 0 0 8px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; }
.dialog-close:hover { color: var(--text); }
.share { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.share > p { margin: 0 0 10px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

@media (max-width: 860px) {
  .feed-layout { grid-template-columns: 1fr; }
  .elsewhere { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .elsewhere > p { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .calendar { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .day { padding: 10px; }
  .day-num { font-size: 1.5rem; }
  .day-title { display: none; }
  .cd-grid div { min-width: 64px; }
  .faq { grid-template-columns: 1fr; }
  .elsewhere { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
