/* Mist Technologies — misttechnologies.net
   Fog over steel. One bold moment (the hero mist), everything else quiet. */

@font-face {
  font-family: "Bricolage";
  src: url("/static/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("/static/fonts/source-serif.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("/static/fonts/source-serif-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --fog: #e6ecef;
  --paper: #f5f8f9;
  --ink: #17222c;
  --slate: #4b5b68;
  --rule: #c9d3d9;
  --steel: #2d6a8a;
  --steel-deep: #1f4f68;
  --vodou: #6d5bff;
  --mystic: #3f7a6c;

  --sans: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.5rem, 6vw + 1rem, 4.75rem);

  --measure: 66ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fog: #141c22;
    --paper: #19232b;
    --ink: #e4ebef;
    --slate: #9fb0bc;
    --rule: #2c3a44;
    --steel: #7fb6d3;
    --steel-deep: #a9cfe2;
    --vodou: #a89dff;
    --mystic: #8cc5b5;
  }
}

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

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

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--steel); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--steel-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), 60rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 0.75rem; background: var(--paper); padding: 0.5rem 0.75rem; z-index: 10; }

/* ---------- header ---------- */
.site-header { padding-block: 1.5rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; flex: none; }
.site-nav { display: flex; gap: clamp(0.9rem, 3vw, 1.75rem); font-size: var(--step--1); font-weight: 500; }
.site-nav a { color: var(--slate); text-decoration: none; padding-block: 0.25rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--steel); }

/* ---------- hero: the one bold moment ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 12vw, 8rem) clamp(3rem, 8vw, 5.5rem); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 720;
  margin: 0 0 1.5rem;
  max-width: 14ch;
  animation: clear 2.4s cubic-bezier(.2,.7,.2,1) both;
}
.hero p.lede { font-family: var(--serif); font-size: var(--step-1); line-height: 1.5; color: var(--slate); max-width: 44ch; margin: 0; }
@keyframes clear {
  from { filter: blur(14px); opacity: 0.15; letter-spacing: 0.02em; }
  to   { filter: blur(0); opacity: 1; letter-spacing: -0.035em; }
}
.mist { position: absolute; inset: -20% -10%; pointer-events: none; z-index: 0; }
.mist span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--paper) 92%, transparent), transparent);
  filter: blur(30px);
  animation: drift 38s ease-in-out infinite alternate;
}
.mist span:nth-child(1) { width: 60vw; height: 28vw; left: -10%; top: 30%; }
.mist span:nth-child(2) { width: 45vw; height: 22vw; right: -5%; top: 8%; animation-duration: 46s; animation-delay: -12s; }
.mist span:nth-child(3) { width: 50vw; height: 20vw; left: 30%; bottom: 0; animation-duration: 52s; animation-delay: -24s; opacity: 0.8; }
@keyframes drift {
  from { transform: translate3d(-6%, 0, 0); }
  to   { transform: translate3d(8%, -6%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .mist span { animation: none; }
}

/* ---------- sections ---------- */
main { display: block; }
.band { background: var(--paper); border-block: 1px solid var(--rule); }
.section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.section h2 { font-size: var(--step-2); letter-spacing: -0.015em; font-weight: 650; margin: 0 0 1.5rem; }

/* products: rows, not cards */
.products { list-style: none; margin: 0; padding: 0; }
.product {
  display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 0.5rem 2rem;
  padding-block: 1.6rem; border-top: 1px solid var(--rule);
}
.product:last-child { border-bottom: 1px solid var(--rule); }
.product h3 { margin: 0; font-size: var(--step-2); letter-spacing: -0.02em; font-weight: 700; }
.product[data-p="vodou"] h3 { color: var(--vodou); }
.product[data-p="mystic"] h3 { color: var(--mystic); }
.product .status { display: block; margin-top: 0.35rem; font-size: var(--step--1); color: var(--slate); font-weight: 500; }
.product p { margin: 0 0 0.6rem; font-family: var(--serif); max-width: 52ch; }
.product .links { font-size: var(--step--1); font-weight: 550; display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 40rem) {
  .product { grid-template-columns: 1fr; }
}

/* post lists */
.posts { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.posts li { padding-block: 1.1rem; border-top: 1px solid var(--rule); }
.posts li:last-child { border-bottom: 1px solid var(--rule); }
.posts a.title { font-size: var(--step-1); font-weight: 620; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.posts a.title:hover { color: var(--steel); text-decoration: underline; }
.posts .meta { display: block; font-size: var(--step--1); color: var(--slate); margin-top: 0.15rem; }
.posts p { margin: 0.4rem 0 0; font-family: var(--serif); color: var(--slate); }
.empty { font-family: var(--serif); color: var(--slate); max-width: var(--measure); }

.page-head { padding-block: clamp(2.5rem, 8vw, 4.5rem) 1.5rem; }
.page-head h1 { font-size: var(--step-3); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 0.75rem; font-weight: 700; max-width: 22ch; }
.page-head p { margin: 0; font-family: var(--serif); color: var(--slate); font-size: var(--step-1); max-width: 50ch; }

/* ---------- article ---------- */
.article { padding-block: clamp(2.5rem, 8vw, 4.5rem) clamp(3rem, 8vw, 5rem); }
.article header { max-width: var(--measure); margin-bottom: 2.25rem; }
.article header h1 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 0.75rem; font-weight: 700; }
.article header .meta { font-size: var(--step--1); color: var(--slate); }
.article header .meta a { color: inherit; }
.prose { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.68; max-width: var(--measure); }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre { margin-bottom: 0; }
.prose h2, .prose h3 { font-family: var(--sans); letter-spacing: -0.015em; line-height: 1.2; margin-top: 2em; }
.prose h2 { font-size: var(--step-2); }
.prose h3 { font-size: var(--step-1); }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 3px solid var(--rule); color: var(--slate); font-style: italic; }
.prose code { font-size: 0.88em; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 0.08em 0.3em; }
.prose pre { background: var(--ink); color: var(--fog); padding: 1rem 1.15rem; border-radius: 6px; overflow-x: auto; font-size: 0.85rem; line-height: 1.5; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose img { max-width: 100%; height: auto; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.5em; }
.backlink { display: inline-block; margin-top: 3rem; font-size: var(--step--1); font-weight: 550; }

/* ---------- contact + footer ---------- */
.contact p { font-family: var(--serif); font-size: var(--step-1); max-width: 46ch; margin: 0; }
.site-footer { padding-block: 2.5rem 3rem; font-size: var(--step--1); color: var(--slate); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--slate); }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.section--flush { padding-top: 0; }
.brand img { width: 32px; height: 32px; flex: none; }
.product-icon { display: block; width: 48px; height: 48px; margin-bottom: 0.6rem; }
.product h3 .ai {
  font-size: 0.42em;
  font-weight: 750;
  letter-spacing: 0.04em;
  vertical-align: super;
  margin-left: 0.12em;
  line-height: 0;
}
