/* VivianOps — main.css
 * Design system + shared page styles.
 * Palette, typography, spacing, layout, nav, footer, cards, buttons.
 */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSans-Bold.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  /* Color */
  --bg:          #0D0F12;
  --bg-raised:   #14171C;
  --bg-sunken:   #0A0C0F;
  --rule:        #232830;
  --rule-strong: #343B45;

  --text:        #E8E6E0;
  --text-muted:  #A8A89E;
  --text-dim:    #6F7079;

  --accent:      #4A9EAA;
  --accent-soft: #5FB5C2;
  --accent-dim:  #2F6B74;

  --focus:       #7FD3E0;

  /* Type scale */
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-xs:   0.8125rem;   /* 13 */
  --fs-sm:   0.9375rem;   /* 15 */
  --fs-base: 1.0625rem;   /* 17 */
  --fs-md:   1.1875rem;   /* 19 */
  --fs-lg:   1.375rem;    /* 22 */
  --fs-xl:   1.75rem;     /* 28 */
  --fs-2xl:  2.25rem;     /* 36 */
  --fs-3xl:  3rem;        /* 48 */
  --fs-4xl:  3.75rem;     /* 60 */

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-body:  1.6;

  /* Spacing (8px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Layout */
  --w-content: 68rem;   /* ~1088px */
  --w-prose:   42rem;   /* ~672px */
  --w-narrow:  34rem;

  /* Radius (subtle — boutique, not consumer-bubbly) */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur-fast: 120ms;
  --dur-med:  200ms;
}

/* ---------- Reset ---------- */

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

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--focus); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

:where(button, a) { cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 var(--s-5);
}
h1 { font-size: clamp(2.25rem, 4.5vw + 0.5rem, var(--fs-4xl)); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 2.5vw + 0.5rem, var(--fs-2xl)); }
h3 { font-size: var(--fs-xl); font-weight: 600; }
h4 { font-size: var(--fs-lg); font-weight: 600; }

p { margin: 0 0 var(--s-5); max-width: var(--w-prose); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-md);
  color: var(--text);
  max-width: var(--w-prose);
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-4);
  display: block;
}

.muted { color: var(--text-muted); }

code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

strong { font-weight: 600; color: var(--text); }

ul, ol {
  margin: 0 0 var(--s-5);
  padding-left: var(--s-5);
  max-width: var(--w-prose);
}
li { margin-bottom: var(--s-2); }
li::marker { color: var(--accent-dim); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--s-7) 0;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
@media (min-width: 48rem) {
  .container { padding-inline: var(--s-6); }
}

.section {
  padding-block: var(--s-8);
}
.section--lg { padding-block: var(--s-9); }
.section--sm { padding-block: var(--s-7); }

.stack > * + * { margin-top: var(--s-5); }
.stack-lg > * + * { margin-top: var(--s-6); }
.stack-xl > * + * { margin-top: var(--s-7); }

.prose { max-width: var(--w-prose); }

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  padding: var(--s-2) var(--s-4);
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  transform: translateY(-150%);
  transition: transform var(--dur-med) var(--ease);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding-block: var(--s-4);
}

.wordmark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.wordmark__dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
  flex: none;
}

.site-nav { display: flex; align-items: center; gap: var(--s-5); }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--s-5);
  padding: 0;
  margin: 0;
  max-width: none;
}
.site-nav li { margin: 0; }
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--fs-sm);
  padding: var(--s-2) 0;
  position: relative;
}
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}
.site-nav a:hover { color: var(--text); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-3);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
}

@media (max-width: 44rem) {
  .nav-toggle { display: inline-flex; align-items: center; gap: var(--s-2); }
  .site-nav ul {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--rule);
    padding: var(--s-4) var(--s-5);
    gap: var(--s-3);
  }
  .site-nav[data-open="true"] ul { display: flex; }
  .site-nav a { padding-block: var(--s-3); }
  .site-header { position: relative; }
}

/* ---------- Hex grid background ---------- */

.hex-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hex-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/assets/images/hex-grid.svg");
  background-size: 104px 180px;
  background-repeat: repeat;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, #000 40%, transparent 80%);
  pointer-events: none;
}

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

.hero {
  padding-block: clamp(var(--s-8), 10vw, var(--s-10));
}
.hero__eyebrow { margin-bottom: var(--s-5); }
.hero__title { margin-bottom: var(--s-5); }
.hero__tagline {
  font-size: clamp(var(--fs-md), 2vw, var(--fs-lg));
  color: var(--text-muted);
  max-width: var(--w-prose);
  margin-bottom: var(--s-6);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: #0A1416;
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #0A1416; }
.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--rule-strong);
}
.btn--secondary:hover { border-color: var(--accent); color: var(--text); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn__arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(2px); }

/* ---------- Cards ---------- */

.card {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color var(--dur-med) var(--ease);
}
.card:hover { border-color: var(--rule-strong); }
.card > :last-child { margin-bottom: 0; }
.card__title { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.card__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
  max-width: none;
}
@media (min-width: 44rem) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64rem) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- In-card sub-sections ---------- */

.card__subhead {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: var(--s-5) 0 var(--s-2);
}
.card dl {
  margin: var(--s-4) 0 0;
  display: grid;
  gap: var(--s-4);
  padding: 0;
}
.card dt {
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--s-1);
}
.card dd {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.note {
  margin: var(--s-5) 0 0;
  padding: var(--s-4) var(--s-5);
  border-left: 2px solid var(--accent);
  background: var(--bg-sunken);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.note strong { color: var(--text); }

/* ---------- Service card ---------- */

.service {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service__price {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--accent);
  margin-bottom: var(--s-3);
  letter-spacing: 0.02em;
}
.service__price-amount { color: var(--text); }

/* ---------- Trust list ---------- */

.trust-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  max-width: none;
}
.trust-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
  margin: 0;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--rule);
}
.trust-list li:last-child { border-bottom: 1px solid var(--rule); }
.trust-list__num {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  padding-top: 0.15em;
}
.trust-list li p { margin: var(--s-2) 0 0; color: var(--text-muted); }

/* ---------- Section dividers (geometric accent) ---------- */

.divider {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-block: var(--s-7);
  color: var(--accent-dim);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.divider__mark {
  width: 10px; height: 10px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  flex: none;
}

/* ---------- Pill / tag ---------- */

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--text-muted);
}

/* ---------- Founder card ---------- */

.founder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-6);
  align-items: start;
  text-align: left;
}
@media (max-width: 36rem) {
  .founder {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
}
.founder__body { max-width: var(--w-prose); }
.founder__body > :last-child { margin-bottom: 0; }
.founder__portrait {
  position: relative;
  width: 96px;
  height: 110px;
}
.founder__portrait svg { width: 100%; height: 100%; }
.founder__portrait-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-lg);
  color: var(--accent);
  letter-spacing: 0.08em;
}
.founder__portrait--photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-orientation: from-image;
  clip-path: polygon(50% 3.6%, 94.8% 24.5%, 94.8% 75.5%, 50% 96.4%, 5.2% 75.5%, 5.2% 24.5%);
}
.founder__portrait--photo-contain > img {
  object-fit: contain;
}
.founder__portrait--photo > svg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.founder__name { font-size: var(--fs-lg); margin-bottom: var(--s-1); }
.founder__role {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

/* ---------- Industries list ---------- */

.industries {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  max-width: none;
}
@media (min-width: 44rem) {
  .industries { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .industries { grid-template-columns: repeat(3, 1fr); }
}
.industries li {
  margin: 0;
  padding: var(--s-4) var(--s-5);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}

/* ---------- Timeline (pentest primer) ---------- */

.timeline {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: none;
}
.timeline li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--s-5);
  align-items: start;
  padding: var(--s-5) 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline__when {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.timeline li p { margin: var(--s-2) 0 0; color: var(--text-muted); }
@media (max-width: 36rem) {
  .timeline li { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* ---------- Contact links ---------- */

.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-5);
  max-width: none;
}
.contact-list li {
  margin: 0;
  padding: var(--s-5);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.contact-list a { font-family: var(--font-mono); font-size: var(--fs-md); }
.contact-list__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--s-2);
}
.contact-list__desc {
  display: block;
  margin-top: var(--s-2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ---------- Email link (obfuscated) ---------- */

.email-link {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  text-decoration: none;
  color: var(--accent-soft);
  word-break: break-all;
}
.email-link:hover { color: var(--focus); }
.email-link__display { border-bottom: 1px solid var(--accent-dim); }

/* ---------- Social / pending link ---------- */

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.social-list li { margin: 0; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  font-size: var(--fs-sm);
}
.social-link:hover { border-color: var(--accent); color: var(--text); }
.social-link.is-pending {
  color: var(--text-dim);
  border-style: dashed;
  border-color: var(--rule);
  pointer-events: none;
  cursor: default;
}

/* ---------- Product spotlight ---------- */

.spotlight {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-6);
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 44rem) {
  .spotlight { padding: var(--s-8); }
}
.spotlight__header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.spotlight__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 64px;
  flex: none;
}
.spotlight__mark svg { width: 100%; height: 100%; }
.spotlight__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  margin: 0;
}
.spotlight__tagline {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: var(--w-prose);
}
.spotlight__how {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-3);
  counter-reset: step;
}
.spotlight__how li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  margin: 0;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}
.spotlight__how li:last-child { border-bottom: 1px solid var(--rule); }
.spotlight__how li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 0.15em;
}
.spotlight__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}
.spotlight__meta strong { color: var(--text); font-weight: 500; }

/* ---------- Blog list ---------- */

.post-list {
  list-style: none;
  padding: 0;
  max-width: none;
}
.post-list li {
  margin: 0;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--rule);
}
.post-list li:last-child { border-bottom: 1px solid var(--rule); }
.post-list time {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--s-2);
}
.post-list a { font-size: var(--fs-md); text-decoration: none; color: var(--text); }
.post-list a:hover { color: var(--accent-soft); }

.post-list__empty {
  padding: var(--s-6);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r-md);
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

/* ---------- Article (blog post) ---------- */

.post-body {
  max-width: var(--w-prose);
}
.post-body h2 { margin-top: var(--s-7); }
.post-body h3 { margin-top: var(--s-6); }
.post-body p, .post-body ul, .post-body ol { font-size: var(--fs-base); }
.post-body blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-2) var(--s-5);
  border-left: 2px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}
.post-body pre {
  background: var(--bg-sunken);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s-4);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.post-body code {
  background: var(--bg-sunken);
  padding: 0.1em 0.35em;
  border-radius: var(--r-sm);
  font-size: 0.9em;
}
.post-body pre code { background: transparent; padding: 0; }
.post-body img { margin: var(--s-5) 0; border-radius: var(--r-md); }

.post-header { margin-bottom: var(--s-7); }
.post-header time {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  margin-bottom: var(--s-5);
}
.post-back:hover { color: var(--accent-soft); }

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

.site-footer {
  margin-top: auto;
  padding-block: var(--s-7);
  border-top: 1px solid var(--rule);
  background: var(--bg-sunken);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.site-footer__grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h2 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.site-footer li { margin: 0 0 var(--s-2); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer__legal {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-dim);
}
.site-footer__legal a { color: var(--text-muted); }

/* ---------- CTA strip ---------- */

.cta-strip {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
}
.cta-strip__text { max-width: 42ch; }

/* ---------- Utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }

/* ---------- Reduced motion ---------- */

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