/*
Theme Name: Minnovate
Theme URI: https://minnovatenetworks.com/blog/
Author: Minnovate Networks
Description: Blog theme for minnovatenetworks.com/blog, matching the static site at the domain root. Deliberately minimal: no page builder, no options screen, no bundled plugins.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: minnovate
*/

/* Tokens are copied from the static site's global.css on purpose rather than
   shared through a build step. WordPress and Astro have no common pipeline
   here, and a duplicated block of custom properties is far less fragile than
   a shared asset that either side can break. If a token changes, change both. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/archivo.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('assets/fonts/ibm-plex-sans.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('assets/fonts/jetbrains-mono.woff2') format('woff2-variations');
}

:root {
  --base: #070a0f;
  --base-soft: #0a0f16;
  --surface: #0d131c;
  --surface-2: #131c28;
  --line: #1e2a3a;
  --line-bright: #2b3c50;
  --text: #e8edf5;
  --text-dim: #93a3b8;
  --text-faint: #738398;
  --signal: #35e0c8;
  --link-blue: #5b8cff;
  --alert: #ff7a59;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--base);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg, iframe, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

a { color: var(--signal); text-underline-offset: 0.22em; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--line { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-dim);
  max-width: 56ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.45rem;
  background: var(--signal);
  color: #041014;
  font-weight: 600;
  font-size: 0.93rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px -10px color-mix(in oklab, var(--signal) 65%, transparent);
}

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute;
  left: 0.5rem;
  top: -100px;
  z-index: 200;
  background: var(--signal);
  color: #041014;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.5rem; }

/* ---------------- Header ---------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--base) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  height: 66px;
}
.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--signal);
  text-decoration: none;
  flex: none;
}
.logo__mark { flex: none; }
.logo__word {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
}
.logo__sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.28em;
}

.header__nav { display: none; gap: 1.8rem; margin-inline-start: auto; }
.header__nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.header__nav a:hover, .header__nav a[aria-current='page'] { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; }
.header__phone {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
}
.header__cta { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

@media (min-width: 900px) {
  .header__nav { display: flex; }
  .header__actions { margin-inline-start: 0; }
  .header__phone { display: inline-flex; }
}

/* ---------------- Page header ---------------- */

.page-header {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  isolation: isolate;
}
.page-header__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 340px at 88% -10%, color-mix(in oklab, var(--signal) 12%, transparent), transparent 70%),
    radial-gradient(520px 300px at 8% 110%, color-mix(in oklab, var(--link-blue) 9%, transparent), transparent 72%);
}
.page-header__inner { display: grid; gap: 1.2rem; justify-items: start; }
.page-header__title { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; }
.page-header + .section { padding-top: clamp(0.5rem, 2vw, 1.75rem); }

/* ---------------- Post list ---------------- */

.posts { display: grid; gap: 1.15rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--line-bright); transform: translateY(-3px); }

.post-card { display: grid; }
.post-card__media { display: block; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: clamp(1.3rem, 2.5vw, 1.75rem); display: grid; gap: 0.6rem; align-content: start; }

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.post-card__cat { color: var(--signal); }

.post-card__title { font-size: clamp(1.15rem, 2vw, 1.35rem); }
.post-card__title a { color: var(--text); text-decoration: none; }
.post-card__title a:hover { color: var(--signal); }
.post-card__excerpt { color: var(--text-dim); font-size: 0.94rem; }

@media (min-width: 680px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .posts { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Pagination ---------------- */

.pagination { margin-top: clamp(2rem, 5vw, 3rem); }
.pagination ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.pagination a, .pagination span {
  display: inline-block;
  min-width: 2.5rem;
  text-align: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
}
.pagination a:hover { border-color: var(--signal); color: var(--signal); }
.pagination .current { background: var(--signal); color: #041014; border-color: var(--signal); font-weight: 600; }

/* ---------------- Single post ---------------- */

.single__title { max-width: 24ch; }
.single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.single__media { margin-block: 1.5rem 0; }
.single__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

/* Long-form reading column. Everything the block editor can emit gets a style
   here, because there is no page builder to fall back on. */
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.25rem; }
.prose p, .prose li { color: var(--text-dim); font-size: 1.05rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-top: 2.75rem; color: var(--text); }
.prose h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin-top: 2rem; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.35rem; display: grid; gap: 0.55rem; }
.prose li::marker { color: var(--signal); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--signal); }
.prose img, .prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { font-size: 0.82rem; color: var(--text-faint); margin-top: 0.6rem; }
.prose blockquote {
  border-left: 2px solid var(--signal);
  padding-left: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.12em 0.4em;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.65rem 0.85rem; text-align: left; font-size: 0.94rem; }
.prose th { color: var(--text); font-weight: 600; background: var(--surface); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin-top: 3rem; }
.tags a {
  display: inline-block;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
}
.tags a:hover { border-color: var(--signal); color: var(--signal); }

/* ---------------- CTA band ---------------- */

.cta-band {
  background: radial-gradient(620px 320px at 78% 0%, color-mix(in oklab, var(--signal) 9%, transparent), transparent 70%), var(--base-soft);
}
.cta-band__inner { display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 20ch; }
.cta-band p { color: var(--text-dim); margin-top: 0.75rem; max-width: 52ch; }
@media (min-width: 860px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 3rem; } }

/* ---------------- Empty state ---------------- */

.empty { display: grid; gap: 1rem; justify-items: start; max-width: 46ch; }
.empty h1, .empty h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.empty p { color: var(--text-dim); }
.empty-page { padding-block: clamp(4rem, 12vh, 8rem); }

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

.footer {
  border-top: 1px solid var(--line);
  background: var(--base-soft);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  margin-top: auto;
}
.footer__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
.footer__blurb { color: var(--text-dim); font-size: 0.93rem; max-width: 34ch; }
.footer__contact {
  display: grid;
  gap: 0.35rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 1rem;
}
.footer__contact a { color: var(--text-dim); text-decoration: none; width: fit-content; }
.footer__contact a:hover { color: var(--signal); }
.footer__nav { display: grid; gap: 0.6rem; align-content: start; }
.footer__nav a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; width: fit-content; }
.footer__nav a:hover { color: var(--signal); }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.footer__built { font-family: var(--font-mono); letter-spacing: 0.05em; }

@media (min-width: 760px) { .footer__inner { grid-template-columns: 1.6fr 1fr; } }

/* ---------------- WordPress core classes ---------------- */

.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
