:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --bus: #ea580c;
  --link: #2563eb;
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #131c2e;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: #1e293b;
    --bus: #fb923c;
    --link: #60a5fa;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header {
  padding-top: 28px;
}

.wordmark {
  display: inline-block;
}

.wordmark img {
  display: block;
  width: auto;
  height: 40px;
}

main {
  flex: 1;
}

.hero {
  padding: 72px 0 48px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.lede {
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 48ch;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding-bottom: 72px;
}

.app-card {
  --accent: var(--text);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent);
}

.app-bus  { --accent: var(--bus); }
.app-link { --accent: var(--link); }

.app-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 45%, transparent);
}

.app-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.app-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.app-head h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.app-url {
  font-size: 0.9rem;
  color: var(--muted);
}

.app-tagline {
  margin: 8px 0 12px;
  font-weight: 600;
  color: var(--accent);
}

.app-desc {
  margin: 0 0 24px;
  color: var(--muted);
}

.app-cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
}

.app-cta span {
  display: inline-block;
  transition: transform 0.15s ease;
}

.app-card:hover .app-cta span {
  transform: translateX(4px);
}

.site-footer {
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .app-card,
  .app-cta span {
    transition: none;
  }
  .app-card:hover {
    transform: none;
  }
}
