/* Senestone — minimal site styles (Bootstrap-free) */

:root {
  --maxw: 980px;
  --pad: 20px;
  --radius: 12px;
  --border: rgba(0,0,0,.12);
  --muted: rgba(0,0,0,.68);
  --muted2: rgba(0,0,0,.54);
}

* { box-sizing: border-box; }

html { scroll-padding-top: 80px; }
html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;

  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #222;
}

/* Page wrapper: enables a true sticky footer without hacks */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Default container utility (not tied to an element type) */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Main should flex so footer can sit at viewport bottom on short pages */
main.container {
  padding-bottom: 10px;
  background: #fbfaf8;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  margin: 0 auto;
}

.push { flex: 1; }

.site-header {
  position: sticky;
  top: 0;
  background: #f8f9fb;
  color: #111;
  border-bottom: 1px solid rgba(0,0,0,.06);
  z-index: 10;
}

.header-gap {
  height: 48px; /* tune: 20–32 */
  background: #222;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 28px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #111;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Active page — subtle */
.site-nav a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.08);
  font-weight: 500;
}

/* Hover — slightly stronger (so hover dominates active visually) */
.site-nav a:hover {
  background: rgba(0, 0, 0, 0.14);
}

.hero {
  padding: 16px 0 16px;
}

h1 {
  margin: 0 0 12px;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: #111;        /* <- add */
  font-weight: 650;  /* <- add (or 600 if you prefer) */
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.page-header {
  padding: 30px 0 10px;
}

.page-header h1 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 18px;
  max-width: 75ch;
}

.meta {
  margin: 0;
  color: var(--muted2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 26px;
}

@media (max-width: 920px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .page-header h1 { font-size: 28px; }
}

.card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #111;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-title {
  margin: 0 0 8px;
  font-size: 20px;
}

.card-subtitle {
  margin: 0 0 10px;
  color: var(--muted);
}

.stack { padding: 12px 0 12px; }

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: #111;
  background: #fff;
}

.btn:hover {
  background: rgba(0,0,0,.04);
}

.btn-primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn-primary:hover {
  background: rgba(0,0,0,.86);
}

.prose {
  padding: 0 0 18px;
  max-width: 80ch;
}

.prose h2 {
  color: #111;
  margin: 18px 0 10px;
  font-size: 20px;
}

.prose p, .prose li {
  color: var(--muted);
  font-size: 16px;
}

.site-footer {
  margin-top: auto;
  text-align: center;
  padding: 12px 0 14px;
  color: #f5f6f8;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}