/* Layout: one narrow, simple column; each menu item is its own page */
:root {
  --bg: #12161d;
  --line: #263040;
  --fg: #e6e4df;
  --muted: #9a9ca5;
  --accent: #7cc4ff;
  --accent-2: #7ee08f;
  --link: #8cbcff;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.65 var(--body); padding-inline: 16px; padding-block: 0 40px; }
.wrap { max-width: 760px; margin: 0 auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

header { display: flex; align-items: center; gap: 12px; padding-block: 28px 12px; }
header img { width: 44px; height: 44px; flex: none; }
header .name { font: 700 clamp(24px, 6vw, 34px)/1.1 var(--display); letter-spacing: -0.02em; }

nav { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-block: 8px 12px; border-bottom: 1px solid var(--line); }
nav a { font-weight: 600; }
nav a[aria-current="page"] { color: var(--accent); text-decoration: none; }

main { padding-top: 28px; }
section { display: flex; flex-direction: column; gap: 14px; }
h1, h2 { font-family: var(--display); font-weight: 700; text-wrap: balance; margin: 0; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 18px; margin-top: 14px; }
p, ul { margin: 0; max-width: 65ch; }
ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.muted { color: var(--muted); }
kbd { font: 12px var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; }
.ver { font-family: var(--mono); color: var(--accent); }

table { border-collapse: collapse; width: 100%; max-width: 560px; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 400; width: 38%; }

/* Download link on the home page */
.cta { margin: 4px 0 22px; }
.cta a { font-weight: 600; }

/* App screenshot */
.screenshot { margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.screenshot img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.caption { font-size: 12px; color: var(--muted); }

footer { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

header a.name { color: var(--fg); text-decoration: none; }

/* Language */
.i18n-pending body { visibility: hidden; }
nav .lang { margin-left: auto; }
nav select { font: inherit; font-size: 13px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; cursor: pointer; }
.dl-file { font-family: var(--mono); font-size: 12px; }
.file-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.file-list a { font-weight: 600; }
h2 + table { margin-top: -4px; }
nav select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Versions page */
.releases { display: flex; flex-direction: column; gap: 22px; }
.release { display: flex; flex-direction: column; gap: 6px; padding-left: 14px; border-left: 2px solid var(--line); }
.release:first-child { border-left-color: var(--accent); }
.release h3 { font: 700 16px/1.3 var(--display); margin: 0; display: flex; align-items: center; gap: 10px; }
.release .date { font-size: 13px; margin-top: -4px; }
.tag { font: 600 11px/1 var(--body); letter-spacing: .02em; color: var(--bg); background: var(--accent); border-radius: 999px; padding: 4px 8px; }

/* Browser extension cards (Download page) */
.ext-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; max-width: 700px; }
.ext-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #171c25; color: var(--fg); text-decoration: none; transition: border-color .15s, background .15s; }
.ext-card img { width: 40px; height: 40px; flex: none; object-fit: contain; }
.ext-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ext-text strong { font-weight: 600; }
.ext-text .muted { font-size: 12px; }
.ext-go { margin-left: auto; color: var(--accent); font-weight: 600; }
.ext-soon { margin-left: auto; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
a.ext-card:hover { border-color: var(--accent); background: #1a2130; color: var(--fg); }
.ext-card.off { opacity: .7; }
