/* Amplio Systems - Direction 01 "Blueprint", confirmed by Lee 2026-08-07 (#4301).
   Palette is the spec verbatim; the two hover shades and the footer ground are derived
   and marked as such, exactly as in the static site's config.

   Cyan is STRUCTURAL - rules, links, the mark.
   AMBER IS THE MITIGATION, not decoration: it carries the calls to action, because
   Blueprint's known risk is reading cold to a buyer who just wants a website. The agreed
   fix is to warm the copy and the CTA, never the identity.

   "Drawings and rules, not boxes and shadows" - so borders and hairlines do the work
   here, and there is not a single box-shadow in this file. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  /* Same file the static site serves, so type cannot drift between / and /blog. */
  src: url('/fonts/dm-sans/dm-sans-variable-latin.woff2') format('woff2');
}

:root {
  --ground: #0E1B2A;
  --panel: #14263A;      /* derived: a touch above ground, for cards */
  --rule: #22374E;
  --ink: #E8EEF5;
  --dim: #7C93AC;
  --cyan: #4DC5D9;
  --cyan-dark: #35AEC2;  /* derived hover shade */
  --amber: #F5A623;
  --amber-dark: #D98E12; /* derived hover shade */
  --foot: #0A1520;       /* derived */
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap--prose { max-width: 720px; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-dark); text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1.1rem; }

.eyebrow {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 .7rem; font-weight: 500;
}
.lede { font-size: 1.15rem; color: var(--dim); margin: 0 0 1rem; max-width: 62ch; }
.dot { color: var(--rule); margin: 0 .45rem; }

/* ---------- header: same mark, same links as the static site ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--ground); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; padding-top: 14px; padding-bottom: 14px; }
.brand { flex: none; display: block; line-height: 0; }
.brand img { height: 34px; width: auto; display: block; }

.site-nav { margin-left: auto; display: flex; gap: 1.35rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink); font-size: .93rem; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { color: var(--cyan); text-decoration: none; }
.site-nav a.is-active { color: var(--cyan); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; margin-left: auto;
  background: none; border: 0; padding: 10px 4px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); }

/* ---------- index ---------- */
.page-head { border-bottom: 1px solid var(--rule); padding: 3.5rem 0 2.5rem; margin-bottom: 2.5rem; }

.post-list { list-style: none; margin: 0 0 3rem; padding: 0; }
.post-item { border-bottom: 1px solid var(--rule); padding: 1.6rem 0; }
.post-item:first-child { padding-top: 0; }
.post-item__title { margin: 0 0 .4rem; }
.post-item__link { color: var(--ink); }
.post-item__link:hover .post-item__title { color: var(--cyan); }
.post-item__link:hover { text-decoration: none; }
.post-item__excerpt { color: var(--dim); margin: 0 0 .5rem; max-width: 68ch; }
.post-item__meta { color: var(--dim); font-size: .85rem; margin: 0; }
.empty { color: var(--dim); padding: 2rem 0 4rem; }

/* ---------- article ---------- */
.article__head { padding: 3.5rem 0 1.5rem; }
.article__meta { color: var(--dim); font-size: .88rem; margin: 1rem 0 0; }
.article__image { margin: 2rem auto; }
.article__image img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.article__image figcaption { color: var(--dim); font-size: .85rem; margin-top: .6rem; }
.article__body { padding-bottom: 3rem; }
.article__body img { max-width: 100%; height: auto; border: 1px solid var(--rule); }
.article__body blockquote {
  margin: 1.5rem 0; padding: .2rem 0 .2rem 1.1rem;
  border-left: 2px solid var(--cyan); color: var(--dim);
}
.article__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
  background: var(--panel); border: 1px solid var(--rule); padding: .1rem .35rem;
}
.article__body pre {
  background: var(--panel); border: 1px solid var(--rule); padding: 1rem;
  overflow-x: auto; font-size: .9rem;
}
.article__body pre code { border: 0; padding: 0; background: none; }
.article__body hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.article__body table { width: 100%; border-collapse: collapse; }
.article__body th, .article__body td { border: 1px solid var(--rule); padding: .5rem .7rem; text-align: left; }

.article__cta { border-top: 1px solid var(--rule); padding: 2.5rem 0 3.5rem; }

/* ---------- buttons: amber carries the action ---------- */
.btn {
  display: inline-block; padding: .7rem 1.35rem; font-weight: 600; font-size: .95rem;
  border-radius: 2px; border: 1px solid transparent;
}
.btn--accent { background: var(--amber); color: #1A1200; }
.btn--accent:hover { background: var(--amber-dark); color: #1A1200; text-decoration: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--foot); margin-top: 2rem; }
.site-footer__inner { padding: 2.5rem 24px; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer__brand { font-weight: 700; margin: 0; }
.site-footer__note { color: var(--dim); margin: 0; }
.site-footer .btn { margin-left: auto; }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 1rem; align-items: center; padding: 0 0 3rem; color: var(--dim); }

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; width: 100%; margin-left: 0; flex-direction: column; gap: .75rem;
    padding: 1rem 0 .25rem; border-top: 1px solid var(--rule);
  }
  .site-nav.is-open { display: flex; }
  .site-header__inner { flex-wrap: wrap; }
  .site-footer .btn { margin-left: 0; }
}
