:root {
  /* Shared suite palette (same values as the apps): true neutrals, ink
     chrome and one rare cool-blue accent with ink text on it. */
  color-scheme: dark;
  --bg: #090909;
  --surface: #151515;
  --surface-soft: #1c1c1c;
  --ink: #f2f2f2;
  --muted: #aaaaaa;
  --quiet: #8f8f8f;
  --line: #262626;
  --line-strong: #3c3c3c;
  --accent: #3b8cff;
  --accent-hover: #6aa6ff;
  --accent-text: #8ab8ff;
  --on-accent: #090909;
  --font-body: "proxima-nova", "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "din-condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 4px;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin-top: 0;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 16px;
}

.brand,
nav,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 1.06rem;
  font-weight: 600;
}

nav {
  gap: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

nav a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 4px;
}

nav a:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

/* Hero */

.hero {
  max-width: 760px;
  padding: 88px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-text);
  font-size: 0.9rem;
  font-weight: 500;
}

h1 {
  margin-bottom: 18px;
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: 600px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.62;
}

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-weight: 600;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    color 200ms ease;
}

.button.primary {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button[aria-disabled="true"],
.button[aria-disabled="true"]:hover {
  color: var(--quiet);
  background: var(--surface-soft);
  border-color: var(--line);
  cursor: default;
}

/* Sections */

.apps,
.principles {
  padding: 58px 0 62px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Section titles carry a short accent rule beneath them. */
.section-heading h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin-top: 16px;
  background: var(--accent);
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.22;
}

h3 a:hover {
  color: var(--accent-text);
}

/* App cards */

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.app-kind {
  margin: 0;
  color: var(--quiet);
  font-size: 0.92rem;
}

.app-summary {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.58;
}

.app-points {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 0.94rem;
}

.app-points li {
  position: relative;
  padding-left: 16px;
}

.app-points li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 2px;
  background: var(--line-strong);
}

.app-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: auto;
}

.platforms {
  color: var(--quiet);
  font-size: 0.9rem;
}

.platforms a {
  color: var(--accent-text);
  font-weight: 600;
}

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

.app-card.placeholder {
  justify-content: center;
  border-style: dashed;
  background: transparent;
  color: var(--quiet);
}

.placeholder-title {
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 600;
}

.app-card.placeholder p:last-child {
  margin-bottom: 0;
  line-height: 1.58;
}

/* Principles */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.principle-grid li {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

/* Big numbers are the site's one display-type moment. */
.mark {
  display: block;
  margin-bottom: 24px;
  color: #5a5a5a;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
}

.principle-grid h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.principle-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

/* Footer */

footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

footer a {
  color: var(--accent-text);
  font-weight: 600;
}

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

/* Responsive */

@media (max-width: 1080px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1180px);
  }

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

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 2rem;
  }

  .apps,
  .principles {
    padding: 44px 0 48px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .app-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .app-foot .button {
    width: 100%;
  }
}
