:root {
  --bg: #fafaf8;
  --text: #1a1f3a;
  --muted: #6b7280;
  --rule: #e1e4ec;
  --accent: #1e3a8a;
  --accent-soft: #3b5bb8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 96px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
nav .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
nav .brand img {
  height: 28px;
  width: auto;
  display: block;
}
nav .brand .name-fallback {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
nav .links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
  transition: color 0.15s ease;
}
nav .links a:hover { color: var(--accent); }
nav .links a.current { color: var(--text); }
h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.role {
  color: var(--muted);
  margin: 0 0 56px;
  font-size: 17px;
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  margin: 0 0 56px;
  max-width: 580px;
}
section {
  margin: 56px 0;
}
h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 20px;
}
p {
  margin: 0 0 16px;
}
p:last-child { margin-bottom: 0; }
a.inline {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 58, 138, 0.25);
  transition: border-color 0.15s ease;
}
a.inline:hover {
  border-bottom-color: var(--accent);
}
/* App cards on /built/ */
.apps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.apps li {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.apps li:first-child { border-top: 1px solid var(--rule); }
.apps a.card {
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s ease;
}
.apps a.card:hover { color: var(--accent); }
.apps .title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.apps .desc {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}
.apps a.card:hover .desc { color: var(--muted); }
/* Card with thumbnail (desktop: thumb right of text; mobile: thumb above text) */
.apps a.card.with-thumb {
  display: flex;
  flex-direction: row-reverse;
  gap: 20px;
  align-items: flex-start;
}
.apps .card-text { flex: 1; min-width: 0; }
.apps .card-thumb {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
}
.apps .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.apps a.card.with-thumb:hover .card-thumb img { transform: scale(1.04); }
@media (max-width: 540px) {
  .apps a.card.with-thumb {
    flex-direction: column;
    gap: 14px;
  }
  .apps .card-thumb {
    width: 100%;
    aspect-ratio: 5 / 2;
  }
}
/* Card with company logo (desktop: logo left, text right; mobile: stacked) */
.apps a.card.with-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.apps .card-logo {
  flex-shrink: 0;
  width: 140px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.apps .card-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
@media (max-width: 540px) {
  .apps a.card.with-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
.alt-intro {
  margin: 20px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}
.apps-alt {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.apps-alt li {
  padding: 16px 0;
  border-bottom: none;
}
.apps-alt li:first-child { border-top: none; }
.apps-alt .title { font-size: 16px; }
.apps-alt .desc { font-size: 14px; }
.apps-alt a.card { padding-left: 20px; border-left: 2px solid var(--rule); transition: border-color 0.15s ease; }
.apps-alt a.card:hover { border-left-color: var(--accent); }
footer {
  margin-top: 112px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
footer a:hover { color: var(--accent); }
@media (max-width: 540px) {
  .wrap { padding: 40px 20px 64px; }
  nav { margin-bottom: 64px; }
  nav .links a { margin-left: 16px; }
  h1 { font-size: 30px; }
  .lede { font-size: 17px; }
  footer { flex-direction: column; gap: 6px; }
}
