/* miqro-pages.css — shared chrome for static miqrodesign.com pages
   (about, work, pricing, faq, contact, sms-terms, privacy, terms).
   Pulls design tokens from miqro-brand.css. */

@font-face {
  font-family: 'Chillax';
  src: url('/fonts/Chillax-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Chillax';
  src: url('/fonts/Chillax-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Synonym';
  src: url('/fonts/Synonym-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
}

:root {
  --ink: var(--brand-ink);
  --ink-2: var(--miqro-secondary-600);
  --ink-3: var(--brand-ink-muted);
  --teal: var(--brand-accent);
  --teal-ghost: var(--brand-accent-ghost);
  --amber: var(--brand-warn);
  --violet: var(--brand-info);
  --bg: var(--brand-bg);
  --surface: var(--miqro-surface);
  --hairline: var(--brand-line);
  --hairline-2: var(--miqro-grey-200);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --weight-main: 700;
  --weight-subheading: 600;
  --weight-title: 500;
  --font-display: 'Chillax', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Synonym', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); }

/* Page shells — all static pages share max-width: 1440px outer. Inside
   .wrap, text children auto-constrain to 720px so prose stays readable
   on wide monitors; .top + .footer span the full 1440. .wrap-wide
   pages (work, pricing) leave cards free to span the full shell. */
.wrap, .wrap-wide {
  max-width: 1440px; margin: 0 auto; padding: 32px 24px 96px;
}
.wrap > .eyebrow,
.wrap > h1,
.wrap > h2,
.wrap > h3,
.wrap > p,
.wrap > .lede,
.wrap > .meta,
.wrap > ul,
.wrap > ol,
.wrap > .callout,
.wrap > .cta-row,
.wrap > details,
.wrap > header {
  max-width: 720px;
}

/* Top nav — mirrors miqrodesign-landing.html exactly so every page reads
   as the same site. Do not diverge from this without updating the landing
   in lockstep. */
.top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 48px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: var(--weight-main);
  letter-spacing: 0; font-size: 20px; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--ink, #0a0a0a);
  display: grid; place-items: center; color: var(--bg);
  flex-shrink: 0;
}
.brand-mark::before {
  content: ''; width: 10px; height: 10px; border-radius: 2px;
  background: var(--teal, #14b8a6);
}
.nav-links { display: flex; gap: 20px; font-size: 14px; }
.nav-links a { color: var(--ink-3); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--teal); }

/* Headings */
h1 {
  font-family: var(--font-display); font-weight: var(--weight-main);
  font-size: 48px; line-height: 1.05; letter-spacing: 0; margin: 0 0 12px;
}
h1 em { font-style: normal; color: var(--teal); }
h2 {
  font-family: var(--font-display); font-weight: var(--weight-subheading);
  font-size: 28px; line-height: 1.18; letter-spacing: 0; margin: 44px 0 12px;
}
h3 {
  font-family: var(--font-display); font-weight: var(--weight-title);
  font-size: 18px; line-height: 1.25; letter-spacing: 0; margin: 28px 0 8px;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.lede {
  font-size: 18px; color: var(--ink-2); max-width: 640px;
  margin: 0 0 32px; line-height: 1.55;
}
.meta { color: var(--ink-3); font-size: 14px; margin-bottom: 8px; }

ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.callout {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 16px 18px; margin: 20px 0;
  font-size: 15px; color: var(--ink-2);
}

/* Buttons (mirror landing) */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
  border: 1px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--teal); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--hairline-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Card grid (work, pricing) */
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.card h3 { margin-top: 0; }
.card p { color: var(--ink-3); font-size: 14px; margin: 0 0 12px; }

/* Footer — mirrors landing .footer exactly. */
.footer {
  margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; color: var(--miqro-grey-300);
  letter-spacing: 0.04em;
}
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--teal); }

/* Mobile — anything narrower than 1024px collapses the nav to stack
   and tightens type. Matches the landing's tablet/mobile contract. */
@media (max-width: 1024px) {
  .top { flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
  .nav-links { flex-wrap: wrap; gap: 16px; }
  h1 { font-size: 40px; }
  h2 { font-size: 26px; }
  .lede { font-size: 17px; }
}
@media (max-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  .lede { font-size: 16px; }
}
