/* Arbalete's website: dark by default, light with the system's light theme. */

:root {
  color-scheme: dark light;
  --bg: #050620;
  --bg2: #120f2b;
  --text: #eceaff;
  --muted: #a9a8c9;
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --accent: #2f38ff;
  --accent-text: #9aa0ff;
  --glow: rgba(47, 56, 255, 0.35);
  --chip: rgba(47, 56, 255, 0.18);
  /* The logo's colors, and its outline. */
  --m1: #ff5a5a;
  --m2: #a35bff;
  --m3: #3d7bff;
  --ol: #ffffff;
  /* Icons and labels in the logo's colors, on tiles of the same hue. */
  --c-red: #ff8a8a;
  --c-violet: #c49bff;
  --c-blue: #8ab0ff;
  --t-red: rgba(255, 79, 79, 0.15);
  --t-violet: rgba(163, 91, 255, 0.17);
  --t-blue: rgba(61, 123, 255, 0.17);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5fb;
    --bg2: #ebeaf6;
    --text: #14122a;
    --muted: #4a4a66;
    --line: rgba(20, 18, 42, 0.1);
    --panel: rgba(255, 255, 255, 0.7);
    --panel-strong: rgba(255, 255, 255, 0.92);
    --accent-text: #2229c9;
    --glow: rgba(47, 56, 255, 0.16);
    --chip: rgba(47, 56, 255, 0.1);
    --m1: #f04848;
    --m2: #8e45f0;
    --m3: #2f6bf0;
    --ol: #14122a;
    --c-red: #c12a2a;
    --c-violet: #7433d6;
    --c-blue: #1d58d4;
    --t-red: rgba(255, 79, 79, 0.12);
    --t-violet: rgba(163, 91, 255, 0.12);
    --t-blue: rgba(61, 123, 255, 0.12);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

a { color: var(--accent-text); }
a:hover { color: var(--text); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 8px;
}

.glow {
  position: absolute;
  left: 50%;
  top: -260px;
  width: 1100px;
  max-width: 200vw;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}

.stripe { position: relative; display: flex; height: 3px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--m1); }
.stripe span:nth-child(2) { background: var(--m2); }
.stripe span:nth-child(3) { background: var(--m3); }

.wrap { position: relative; max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */

.site-header { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--text); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.mark .o { stroke: var(--ol); }
.mark .a { stroke: var(--m1); }
.mark .b { stroke: var(--m2); }
.mark .c { stroke: var(--m3); }
.mark .d { fill: var(--ol); }
.site-nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* Buttons */

.btn {
  text-decoration: none;
  padding: 13px 20px;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary { color: #ffffff; background: var(--accent); box-shadow: 0 8px 30px var(--glow); }
.btn-primary:hover { color: #ffffff; filter: brightness(1.12); }
.btn-ghost { color: var(--text); background: var(--panel); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--text); background: var(--panel-strong); }
.site-nav .btn-ghost { color: var(--text); padding: 10px 16px; min-height: 44px; gap: 8px; font-size: 15px; font-weight: 400; }

/* Section heads */

.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow.red { color: var(--c-red); }
.eyebrow.violet { color: var(--c-violet); }
.eyebrow.blue { color: var(--c-blue); }
.sec-title { margin: 0; font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.lead { margin: 0; color: var(--muted); }
.section { padding-top: 48px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }

/* Hero */

.hero { padding-top: 72px; padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--accent-text); letter-spacing: 0.01em; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-text); }
.hero h1 { margin: 0; font-size: 60px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.hero .subtitle { margin: 0; font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 30em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.small { margin: 0; font-size: 14px; color: var(--muted); }
/* The Homebrew command, with its copy button. */
.brew { display: flex; flex-direction: column; gap: 8px; max-width: 100%; }
.command { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; min-height: 48px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); max-width: 100%; }
.command code { font: 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; min-width: 0; }
.copy { flex-shrink: 0; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-strong); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.copy:hover { border-color: var(--accent-text); }
.copy:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* Screenshots of the app, its window's corners and edges in them. */
.shot { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.shot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35)); }
.shot figcaption { font-size: 15px; color: var(--muted); }
.tour { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 32px; }
.panel-shot { flex: 1 1 360px; min-width: 0; height: auto; filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.3)); }

/* Cards */

.card { padding: 24px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: flex; flex-direction: column; gap: 10px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.features .card:nth-child(3n + 1) .icon { background: var(--t-red); color: var(--c-red); }
.features .card:nth-child(3n + 2) .icon { background: var(--t-violet); color: var(--c-violet); }
.features .card:nth-child(3n + 3) .icon { background: var(--t-blue); color: var(--c-blue); }
.card h3 { margin: 6px 0 0; font-size: 18px; font-weight: 650; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

/* Panels: Coming from Arc, Built in the open */

.panel { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.panel-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.panel-text .lead { max-width: 34em; }
.panel .actions { padding-top: 8px; }
.tiles { flex: 1 1 280px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tiles div { padding: 18px; border-radius: 12px; background: var(--panel-strong); border: 1px solid var(--line); }
.tiles dt { font-size: 13px; color: var(--muted); }
.tiles dd { margin: 4px 0 0; font-weight: 650; }
.compact { padding-bottom: 48px; }

/* Not supported yet */

.gaps { margin: 0; padding-left: 20px; max-width: 760px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.gaps strong { color: var(--text); font-weight: 650; }

/* Roadmap */

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.roadmap li { padding: 24px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.roadmap li.now { border-color: var(--accent); background: var(--chip); }
.roadmap .when { font-size: 13px; font-weight: 600; color: var(--muted); }
.roadmap .now .when { color: var(--accent-text); }
.roadmap .what { font-size: 22px; font-weight: 700; }
.roadmap .why { font-size: 15px; color: var(--muted); }

/* Footer */

.site-footer { position: relative; border-top: 1px solid var(--line); background: var(--bg2); }
.footer-inner { padding-top: 36px; padding-bottom: 44px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-about { display: flex; flex-direction: column; gap: 10px; flex: 999 1 420px; min-width: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.footer-about p { margin: 0; font-size: 13px; color: var(--muted); max-width: 46em; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }

/* Release notes */

.releases { max-width: 860px; padding-top: 56px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 40px; }
.releases h1 { margin: 0; font-size: 52px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.releases .lead { max-width: 34em; }
.latest { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.latest-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.latest-meta { display: flex; flex-direction: column; gap: 6px; }
.latest-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.latest-line .badge { padding: 4px 10px; font-size: 12px; gap: 7px; }
.latest-line .badge::before { width: 6px; height: 6px; }
.latest h2 { margin: 0; font-size: 34px; letter-spacing: -0.02em; font-weight: 700; }
.latest .btn { padding: 12px 18px; min-height: 46px; font-size: 15px; gap: 9px; }
.notes { display: flex; flex-direction: column; gap: 14px; overflow-wrap: anywhere; }
.notes > :first-child { margin-top: 0; }
.notes > :last-child { margin-bottom: 0; }
.notes h1, .notes h2, .notes h3, .notes h4 { margin: 8px 0 0; font-size: 15px; font-weight: 650; }
.notes ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.notes li { padding-left: 4px; }
.notes p { margin: 0; }
.notes code { font-size: 0.9em; }
.notes .markdown-heading { margin: 0; }
.notes .anchor { display: none; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 13px; font-weight: 650; letter-spacing: 0.02em; }
.tag-new { background: var(--t-red); color: var(--c-red); }
.tag-improved { background: var(--t-violet); color: var(--c-violet); }
.tag-fixed { background: var(--t-blue); color: var(--c-blue); }
.earlier, .version { border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.earlier > summary, .version > summary { cursor: pointer; list-style: none; min-height: 56px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 12px; }
.earlier > summary::-webkit-details-marker, .version > summary::-webkit-details-marker { display: none; }
.earlier > summary:hover, .version > summary:hover { background: var(--panel-strong); }
.earlier > summary::after, .version > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; flex-shrink: 0; }
.earlier[open] > summary::after, .version[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.earlier > summary { font-weight: 650; }
.earlier .count { font-weight: 400; color: var(--muted); }
.earlier-list { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.version > summary { min-height: 52px; }
.version .when { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.version .name { font-weight: 650; }
.version .date { font-size: 14px; color: var(--muted); }
.version-body { padding: 18px 20px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.empty { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .hero h1 { font-size: 40px; }
  .sec-title { font-size: 30px; }
  .panel { padding: 28px; }
  .releases h1 { font-size: 38px; }
  .latest { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
