/* Exile: the launcher's palette, type and shapes, on the web. */

@font-face {
  font-family: "Iosevka Aile";
  src: url("fonts/iosevka-aile-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Iosevka Aile";
  src: url("fonts/iosevka-aile-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #111419;
  --sidebar: #151920;
  --surface: #1b2029;
  --surface-hover: #222833;
  --border: #262c37;
  --border-strong: #343c4a;
  --text: #e6eaf0;
  --text-dim: #97a2b3;
  --text-faint: #667185;
  --accent: #678fc5;
  --accent-light: #8eaedb;
  --button: #4f79b2;
  --button-hover: #5a84bd;
  --button-pressed: #466ca0;
  --radius: 6px;
  --wrap: 1080px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  /* Short pages keep the footer at the bottom of the window. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Iosevka Aile", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

code {
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
  color: var(--text);
  white-space: nowrap;
}

h1,
h2,
h3 {
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
}

/* Top bar: like the launcher's, flat with a hairline below. */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--sidebar);
  border-bottom: 1px solid var(--border);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.wordmark {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.32em;
}

.wordmark.small {
  font-size: 13px;
  color: var(--text-dim);
}

.bar nav,
.foot nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.bar nav a,
.foot nav a {
  color: var(--text-dim);
}

.bar nav a:hover,
.foot nav a:hover,
.bar nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  padding-top: 96px;
  padding-bottom: 56px;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 52px);
  line-height: 1.08;
  max-width: 14em;
}

.lede {
  margin: 20px 0 0;
  max-width: 36em;
  color: var(--text-dim);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn.primary {
  background: var(--button);
  border-color: var(--button);
  color: #fff;
  font-weight: 600;
  padding: 0 24px;
}

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

.btn.primary:active {
  background: var(--button-pressed);
}

.meta {
  margin: 16px 0 0;
  color: var(--text-faint);
  font-size: 13px;
}

/* Screenshots sit in a plain frame, like a window. */
.shot {
  margin: 0 auto;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--sidebar);
}

.shot figcaption {
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 13px;
}

/* Feature lists: hairline-separated cells, no cards. */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  margin-top: 56px;
}

/* Straight after the intro, the hero's own spacing is enough. */
.hero + section .grid {
  margin-top: 0;
}

.assurance {
  margin-top: 28px;
  color: var(--text-faint);
  font-size: 14px;
}

.item {
  padding: 24px 0 28px;
  border-top: 1px solid var(--border);
}

.item h3 {
  font-size: 16px;
}

.item p {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 15px;
}

.foot {
  margin-top: 128px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--sidebar);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.foot nav {
  flex: 1;
}

.legal {
  flex-basis: 100%;
  margin: 8px 0 0;
  color: var(--text-faint);
  font-size: 12px;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }

  .bar nav {
    gap: 16px;
  }

  /* GitHub is in the footer too. */
  .bar nav a[href^="https://github.com"] {
    display: none;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 40px;
  }

  .lede {
    font-size: 16px;
  }

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