/* FAQ poster — quiet editorial split. Loaded after theme. */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg, #050508);
  color: var(--text-body, #f1f5f9);
  font-family: var(--font-sans, "Figtree", system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip,
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold, #fbbf24);
  color: #050508;
  padding: 10px 18px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip:focus,
.skip:focus-visible,
.skip-to-content:focus,
.skip-to-content:focus-visible {
  top: 16px;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 50;
  height: 2px;
  width: 0;
  background: var(--gold, #fbbf24);
  pointer-events: none;
}

html.zoth-preview .progress {
  top: 36px;
}

.hero-alchemical-canvas,
.azoth-watermark,
.ambient-mesh,
.rune-matrix-canvas,
.travel-hud-nav,
.travel-space-backdrop {
  display: none !important;
}

main#main-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* Poster hero                                                                */
/* -------------------------------------------------------------------------- */

.faq-poster {
  position: relative;
  width: 100%;
  height: calc(100svh - var(--zoth-header-h, 54px));
  min-height: calc(100svh - var(--zoth-header-h, 54px));
  max-height: calc(100svh - var(--zoth-header-h, 54px));
  display: grid;
  grid-template-columns: minmax(20rem, 40rem) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg, #050508);
  box-sizing: border-box;
}

.faq-poster-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  max-width: 40rem;
  min-width: 0;
  min-height: 0;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px) clamp(36px, 6vw, 72px);
}

.faq-poster .kicker {
  margin: 0;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #fbbf24);
  font-weight: 700;
  background: none;
  border: 0;
}

.faq-poster h1 {
  font-family: var(--font-theme-heading, "Syne", "Fraunces", sans-serif) !important;
  font-size: clamp(2.7rem, 5.8vw, 4.2rem) !important;
  font-weight: 800;
  line-height: 0.92 !important;
  letter-spacing: -0.05em !important;
  max-width: 100%;
  width: auto;
  margin: 0;
  background: none !important;
  color: var(--text-primary, #fff6dc) !important;
  -webkit-text-fill-color: var(--text-primary, #fff6dc) !important;
  text-shadow: none !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  filter: none !important;
}

.faq-poster .lede {
  margin: 0;
  max-width: 32rem;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--text-subhead, var(--mute, #cbd5e1));
}

.faq-poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.faq-poster-actions .btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 0;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-poster-actions .btn:hover,
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.faq-poster-actions .btn-gold,
.btn-gold {
  background: var(--gold, #fbbf24) !important;
  color: #050508 !important;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.28);
}

.faq-poster-actions .btn-gold:hover,
.btn-gold:hover {
  filter: brightness(1.08);
  color: #050508 !important;
}

.faq-poster-actions .btn-ghost,
.btn-ghost {
  background: transparent;
  color: var(--text-primary, #fff) !important;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.16));
}

.faq-poster-actions .btn-ghost:hover,
.btn-ghost:hover {
  border-color: var(--gold, #fbbf24);
  color: var(--gold, #fbbf24) !important;
}

.faq-poster-figure {
  position: relative;
  z-index: 1;
  min-height: 0;
  min-width: 0;
  height: auto;
  align-self: stretch;
  overflow: hidden;
  background: #050508;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.faq-poster-figure img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center bottom;
}

.faq-poster-credit {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #fbbf24);
  pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* FAQ stack                                                                  */
/* -------------------------------------------------------------------------- */

.faq-list {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 8px clamp(20px, 4vw, 48px) 96px;
  box-sizing: border-box;
}

.faq-list-kicker {
  margin: 0 0 18px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #fbbf24);
  font-weight: 700;
}

.faq-stack {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line, rgba(247, 244, 238, 0.12));
}

.faq-item {
  border-bottom: 1px solid var(--line, rgba(247, 244, 238, 0.12));
  background: transparent;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-primary, #fff);
  min-height: 44px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker,
.faq-item summary::marker {
  display: none;
  content: "";
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold, #fbbf24);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  color: var(--gold, #fbbf24);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--cyan, #00f0ff);
  outline-offset: 4px;
}

.faq-item p {
  margin: 0 0 22px;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-subhead, #cbd5e1);
}

.faq-list-foot {
  margin-top: 36px;
}

.faq-list-foot a {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #fbbf24);
}

.faq-list-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

footer.site {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  border-top: 1px solid var(--line, rgba(247, 244, 238, 0.1));
  padding: 48px clamp(20px, 4vw, 48px) 36px;
  background: var(--bg, #050508);
  color: var(--mute, #a8a4c2);
}

footer.site .foot-grid {
  display: grid;
  grid-template-columns: 1.618fr 1fr 1fr 1fr;
  gap: 34px;
  max-width: none;
  width: 100%;
}

footer.site .foot-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

footer.site .foot-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

footer.site .foot-brand strong {
  display: block;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
}

footer.site .foot-brand .kicker {
  display: block;
  margin: 4px 0 0;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #fbbf24);
  font-weight: 700;
}

footer.site .foot-brand p {
  color: var(--mute, #94a3b8);
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 22rem;
}

footer.site .foot-col h3 {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #fbbf24);
  margin: 0 0 14px;
  font-weight: 700;
  text-shadow: none;
}

footer.site .foot-col a {
  display: block;
  text-decoration: none;
  color: var(--text-subhead, #cbd5e1);
  font-size: 0.94rem;
  padding: 5px 0;
}

footer.site .foot-col a:hover {
  color: var(--gold, #fbbf24);
  text-shadow: none;
}

footer.site .foot-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line, rgba(247, 244, 238, 0.1));
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.76rem;
  color: var(--mute, #94a3b8);
}

/* -------------------------------------------------------------------------- */
/* Light mode                                                                 */
/* -------------------------------------------------------------------------- */

html[data-theme="light"] body {
  background: var(--bg, #f7f9fc);
  color: var(--text-body, #1f2937);
}

html[data-theme="light"] .faq-poster {
  background: var(--bg, #f7f9fc);
}

html[data-theme="light"] .faq-poster h1 {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  background: none !important;
  text-shadow: none !important;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem) !important;
  letter-spacing: -0.05em !important;
}

html[data-theme="light"] .faq-poster .lede {
  color: #374151 !important;
}

html[data-theme="light"] .faq-poster .kicker,
html[data-theme="light"] .faq-poster-credit,
html[data-theme="light"] .faq-list-kicker {
  color: #92400e !important;
}

html[data-theme="light"] .faq-poster-figure {
  background: #0b1220;
}

html[data-theme="light"] .faq-poster-actions .btn-ghost,
html[data-theme="light"] .btn-ghost {
  color: #111827 !important;
  border-color: rgba(17, 24, 39, 0.16) !important;
  background: #ffffff !important;
}

html[data-theme="light"] .faq-item {
  border-bottom-color: rgba(17, 24, 39, 0.12);
}

html[data-theme="light"] .faq-stack {
  border-top-color: rgba(17, 24, 39, 0.12);
}

html[data-theme="light"] .faq-item summary {
  color: #111827 !important;
}

html[data-theme="light"] .faq-item summary:hover {
  color: #92400e !important;
}

html[data-theme="light"] .faq-item p {
  color: #374151 !important;
}

html[data-theme="light"] footer.site {
  background: var(--bg, #f7f9fc);
  color: #374151;
  border-top-color: rgba(17, 24, 39, 0.1);
}

html[data-theme="light"] footer.site .foot-brand strong {
  color: #111827;
}

html[data-theme="light"] footer.site .foot-col a,
html[data-theme="light"] footer.site .foot-brand p,
html[data-theme="light"] footer.site .foot-end {
  color: #374151;
}

html[data-theme="light"] footer.site .foot-col a:hover {
  color: #92400e;
}

/* -------------------------------------------------------------------------- */
/* Mobile — portrait first, copy below, first screen                          */
/* -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .faq-poster {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: calc(100svh - var(--zoth-header-h, 54px));
    min-height: calc(100svh - var(--zoth-header-h, 54px));
  }

  .faq-poster-figure {
    order: -1;
    min-height: 0;
    flex: 0 0 auto;
    height: min(38svh, 300px);
    max-height: 38svh;
  }

  .faq-poster-copy {
    flex: 1 0 auto;
    justify-content: flex-start;
    padding: 16px 20px 24px;
    gap: 10px;
    max-width: none;
  }

  .faq-poster h1 {
    font-size: clamp(2.4rem, 12vw, 3.2rem) !important;
  }

  html[data-theme="light"] .faq-poster h1 {
    font-size: clamp(2.2rem, 11vw, 2.9rem) !important;
  }

  .faq-poster .lede {
    font-size: 1rem;
  }

  .faq-poster-actions {
    margin-top: 4px;
  }

  footer.site .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 21px;
  }
}

@media (max-width: 560px) {
  footer.site .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
