:root {
  --ink: #212543;
  --paper: #fcfcfc;
  --primary: #4355cd;
  --accent: #0fe67b;
  --muted: #656a82;
  --line: #e4e6ef;
  --font: "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1.15rem/1.65 var(--font); }
h1, h2, h3, p, ul, ol { margin-top: 0; }
h1, .h1, h2, h3 { font-weight: 900; line-height: 1.1; }
h1, .h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); font-weight: 600; text-decoration-thickness: .09em; text-underline-offset: .16em; }
a:hover { filter: brightness(85%); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.banner { width: 100%; padding: .75rem 1rem; color: white; background: var(--ink); text-align: center; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; width: 100%; max-width: 90rem; margin: 0 auto; padding: 2rem 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; margin: 0 auto; color: var(--ink); font-size: 2rem; font-weight: 900; text-decoration: none; }
.brand h1, .brand span { margin: 0; font: inherit; }
.brand img { width: 2.5rem; height: 2.5rem; }
.site-nav { width: 100%; }
.site-nav ul { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.button { display: inline-block; padding: .45rem 1rem; border: 2px solid var(--accent); border-radius: 2rem; color: var(--ink); background: var(--accent); text-decoration: none; }
.main-content { width: min(100% - 2rem, 60rem); min-height: 55vh; margin: 0 auto; padding: 1rem 0 5rem; }
.main-content > h1 { margin-bottom: 2.5rem; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero > img { margin-bottom: 1rem; max-width: 40rem; width: 100% }
.hero .h1 { max-width: 55rem; margin-bottom: 1rem; }
.tagline { max-width: 49rem; font-size: 1.35rem; }
.tagline p { margin-bottom: .5rem; }
.latest-apps { margin-top: clamp(4rem, 9vw, 7rem); }
.section-heading { margin-bottom: 1.5rem; }
.section-heading h2 { margin-bottom: 0; }
.eyebrow { margin-bottom: .3rem; color: var(--primary); font-size: .8rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.app-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.app-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: 0 1rem 2.5rem rgba(33,37,67,.08); transition: transform .2s ease, box-shadow .2s ease; }
.app-card:hover { transform: translateY(-4px); box-shadow: 0 1.2rem 3rem rgba(33,37,67,.14); }
.app-card__link { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.app-card__image { width: 100%; object-fit: contain; background: #eef0ff; }
.app-card__body { padding: 1.25rem; }
.app-card h3 { margin-bottom: .5rem; }
.app-card p { color: var(--muted); }
.text-link { color: var(--primary); }
.prose { max-width: 47rem; }
.prose h2, .prose h3 { margin-top: 2.3rem; }
.prose blockquote { margin-left: 0; padding-left: 1.25rem; border-left: 4px solid var(--accent); }
.prose code { padding: .15em .35em; border-radius: .25rem; background: #eef0f5; }
.prose pre { overflow-x: auto; padding: 1rem; border-radius: .5rem; color: white; background: var(--ink); }
.prose pre code { padding: 0; background: none; }
.prose img { max-width: 20rem; border-radius: 1rem; margin: 0 auto }
.project-hero { width: 100%; margin-bottom: 2rem; border-radius: 1rem; object-fit: contain; background: #eef0ff; }
.app-pages { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.app-pages h2 { font-size: 1.25rem; }
.app-pages ul { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 0; list-style: none; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; color: var(--muted); font-size: .95rem; }
.site-footer__content { display: flex; align-items: flex-start; gap: 2rem; width: min(100% - 2rem, 70rem); margin: 0 auto; padding: 4rem 0 2rem; }
.site-footer__content p { max-width: 38rem; }
.site-footer__content ul { margin: 0 0 0 auto; padding: 0; list-style: none; }
.footer-banner { display: flex; align-items: center; justify-content: center; gap: .45rem; }

@media (min-width: 600px) {
  .site-header { flex-wrap: nowrap; padding-block: 3rem 2rem; }
  .brand { margin: 0; }
  .site-nav { width: auto; margin-left: auto; }
  .app-grid { grid-template-columns: repeat(2, minmax(min(100%, 17rem), 1fr)); }
  .prose img { margin: 0 }
}

@media (max-width: 520px) {
  body { font-size: 1.05rem; }
  .site-footer__content { display: block; }
  .site-footer__content ul { margin-top: 2rem; }
  .footer-banner { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-card { transition: none; }
}
