/* Rumor Thread: components. Built only from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--rt-night);
  color: var(--rt-dust);
  font-family: var(--rt-sans);
  font-size: var(--rt-text-body);
  line-height: 1.6;
  overflow-x: clip;
}
a { color: var(--rt-cream); }
img, svg { max-width: 100%; }

/* Layout */
.rt-container { width: 100%; max-width: var(--rt-container); margin: 0 auto; padding: 0 var(--rt-space-5); }
.rt-narrow { width: 100%; max-width: var(--rt-narrow); margin: 0 auto; padding: 0 var(--rt-space-5); }
.rt-section { padding: var(--rt-space-9) 0; position: relative; }
.rt-section--ash { background: var(--rt-ash); border-top: var(--rt-border); border-bottom: var(--rt-border); }
.rt-sky { background-color: var(--rt-night); background-image: var(--rt-stars); background-size: var(--rt-stars-size); }
.rt-center { text-align: center; }

/* Type */
.rt-hero-title, .rt-h2 {
  font-family: var(--rt-brush);
  font-weight: 400;
  color: var(--rt-cream);
  line-height: .98;
  margin: 0 0 var(--rt-space-5);
  letter-spacing: .01em;
}
.rt-hero-title { font-size: var(--rt-text-hero); }
.rt-h2 { font-size: var(--rt-text-h2); }
.rt-h3 { font-family: var(--rt-sans); font-weight: 700; font-size: var(--rt-text-h3); color: var(--rt-cream); margin: 0 0 var(--rt-space-2); line-height: 1.25; }
.rt-fire { color: var(--rt-fire); }
.rt-lead { font-size: var(--rt-text-lead); color: var(--rt-dust); max-width: 600px; margin: 0 0 var(--rt-space-6); }
.rt-center .rt-lead { margin-left: auto; margin-right: auto; }
.rt-label {
  font-family: var(--rt-type);
  font-size: var(--rt-text-label);
  letter-spacing: var(--rt-tracking-label);
  text-transform: uppercase;
  color: var(--rt-faint);
}
.rt-eyebrow {
  display: inline-flex; align-items: center; gap: var(--rt-space-2);
  font-family: var(--rt-type); font-size: var(--rt-text-label); letter-spacing: var(--rt-tracking-label);
  text-transform: uppercase; color: var(--rt-fire); margin-bottom: var(--rt-space-4);
}
.rt-eyebrow::before { content: ""; width: 18px; border-top: var(--rt-thread-line); border-color: var(--rt-fire); }

/* Buttons */
.rt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--rt-space-2);
  font-family: var(--rt-type); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 22px; border-radius: var(--rt-radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, box-shadow .2s, border-color .2s;
}
.rt-btn--fire { background: var(--rt-fire); color: var(--rt-night); }
.rt-btn--fire:hover { background: var(--rt-fire-deep); box-shadow: 0 0 28px var(--rt-glow); }
.rt-btn--ghost { background: transparent; color: var(--rt-cream); border: var(--rt-border-dashed); }
.rt-btn--ghost:hover { border-color: var(--rt-fire); color: var(--rt-fire); }
.rt-btn--thread { background: var(--rt-thread-soft); color: var(--rt-thread); border-color: var(--rt-thread); }
.rt-btn--sm { padding: 9px 14px; font-size: 12px; }
.rt-btn--block { width: 100%; }
.rt-actions { display: flex; flex-wrap: wrap; gap: var(--rt-space-3); }
.rt-center .rt-actions { justify-content: center; }

/* Nav */
.rt-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--rt-space-5); padding: var(--rt-space-5) 0; }
.rt-logo { display: inline-flex; align-items: center; gap: var(--rt-space-2); font-family: var(--rt-brush); font-size: 30px; color: var(--rt-fire); text-decoration: none; line-height: 1; }
.rt-logo svg { width: 26px; height: 26px; }
.rt-nav__links { display: flex; gap: var(--rt-space-6); list-style: none; margin: 0; padding: 0; }
.rt-nav__links a { font-family: var(--rt-type); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--rt-dust); text-decoration: none; }
.rt-nav__links a:hover, .rt-nav__links a[aria-current] { color: var(--rt-cream); }
.rt-nav__actions { display: flex; gap: var(--rt-space-3); align-items: center; }
@media (max-width: 860px) { .rt-nav__links { display: none; } }
@media (max-width: 480px) { .rt-nav__login { display: none; } }

/* Hero with the campfire glow */
.rt-hero { position: relative; padding: var(--rt-space-8) 0 var(--rt-space-9); overflow: hidden; }
.rt-hero::after {
  content: ""; position: absolute; left: 50%; bottom: -260px; width: 900px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--rt-glow), transparent); pointer-events: none;
}
.rt-hero > * { position: relative; z-index: 1; }
.rt-fire-mark { display: block; width: 64px; height: 64px; margin: 0 auto var(--rt-space-5); }

/* The rumor map: cards joined by dashed threads */
.rt-map { position: relative; border: var(--rt-border); border-radius: var(--rt-radius-lg); background: var(--rt-ash); background-image: var(--rt-stars); background-size: var(--rt-stars-size); padding: var(--rt-space-7); min-height: 420px; }
.rt-map__threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rt-map__threads path { fill: none; stroke: var(--rt-thread); stroke-width: 1.5; stroke-dasharray: 5 6; }
.rt-map__threads circle { fill: var(--rt-thread); }
.rt-map__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rt-space-7) var(--rt-space-6); }
@media (max-width: 760px) {
  .rt-map { padding: var(--rt-space-5); }
  .rt-map__grid { grid-template-columns: 1fr; gap: var(--rt-space-5); }
  .rt-map__threads { display: none; }
  .rt-map__grid > .rt-clue + .rt-clue::before { content: ""; position: absolute; left: 28px; top: -25px; height: 24px; border-left: var(--rt-thread-line); }
}

/* Clue card: a log entry with a typewriter header */
.rt-clue { position: relative; background: var(--rt-night); border: var(--rt-border-dashed); border-radius: var(--rt-radius); padding: var(--rt-space-4) var(--rt-space-5) var(--rt-space-5); }
.rt-clue__head { display: flex; justify-content: space-between; align-items: center; gap: var(--rt-space-2); margin-bottom: var(--rt-space-3); }
.rt-clue__title { font-family: var(--rt-sans); font-weight: 700; color: var(--rt-cream); margin: 0 0 var(--rt-space-1); font-size: 17px; line-height: 1.3; }
.rt-clue__text { margin: 0; font-size: var(--rt-text-small); }
.rt-clue--found { border-style: solid; border-color: var(--rt-thread); }
.rt-clue--hot { border-style: solid; border-color: var(--rt-fire); box-shadow: var(--rt-shadow-fire); }

/* Marks and badges */
.rt-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--rt-radius-round); font-family: var(--rt-type); font-weight: 700; font-size: 13px; flex: none; }
.rt-mark--q { background: var(--rt-fire); color: var(--rt-night); }
.rt-mark--found { background: var(--rt-thread); color: var(--rt-night); }
.rt-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--rt-type); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--rt-radius-sm); border: var(--rt-border); color: var(--rt-dust); white-space: nowrap; }
.rt-badge--fire { color: var(--rt-fire); border-color: var(--rt-fire); background: var(--rt-fire-soft); }
.rt-badge--thread { color: var(--rt-thread); border-color: var(--rt-thread); background: var(--rt-thread-soft); }

/* Feature cards */
.rt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rt-space-5); }
@media (max-width: 860px) { .rt-cards { grid-template-columns: 1fr; } }
.rt-card { background: var(--rt-ash); border: var(--rt-border); border-radius: var(--rt-radius); padding: var(--rt-space-6); }
.rt-card__icon { width: 44px; height: 44px; display: grid; place-items: center; border: var(--rt-border-dashed); border-radius: var(--rt-radius-round); color: var(--rt-fire); margin-bottom: var(--rt-space-6); }
.rt-card__icon svg { width: 22px; height: 22px; }
.rt-card__text { margin: 0; font-size: 15px; }

/* Log: a timeline of entries in typewriter type */
.rt-log { list-style: none; margin: 0; padding: 0 0 0 var(--rt-space-5); border-left: var(--rt-thread-line); }
.rt-log li { position: relative; padding: 0 0 var(--rt-space-5) var(--rt-space-3); }
.rt-log li::before { content: ""; position: absolute; left: calc(-1 * var(--rt-space-5) - 5px); top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--rt-thread); }
.rt-log time { display: block; font-family: var(--rt-type); font-size: var(--rt-text-label); color: var(--rt-faint); letter-spacing: .08em; }
.rt-log p { margin: 2px 0 0; color: var(--rt-cream); }

/* Quote and stats */
.rt-quote { max-width: 820px; margin: 0 auto; text-align: center; }
.rt-quote blockquote { margin: 0 0 var(--rt-space-5); font-family: var(--rt-brush); font-size: clamp(30px, 4vw, 44px); line-height: 1.15; color: var(--rt-cream); }
.rt-quote figcaption { font-family: var(--rt-type); font-size: 13px; letter-spacing: .08em; color: var(--rt-faint); text-transform: uppercase; }
.rt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rt-space-5); border-top: var(--rt-border-dashed); padding-top: var(--rt-space-6); margin-top: var(--rt-space-8); }
@media (max-width: 640px) { .rt-stats { grid-template-columns: 1fr; } }
.rt-stat__num { font-family: var(--rt-brush); font-size: 56px; color: var(--rt-fire); line-height: 1; }
.rt-stat__label { font-size: 14px; }

/* Pricing */
.rt-toggle { display: inline-flex; padding: 4px; border: var(--rt-border-dashed); border-radius: var(--rt-radius); gap: 4px; }
.rt-toggle button { font-family: var(--rt-type); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: none; border: 0; color: var(--rt-dust); padding: 8px 16px; border-radius: var(--rt-radius-sm); cursor: pointer; white-space: nowrap; }
.rt-toggle button[aria-pressed="true"] { background: var(--rt-cream); color: var(--rt-night); }
.rt-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rt-space-5); align-items: stretch; }
@media (max-width: 900px) { .rt-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.rt-plan { display: flex; flex-direction: column; background: var(--rt-ash); border: var(--rt-border-dashed); border-radius: var(--rt-radius); padding: var(--rt-space-6); }
.rt-plan--featured { border-style: solid; border-color: var(--rt-fire); box-shadow: var(--rt-shadow-fire); }
.rt-plan__top { display: flex; justify-content: space-between; align-items: center; gap: var(--rt-space-2); }
.rt-plan__name { font-family: var(--rt-brush); font-size: 34px; color: var(--rt-cream); margin: 0; line-height: 1; }
.rt-plan__desc { font-size: 15px; margin: var(--rt-space-3) 0 var(--rt-space-5); }
.rt-plan__price { font-family: var(--rt-brush); font-size: 60px; color: var(--rt-cream); line-height: 1; }
.rt-plan__price small { font-family: var(--rt-type); font-size: 13px; color: var(--rt-faint); letter-spacing: .06em; }
.rt-plan__list { list-style: none; padding: 0; margin: var(--rt-space-5) 0 var(--rt-space-6); flex: 1; }
.rt-plan__list li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; border-bottom: 1px dashed var(--rt-line); }
.rt-plan__list li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--rt-thread); }

.rt-table-wrap { overflow-x: auto; border: var(--rt-border); border-radius: var(--rt-radius); }
.rt-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.rt-table th, .rt-table td { padding: 14px 18px; text-align: left; border-bottom: 1px dashed var(--rt-line); }
.rt-table thead th { background: var(--rt-ash-2); font-family: var(--rt-type); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--rt-cream); font-weight: 700; }
.rt-table td:first-child { color: var(--rt-cream); }
.rt-table__yes { color: var(--rt-thread); font-weight: 700; }
.rt-table__no { color: var(--rt-faint); }

.rt-faq details { border-bottom: var(--rt-border-dashed); padding: var(--rt-space-4) 0; }
.rt-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--rt-space-4); color: var(--rt-cream); font-weight: 700; font-size: 17px; }
.rt-faq summary::-webkit-details-marker { display: none; }
.rt-faq summary::after { content: "?"; font-family: var(--rt-type); color: var(--rt-fire); flex: none; }
.rt-faq details[open] summary::after { content: "!"; color: var(--rt-thread); }
.rt-faq p { margin: var(--rt-space-3) 0 0; }

/* Article */
.rt-prose { color: var(--rt-dust); font-size: 18px; line-height: 1.75; }
.rt-prose h2 { font-family: var(--rt-brush); font-weight: 400; font-size: 40px; color: var(--rt-cream); line-height: 1.05; margin: var(--rt-space-7) 0 var(--rt-space-4); }
.rt-prose h3 { font-weight: 700; font-size: 20px; color: var(--rt-cream); margin: var(--rt-space-6) 0 var(--rt-space-2); }
.rt-prose ul { padding-left: 0; list-style: none; }
.rt-prose ul > li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.rt-prose ul > li::before { content: "?"; position: absolute; left: 0; font-family: var(--rt-type); font-weight: 700; color: var(--rt-fire); }
.rt-prose blockquote { margin: var(--rt-space-6) 0; padding: 0 0 0 var(--rt-space-5); border-left: var(--rt-thread-line); font-family: var(--rt-brush); font-size: 32px; line-height: 1.2; color: var(--rt-cream); }
.rt-prose code { font-family: var(--rt-type); font-size: .9em; background: var(--rt-ash-2); color: var(--rt-cream); padding: 2px 6px; border-radius: var(--rt-radius-sm); }
.rt-prose pre { background: var(--rt-ash); border: var(--rt-border-dashed); border-radius: var(--rt-radius); padding: var(--rt-space-5); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.rt-prose pre code { background: none; padding: 0; }
.rt-prose figure { margin: var(--rt-space-6) 0; }
.rt-prose figcaption { font-family: var(--rt-type); font-size: 13px; color: var(--rt-faint); margin-top: var(--rt-space-2); }
.rt-callout { display: flex; gap: var(--rt-space-3); background: var(--rt-thread-soft); border: 1px solid var(--rt-thread); border-radius: var(--rt-radius); padding: var(--rt-space-4) var(--rt-space-5); font-size: 16px; color: var(--rt-cream); margin: var(--rt-space-6) 0; }
.rt-author { display: flex; align-items: center; gap: var(--rt-space-3); }
.rt-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--rt-fire-soft); border: 1px dashed var(--rt-fire); font-family: var(--rt-brush); font-size: 22px; color: var(--rt-fire); flex: none; }
.rt-author__name { color: var(--rt-cream); font-weight: 700; display: block; }
.rt-meta { font-family: var(--rt-type); font-size: 13px; color: var(--rt-faint); }
.rt-author--card { background: var(--rt-ash); border: var(--rt-border-dashed); border-radius: var(--rt-radius); padding: var(--rt-space-5); align-items: flex-start; margin-top: var(--rt-space-8); }
.rt-author--card p { margin: 4px 0 0; font-size: 15px; }
.rt-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rt-space-5); }
@media (max-width: 860px) { .rt-posts { grid-template-columns: 1fr; } }
.rt-post { text-decoration: none; display: block; }
.rt-post__thumb { height: 150px; border-radius: var(--rt-radius); border: var(--rt-border); background-color: var(--rt-night); background-image: radial-gradient(closest-side at 50% 120%, var(--rt-glow), transparent), var(--rt-stars); background-size: 100% 100%, var(--rt-stars-size); margin-bottom: var(--rt-space-4); }
.rt-post__title { font-family: var(--rt-sans); font-weight: 700; font-size: 18px; color: var(--rt-cream); margin: 6px 0; line-height: 1.3; }
.rt-post p { margin: 0; font-size: 15px; color: var(--rt-dust); }

/* Forms */
.rt-form { display: grid; gap: var(--rt-space-5); }
.rt-field { display: grid; gap: 6px; }
.rt-label-text { font-family: var(--rt-type); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--rt-cream); }
.rt-input, .rt-select {
  width: 100%; font: inherit; font-size: 16px; color: var(--rt-cream); background: var(--rt-ash-2);
  border: var(--rt-border-dashed); border-radius: var(--rt-radius-sm); padding: 12px 14px; outline: none;
}
.rt-input::placeholder { color: var(--rt-faint); }
.rt-input:focus, .rt-select:focus { border-style: solid; border-color: var(--rt-fire); box-shadow: 0 0 0 3px var(--rt-fire-soft); }
.rt-input-wrap { position: relative; }
.rt-input-wrap .rt-input { padding-right: 72px; }
.rt-input-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-family: var(--rt-type); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--rt-thread); cursor: pointer; padding: 6px; }
.rt-help { font-size: 13px; color: var(--rt-faint); }
.rt-error { font-size: 13px; color: var(--rt-fire); font-family: var(--rt-type); }
.rt-field--error .rt-input { border-style: solid; border-color: var(--rt-fire); }
.rt-check { display: flex; gap: var(--rt-space-3); align-items: flex-start; font-size: 14px; cursor: pointer; }
.rt-check input { accent-color: var(--rt-fire); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.rt-divider-text { display: flex; align-items: center; gap: var(--rt-space-3); font-family: var(--rt-type); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--rt-faint); }
.rt-divider-text::before, .rt-divider-text::after { content: ""; flex: 1; border-top: var(--rt-border-dashed); }
.rt-btn--social { background: var(--rt-ash-2); color: var(--rt-cream); border: var(--rt-border); text-transform: none; letter-spacing: 0; font-family: var(--rt-sans); font-weight: 500; }
.rt-btn__letter { width: 22px; height: 22px; display: grid; place-items: center; border-radius: var(--rt-radius-sm); background: var(--rt-cream); color: var(--rt-night); font-family: var(--rt-type); font-weight: 700; font-size: 12px; }

/* Footer */
.rt-footer { border-top: var(--rt-border-dashed); padding: var(--rt-space-8) 0 var(--rt-space-6); font-size: 14px; }
.rt-footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--rt-space-6); }
@media (max-width: 760px) { .rt-footer__cols { grid-template-columns: 1fr 1fr; } .rt-footer__cols > :first-child { grid-column: 1 / -1; } }
.rt-footer h4 { font-family: var(--rt-type); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rt-cream); margin: 0 0 var(--rt-space-3); font-weight: 700; }
.rt-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rt-footer a { color: var(--rt-dust); text-decoration: none; }
.rt-footer a:hover { color: var(--rt-fire); }
.rt-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--rt-space-3); margin-top: var(--rt-space-7); padding-top: var(--rt-space-5); border-top: var(--rt-border); font-family: var(--rt-type); font-size: 12px; color: var(--rt-faint); }

/* Motion */
.rt-flicker { animation: rt-flicker 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes rt-flicker { 0%, 100% { transform: scale(1, 1); opacity: 1; } 40% { transform: scale(.96, 1.04); opacity: .9; } 70% { transform: scale(1.03, .97); } }
@media (prefers-reduced-motion: reduce) { .rt-flicker { animation: none; } }
