/* 0xMoa — palette from conference mark: black, gold, blue, cream */
:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-elev: #0e0e12;
  --bg-hover: #16161c;
  --bg-card: linear-gradient(160deg, #12121a 0%, #0a0a0e 100%);
  --border: #2a2a33;
  --border-glow: #3d3d4a;
  --text: #e8e4dc;
  --muted: #9a958c;
  --faint: #6b665e;
  --gold: #c9a36e;
  --gold-soft: #d4b896;
  --gold-dim: #8a7048;
  --blue: #6b8fd4;
  --blue-soft: #8aa8e0;
  --blue-dim: #3d5a8a;
  --cream: #e8e0d5;
  --ok: #86efac;
  --warn: #f0c674;
  --danger: #f0a0a0;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 56rem;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(107, 143, 212, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201, 163, 110, 0.05), transparent 50%);
  background-attachment: fixed;
}

a { color: var(--blue-soft); text-decoration: none; }
a:hover { color: var(--gold-soft); text-decoration: underline; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3.5rem;
}

/* —— Header —— */
header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--cream);
}

header.site .brand:hover { text-decoration: none; opacity: 0.92; }

header.site .brand img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  border-radius: 50%;
}

header.site .brand-text {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

header.site .brand-text .ox { color: var(--gold); }
header.site .brand-text .x { color: var(--blue); }
header.site .brand-text .moa { color: var(--cream); }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  font-size: 0.9rem;
  font-family: var(--sans);
}

nav a {
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
}

nav a:hover {
  color: var(--cream);
  background: var(--bg-hover);
  text-decoration: none;
}

nav a.active {
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  font-weight: 600;
}

/* —— Typography —— */
h1 {
  font-family: var(--font);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  color: var(--cream);
}

h2 {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}

h3 {
  font-family: var(--font);
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 0 1.25rem;
}

.meta {
  color: var(--faint);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.meta code, code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--gold-soft);
}

/* —— Hero —— */
.hero {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
  }
}

.hero-mark {
  display: flex;
  justify-content: center;
}

.hero-mark img {
  width: min(100%, 320px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(107, 143, 212, 0.15));
}

.hero-copy .tagline {
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin: 0 0 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

/* —— Buttons / CTAs —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

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

.btn-primary {
  color: #0a0a0c;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 50%, var(--gold-dim) 100%);
  border-color: var(--gold-dim);
}

.btn-primary:hover { color: #000; filter: brightness(1.06); }

.btn-secondary {
  color: var(--cream);
  background: transparent;
  border-color: var(--blue-dim);
  box-shadow: inset 0 0 0 1px rgba(107, 143, 212, 0.25);
}

.btn-secondary:hover {
  color: var(--blue-soft);
  border-color: var(--blue);
  background: rgba(107, 143, 212, 0.08);
}

.btn-ghost {
  color: var(--muted);
  background: var(--bg-elev);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--cream);
  border-color: var(--border-glow);
}

/* —— Cards / UI —— */
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg-elev);
}

.pill.ok {
  color: var(--ok);
  border-color: #166534;
  background: rgba(22, 101, 52, 0.2);
}

.pill.warn {
  color: var(--warn);
  border-color: var(--gold-dim);
  background: rgba(201, 163, 110, 0.12);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  margin: 0.65rem 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: var(--border-glow);
  background: var(--bg-hover);
}

.card .sub {
  color: var(--faint);
  font-size: 0.82rem;
  margin: 0 0 0.5rem;
  font-family: var(--mono);
}

.card p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.votes {
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.err {
  color: var(--danger);
  background: #1a1010;
  border: 1px solid #5c2a2a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.loading { color: var(--faint); font-size: 0.95rem; }

table.sched {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.sched th,
table.sched td {
  text-align: left;
  padding: 0.65rem 0.45rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.sched th {
  color: var(--faint);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

table.sched td.time {
  font-family: var(--mono);
  color: var(--muted);
  white-space: nowrap;
  width: 11rem;
  font-size: 0.82rem;
}

.tiers {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.tier .name {
  font-family: var(--font);
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--cream);
}

.tier .price {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.tier .perks {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.tier .perks li::before {
  content: "· ";
  color: var(--blue);
}

pre.block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.95rem 1.05rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

pre.block .hl { color: var(--gold-soft); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filters button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.filters button:hover,
.filters button.active {
  color: var(--bg);
  border-color: var(--gold-dim);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.empty { color: var(--faint); padding: 1rem 0; }

/* Doc-style pages */
.doc-section {
  margin-bottom: 1.75rem;
}

.doc-section ol,
.doc-section ul {
  color: var(--muted);
  padding-left: 1.25rem;
}

.doc-section li { margin: 0.35rem 0; }

.note {
  border-left: 3px solid var(--blue);
  padding: 0.65rem 1rem;
  background: rgba(107, 143, 212, 0.06);
  color: var(--muted);
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}

.note.gold {
  border-left-color: var(--gold);
  background: rgba(201, 163, 110, 0.06);
}

/* CTA strip */
.cta-strip {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0.5rem;
}

@media (min-width: 600px) {
  .cta-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.cta-card:hover {
  text-decoration: none;
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.cta-card.agents:hover { border-color: var(--blue); }

.cta-card .cta-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.cta-card .cta-title {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
}

.cta-card.agents .cta-title { color: var(--blue-soft); }
.cta-card.humans .cta-title { color: var(--gold-soft); }

.cta-card .cta-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Footer */
footer.site {
  margin-top: 3rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}

footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--gold-soft); }

.foot-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.foot-mark img {
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.85;
}

/* —— Human essay / FAQ —— */
.prose p {
  color: var(--muted);
  margin: 0 0 1.05rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.prose p.pull {
  font-family: var(--font);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  color: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 0.15rem 0 0.15rem 1.15rem;
  margin: 1.5rem 0 1.65rem;
  line-height: 1.5;
  max-width: none;
}

.prose strong {
  color: var(--cream);
  font-weight: 600;
}

/* Full width of main column — matches hero + CTA strip above */
.human-block {
  width: 100%;
  max-width: none;
  margin: 2.5rem 0 1.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
}

.human-block h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.human-block .essay-flow {
  width: 100%;
  max-width: none;
}

.human-block .essay-flow p {
  max-width: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0 2rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

.faq-item summary:hover {
  background: var(--bg-hover);
}

.faq-item .faq-body {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-body {
  border-top-color: var(--border);
  padding-top: 0.85rem;
}

.faq-item .faq-body p {
  margin: 0 0 0.75rem;
}

.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

.faq-item .faq-body a {
  color: var(--blue-soft);
}

.press-box {
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(107, 143, 212, 0.06);
}

.press-box h3 {
  margin: 0 0 0.5rem;
  color: var(--blue-soft);
}

.press-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Agenda multi-track + deep-links —— */
.wrap-wide {
  max-width: min(72rem, 100%);
}

.agenda-block {
  margin: 1.5rem 0 2rem;
}

.agenda-block.is-break {
  opacity: 0.92;
}

.agenda-time {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin: 0 0 0.65rem;
  font-family: var(--mono);
}

.agenda-tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
}

.agenda-slot.break-slot {
  border-color: var(--gold-dim);
  background: rgba(201, 163, 110, 0.06);
}

.deeplink-hit {
  outline: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 163, 110, 0.25);
  transition: outline 0.2s ease, box-shadow 0.2s ease;
}

button.linkish {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--blue-soft);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--sans);
}

button.linkish:hover {
  border-color: var(--gold-dim);
  color: var(--gold-soft);
}

.session-panel {
  margin: 1.75rem 0;
}

.session-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--cream);
}

.presentation-stream {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  max-height: 18rem;
  overflow: auto;
}

.chat-msg.is-reply {
  margin-left: 1rem;
  border-left: 2px solid var(--blue-dim);
}

.reply-to {
  font-style: italic;
}
