/*
 * The console's look (appshellhq/appshell-mfe#51): a neutral dark base, and the logo's two blues.
 * primary is the logo's deep blue lightened to #348bd4, so dark text on it passes; the light blue
 * #8ed5fa is secondary.
 */
:root {
  --surface: #111113;
  --surface-raised: #1b1b1f;
  --border: #2a2a30;
  --text: #ededef;
  --muted: #a0a0ab;
  --primary: #348bd4;
  --on-primary: #111113;
  --secondary: #8ed5fa;
  --radius: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

a {
  color: var(--secondary);
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 68rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

/* The logo's box has room around the mark, so its letters are well under half its height. */
.brand img {
  display: block;
  height: 64px;
  width: auto;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.bar nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
}

.bar nav a:not(.button):hover {
  color: var(--text);
}

main {
  flex: 1;
  max-width: 68rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  padding: 5rem 0 3.5rem;
  max-width: 44rem;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 2rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.1);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  padding-bottom: 5rem;
}

.features article {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.features h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.features p {
  margin: 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--muted);
}

@media (max-width: 30rem) {
  .brand img {
    height: 48px;
  }

  .hero {
    padding-top: 3rem;
  }

  .bar nav {
    gap: 0.75rem;
  }
}
