/* Shared by pecklist.com (home/) and selfhosted.pecklist.com (selfhosted/). */
:root {
  --bg: #f7f5fb;
  --surface: #ffffff;
  --tint: #eeeaf7;
  --fg: #1f1830;
  --muted: #5d5673;
  --line: #e0dbea;
  --brand: #4b2a8a;
  --brand-ink: #ffffff;
  --accent: #e8a33d;
  --code-bg: #1f1830;
  --code-fg: #ece8f6;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #14101d;
    --surface: #1d172b;
    --tint: #251d38;
    --fg: #ece8f6;
    --muted: #a8a0c0;
    --line: #2f2745;
    --brand: #b7a6e8;
    --brand-ink: #1a1328;
    --accent: #f0b75c;
    --code-bg: #0e0b15;
    --code-fg: #e4def3;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #14101d;
  --surface: #1d172b;
  --tint: #251d38;
  --fg: #ece8f6;
  --muted: #a8a0c0;
  --line: #2f2745;
  --brand: #b7a6e8;
  --brand-ink: #1a1328;
  --accent: #f0b75c;
  --code-bg: #0e0b15;
  --code-fg: #e4def3;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--brand);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(26px, 3.2vw, 36px);
}
h3 {
  font-size: 20px;
  font-weight: 500;
}
p {
  margin: 0;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 650;
}
.brand img {
  width: 34px;
  height: 34px;
}
.top nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.top nav a:hover {
  color: var(--fg);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
  padding-block: 40px 64px;
}
.hero-copy {
  display: grid;
  gap: 22px;
  align-content: start;
}
.hero-copy .lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 34ch;
}
.ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
}
.btn.primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.btn.quiet {
  background: var(--tint);
  color: var(--fg);
}
/* The GitLab mark beside its links: the code, issues and releases live there. */
.gitlab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gl {
  color: #e24329;
  flex: none;
}
.facts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 15px;
}
.facts span::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  margin-right: 8px;
  transform: rotate(45deg) translateY(-2px);
}
/* The app on a computer with the phone in front of it (hero of both sites). */
.devices {
  position: relative;
  min-width: 0;
  padding: 0 9% 7% 0;
}
.devices .desktop {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(40, 20, 80, 0.35);
}
.devices .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
  border-radius: 22px;
  border: 5px solid var(--code-bg);
  background: var(--code-bg);
  box-shadow: 0 24px 50px -18px rgba(40, 20, 80, 0.45);
}
.see-all {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
}

/* sections */
section {
  padding-block: 56px;
}
.band {
  background: var(--tint);
}
.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.why div {
  display: grid;
  gap: 10px;
  align-content: start;
}
.why p {
  color: var(--muted);
}
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 62ch;
}
.section-head p {
  color: var(--muted);
}
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.features li {
  padding-left: 22px;
  position: relative;
}
.features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--brand);
  border-radius: 3px;
}
.features strong {
  display: block;
}
.features span {
  color: var(--muted);
}
pre {
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  padding: 18px 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 0;
}
.install {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.install ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}
.apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.app {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.app p {
  color: var(--muted);
  font-size: 15px;
}
.soon {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--tint);
  border-radius: 6px;
  padding: 2px 8px;
  justify-self: start;
}
footer {
  padding-block: 36px 48px;
  color: var(--muted);
  font-size: 15px;
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer a {
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero,
  .install {
    grid-template-columns: minmax(0, 1fr);
  }
  .why,
  .apps {
    grid-template-columns: minmax(0, 1fr);
  }
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .devices .phone {
    border-radius: 14px;
    border-width: 3px;
  }
  .top nav a.hide-narrow {
    display: none;
  }
  /* The links get their own line under the name instead of a squeezed column beside it. */
  .top {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .top nav {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .devices img {
    animation: rise 0.6s ease-out both;
  }
  .devices .phone {
    animation-delay: 0.12s;
  }
  @keyframes rise {
    from {
      transform: translateY(14px);
    }
    to {
      transform: none;
    }
  }
}
    

/* Two ways to get it (home) and the install paths (selfhosted): cards with a call to action. */
.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.paths .app {
  padding: 28px;
  gap: 14px;
}
.paths .app .btn {
  justify-self: start;
}
.paths ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 4px;
}
.top nav a[aria-current='page'] {
  color: var(--fg);
}
/* The selfhosted hero puts the install command where the home page has screenshots. */
.hero-code {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.hero-code img {
  border-radius: 12px;
  border: 1px solid var(--line);
}
.hero-code p {
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 860px) {
  .paths {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The gallery page (gallery/, on both sites). */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.gallery.phones {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery figure {
  margin: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.gallery button {
  all: unset;
  cursor: zoom-in;
  display: block;
  border-radius: 12px;
}
.gallery img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px -24px rgba(40, 20, 80, 0.35);
}
.gallery.phones img {
  border-radius: 20px;
  border: 5px solid var(--code-bg);
  background: var(--code-bg);
}
.gallery figcaption {
  color: var(--muted);
  font-size: 15px;
}
.gallery button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
dialog.viewer {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 94vh;
}
dialog.viewer::backdrop {
  background: rgba(15, 10, 25, 0.85);
}
dialog.viewer img {
  max-width: 96vw;
  max-height: 88vh;
  width: auto;
  border-radius: 10px;
}
dialog.viewer p {
  color: #ece8f6;
  text-align: center;
  margin-top: 10px;
  font-size: 15px;
}
@media (max-width: 860px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery.phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
