/* =========================================================================
   Opslife — modern theme overrides
   Layered on top of the Ananke (tachyons) theme.
   ========================================================================= */

:root {
  --brand-ink:      #111827;   /* gray-900   — primary text            */
  --brand-body:     #334155;   /* slate-700  — body copy               */
  --brand-muted:    #64748b;   /* slate-500  — meta / secondary        */
  --brand-accent:   #10b981;   /* emerald-500 — links / buttons        */
  --brand-accent-2: #059669;   /* emerald-600 — hover                  */
  --brand-bg:       #f8fafc;   /* slate-50   — page background         */
  --brand-card:     #ffffff;
  --brand-border:   #e2e8f0;   /* slate-200                            */
  --hero-grad: linear-gradient(135deg, #0b0f14 0%, #111827 45%, #1f2937 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 30px rgba(16, 185, 129, .16);
  --radius: 14px;
}

/* ---- Typography --------------------------------------------------------- */

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: var(--brand-bg) !important;
  color: var(--brand-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Neutralise tachyons font-family utilities so prose/UI use Inter */
.avenir, .serif, .athelas, .sans-serif, .system-sans-serif,
.georgia, .times, .baskerville, .lucida-grande {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif !important;
  color: var(--brand-ink);
  letter-spacing: -0.01em;
}

/* Cleaner emphasis — Inter 700 reads heavy/patchy in prose, 600 is sleeker */
strong, b { font-weight: 600; }

/* Keep code in a clean monospace */
code, pre, kbd, samp, .code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace !important;
}

/* ---- Hero --------------------------------------------------------------- */

.site-hero {
  background: var(--hero-grad);
  position: relative;
  overflow: hidden;
}

/* soft glow accent in the corner for a modern feel */
.site-hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(circle, rgba(16, 185, 129, .28) 0%, rgba(16, 185, 129, 0) 70%);
  pointer-events: none;
}

.site-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 60rem;
  margin: 0 auto;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.site-hero__title {
  color: #ffffff !important;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0;
}

.site-hero__subtitle {
  color: rgba(226, 232, 240, .9);
  font-family: 'Inter', sans-serif !important;
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  max-width: 34rem;
  margin: 1rem auto 0;
}

.site-hero--slim .site-hero__inner { display: none; }
.site-hero--slim { padding-bottom: 0; }

/* ---- Navigation --------------------------------------------------------- */

.site-hero nav a,
.site-hero nav .white-90 { color: rgba(255, 255, 255, .85) !important; }
.site-hero nav a:hover { color: #ffffff !important; }

/* ---- Body copy colour — unified across home, sections & posts ---------- */

main article.cf,
main section.cf,
main .nested-copy-line-height {
  color: var(--brand-body);
}

main h1 { font-size: 1.75rem; }

/* ---- Post summary cards ------------------------------------------------- */

.relative.w-100 > article,
article.bb {
  background: var(--brand-card);
  border: 1px solid var(--brand-border) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}

.relative.w-100 > article:hover,
article.bb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

article.bb { border-bottom-width: 1px !important; }

.summary-with-image article h1 a,
article.bb h1 a { color: var(--brand-ink); }

/* ---- Links -------------------------------------------------------------- */

main a:not(.button):not([class*="bg-"]) { color: var(--brand-accent); }
main a:not(.button):not([class*="bg-"]):hover { color: var(--brand-accent-2); }

/* ---- Buttons (read more, all posts, contact submit) -------------------- */

a.ba.b--moon-gray,
a.bg-mid-gray,
input[type="submit"] {
  background: var(--brand-accent) !important;
  border: 0 !important;
  color: #ffffff !important;
  border-radius: 9px !important;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s ease, transform .15s ease;
}

a.ba.b--moon-gray:hover,
a.bg-mid-gray:hover,
input[type="submit"]:hover {
  background: var(--brand-accent-2) !important;
  transform: translateY(-1px);
}

/* ---- Contact form inputs ----------------------------------------------- */

input.bg-light-gray,
textarea.bg-light-gray {
  background: #ffffff !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: 9px !important;
}

input.bg-light-gray:focus,
textarea.bg-light-gray:focus {
  outline: none;
  border-color: var(--brand-accent) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}

/* ---- Footer ------------------------------------------------------------- */

footer.bg-black,
footer[class*="bg-"] { background: var(--brand-ink) !important; }
