/* ResourceSpace plugins – information site (generated by tools/release.py site) */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --text: #16181d;
  --muted: #5b6270;
  --border: #e2e5ea;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --radius: 14px;
  --accent: #2563eb;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-text: color-mix(in srgb, var(--accent) 82%, #000);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #151b23;
    --surface-2: #1c232d;
    --text: #e6e9ee;
    --muted: #9aa3b2;
    --border: #2a323d;
    --code-bg: #0a0e14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --accent-soft: color-mix(in srgb, var(--accent) 20%, transparent);
    --accent-text: color-mix(in srgb, var(--accent) 55%, #fff);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}

a { color: var(--accent-text); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--surface); }
.skip:focus { left: 8px; }

/* Top menu */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 20px; min-height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: conic-gradient(from 200deg, #2563eb, #7c3aed, #0d9488, #d97706, #dc2626, #2563eb);
}
.tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin-left: auto; padding: 10px 0;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.tab svg { width: 17px; height: 17px; color: var(--tab-accent); }
.tab:hover { background: var(--surface-2); color: var(--text); }
.tab[aria-current="page"] {
  background: color-mix(in srgb, var(--tab-accent) 14%, transparent);
  color: var(--text); font-weight: 650;
}

@media (max-width: 1080px) {
  .topbar-inner { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .tabs { margin: 0 -16px; padding: 8px 16px 10px; }
}

/* Icons */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Hero */
.hero { padding: 56px 0 36px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.badge-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent-text); margin-bottom: 18px;
}
.badge-icon .icon { width: 30px; height: 30px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.02em; margin-bottom: 14px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 46em; }
.home-hero h1 { max-width: 18em; }

/* Download card */
.download-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.download-card .label { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.download-card .version { font-size: 2rem; font-weight: 750; letter-spacing: -.02em; }
.download-card .meta { font-size: 14px; color: var(--muted); margin: 2px 0 18px; min-height: 1.4em; }
.download-card .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn .icon { width: 19px; height: 19px; }
.btn-primary { background: var(--accent); color: #fff; width: 100%; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 7px 12px; font-size: 14px; }

/* Sections */
.section { padding: 36px 0; }
.section h2 { font-size: 1.55rem; letter-spacing: -.01em; margin-bottom: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.feature h3 { font-size: 1.04rem; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.feature h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* Installation */
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; }
.install h3 { font-size: 1.06rem; margin-bottom: 10px; }
.install ol { margin: 0; padding-left: 1.3em; }
.install li { margin-bottom: 6px; }
.install .hint { font-size: 14px; color: var(--muted); margin: 12px 0 0; overflow-wrap: anywhere; }
.code-wrap { position: relative; }
.code {
  background: var(--code-bg); color: var(--code-text);
  border-radius: 10px; margin: 0; padding: 44px 16px 16px;
  font: 13.5px/1.65 var(--mono); overflow-x: auto; white-space: pre;
}
.code .c { color: #8b97a8; }
.copy {
  position: absolute; top: 10px; right: 10px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #e2e8f0;
  border-radius: 7px; padding: 4px 10px; font: 600 12.5px var(--font); cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, .14); }

.req { margin: 0; padding-left: 1.2em; }
.req li { margin-bottom: 4px; }
.note {
  margin-top: 16px; padding: 12px 16px; border-radius: 10px;
  background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: 15px;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.linklist li:last-child { border-bottom: 0; }

/* Home: plugin cards */
.plugin-card { display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--accent); }
.plugin-card .head { display: flex; align-items: center; gap: 12px; }
.plugin-card .head .badge-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.plugin-card .head .badge-icon .icon { width: 24px; height: 24px; }
.plugin-card h3 { font-size: 1.15rem; }
.plugin-card h3 a { color: var(--text); text-decoration: none; }
.plugin-card h3 a:hover { color: var(--accent-text); }
.plugin-card .ver { font-size: 13px; color: var(--muted); }
.plugin-card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.plugin-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.plugin-card .actions .btn-primary { width: auto; }

.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { counter-increment: s; }
.step::before {
  content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 700;
}
.step h3 { font-size: 1.02rem; margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.footer p { max-width: 60em; }

@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid, .install, .two { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
