/* Osiris Obsidian, the default Theme (shell/themes/osiris-obsidian.json). */
:root {
  --background: #0d0d10;
  --surface: #1a1a1f;
  --surface-muted: #2a2a2f;
  --border: #2a2a2a;
  --foreground: #e8e8e8;
  --foreground-muted: #a0a0a8;
  --accent: #7c8aeb;
  --accent-muted: #5560a8;
  --width: 1120px;
  --sans: system-ui, -apple-system, "Segoe UI", "Noto Sans", Ubuntu, Cantarell, sans-serif;
  --mono: "FiraCode Nerd Font", "Fira Code", ui-monospace, "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.9em;
}

code {
  background: var(--surface-muted);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

kbd {
  background: var(--surface);
  border: 1px solid var(--surface-muted);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.05em 0.4em;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--width);
  margin: 0 auto;
  padding: 14px 24px;
  background: rgba(13, 13, 16, 0.82);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
}

/* osiris-symbolic.svg is black, for GTK to recolour; the page is dark. */
.brand img,
.hero .mark {
  filter: invert(1);
}

.top nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.top nav a {
  color: var(--foreground-muted);
}

.top nav a:hover {
  color: var(--foreground);
  text-decoration: none;
}

.top nav .github {
  color: var(--foreground);
}

/* Hero */

main {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  text-align: center;
  padding: 72px 0 32px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 -20% auto;
  height: 520px;
  background: radial-gradient(closest-side, rgba(124, 138, 235, 0.18), transparent);
  pointer-events: none;
  z-index: -1;
}

.hero .mark {
  margin: 0 auto 12px;
  opacity: 0.9;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero .lead {
  margin: 14px 0 0;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--foreground);
}

.hero .sub {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--foreground-muted);
}

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

.button {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--surface-muted);
  color: var(--foreground);
  font-weight: 600;
  font-size: 15px;
}

.button:hover {
  text-decoration: none;
  border-color: var(--accent-muted);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0d10;
}

.button.primary:hover {
  background: #8f9bef;
}

.status {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--foreground-muted);
}

/* Screenshots */

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--surface-muted);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.shot figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--foreground-muted);
}

.hero-shot {
  margin-top: 56px;
}

/* Features */

section {
  padding: 56px 0;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: center;
}

.feature.reverse .copy {
  order: 2;
}

.feature h2,
.get h2 {
  margin: 0 0 14px;
  font-size: 30px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0 0 14px;
  color: var(--foreground-muted);
}

.wide {
  padding-top: 8px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cards article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 22px 8px;
}

.cards h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.cards p {
  margin: 0 0 14px;
  color: var(--foreground-muted);
  font-size: 15px;
}

/* Get it */

.get {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.get p {
  color: var(--foreground-muted);
}

.get pre {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--surface-muted);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
}

.get pre code {
  background: none;
  padding: 0;
}

footer {
  max-width: var(--width);
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--foreground-muted);
}

/* Phones */

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .top {
    padding: 12px 16px;
  }

  .top nav {
    gap: 14px;
  }

  .top nav a:not(.github) {
    display: none;
  }

  main {
    padding: 0 16px;
  }

  .hero {
    padding-top: 40px;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature.reverse .copy {
    order: 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  section {
    padding: 36px 0;
  }
}
