/* Articles — Slab's search-traffic pages. Generated: articles/index.html and
   articles/<slug>.html from content/articles/*.md. See build/generate.py.

   HAND-MAINTAINED, like styles.css. The generator only writes .html.

   Same language as the rest of the site: cream, ink rules, hard shadows,
   Space Grotesk. Slab's coral is the accent because every article is Slab's. */

/* Slab coral, darkened until small text clears 4.5:1 on cream, white and the CTA tint. */
.ar { --coral-text: #a8330c; }
.ar { max-width: 740px; margin: 0 auto; padding: 0 20px 96px; width: 100%; }

/* ── breadcrumb + header ────────────────────────────────────── */
.ar-crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); padding: 22px 0 0; }
.ar-crumbs a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ar-head { padding: 26px 0 8px; }
.ar-eyebrow {
  font: 700 12px/1.2 'JetBrains Mono', monospace; letter-spacing: .16em;
  text-transform: uppercase; color: var(--coral-text); margin: 0 0 14px;
}
.ar-head h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 16px; }
.ar-dek { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--muted); }
.ar-meta { font-size: 14px; color: var(--muted); }
.ar-hero { margin: 22px 0 0; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ar-hero img { width: 100%; height: auto; }

/* ── contents ───────────────────────────────────────────────── */
.ar-toc {
  border: 2px solid var(--ink); border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-xs); padding: 18px 22px; margin: 28px 0 0;
}
.ar-toc p { font: 700 12px/1.2 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.ar-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15.5px; font-weight: 500; }
.ar-toc a:hover { text-decoration: underline; }

/* ── the body ───────────────────────────────────────────────── */
.ar-body { margin-top: 30px; font-size: 18px; line-height: 1.7; }
.ar-body > * + * { margin-top: 18px; }
.ar-body h2 { font-size: clamp(25px, 3.6vw, 34px); line-height: 1.12; letter-spacing: -.01em; margin-top: 52px; scroll-margin-top: 90px; }
.ar-body h3 { font-size: clamp(20px, 2.6vw, 25px); line-height: 1.2; margin-top: 36px; scroll-margin-top: 90px; }
.ar-body h4 { font-size: 18px; margin-top: 28px; }
.ar-body h2 + *, .ar-body h3 + *, .ar-body h4 + * { margin-top: 12px; }
.ar-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: var(--coral); font-weight: 500; }
.ar-body a:hover { background: var(--coral-tint); }
.ar-body ul, .ar-body ol { padding-left: 26px; display: grid; gap: 8px; }
.ar-body li::marker { color: var(--coral); font-weight: 700; }
.ar-body hr { border: 0; border-top: 2px solid var(--ink); margin: 40px 0; }
.ar-body code { font: 500 .88em 'JetBrains Mono', monospace; background: var(--yellow-tint); padding: 2px 6px; border-radius: 5px; }
.ar-body blockquote {
  margin: 28px 0; padding: 18px 22px; border-left: 6px solid var(--coral);
  background: #fff; border-radius: 0 12px 12px 0;
  font-size: clamp(19px, 2.6vw, 24px); font-weight: 700; line-height: 1.3;
}
.ar-body figure { margin: 28px 0; }
.ar-body img { border: 2px solid var(--ink); border-radius: 12px; height: auto; }
.ar-table { overflow-x: auto; margin: 26px 0; }
.ar-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.ar-table th, .ar-table td { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--ink); vertical-align: top; }
/* Last column is usually a number with a unit; never strand the unit on its own line. */
.ar-table td:last-child { white-space: nowrap; }
.ar-table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ── the close ──────────────────────────────────────────────── */
.ar-cta {
  border: 2px solid var(--ink); border-radius: 14px; background: var(--coral-tint);
  box-shadow: var(--shadow); padding: 30px; margin-top: 56px;
}
.ar-cta__eyebrow { font: 700 12px/1.2 'JetBrains Mono', monospace; letter-spacing: .16em; color: var(--coral-text); margin-bottom: 10px; }
.ar-cta h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; margin-bottom: 12px; }
.ar-cta p { line-height: 1.6; }
.ar-cta__stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.ar-cta__more { margin-top: 16px; font-weight: 600; font-size: 15px; }
.ar-cta__more a { text-decoration: underline; text-underline-offset: 3px; }

/* ── more articles / index ──────────────────────────────────── */
.ar-more { margin-top: 56px; }
.ar-more h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 16px; }
.ar-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .ar-grid { grid-template-columns: 1fr 1fr; } }
.ar-grid--index { margin-top: 30px; }
.ar-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 2px solid var(--ink); border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-xs); padding: 22px; min-width: 0;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ar-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.ar-card:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.ar-card__cat { font: 700 11px/1.2 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-text); }
.ar-card h3 { font-size: 21px; line-height: 1.2; }
.ar-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.ar-card__meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.ar-disclaimer { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 34px 0 0; }

@media (prefers-reduced-motion: reduce) { .ar-card { transition: none; } }
