:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --text: #1d1b18;
  --muted: #6b665d;
  --line: #e6e0d4;
  --accent: #1d1b18;
  --space: #0f2f42;
  --space-tint: #e7eef2;
  --forked: #f08a3c;
  --forked-tint: #fdf0e4;
  --aero: #1f95d8;
  --aero-tint: #e6f5fc;
  --live: #1f8a4c;
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110;
    --surface: #1b1a18;
    --text: #f2efe9;
    --muted: #a39d92;
    --line: #2d2b27;
    --accent: #f2efe9;
    --space-tint: #15242d;
    --forked-tint: #2a1e14;
    --aero-tint: #12242f;
    --live: #4cc47e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.top, main, .foot {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  font: 600 22px/1 Fraunces, Georgia, serif;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.top nav { display: flex; gap: 22px; }
.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.top nav a:hover { color: var(--text); }

.hero { padding: 72px 0 56px; max-width: 720px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.04; }

.lede {
  margin: 22px 0 0;
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
}

.apps { display: grid; gap: 28px; padding-bottom: 80px; }

.app {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 24px;
}

.app__media {
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--tint);
}

.app--space  { --tint: var(--space-tint);  --brand: var(--space); }
.app--forked { --tint: var(--forked-tint); --brand: var(--forked); }
.app--aero   { --tint: var(--aero-tint);   --brand: var(--aero); }

.app__icon {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 22.5%;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}
.app:hover .app__icon { transform: rotate(-3deg) scale(1.03); }

.app__body { padding: 40px 44px; }

.app__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.status, .tag {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.status--live {
  color: var(--live);
  border-color: color-mix(in srgb, var(--live) 35%, transparent);
  background: color-mix(in srgb, var(--live) 10%, transparent);
}
.status--live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}

h2 { font-size: 36px; line-height: 1.1; }

.app__pitch { margin: 12px 0 0; font-size: 18px; max-width: 560px; }

.features {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  color: var(--muted);
  font-size: 15px;
}
.features li { padding-left: 18px; position: relative; }
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { border-color: var(--muted); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn--primary:hover { opacity: 0.88; border-color: var(--accent); }

.btn--muted { color: var(--muted); cursor: default; }
.btn--muted:hover { border-color: var(--line); }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot p { margin: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 760px) {
  .top, main, .foot { padding-left: 16px; padding-right: 16px; }
  .top nav { display: none; }
  .hero { padding: 40px 0 36px; }
  .app { grid-template-columns: 1fr; }
  .app__media { padding: 32px; }
  .app__icon { max-width: 140px; }
  .app__body { padding: 28px 22px 30px; }
  h2 { font-size: 30px; }
  .features { grid-template-columns: 1fr; }
}

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