/* Scalable — apps & projects hub. Calm, premium, readable.
   Light + dark via prefers-color-scheme. No JS, no cookies, no third-party requests by design. */

:root {
  --bg: #f4f0e7;
  --surface: #fcfaf4;
  --inset: #f1ecdf;
  --ink: #16201c;
  --sub: #6e7a71;
  --faint: #9aa39b;
  --line: #ebe4d6;
  --teal: #2e6b5e;
  --coral: #e8765a;
  --shadow: rgba(27, 40, 35, 0.12);
  --maxw: 820px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Inter",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1a18;
    --surface: #152a26;
    --inset: #102019;
    --ink: #f3efe6;
    --sub: #93a89f;
    --faint: #5e756b;
    --line: #213e37;
    --teal: #6fbfae;
    --coral: #f2855f;
    --shadow: rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  position: sticky;
  top: 0;
  backdrop-filter: saturate(140%) blur(10px);
}

.site-header .inner,
.site-footer .inner,
main.home {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-decoration: none;
}

.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--teal), var(--coral));
  display: inline-block;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14.5px;
}

.nav a {
  color: var(--sub);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

/* ---------- Home ---------- */
main.home {
  padding-top: 72px;
  padding-bottom: 96px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.07;
  letter-spacing: -1.4px;
  font-weight: 800;
  margin: 0 0 18px;
}

.hero p.lede {
  font-size: 19px;
  color: var(--sub);
  max-width: 58ch;
  margin: 0 0 28px;
}

.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -16px var(--shadow);
}

.card--soon {
  opacity: 0.7;
  cursor: default;
}

.card h3 {
  margin: 14px 0 6px;
  font-size: 19px;
  letter-spacing: -0.4px;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--sub);
  line-height: 1.55;
}

.card .go {
  display: inline-block;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
}

.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  padding: 3px 9px;
  border-radius: 999px;
}

.tag--muted {
  color: var(--faint);
  background: var(--inset);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 24px;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--faint);
}

.site-footer a {
  color: var(--sub);
  text-decoration: none;
}

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

.site-footer .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Skip-to-content for accessibility */
.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .nav {
    gap: 14px;
    font-size: 13.5px;
  }
}

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