/* Fonts are served from this site (SIL Open Font License, see assets/fonts/LICENSE-*.txt), so visitors make no requests to Google or any other host. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* Layout: an extension listing. Header row (icon, name, publisher, Get button), a screenshot strip,
   then a two-column body: overview/install on the left, a details rail on the right. */
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #142029;
  --muted: #4a5763;
  --line: #d7dde4;
  --accent: #0e6a47;
  --accent-ink: #ffffff;
  --mark: #c2410c;
  --mark-soft: #fff1e8;
  --note: #eef3f8;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161c; --card: #18212a; --ink: #e6ecf1; --muted: #a7b3be; --line: #2a3540;
    --accent: #3fbf86; --accent-ink: #0b1a13; --mark: #ff8a50; --mark-soft: #2b1d14; --note: #172431;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); }
img { max-width: 100%; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 1.95rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
code, .kbd { font-family: var(--mono); font-size: 0.88em; }
.kbd { background: var(--note); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 5; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.topbar .who { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; font-size: 0.95rem; }
.topbar nav a { color: var(--ink); text-decoration: none; }
.topbar nav a:hover { color: var(--accent); }

/* listing header */
.listing { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: 36px 24px; }
.listing img.icon { width: 96px; height: 96px; border-radius: 20px; }
.publisher { color: var(--muted); margin-top: 6px; }
.publisher strong { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font-size: 0.82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--note); border: 1px solid var(--line); color: var(--ink); }
.get { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 0; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; font: 700 1.05rem/1 var(--body); padding: 14px 22px; border-radius: 10px; border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); font-size: 0.95rem; padding: 10px 16px; }
.get small { color: var(--muted); text-align: center; font-size: 0.82rem; }

/* screenshots */
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-bottom: 8px; }
.shots figure { margin: 0; flex: 0 0 auto; width: min(640px, 86vw); scroll-snap-align: start; }
.shots figure.tall { width: min(320px, 70vw); }
.shots img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 8px; }

/* body columns */
.body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-block: 28px 64px; }
.main { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
section { scroll-margin-top: 72px; }
.rail { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.panel h3 { font-size: 1rem; margin-bottom: 10px; }
dl.details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 0.93rem; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin-top: 10px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.feature p { color: var(--muted); }
.disclaimer { background: var(--note); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 0.92rem; color: var(--ink) !important; margin-top: 6px; }

/* install */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.path { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.path.primary { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.path .tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.path p { color: var(--muted); }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.step { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr); gap: 24px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.step-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mark); color: #fff; font: 800 1.1rem/1 var(--display); }
.step-text p, .step-text li { color: var(--muted); }
.step-text ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.step-text strong { color: var(--ink); }
.ill { margin: 0; min-width: 0; }
.ill svg, .ill img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.ill.drawn figcaption::before { content: "Illustration · "; font-weight: 600; }
.tip { background: var(--mark-soft); border-left: 4px solid var(--mark); padding: 10px 14px; border-radius: 0 8px 8px 0; color: var(--ink) !important; font-size: 0.95rem; }
.copyrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.copyrow input { font: 500 1rem var(--mono); color: var(--ink); background: var(--note); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; width: 15.5em; max-width: 100%; }
.status { font-size: 0.9rem; color: var(--muted); min-height: 1.3em; }

/* privacy */
.privacy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.privacy div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.privacy b { display: block; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin-top: 8px; max-width: 70ch; }
footer { border-top: 1px solid var(--line); padding-block: 22px 40px; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 900px) {
  .body { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .step, .paths, .features, .privacy { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .listing { grid-template-columns: auto minmax(0, 1fr); }
  .listing .get { grid-column: 1 / -1; }
  .listing img.icon { width: 72px; height: 72px; border-radius: 16px; }
  .topbar nav { gap: 12px; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* classes replacing inline style attributes (the CSP allows no inline styles) */
.shots-note { font-size: .86rem; color: var(--muted); }
.self-start { align-self: flex-start; }
.mb16 { margin-bottom: 16px; }
.rail-text { color: var(--muted); font-size: .95rem; }
.request { background: var(--card); border: 1px solid var(--accent); border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.request p { color: var(--muted); }
.hash { font-family: var(--mono); font-size: .78rem; overflow-wrap: anywhere; color: var(--ink); }

/* privacy policy page */
.policy { max-width: 760px; padding-block: 36px 56px; display: flex; flex-direction: column; gap: 14px; }
.policy h2 { margin-top: 14px; font-size: 1.3rem; }
.policy p { color: var(--muted); max-width: 68ch; }
