/* Content surfaces (blog, comparisons, hubs) for Graha Darpan. Self-contained so the pages
   stay light and independent of the app bundle; the tokens mirror the app's design system
   (midnight observatory) so the two never drift. Fonts come from the self-hosted fonts.css. */
:root {
  --ink:        #0B1026;
  --ink-2:      #0E1430;
  --surface:    #131A38;
  --surface-2:  #1A2244;
  --line:       #232C54;
  --brass:      #E8B54D;
  --brass-dim:  #9D8045;
  --parchment:  #F4EDDF;
  --slate:      #8D96C0;
  --vermillion: #C2451E;
  --shadow:     0 18px 50px -18px rgba(2, 4, 18, 0.85);
  --font-display: "Marcellus", "Tiro Devanagari Sanskrit", serif;
  --font-dev:     "Tiro Devanagari Sanskrit", serif;
  --font-body:    "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono:    "Spline Sans Mono", ui-monospace, monospace;
  --measure: 68ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 78% -8%, rgba(232, 181, 77, 0.06), transparent 60%),
    var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brass); color: var(--ink); }
a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
img, svg { max-width: 100%; height: auto; }

/* ── header ─────────────────────────────────────────────────────────────── */
.content-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 20px clamp(18px, 4vw, 40px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--parchment); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--brass); }
.brand-name { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.01em; }
.brand-dev { font-family: var(--font-dev); color: var(--brass); font-size: 16px; }
.top-cta {
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  color: var(--ink); background: var(--brass); padding: 9px 16px; border-radius: 8px;
  transition: filter 140ms ease;
}
.top-cta:hover { filter: brightness(1.07); text-decoration: none; }

/* ── article ────────────────────────────────────────────────────────────── */
.content-main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px) 40px; }
.crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--slate); margin: 8px 0 28px; }
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--brass); }
.crumbs span { opacity: 0.5; margin: 0 4px; }

.article { max-width: var(--measure); margin: 0 auto; }
.article-head { margin-bottom: 34px; }
.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass-dim); margin: 0 0 14px;
}
.article h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 5.4vw, 52px); line-height: 1.08; letter-spacing: -0.01em;
  margin: 0 0 16px; text-wrap: balance;
}
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--parchment); margin: 0 0 18px; }
.byline { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate); letter-spacing: 0.02em; }
.byline .dot { opacity: 0.5; margin: 0 7px; }

.article p, .article li { line-height: 1.72; text-wrap: pretty; }
.article > p, .article > ul, .article > ol, .article > figure,
.article > h2, .article > h3, .article > .callout, .article > .cmp-wrap { margin-left: auto; margin-right: auto; }
.article p { margin: 0 0 20px; }
.article h2 {
  font-family: var(--font-display); font-weight: 400; color: var(--brass);
  font-size: clamp(23px, 3.2vw, 30px); line-height: 1.2; letter-spacing: -0.005em;
  margin: 44px 0 14px; text-wrap: balance;
}
.article h3 {
  font-family: var(--font-body); font-weight: 700; color: var(--parchment);
  font-size: 19px; margin: 30px 0 10px;
}
.article strong { color: #fbe9c9; font-weight: 700; }
.article em { color: var(--parchment); }
.dev { font-family: var(--font-dev); color: var(--brass); font-style: normal; }
.article ul, .article ol { margin: 0 0 22px; padding-left: 0; }
.article ul { list-style: none; }
.article ul > li { position: relative; padding-left: 26px; margin: 9px 0; }
.article ul > li::before {
  content: ""; position: absolute; left: 6px; top: 0.72em;
  width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg);
}
.article ol { padding-left: 22px; }
.article ol > li { margin: 9px 0; padding-left: 6px; }
.article ol > li::marker { color: var(--brass); font-family: var(--font-mono); font-size: 0.9em; }
.article blockquote {
  margin: 26px 0; padding: 4px 0 4px 22px; border-left: 1px solid var(--brass-dim);
  font-family: var(--font-display); font-size: 21px; line-height: 1.4; color: #f4e6c2;
}

/* a quiet answer box for the question-led posts: the concise answer AI assistants can lift */
.callout {
  margin: 26px auto; padding: 20px 22px; border: 1px solid var(--line);
  border-radius: 14px; background: linear-gradient(180deg, rgba(232, 181, 77, 0.07), rgba(232, 181, 77, 0.02));
}
.callout p:last-child { margin-bottom: 0; }
.callout .callout-q { font-family: var(--font-body); font-weight: 700; color: #fbe9c9; margin: 0 0 8px; }

/* figures hold the SVG diagrams that carry the visual weight (no stock photos, per the brand) */
.article figure { margin: 30px auto; }
.figure-card {
  border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2);
  padding: clamp(16px, 3vw, 26px);
}
.article figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--slate); margin-top: 12px; text-align: center; }

/* comparison table */
.cmp-wrap { overflow-x: auto; margin: 26px auto; border: 1px solid var(--line); border-radius: 14px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.cmp-table th, .cmp-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table thead th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); background: var(--ink-2); }
.cmp-table tbody th { font-weight: 600; color: var(--parchment); font-family: var(--font-body); }
.cmp-table td.us { color: #fbe9c9; }
.cmp-table .yes { color: var(--brass); }
.cmp-table .no { color: var(--slate); }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: none; }

/* ── consult CTA (into the free trial) ──────────────────────────────────── */
.cta-consult {
  max-width: var(--measure); margin: 44px auto; padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid var(--brass-dim); border-radius: 16px;
  background: linear-gradient(165deg, var(--surface) 0%, var(--ink-2) 100%); box-shadow: var(--shadow);
}
.cta-consult h2 { font-family: var(--font-display); color: var(--parchment); font-size: clamp(22px, 3vw, 28px); margin: 0 0 8px; }
.cta-consult p { color: var(--slate); margin: 0 0 18px; font-size: 16px; }
.cta-btn {
  display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 16px;
  color: var(--ink); background: var(--brass); padding: 13px 24px; border-radius: 9px;
  transition: filter 140ms ease, transform 120ms ease;
}
.cta-btn:hover { filter: brightness(1.07); text-decoration: none; }
.cta-btn:active { transform: translateY(1px); }
.cta-fine { font-family: var(--font-mono); font-size: 11.5px; color: var(--brass-dim); margin: 14px 0 0; }

/* related links */
.related { max-width: var(--measure); margin: 40px auto 0; padding-top: 26px; border-top: 1px solid var(--line); }
.related h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-dim); margin: 0 0 14px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin: 8px 0; }

/* ── hub (listing) ──────────────────────────────────────────────────────── */
.hub { max-width: 1120px; margin: 0 auto; padding: 8px clamp(18px, 4vw, 40px) 20px; }
.hub-head { max-width: 760px; margin: 8px 0 40px; }
.hub-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 6vw, 60px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.01em; text-wrap: balance; }
.hub-head p { font-size: clamp(18px, 2.2vw, 21px); color: var(--slate); line-height: 1.55; margin: 0; }
.hub-group { margin: 0 0 44px; }
.hub-group > h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-dim); margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-item { border-bottom: 1px solid var(--line); }
.hub-item a { display: block; padding: 20px 4px; color: var(--parchment); }
.hub-item a:hover { text-decoration: none; }
.hub-item a:hover .hub-title { color: var(--brass); }
.hub-title { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 25px); line-height: 1.2; transition: color 140ms ease; }
.hub-desc { color: var(--slate); font-size: 15.5px; line-height: 1.5; margin: 6px 0 0; max-width: 72ch; }
.hub-item a:hover .hub-arrow { transform: translateX(4px); }
.hub-arrow { color: var(--brass); display: inline-block; transition: transform 160ms cubic-bezier(0.22,1,0.36,1); }

/* ── footer ─────────────────────────────────────────────────────────────── */
.content-foot { max-width: 1120px; margin: 40px auto 0; padding: 24px clamp(18px, 4vw, 40px) 40px; border-top: 1px solid var(--line); color: var(--slate); font-size: 13.5px; }
.content-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.content-foot nav a { color: var(--slate); }
.content-foot nav a:hover { color: var(--brass); }
.content-foot .fine { font-family: var(--font-mono); font-size: 11.5px; color: var(--brass-dim); line-height: 1.6; }

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