/* Shared shell for the GitHub Pages sub-pages (how-it-works / pricing /
   blog). Same design language as the landing page: warm white, brand
   red accent, brand yellow highlights, soft borders, big confident type.

   IMPORTANT: pages must link this RELATIVELY (../_assets/site.css) —
   a leading-slash href resolves to sinhaankur.github.io/_assets/… and
   404s on the /WatchTower/ project path (that bug shipped once: the
   sub-pages rendered completely unstyled in production).

   The --wt-* token names are legacy (pages' local <style> blocks use
   them) — values are remapped to the current palette so page-local
   styles inherit the new look without touching every rule. */

:root {
  --wt-bg: #fffdf8;
  --wt-panel: #ffffff;
  --wt-panel-soft: #fdfbf4;
  --wt-border: #ece5d6;        /* soft warm line (was near-black) */
  --wt-border-soft: #f1ece0;
  --wt-text: #0f172a;
  --wt-text-dim: #5c6472;
  --wt-accent: #b91c1c;        /* brand red */
  --wt-accent-strong: #7f1d1d;
  --wt-accent-soft: #fde68a;   /* brand yellow */
  --wt-radius: 14px;
  --wt-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wt-bg);
  color: var(--wt-text);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
code, pre { font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
code {
  background: var(--wt-panel-soft);
  border: 1px solid var(--wt-border);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.85em;
}
pre code { background: none; border: none; padding: 0; }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wt-border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand-mark, .brand-mark svg, .brand-mark img { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--wt-text-dim);
  padding: 7px 12px;
  border-radius: 8px;
  transition: color 150ms, background 150ms;
}
.nav-link:hover { color: var(--wt-text); background: var(--wt-panel-soft); }
.nav-link.active { color: var(--wt-accent); font-weight: 700; }
.nav-cta {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--wt-accent);
  padding: 8px 16px;
  border-radius: 999px;
  transition: transform 150ms var(--wt-ease), background 150ms;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--wt-accent-strong); transform: translateY(-1px); }

/* ── Main / hero ─────────────────────────────────────────────────── */
.site-main {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 80px;
  flex: 1;
}
.site-hero { padding: 72px 0 44px; }
.eyebrow {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wt-accent);
  margin-bottom: 14px;
}
.site-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0 0 12px;
  max-width: 24ch;
}
.site-hero .lead {
  color: var(--wt-text-dim);
  font-size: 1.08rem;
  max-width: 58ch;
  margin: 0;
}
.site-hero .lead a { color: var(--wt-accent); font-weight: 600; }

/* ── Content blocks ──────────────────────────────────────────────── */
.panel {
  background: var(--wt-panel);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
  padding: 30px 32px;
  margin-bottom: 22px;
}
.panel h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.panel > p { color: var(--wt-text-dim); }

.callout {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(253, 230, 138, 0.28);   /* brand yellow wash */
  border: 1px solid rgba(217, 178, 41, 0.35);
  font-size: 0.95rem;
  color: var(--wt-text);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--wt-accent);
  color: #fff;
  transition: transform 150ms var(--wt-ease), box-shadow 150ms, background 150ms;
}
.cta-btn:hover {
  background: var(--wt-accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.28);
}
.cta-btn.ghost {
  background: transparent;
  color: var(--wt-text);
  border: 1.5px solid var(--wt-border);
}
.cta-btn.ghost:hover { border-color: var(--wt-text); box-shadow: none; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--wt-border);
  padding: 28px 24px 40px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--wt-text-dim);
}
.site-footer a { color: var(--wt-accent); font-weight: 600; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links .nav-link { display: none; }
  .nav-links .nav-link.active { display: inline-block; }
  .site-hero { padding: 48px 0 32px; }
  .panel { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
