/* Landing page for bruky.com.
 *
 * Shares tokens.css with the other apps in the suite so the whole thing reads as one
 * product. Deliberately no framework and no build step: this is four links, and a
 * page that cannot fail to compile cannot fail to deploy. */

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--page);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
}

.site-header .brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.site-header .brand h1 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.site-header .brand span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.theme-toggle {
  margin-left: auto;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--text-primary);
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

/* ── App cards ────────────────────────────────────────── */
.app-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 720px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  main {
    padding: 20px 16px 60px;
  }
}

.app-card {
  display: flex;
  gap: 14px;
  height: 100%;
  padding: 18px 20px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.app-card:hover {
  border-color: color-mix(in srgb, var(--mark, var(--series-1)) 55%, transparent);
  transform: translateY(-1px);
}

/* Not yet deployed. Still a link — clicking it is a reasonable way to find out
   whether it is up — but visibly not on the same footing as the live ones. */
.app-card.is-pending {
  opacity: 0.62;
}

.app-mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--mark, var(--series-1));
  background: color-mix(in srgb, var(--mark, var(--series-1)) 12%, transparent);
}

.app-mark svg {
  width: 24px;
  height: 24px;
}

.app-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.app-name {
  font-size: 14.5px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.app-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.app-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1.5px 5px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: 1px;
}

.footnote {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 70ch;
}
