/* Unified - a Mickai journal on sovereign AI.
   Mickai Sovereign brand system: black + warm off-white + gold,
   Playfair Display headlines, Inter body, Inter Tight wordmark,
   JetBrains Mono rails. Fonts self-hosted (no Google Fonts, no CDN call). */

@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap; src: url("/assets/fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 600; font-display: swap; src: url("/assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("/assets/fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 800; font-display: swap; src: url("/assets/fonts/playfair-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/intertight.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/jbmono.woff2") format("woff2"); }

:root {
  --void:      #050505;
  --void-2:    #0b0b0c;
  --surface:   #121214;
  --surface-2: #1a1a1d;
  --core:      #f4f2ec;   /* warm off-white */
  --muted:     #c3bfb4;
  --steel:     #929aa0;
  --gold:      #d4af37;
  --gold-strong:#e6c04a;
  --red:       #a00000;

  --hairline:      rgba(212,175,55,.22);
  --hairline-soft: rgba(146,154,160,.16);

  --maxw:    1200px;
  --measure: 40rem;      /* ~66ch */
  --gutter:  clamp(20px, 5vw, 64px);
  --radius:  2px;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --tight:   "Inter Tight", "Inter", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--core);
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-strong); text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

/* ---------- Masthead ---------- */
.masthead { border-bottom: 1px solid var(--hairline); background: var(--void); }
.masthead__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.25rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--core); }
.brand:hover { text-decoration: none; }
.brand__m { width: 30px; height: 30px; flex: 0 0 auto; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__word {
  font-family: var(--tight);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--core);
}
.brand__kicker {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: .38rem;
}
.nav { display: flex; gap: 1.5rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; align-items: center; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--gold); text-decoration: none; }
.nav a.cta { color: var(--void); background: var(--gold); padding: .5rem .85rem; border-radius: var(--radius); }
.nav a.cta:hover { background: var(--gold-strong); color: var(--void); }
.masthead__rule { height: 2px; background: linear-gradient(90deg, var(--gold) 0 7rem, var(--hairline) 7rem 100%); }

/* ---------- Hero (home lead) ---------- */
.lead { padding-block: clamp(2.6rem, 6vw, 5rem); border-bottom: 1px solid var(--hairline-soft); }
.lead__inner { max-width: 54rem; }
.lead h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6.2vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  color: var(--core);
}
.lead h1 a { color: inherit; }
.lead h1 a:hover { color: var(--gold); text-decoration: none; }
.lead__dek {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 1.6rem;
  max-width: 44rem;
}
.lead__meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }

/* ---------- Article index ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 .5rem;
  padding-bottom: .8rem; border-bottom: 1px solid var(--hairline);
}
.section-head h2 { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); font-weight: 500; margin: 0; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed > li { padding-block: clamp(1.5rem, 3vw, 2.2rem); border-bottom: 1px solid var(--hairline-soft); }
.entry { display: grid; gap: .55rem; }
.entry__cat { font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.entry__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.15rem); line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.entry__title a { color: var(--core); }
.entry__title a:hover { color: var(--gold); text-decoration: none; }
.entry__dek { color: var(--muted); margin: .1rem 0 .3rem; max-width: var(--measure); }
.entry__meta { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }

/* ---------- Article page ---------- */
.article { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.breadcrumb { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 1.8rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); text-decoration: none; }
.breadcrumb span { color: var(--hairline); padding-inline: .5rem; }

.article__head { max-width: var(--measure); }
.article h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  color: var(--core);
}
.article__dek { font-size: clamp(1.12rem, 2.3vw, 1.42rem); color: var(--muted); line-height: 1.5; margin: 0 0 1.6rem; }
.byline { display: flex; align-items: center; gap: .7rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); padding-bottom: 1.5rem; border-bottom: 1px solid var(--hairline); margin-bottom: 2.2rem; flex-wrap: wrap; }
.byline strong { color: var(--core); font-weight: 600; }
.byline .sep { color: var(--hairline); }

.prose { max-width: var(--measure); font-size: 1.12rem; }
.prose > * + * { margin-top: 1.4rem; }
.prose p { margin: 0; color: var(--core); }
.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 2.8rem;
  color: var(--core);
}
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin-top: 2rem; color: var(--core); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; }
.prose li { margin: 0; }
.prose li + li { margin-top: .55rem; }
.prose li::marker { color: var(--gold); }
.prose strong { font-weight: 640; color: var(--core); }
.prose em { color: var(--muted); }
.prose a { border-bottom: 1px solid rgba(212,175,55,.4); }
.prose a:hover { text-decoration: none; border-bottom-color: var(--gold-strong); }

.answer {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 0 0 2.2rem;
  max-width: var(--measure);
}
.answer__label { font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6rem; }
.answer p { margin: 0; font-size: 1.14rem; line-height: 1.55; color: var(--core); }

.prose blockquote {
  margin: 2.2rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 3px solid var(--gold);
  font-family: var(--display); font-size: 1.4rem; font-weight: 500; font-style: italic; line-height: 1.35; color: var(--core);
}

.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.8rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .58em; width: .7rem; height: .7rem; border: 2px solid var(--gold); border-radius: 1px; }

/* FAQ */
.faq { max-width: var(--measure); margin-top: 3.2rem; padding-top: 2.2rem; border-top: 1px solid var(--hairline); }
.faq > h2 { font-family: var(--display); font-weight: 700; font-size: 1.8rem; margin: 0 0 1.4rem; color: var(--core); }
.faq dl { margin: 0; }
.faq dt { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-top: 1.7rem; color: var(--core); }
.faq dd { margin: .55rem 0 0; color: var(--muted); }

/* Author card */
.author-card {
  display: flex; gap: 1.1rem; align-items: center;
  max-width: var(--measure); margin-top: 3.2rem; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.author-card__mark { flex: 0 0 auto; width: 52px; height: 52px; }
.author-card__body h3 { margin: 0 0 .3rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.author-card__body p { margin: 0; font-size: .98rem; color: var(--muted); }

/* Disclosure strip */
.disclosure { border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); background: var(--void-2); }
.disclosure .wrap { padding-block: 2.2rem; }
.disclosure p { max-width: 48rem; margin: 0; color: var(--muted); }
.disclosure .eyebrow { margin-bottom: .6rem; }

/* ---------- Footer ---------- */
.foot { border-top: 2px solid var(--gold); margin-top: 3.5rem; background: var(--void-2); }
.foot .wrap { padding-block: 3rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.8rem; }
.foot__lockup { width: 168px; margin-bottom: 1rem; }
.foot__tag { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--core); margin: 0 0 .8rem; }
.foot__figures { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); line-height: 1.9; margin: 0; }
.foot h4 { font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin: 0 0 .9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.foot li + li { margin-top: .55rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold); text-decoration: none; }
.foot__legal { grid-column: 1 / -1; border-top: 1px solid var(--hairline-soft); margin-top: 1.2rem; padding-top: 1.4rem; font-family: var(--sans); font-size: .82rem; color: var(--steel); line-height: 1.65; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 1.02rem; }
  .nav { gap: 1.1rem; width: 100%; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .brand__kicker { display: none; }
  .nav { font-size: .68rem; gap: .9rem; }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
