/* Shared styles for the /answers/ pages. Deliberately plain: everything is
   visible on load, nothing waits for JavaScript. */

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

:root {
  --orange: #FF9900;
  --dark: #2C2C2C;
  --ink: #1A1A1A;
  --muted: #5A5A5A;
  --white: #FFFFFF;
  --off-white: #F7F7F5;
  --line: #E4E4E1;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--white);
  background-image:
    linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── nav ─── */
.topbar {
  background: var(--dark);
  border-radius: 10px;
  margin: 1rem auto;
  max-width: 900px;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar .logo {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.topbar .logo .i { color: var(--orange); }

.topbar .cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--orange);
  color: var(--dark);
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  border-radius: 7px;
  white-space: nowrap;
}

.topbar .cta:hover { background: #ffab2e; }

/* ─── breadcrumb ─── */
.crumbs {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 1.25rem;
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs span { color: #B4B4B0; padding: 0 0.4rem; }

/* ─── article ─── */
h1 {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.short-answer {
  border-left: 3px solid var(--orange);
  background: var(--off-white);
  padding: 1.4rem 1.6rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 2.75rem;
}

.short-answer .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 0.6rem;
}

.short-answer p { font-size: 1.05rem; font-weight: 500; margin: 0; }

article h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 2.75rem 0 1rem;
}

article p { margin-bottom: 1.15rem; }
article strong { font-weight: 700; }

article ul, article ol { margin: 0 0 1.4rem 1.3rem; }
article li { margin-bottom: 0.6rem; }
article ul li::marker { color: var(--orange); }
article ol li::marker { color: var(--orange); font-weight: 700; }

/* ─── cta ─── */
.endcap {
  margin: 3.5rem 0 0;
  padding: 2rem;
  background: var(--dark);
  border-radius: 12px;
  color: var(--white);
}

.endcap h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.75rem; line-height: 1.35; }
.endcap p { color: #D6D6D6; margin-bottom: 1.5rem; font-size: 0.95rem; }

.endcap a.button {
  display: inline-block;
  background: var(--orange);
  color: var(--dark);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
}

.endcap a.button:hover { background: #ffab2e; }

/* ─── related ─── */
.related { margin-top: 3.5rem; }

.related h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 0.75rem; }

.related a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.related a:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* ─── index list ─── */
.q-list { list-style: none; margin: 2rem 0 0; }

.q-list li { border-top: 1px solid var(--line); }
.q-list li:last-child { border-bottom: 1px solid var(--line); }

.q-list a {
  display: block;
  padding: 1.25rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.q-list a:hover { color: var(--orange); }
.q-list .blurb { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: 0.3rem; }

.lede { font-size: 1.05rem; color: var(--muted); }

/* ─── footer ─── */
footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--orange); }

@media (max-width: 600px) {
  .topbar { margin: 0.75rem; padding: 0.75rem 1rem; }
  .topbar .cta { font-size: 0.6rem; padding: 0.55rem 0.8rem; }
}
