/* miPlat Labs site. Self-hosted fonts: no requests to third parties. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-500-800.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f6f5fb;
  --ink: #1b1530;
  --ink-soft: #4a4463;
  --violet: #6d28d9;
  --violet-deep: #4c1d95;
  --rule: #dcd8ea;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  color-scheme: only light;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* Hidden until focused: lets keyboard users jump past the header. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ───────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 22px/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--violet);
  color: #fff;
  font-size: 19px;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  font-weight: 700;
  font-size: 15px;
}

.site-nav a {
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--violet);
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  padding-top: 48px;
  padding-bottom: 88px;
}

.hero h1 {
  margin-top: 10px;
  font: 800 clamp(44px, 6.4vw, 84px) / 0.98 var(--display);
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.hero-lede {
  margin-top: 24px;
  max-width: 52ch;
  font-size: 19px;
  color: var(--ink-soft);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font: 700 16px/1.2 var(--body);
  text-decoration: none;
  border: 2px solid var(--ink);
}

.btn-solid {
  background: var(--ink);
  color: #fff;
}

.btn-solid:hover {
  background: var(--violet);
  border-color: var(--violet);
}

.btn-line:hover {
  border-color: var(--violet);
  color: var(--violet);
}

/* ── Products ─────────────────────────────────────────── */

.products {
  border-top: 2px solid var(--ink);
}

.section-title {
  padding-top: 40px;
  font: 800 30px/1.1 var(--display);
  letter-spacing: -0.02em;
}

.section-lede {
  margin-top: 12px;
  max-width: 60ch;
  color: var(--ink-soft);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  padding: 40px 0 48px;
}

.product + .product {
  border-top: 1px solid var(--rule);
}

.product-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font: 800 clamp(34px, 4.4vw, 52px) / 1 var(--display);
  letter-spacing: -0.03em;
}

.product-mark {
  width: 0.9em;
  height: 0.9em;
  margin-right: -4px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 13px/1.2 var(--body);
  letter-spacing: 0;
}

.status-live {
  background: #dcfce7;
  color: #14532d;
}

.status-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

.status-soon {
  background: #ede9fe;
  color: var(--violet-deep);
}

.product-pitch {
  margin-top: 14px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 34ch;
}

.product-cta {
  margin-top: 24px;
}

.product-cta small {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.facts {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
}

.facts li {
  display: grid;
  grid-template-columns: 11ch minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.facts li:first-child {
  border-top: 1px solid var(--rule);
}

.facts strong {
  font-weight: 700;
}

/* Services: longer labels than the product facts. */
#services .facts li {
  grid-template-columns: 17ch minmax(0, 1fr);
}

.facts span {
  color: var(--ink-soft);
}

/* ── About ────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 72px;
  border-top: 2px solid var(--ink);
}

.about .section-title {
  padding-top: 0;
}

.about p {
  max-width: 60ch;
  color: var(--ink-soft);
}

.about p + p {
  margin-top: 14px;
}

.about p a {
  color: var(--violet);
  font-weight: 700;
  text-underline-offset: 2px;
}

/* ── About me page ────────────────────────────────────── */

.site-nav a[aria-current="page"] {
  color: var(--violet);
}

.me-hero {
  padding-top: 48px;
  padding-bottom: 72px;
}

.eyebrow {
  font-weight: 700;
  font-size: 15px;
  color: var(--violet);
}

.me-hero h1 {
  margin-top: 10px;
  font: 800 clamp(44px, 6.4vw, 84px) / 0.98 var(--display);
  letter-spacing: -0.035em;
}

.me-hero .hero-lede {
  max-width: 58ch;
}

.stats {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.stats li {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}

.stats strong {
  font: 800 clamp(26px, 3.2vw, 38px) / 1 var(--display);
  letter-spacing: -0.02em;
}

.stats span {
  font-size: 15px;
  color: var(--ink-soft);
}

.experience {
  padding-bottom: 56px;
  border-top: 2px solid var(--ink);
}

.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  padding: 32px 0;
}

.job + .job {
  border-top: 1px solid var(--rule);
}

.job-head h3 {
  font: 800 24px/1.15 var(--display);
  letter-spacing: -0.015em;
}

.job-org {
  margin-top: 6px;
  font-weight: 700;
}

.job-when {
  margin-top: 2px;
  font-size: 15px;
  color: var(--ink-soft);
}

.job-points {
  padding-left: 20px;
  color: var(--ink-soft);
}

.job-points li + li {
  margin-top: 8px;
}

.tags {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--violet-deep);
}

.toolbox {
  margin-top: 28px;
}

.case-name {
  margin-top: 8px;
  font: 800 clamp(28px, 3.4vw, 38px) / 1.05 var(--display);
  letter-spacing: -0.025em;
}

.product-pitch a {
  color: var(--violet);
  font-weight: 700;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-soft);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}

.site-footer a {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}

.site-footer a:hover {
  color: var(--violet);
}

/* ── Legal pages ──────────────────────────────────────── */

.legal {
  max-width: 68ch;
  padding-top: 32px;
  padding-bottom: 80px;
}

.legal h1 {
  font: 800 clamp(36px, 5vw, 52px) / 1.05 var(--display);
  letter-spacing: -0.03em;
}

.legal h2 {
  margin-top: 40px;
  font: 800 23px/1.2 var(--display);
}

.legal p,
.legal ul,
.legal address {
  margin-top: 12px;
  font-style: normal;
}

.legal ul {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--violet);
  font-weight: 700;
  text-underline-offset: 2px;
}

.legal .updated {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ── Small screens ────────────────────────────────────── */

@media (max-width: 860px) {
  .product,
  .about,
  .job {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .job {
    gap: 14px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .facts li,
  #services .facts li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .site-footer nav {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
