/* The Fire Gives No Light — game page.
   Sits on top of /style.css (header, footer, buttons) and recolors the page
   with the cold palette of the digital demo. Change the accent here only. */

.tf-body {
  --tf-night: #0b0d10;
  --tf-night-2: #13161b;
  --tf-snow: #e8e5dc;
  --tf-snow-dim: #d9d5ca;
  --tf-ink: #1b1e23;
  --tf-fg: #d8cfb8;
  --tf-hi: #f3ead2;
  --tf-dim: #8a867b;
  --tf-acc: #e0a24a;      /* demo amber: the fire */
  --tf-red: #d26a52;      /* demo red: the Commander's tent */
  --tf-line: #2c2b28;

  --tf-serif: 'Old Standard TT', Georgia, 'Times New Roman', serif;
  --tf-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --tf-mono: 'VT323', 'Courier New', ui-monospace, monospace;

  background: var(--tf-night);
  color: var(--tf-fg);
  font-family: var(--tf-sans);
  font-size: 17px;
  line-height: 1.65;
}

.tf-body :focus-visible { outline-color: var(--tf-acc); }

.tf-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.tf-narrow { max-width: 720px; }

.tf-eyebrow {
  display: block;
  font-family: var(--tf-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--tf-acc);
  margin-bottom: 14px;
}

/* Thin rule with a diamond in the middle, the manual's separator */
.tf-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tf-acc);
  margin: 28px 0;
  max-width: 220px;
}
.tf-sep::before, .tf-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.tf-sep span {
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}
.tf-sep.is-center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.tf-btn {
  display: inline-block;
  font-family: var(--tf-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid var(--tf-acc);
  border-radius: 2px;
  background: var(--tf-acc);
  color: var(--tf-night);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.tf-btn:hover { background: transparent; color: var(--tf-acc); }

.tf-btn-ghost { background: transparent; color: var(--tf-hi); border-color: var(--tf-dim); }
.tf-btn-ghost:hover { border-color: var(--tf-acc); color: var(--tf-acc); }

.tf-btn-meta {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--tf-dim);
}

/* The header button keeps the site's pill shape but takes the game accent */
.tf-body .site-nav a.btn-primary { background: var(--tf-acc); color: var(--tf-night); }

/* ---------- Hero ---------- */
/* Light hero on the cover painting: the fog carries the text,
   the dark ground and the lone figure stay visible at the bottom. */
.tf-hero {
  --tf-hero-img: image-set(url("/images/the-fire-gives-no-light/hero-2400.webp") type("image/webp"), url("/images/the-fire-gives-no-light/hero-2400.jpg") type("image/jpeg"));
  position: relative;
  overflow: hidden;
  padding: 88px 0 clamp(220px, 30vw, 380px);
  background-color: #d9d8d2;
  background-image:
    linear-gradient(180deg, rgba(232, 230, 224, 0.82) 0%, rgba(232, 230, 224, 0.6) 45%, rgba(232, 230, 224, 0) 72%),
    url("/images/the-fire-gives-no-light/hero-2400.jpg");
  background-image:
    linear-gradient(180deg, rgba(232, 230, 224, 0.82) 0%, rgba(232, 230, 224, 0.6) 45%, rgba(232, 230, 224, 0) 72%),
    var(--tf-hero-img);
  background-size: cover;
  background-position: center 70%;
  color: var(--tf-ink);
  text-align: center;
}

.tf-hero .tf-eyebrow { color: #8f3a27; }
.tf-hero .tf-sep { color: #8f3a27; }

.tf-hero h1 {
  font-family: var(--tf-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: #111317;
  margin: 0 auto 18px;
  max-width: 14ch;
}

.tf-subtitle {
  font-family: var(--tf-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: #2a2d33;
  margin: 0;
}

.tf-pitch {
  max-width: 56ch;
  margin: 0 auto 32px;
  color: #23262b;
}

.tf-hero-cta { margin-top: 8px; }
.tf-hero .tf-btn { background: #111317; border-color: #111317; color: var(--tf-hi); }
.tf-hero .tf-btn:hover { background: var(--tf-acc); border-color: var(--tf-acc); color: #111317; }
.tf-hero .tf-btn-meta { color: #3d4047; }

.tf-needs {
  margin: 20px auto 0;
  font-size: 0.85rem;
  color: #3d4047;
  max-width: 52ch;
}

@media (max-width: 700px) {
  .tf-hero {
    --tf-hero-img: image-set(url("/images/the-fire-gives-no-light/hero-1200.webp") type("image/webp"), url("/images/the-fire-gives-no-light/hero-1200.jpg") type("image/jpeg"));
    padding-bottom: 340px;
    background-position: 58% 100%;
    background-image:
      linear-gradient(180deg, rgba(232, 230, 224, 0.86) 0%, rgba(232, 230, 224, 0.7) 55%, rgba(232, 230, 224, 0) 80%),
      var(--tf-hero-img);
  }
}

/* ---------- Principles ---------- */
.tf-principles {
  background: var(--tf-snow);
  color: var(--tf-ink);
  padding: 96px 0;
}

.tf-principles .tf-eyebrow { color: #a3402c; }

.tf-principles h2 {
  font-family: var(--tf-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 48px;
  max-width: 22ch;
}

.tf-principle-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.tf-principle {
  border-top: 1px solid rgba(27, 30, 35, 0.35);
  padding-top: 22px;
}

.tf-principle-num {
  font-family: var(--tf-serif);
  font-size: 1rem;
  color: #a3402c;
  display: block;
  margin-bottom: 6px;
}

.tf-principle h3 {
  font-family: var(--tf-serif);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

.tf-principle p { margin: 0 0 1em; }

.tf-coda {
  margin: 56px 0 0;
  font-family: var(--tf-serif);
  font-style: italic;
  font-size: 1.2rem;
  max-width: 48ch;
}

/* ---------- Demo band (ASCII) ---------- */
.tf-demo {
  background: var(--tf-night);
  border-top: 1px dashed var(--tf-line);
  border-bottom: 1px dashed var(--tf-line);
  padding: 72px 0;
  font-family: var(--tf-mono);
  color: var(--tf-fg);
}

.tf-demo .tf-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.tf-art-box { container-type: inline-size; min-width: 0; }

.tf-art {
  margin: 0;
  white-space: pre;
  line-height: 1.05;
  color: #9a9484;
  font-family: var(--tf-mono);
  /* every column fits the box: --chr is measured by script, .5 is a safe default */
  font-size: min(26px, calc(100cqw / (var(--cols, 44) * var(--chr, 0.5))));
}
.tf-art .rd { color: var(--tf-red); }

.tf-demo-label {
  color: var(--tf-acc);
  letter-spacing: 0.08em;
  font-size: 22px;
  margin: 0 0 12px;
}

.tf-demo-text {
  font-size: 23px;
  line-height: 1.28;
  margin: 0 0 28px;
  color: var(--tf-hi);
}

.tf-demo-btn {
  display: inline-block;
  font-family: var(--tf-mono);
  font-size: 24px;
  color: var(--tf-hi);
  text-decoration: none;
  border: 1px dashed var(--tf-acc);
  padding: 8px 18px;
}
.tf-demo-btn .k { color: var(--tf-acc); }
.tf-demo-btn:hover, .tf-demo-btn:focus-visible { color: var(--tf-night); background: var(--tf-acc); outline: none; }
.tf-demo-btn:hover .k, .tf-demo-btn:focus-visible .k { color: var(--tf-night); }

.tf-demo-note {
  font-size: 19px;
  color: var(--tf-dim);
  margin: 16px 0 0;
}

.tf-cursor { animation: tf-blink 1.1s steps(1) infinite; color: var(--tf-acc); }
@keyframes tf-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tf-cursor { animation: none; } }

/* ---------- Newsletter ---------- */
.tf-signup {
  background: var(--tf-night-2);
  padding: 96px 0;
  text-align: center;
}

.tf-signup h2 {
  font-family: var(--tf-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  color: var(--tf-hi);
  margin: 0 0 16px;
}

.tf-signup p { margin: 0 auto 28px; max-width: 52ch; }

.tf-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.tf-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--tf-hi);
  background: transparent;
  border: 1px solid var(--tf-dim);
  border-radius: 2px;
  padding: 13px 14px;
}
.tf-form input[type="email"]::placeholder { color: var(--tf-dim); }
.tf-form input[type="email"]:focus { border-color: var(--tf-acc); outline: none; }

.tf-form-msg {
  min-height: 1.6em;
  margin: 14px auto 0 !important;
  font-size: 0.9rem;
  color: var(--tf-acc);
}

.tf-form-legal {
  font-size: 0.78rem !important;
  color: var(--tf-dim);
  margin-top: 22px !important;
}
.tf-form-legal a { color: var(--tf-fg); }

/* ---------- Credits ---------- */
.tf-credits {
  background: var(--tf-night);
  border-top: 1px solid var(--tf-line);
  padding: 32px 0;
  font-size: 0.8rem;
  color: var(--tf-dim);
  text-align: center;
}
.tf-credits p { margin: 0 0 6px; }
.tf-credits a { color: var(--tf-fg); }

/* Footer: the site's pills are drawn for a light background */
.tf-body .site-footer { background: #07080a; border-top: 1px solid var(--tf-line); }
.tf-body .social-row a { border-color: var(--tf-dim); color: var(--tf-fg); }
.tf-body .social-row a:hover { background: var(--tf-acc); border-color: var(--tf-acc); color: var(--tf-night); }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .tf-principle-list { grid-template-columns: 1fr; gap: 40px; }
  .tf-demo .tf-wrap { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  .tf-wrap { padding: 0 16px; }
  .tf-hero { padding-top: 64px; padding-bottom: 300px; }
  .tf-principles, .tf-signup { padding: 72px 0; }
  .tf-form { flex-direction: column; }
  .tf-btn { width: 100%; text-align: center; }
  .tf-demo-text { font-size: 21px; }
}

