/* Governova — base styles.
   Visual language carried over from the original hadinoori.ca design:
   blueprint grid, IBM Plex Sans with Plex Mono labels, navy and blue. */

/* IBM Plex, self-hosted (SIL Open Font License) */
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --navy: #0a1628;
  --blue: #0a6a86; /* accent: the Governova brand color */
  --slate: #475569;
  --grid: rgba(10, 22, 40, 0.06);
  --border: rgba(10, 22, 40, 0.08);

  /* Hero network colors, as on the live site */
  --brand: #0a6a86;
  --surface: #ffffff;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wide: 1440px;
  --pad: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--navy);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: rgba(10, 106, 134, 0.12); }

/* Blueprint grid behind every page */
body {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 2000; background: #fff; padding: 8px 12px; }

/* Mono label used across the site */
.label {
  display: block; margin-bottom: 40px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--slate);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--blue);
}
.badge::before { content: ""; width: 20px; height: 2px; background: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px var(--pad);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}
.brand { display: inline-flex; flex-direction: column; gap: 4px; text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; }
/* Tagline set as text so it stays legible; starts under the wordmark, as in the logo */
.brand-tag { padding-left: 31px; font-family: var(--mono); font-size: 0.57rem; font-weight: 600; letter-spacing: 0.15px; text-transform: uppercase; color: var(--slate); white-space: nowrap; }
.nav { display: flex; gap: 40px; list-style: none; }
.nav a {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--slate); text-decoration: none; transition: color 0.3s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }


/* ---------- Buttons ---------- */
.btn-group { display: flex; gap: 20px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 16px 36px;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--navy); transition: all 0.3s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Home: hero ---------- */
.hero {
  max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad);
  min-height: calc(90vh - 81px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(3rem, 5.5vw, 4.8rem); line-height: 1.05; font-weight: 700;
  letter-spacing: -1px; margin-bottom: 30px;
}
.emphasis {
  font-style: italic;
  text-decoration: underline; text-decoration-color: var(--blue);
  text-decoration-thickness: 4px; text-underline-offset: 6px;
}
.sub { max-width: 540px; margin-bottom: 40px; font-size: 1.15rem; line-height: 1.6; color: var(--slate); }

.hero-visual { position: relative; height: 600px; width: 100%; }
#node-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.sys-label {
  position: absolute; z-index: 2; padding: 6px 12px;
  font-family: var(--mono); font-size: 0.65rem; font-weight: 600; letter-spacing: 1px;
  color: var(--blue); background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 106, 134, 0.2);
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.05);
}
.lbl-1 { top: 20%; left: 15%; }
.lbl-2 { top: 15%; right: 18%; }
.lbl-3 { bottom: 25%; left: 18%; }
.lbl-4 { bottom: 20%; right: 12%; }

/* ---------- Home: sections ---------- */
.section { max-width: var(--wide); margin: 0 auto; padding: 100px var(--pad); }
.section + .section { border-top: 1px solid var(--border); }
.hero + .section { border-top: 0; }

/* Selected insights: two columns with a divider */
.insights-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; list-style: none; }
.insights-grid::after { content: ""; position: absolute; left: 50%; top: 0; height: 100%; width: 1px; background: var(--border); }
.insight-card { display: flex; flex-direction: column; align-items: flex-start; }
.insight-card.is-placeholder { padding: 28px; border: 1px dashed rgba(10, 22, 40, 0.18); }
.is-placeholder .insight-tag, .is-placeholder .insight-title, .is-placeholder .text-link { opacity: 0.88; }
.insight-tag { margin-bottom: 20px; font-family: var(--mono); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; color: var(--blue); }
.insight-title { max-width: 90%; margin-bottom: 24px; font-size: 1.5rem; font-weight: 600; line-height: 1.4; }
.text-link {
  padding-bottom: 4px; border-bottom: 1px solid var(--navy);
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  color: var(--navy); text-decoration: none; transition: color 0.3s, border-color 0.3s;
}
.text-link:hover { color: var(--blue); border-color: var(--blue); }

/* Areas of work: three cards */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; }
.focus-card {
  position: relative; display: block; height: 100%; padding: 40px 32px;
  background: #fff; border: 1px solid var(--border);
  color: inherit; text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.focus-card::before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 3px; background: var(--blue); transition: width 0.3s ease; }
.focus-card:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 20px 40px rgba(10, 22, 40, 0.03); }
.focus-card:hover::before { width: 100%; }
.focus-num { margin-bottom: 20px; font-family: var(--mono); font-size: 2.5rem; font-weight: 600; line-height: 1; color: rgba(10, 106, 134, 0.1); }
.focus-title { margin-bottom: 12px; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.focus-desc { font-size: 0.95rem; line-height: 1.6; color: var(--slate); }

/* ---------- Inner pages ---------- */
.page { max-width: 1000px; margin: 0 auto; padding: 80px var(--pad) 120px; }
.page-narrow { max-width: 800px; }
.page-title { margin-bottom: 24px; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; }
.page-intro { max-width: 640px; font-size: 1.2rem; line-height: 1.6; color: var(--slate); }
.page-head { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--border); }
.back-link {
  display: inline-flex; gap: 8px; margin-bottom: 40px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--slate); text-decoration: none; transition: color 0.3s;
}
.back-link:hover { color: var(--blue); }

/* Two-column block: mono label on the left, content on the right */
.block { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--border); }
.block:last-child { border-bottom: 0; }
.block .label { margin: 4px 0 0; }
.statement { margin-bottom: 20px; font-size: 1.6rem; font-weight: 600; line-height: 1.35; }
.standards { list-style: none; margin-top: 20px; border-top: 1px solid var(--border); }
.standards li { padding: 14px 0; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; }

/* Article and body text */
.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body > * + * { margin-top: 25px; }
.article-body h2 { margin-top: 56px; font-size: 1.6rem; font-weight: 700; line-height: 1.3; }
.article-body h3 { margin-top: 40px; font-size: 1.3rem; font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 30px; }
.article-body li + li { margin-top: 10px; }
.article-body a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(10, 106, 134, 0.3); }
.article-body a:hover { border-color: var(--blue); }
.article-body blockquote { padding-left: 20px; border-left: 3px solid var(--blue); font-style: italic; color: var(--slate); }
.article-body code { font-family: var(--mono); font-size: 0.9em; background: rgba(10, 22, 40, 0.05); padding: 2px 6px; }
.article-body pre { overflow-x: auto; padding: 20px; background: rgba(10, 22, 40, 0.05); }

.article-tag { display: inline-block; margin-bottom: 20px; padding: 4px 10px; border: 1px solid rgba(10, 106, 134, 0.2); font-family: var(--mono); font-size: 0.65rem; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.article-date { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); }
.article-description { margin: 32px 0 56px; padding-left: 20px; border-left: 3px solid var(--blue); font-size: 1.2rem; font-style: italic; line-height: 1.6; color: var(--slate); }

/* Insights archive */
.entry { display: grid; grid-template-columns: 180px 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--border); }
.entry:first-child { border-top: 1px solid var(--border); }
.entry-meta { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; text-align: right; }
.entry-title { margin-bottom: 16px; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.entry-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.entry-title a:hover { color: var(--blue); }
.entry-excerpt { max-width: 650px; color: var(--slate); }
.empty-note { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 80px var(--pad) 40px; }
.footer-content { max-width: var(--wide); margin: 0 auto 60px; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-brand h2 { margin-bottom: 20px; font-size: 1rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.footer-meta { font-family: var(--mono); font-size: 0.7rem; line-height: 1.8; color: var(--slate); }
.footer-links { display: flex; gap: 40px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--navy); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.footer-links a:hover { border-color: var(--blue); }
.footer-small-link { margin-left: 16px; color: var(--slate); }
.footer-small-link:hover { color: var(--blue); }
.footer-bottom {
  max-width: var(--wide); margin: 0 auto; padding-top: 30px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 0.65rem; color: var(--slate);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --pad: 30px; }
  .hero { gap: 48px; }
  .hero-visual { height: 480px; }
  .section { padding: 60px var(--pad); }
  .insights-grid { grid-template-columns: 1fr; gap: 40px; }
  .insights-grid::after { display: none; }
  .focus-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-content { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}

/* Hero stacks only on narrow screens, as on the earlier live site */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; padding-bottom: 60px; min-height: 0; }
  .hero-visual { height: 340px; }
}

@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px var(--pad); }
  .brand img { height: 28px; }
  .brand-tag { padding-left: 29px; }
  .nav { gap: 22px; flex-wrap: wrap; }
  .nav a { display: inline-block; padding: 14px 0; }
  .hero { padding-top: 40px; padding-bottom: 40px; gap: 24px; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3rem); margin-bottom: 20px; }
  .badge { margin-bottom: 20px; }
  .sub { font-size: 1rem; margin-bottom: 28px; }
  .hero-visual { height: 230px; }
  .sys-label { font-size: 0.55rem; padding: 4px 8px; }
  .page { padding: 48px var(--pad) 80px; }
  .block { grid-template-columns: 1fr; gap: 16px; }
  .entry { grid-template-columns: 1fr; gap: 12px; }
  .entry-meta { text-align: left; }
  .footer-links { flex-direction: column; gap: 15px; }
  .footer-small-link { display: inline-block; margin: 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .focus-card:hover { transform: none; }
}
.entries { list-style: none; }
