/* CourtWatch guides — "the order sheet."
   Identity drawn from the artifacts of Indian court practice: order-sheet
   margins (the step rail), stamp-pad violet, manila file cards, mono-set
   case identifiers. Lives at /guides/ (renamed from /blog/ pre-launch).
   Spec: docs/superpowers/specs/2026-07-22-blog-organic-reach-design.md */

:root {
  --paper: #FBFBF8;
  --ink: #1C2B3A;
  --ink-soft: #4A5768;
  --stamp: #52489F;
  --stamp-deep: #3E3679;
  --stamp-faint: #F1EFFA;
  --file-red: #B3402E;
  --file-red-faint: #FBF1EF;
  --manila: #F5F0E3;
  --manila-edge: #DCD2B8;
  --rule: #E4E2DA;
  --serif: 'Literata', Georgia, serif;
  --sans: 'Public Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}
a { color: var(--stamp); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--stamp-deep); }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

/* ── header ── */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark:hover { color: var(--ink); }
.site-nav { display: flex; gap: 1.4rem; align-items: baseline; }
.site-nav a { font-size: 0.9rem; text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--stamp-deep); text-decoration: underline; }
.site-nav a.app-link {
  color: var(--stamp); border: 1.5px solid var(--stamp); border-radius: 3px;
  padding: 0.3rem 0.75rem; font-weight: 600;
}
.site-nav a.app-link:hover { background: var(--stamp-faint); text-decoration: none; }

/* ── article header ── */
.post-head { padding: 2.6rem 0 1.4rem; }
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--stamp); margin: 0 0 0.9rem;
}
h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 1rem;
}
.post-meta { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); margin: 0 0 1.2rem; }

/* the verification stamp — an honest freshness claim, re-inked when the
   steps are re-walked against the live portal */
.stamp {
  display: inline-block; transform: rotate(-1.4deg);
  border: 2px solid var(--stamp); border-radius: 3px;
  box-shadow: 0 0 0 1px var(--paper), 0 0 0 2.5px var(--stamp);
  color: var(--stamp); font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 0.7rem; margin: 0.3rem 0 0;
  opacity: 0.92;
}

/* ── "in short" — the complete answer, up front ── */
.inshort {
  background: var(--manila); border: 1px solid var(--manila-edge);
  border-radius: 3px; padding: 1.05rem 1.25rem; margin: 1.6rem 0 2.2rem;
}
.inshort .label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 0.4rem;
}
.inshort p { margin: 0; font-size: 1rem; }

/* ── body copy ── */
article { padding-bottom: 2rem; }
article p, article ul, article ol { margin: 0 0 1.15rem; }
article ul, article ol { padding-left: 1.4rem; }
article li { margin-bottom: 0.4rem; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.3; margin: 2.2rem 0 0.8rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 0.5rem; }
article img { max-width: 100%; border: 1px solid var(--rule); border-radius: 3px; }
code {
  font-family: var(--mono); font-size: 0.88em; color: var(--stamp-deep);
  background: var(--stamp-faint); border-radius: 3px; padding: 0.1em 0.35em;
  white-space: nowrap;
}

/* ── the order-sheet rail ── */
.step { display: grid; grid-template-columns: 3.4rem 1fr; column-gap: 1.1rem; margin: 1.8rem 0; }
.step-no {
  grid-row: 1 / span 20;
  font-family: var(--mono); font-weight: 500; font-size: 1rem; color: var(--stamp);
  border: 1.5px solid var(--stamp); border-radius: 3px;
  width: 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center;
  transform: rotate(-1deg); margin-top: 0.35rem;
}
.step h2 { margin-top: 0; font-size: 1.3rem; }
.step > *:not(.step-no) { grid-column: 2; }

/* ── asides ── */
.note {
  background: var(--manila); border-left: 3px solid var(--manila-edge);
  padding: 0.8rem 1.1rem; margin: 1.2rem 0; border-radius: 0 3px 3px 0; font-size: 0.98rem;
}
.caution {
  background: var(--file-red-faint); border-left: 3px solid var(--file-red);
  padding: 0.8rem 1.1rem; margin: 1.2rem 0; border-radius: 0 3px 3px 0; font-size: 0.98rem;
}

/* ── FAQ ── */
.faq { border-top: 1px solid var(--rule); margin-top: 2.4rem; padding-top: 0.4rem; }
.faq h3 { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; margin-top: 1.5rem; }

/* ── CTA ── */
.cta { border-top: 1px solid var(--rule); margin-top: 2.6rem; padding-top: 1.4rem; }
.cta p { margin: 0 0 0.9rem; }
a.button {
  display: inline-block; background: var(--stamp); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; padding: 0.55rem 1.1rem; border-radius: 3px;
}
a.button:hover { background: var(--stamp-deep); color: #fff; }

/* ── index — "the cause list" ── */
.trackbox {
  background: var(--stamp-faint); border: 1.5px solid var(--stamp); border-radius: 3px;
  padding: 1rem 1.25rem; margin: 0 0 0.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.trackbox .label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--stamp); display: block; margin-bottom: 0.3rem;
}
.trackbox p { margin: 0; font-size: 0.98rem; }
.bench-group:last-of-type { margin-bottom: 3rem; }
h2.bench {
  display: flex; align-items: center; gap: 0.9rem; margin: 2.3rem 0 0.3rem;
  font-family: var(--mono); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
h2.bench::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.guide-rows { list-style: none; padding: 0; margin: 0; }
.guide-rows li {
  display: grid; grid-template-columns: 2.6rem 1fr auto; column-gap: 0.9rem;
  align-items: baseline; padding: 0.95rem 0; border-bottom: 1px solid var(--rule);
  margin: 0;
}
.guide-rows li:last-child { border-bottom: none; }
.itemno { font-family: var(--mono); font-size: 0.85rem; color: var(--stamp); }
.guide-rows a.g-title {
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
  color: var(--ink); text-decoration: none; line-height: 1.35;
}
.guide-rows a.g-title:hover { color: var(--stamp-deep); text-decoration: underline; }
.g-body p { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.g-ver {
  font-family: var(--mono); font-size: 0.68rem; color: var(--ink-soft);
  letter-spacing: 0.05em; white-space: nowrap;
}
.chip {
  display: inline-block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--stamp); border: 1px solid var(--stamp);
  border-radius: 2px; padding: 0.08rem 0.4rem; margin-left: 0.55rem;
  transform: rotate(-1deg); vertical-align: 0.15em; white-space: nowrap;
}

/* ── footer ── */
.site-foot { border-top: 1px solid var(--rule); margin-top: 2rem; }
.site-foot .wrap { padding-top: 1.2rem; padding-bottom: 2rem; }
.site-foot p { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-soft); margin: 0.2rem 0; }
.site-foot a { color: var(--ink-soft); }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .step { display: block; }
  .step-no { display: inline-flex; margin-bottom: 0.6rem; }
  .site-head .wrap { flex-wrap: wrap; gap: 0.5rem; }
  .guide-rows li { grid-template-columns: 2.2rem 1fr; }
  .g-ver { grid-column: 2; margin-top: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
