/* V3RUM article-page styles
 * Used by how-it-works.html, why.html, spec.html, tsl8.html
 */

main.article {
  padding: 4rem 1.5rem 6rem;
  max-width: 820px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--parchment-shadow);
}
.article-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.article-header h1 em { color: var(--wax); font-style: italic; font-weight: 400; }

.article-header .lede {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 36em;
  margin-bottom: 1rem;
}
.article-header .muted {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-muted);
}

.topbar nav a.current {
  color: var(--wax);
  position: relative;
}
.topbar nav a.current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--wax);
}

/* STEPS (how-it-works) ---------------------------------------- */

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px dashed var(--parchment-shadow);
}
.step:last-of-type { border-bottom: none; }

.step-num {
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--wax);
  letter-spacing: 0.02em;
  line-height: 1;
}

.step-body h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  max-width: none;
}
.step-body p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.step-body p a { color: var(--wax); }
.step-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(184, 115, 51, 0.12);
  padding: 0.1em 0.3em;
  border-radius: 2px;
  color: var(--copper-deep);
}

.aside-inline {
  font-style: italic;
  font-size: 0.98rem !important;
  color: var(--ink-muted) !important;
  border-left: 2px solid var(--copper);
  padding-left: 1.2rem;
  margin-top: 1.2rem;
}

/* PROSE (why, tsl8) ------------------------------------------- */

.prose {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed var(--parchment-shadow);
}
.prose:last-of-type { border-bottom: none; }
.prose.pull {
  background: rgba(184, 115, 51, 0.05);
  padding: 2.5rem;
  border-left: 3px solid var(--copper);
  border-bottom: none;
  margin-left: -1rem;
  margin-right: -1rem;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
  max-width: none;
}
.prose p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.prose p em { color: var(--wax); font-style: italic; }
.prose p a { color: var(--wax); text-decoration: underline; text-decoration-color: var(--parchment-shadow); text-underline-offset: 3px; }
.prose p a:hover { text-decoration-color: var(--wax); }

.numbered {
  list-style: none;
  counter-reset: item;
  margin: 1.5rem 0;
}
.numbered li {
  counter-increment: item;
  padding-left: 3.2rem;
  position: relative;
  margin-bottom: 1.4rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.numbered li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--copper-deep);
  letter-spacing: 0.05em;
}
.numbered li strong {
  color: var(--ink);
  font-weight: 600;
}

.bulleted {
  list-style: none;
  margin: 1.2rem 0;
}
.bulleted li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.7rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.bulleted li::before {
  content: '·';
  position: absolute;
  left: 0.4rem;
  color: var(--copper);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}

/* CLOSING ----------------------------------------------------- */

.closing {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--parchment-shadow);
}
.closing h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  font-weight: 500;
  color: var(--wax);
  margin-bottom: 1.6rem;
}
.closing p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0 auto 2rem;
}
.closing .big-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
  max-width: 28em;
  margin: 0 auto 2rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--copper);
  border-bottom: 1px solid var(--copper);
}
.closing .cta { margin: 0 0.4rem; }

/* TOC --------------------------------------------------------- */

.toc {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--parchment-shadow);
  padding: 2rem;
  margin-bottom: 3rem;
}
.toc ol {
  list-style: none;
  counter-reset: tocitem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 2rem;
}
.toc li {
  counter-increment: tocitem;
  padding-left: 2.2rem;
  position: relative;
  font-family: var(--serif);
  font-size: 1rem;
}
.toc li::before {
  content: counter(tocitem, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--copper-deep);
}
.toc a {
  color: var(--ink-soft);
  text-decoration: none;
}
.toc a:hover { color: var(--wax); }

/* SPEC -------------------------------------------------------- */

.spec-article .article-header h1 { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; letter-spacing: 0.02em; }

.spec-section {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed var(--parchment-shadow);
}
.spec-section:last-of-type { border-bottom: none; }
.spec-section h2 {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--wax);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--parchment-shadow);
  max-width: none;
}
.spec-section h3 {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--copper-deep);
  text-transform: lowercase;
  margin: 1.6rem 0 0.8rem;
}
.spec-section p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.spec-section p em { color: var(--wax); font-style: italic; }
.spec-section code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(184, 115, 51, 0.12);
  padding: 0.1em 0.3em;
  border-radius: 2px;
  color: var(--copper-deep);
}

.spec-code {
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
  background: rgba(42, 37, 32, 0.92);
  color: #e8dcb8;
  padding: 1.4rem;
  border-radius: 2px;
  overflow-x: auto;
  margin: 1.2rem 0 1.6rem;
  white-space: pre;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.92rem;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--parchment-shadow);
  vertical-align: top;
}
.spec-table th {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--copper-deep);
  text-transform: lowercase;
  background: rgba(184, 115, 51, 0.06);
}
.spec-table td {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.spec-table td:first-child {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--ink);
}

.spec-list {
  list-style: none;
  margin: 1rem 0;
  font-family: var(--mono);
  font-size: 0.88rem;
}
.spec-list li {
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px dashed transparent;
  line-height: 1.5;
}
.spec-list li::before {
  content: '·';
  position: absolute;
  left: 0.3rem;
  color: var(--copper);
  font-weight: 700;
}
.spec-list li strong { color: var(--wax); font-weight: 600; }
.spec-list.soft li::before { content: '×'; color: var(--copper); }

/* RESPONSIVE -------------------------------------------------- */

@media (max-width: 720px) {
  main.article { padding: 2.5rem 1.2rem 4rem; }
  .step { grid-template-columns: 1fr; gap: 0.8rem; }
  .step-num { font-size: 1.6rem; color: var(--copper-deep); }
  .toc ol { grid-template-columns: 1fr; }
  .spec-table { font-size: 0.84rem; }
  .spec-table th, .spec-table td { padding: 0.5rem 0.4rem; }
}

/* HEAT — used for unapologetic emphasis in opinionated copy */
.heat {
  color: var(--wax);
  font-weight: 600;
}
