/* Promotional site layout on top of genesis-ui.css (Genesis design system components). */

[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.gx-anchor { scroll-margin-top: var(--space-4); }
.gx-strong { color: var(--ink); }
.gx-grid--2 { --gx-cols: 2; align-items: start; }

.gx-skip {
  position: absolute; left: -100vw; top: 0; z-index: 10;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-pixel); font-synthesis: none; font-size: 20px; line-height: 24px;
  background: var(--gold); color: var(--on-gold); text-decoration: none;
}
.gx-skip:focus { left: var(--space-4); top: var(--space-4); outline: none; box-shadow: var(--focus-ring); }

/* Language toggle as links: the worker stores the choice and redirects. */
a.gx-lang__opt { display: inline-flex; align-items: center; text-decoration: none; }
.gx-lang__opt[aria-current="true"] { background: var(--stone); color: var(--on-stone); box-shadow: var(--bevel-raised-sm); }

/* Status while checking or when the numbers cannot be read */
.gx-status--idle .gx-status__dot { background: var(--stone); animation: none; }
.gx-status--idle { color: var(--ink-muted); }

.gx-stats__note { margin: var(--space-3) 0 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* Features: a card grid without script; hotbar tabs with one wide card when site.js runs. */
.gx-features { display: flex; flex-direction: column; }
.gx-features .gx-hotbar-wrap { align-self: center; margin-bottom: var(--space-8); }
.gx-features__panels { display: grid; gap: var(--space-6); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gx-features.is-tabs .gx-features__panels { grid-template-columns: 1fr; }
.gx-features.is-tabs .gx-feature { flex-direction: row; min-height: 280px; }
.gx-features.is-tabs .gx-feature .gx-card__art { flex: 0 0 40%; height: auto; border-bottom: 0; border-right: var(--texel) solid var(--outline); }
.gx-features.is-tabs .gx-feature .gx-card__body { justify-content: center; padding: var(--space-8); }
.gx-features.is-tabs .gx-feature .gx-card__title { font-size: 40px; line-height: 44px; }
.gx-features.is-tabs .gx-feature .gx-card__text { flex: none; max-width: 48ch; font-size: 18px; line-height: 30px; }

/* Tiers */
.gx-tiers__note { margin: var(--space-6) 0 var(--space-12); max-width: 72ch; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.gx-example { max-width: 720px; padding: var(--space-6); background: var(--surface); border: var(--texel) solid var(--outline); box-shadow: var(--shadow-drop); }
.gx-example__title { margin: var(--space-2) 0 var(--space-6); font-family: var(--font-pixel); font-synthesis: none; font-size: 30px; line-height: 36px; font-weight: 400; color: var(--ink); }
.gx-example .gx-stack { gap: var(--space-6); }

/* Chronicle */
.gx-chat__line--note { color: var(--ink-muted); }
.gx-chat__msg { overflow-wrap: anywhere; }
.gx-pixel-link { align-self: flex-start; font-family: var(--font-pixel); font-synthesis: none; font-size: 20px; line-height: 24px; }

/* Join */
.gx-join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: var(--space-12); align-items: start; }
.gx-steps { display: grid; gap: var(--space-4); margin: 0 0 var(--space-8); padding: 0; list-style: none; }
.gx-step { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4); background: var(--surface); border: var(--texel) solid var(--outline); }
.gx-step__num {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  font-family: var(--font-pixel); font-synthesis: none; font-size: 32px; line-height: 32px;
  background: var(--stone); color: var(--on-stone); box-shadow: var(--bevel-raised);
}
.gx-step__title { margin: 0 0 var(--space-1); font-family: var(--font-pixel); font-synthesis: none; font-size: 24px; line-height: 28px; font-weight: 400; color: var(--ink); }
.gx-step__text { margin: 0; color: var(--ink-muted); }
.gx-gui--access { box-sizing: border-box; width: 100%; max-width: 400px; }

.gx-footer__tag { margin: var(--space-4) 0 0; max-width: 40ch; }

@media (max-width: 1000px) {
  .gx-features__panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-join { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .gx-features__panels { grid-template-columns: 1fr; }
  .gx-features.is-tabs .gx-feature { flex-direction: column; min-height: 0; }
  .gx-features.is-tabs .gx-feature .gx-card__art { flex: none; min-height: 160px; border-right: 0; border-bottom: var(--texel) solid var(--outline); }
  .gx-features.is-tabs .gx-feature .gx-card__body { padding: var(--space-6); }
  .gx-features.is-tabs .gx-feature .gx-card__title { font-size: 30px; line-height: 36px; }
  .gx-hotbar { padding: 2px; border-width: var(--texel-sm); }
  .gx-hotbar__slot { width: 36px; height: 36px; }
  .gx-hotbar__slot .gx-icon { width: 24px; height: 24px; }
  .gx-hotbar__key { display: none; }
  .gx-nav__end { margin-left: auto; gap: var(--space-3); }
  .gx-lang .gx-icon { display: none; }
  .gx-ip__addr { font-size: 30px; }
  .gx-stats__note { margin-top: var(--space-2); }
  /* genesis-ui.css enlarges every wordmark to 56px here; keep the nav and footer size. */
  .gx-wordmark--sm { font-size: 30px; line-height: 30px; }
  .gx-hero__moon { top: var(--space-6); right: var(--space-4); width: 32px; height: 32px; box-shadow: inset -8px -8px 0 0 var(--ink-muted); }
}
@media (max-width: 480px) {
  .gx-nav .gx-btn { display: none; }
  .gx-gui--access .gx-slot { width: 48px; height: 48px; }
  .gx-gui--access .gx-slot .gx-icon { width: 32px; height: 32px; }
}

/* Progress fills in 5% steps (no inline styles under the CSP) */
.gx-xp__fill--0 { width: 0%; }
.gx-xp__fill--5 { width: 5%; }
.gx-xp__fill--10 { width: 10%; }
.gx-xp__fill--15 { width: 15%; }
.gx-xp__fill--20 { width: 20%; }
.gx-xp__fill--25 { width: 25%; }
.gx-xp__fill--30 { width: 30%; }
.gx-xp__fill--35 { width: 35%; }
.gx-xp__fill--40 { width: 40%; }
.gx-xp__fill--45 { width: 45%; }
.gx-xp__fill--50 { width: 50%; }
.gx-xp__fill--55 { width: 55%; }
.gx-xp__fill--60 { width: 60%; }
.gx-xp__fill--65 { width: 65%; }
.gx-xp__fill--70 { width: 70%; }
.gx-xp__fill--75 { width: 75%; }
.gx-xp__fill--80 { width: 80%; }
.gx-xp__fill--85 { width: 85%; }
.gx-xp__fill--90 { width: 90%; }
.gx-xp__fill--95 { width: 95%; }
.gx-xp__fill--100 { width: 100%; }
