:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eaf1ff;
  --ink: #0f1b3d;
  --text: #2b3a55;
  --muted: #5d6c86;
  --line: #d9e3f4;
  --surface: #ffffff;
  --accent: var(--blue);
  --radius: 16px;
  --gutter: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: #fbfdff;
  background-image:
    radial-gradient(900px 480px at 85% 0, rgba(37, 99, 235, 0.07), transparent 70%),
    radial-gradient(700px 420px at 0 30%, rgba(96, 165, 250, 0.08), transparent 70%);
  background-attachment: fixed;
}

a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }

:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

/* header: a blue band with white text */
.site-header { position: sticky; top: 0; z-index: 5; background: linear-gradient(180deg, #3b78f0, var(--blue)); box-shadow: 0 2px 14px rgba(37, 99, 235, 0.25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: 0.04em; color: #fff; text-decoration: none; font-size: 1.2rem; }
.brand span { color: #bfdbfe; }
nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { display: block; padding: 8px 14px; border-radius: 999px; color: #e6efff; text-decoration: none; font-weight: 600; }
nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.18); }
nav a[aria-current="page"] { color: var(--blue-dark); background: #fff; }

/* layout */
main { padding: 40px 0 72px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 48px; }
h3 { font-size: 1.15rem; }
h3 a { color: inherit; text-decoration-color: rgba(37, 99, 235, 0.45); }
p { margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 6px 22px rgba(15, 27, 61, 0.05);
}

.hero { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; padding-top: 12px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1fr 1.05fr; } }

.figure { margin: 0; }
.figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(15, 27, 61, 0.2); }
.figure figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--blue); color: #fff; border: 1px solid var(--blue); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn.secondary { background: #fff; color: var(--blue-dark); border-color: #b9ccf3; box-shadow: none; }
.btn.secondary:hover { background: var(--blue-soft); color: var(--blue-dark); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; }

.notice { border-left: 4px solid var(--blue); padding: 10px 14px; background: var(--blue-soft); border-radius: 0 10px 10px 0; margin: 18px 0; color: var(--text); }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 20px 0 0; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 6px 22px rgba(15, 27, 61, 0.05); }
.features h3 { margin-bottom: 6px; }
.features p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* skin cards */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 1.4rem; margin: 4px 0 0; }
.card .meta { font-size: 0.85rem; color: var(--muted); }
.card ol { margin: 0; padding-left: 20px; font-size: 0.93rem; color: var(--muted); }
.card .actions { margin-top: auto; padding-top: 6px; }

/* palette illustration of a skin, built from its manifest colours (not a screenshot) */
.mock { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); font-size: 11px; background: var(--m-window); color: var(--m-text); }
.mock .bar { display: flex; justify-content: space-between; padding: 6px 10px; background: var(--m-window); }
.mock .menu { display: flex; gap: 10px; padding: 3px 10px 6px; background: var(--m-window); color: var(--m-muted); }
.mock .video { height: 92px; background: #05070d; display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 6px; border-radius: 4px; }
.mock .video i { display: block; width: 8px; border-radius: 2px; background: var(--m-accent); opacity: 0.9; }
.mock .seek { margin: 8px 10px 4px; height: 4px; border-radius: 2px; background: var(--m-seekbg); position: relative; }
.mock .seek b { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; border-radius: 2px; background: var(--m-seek); }
.mock .tools { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; background: var(--m-panel); }
.mock .tools i { display: block; width: 14px; height: 14px; border-radius: 3px; background: var(--m-text); opacity: 0.85; }
.mock .tools i.play { border-radius: 50%; background: var(--m-accent); opacity: 1; }
.swatches { display: flex; gap: 4px; margin-top: 8px; }
.swatches span { flex: 1; height: 14px; border-radius: 4px; border: 1px solid rgba(15, 27, 61, 0.2); }
.caption { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

/* docs */
.docs-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; padding: 0; list-style: none; }
.docs-nav a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.docs-nav a:hover { background: var(--blue-soft); }
code, pre { font-family: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace; font-size: 0.9em; }
code { background: #eef3fb; color: #1e3a8a; padding: 1px 6px; border-radius: 5px; }
pre { background: #f3f6fc; border: 1px solid var(--line); padding: 14px; border-radius: 12px; overflow-x: auto; color: var(--ink); }
pre code { background: none; padding: 0; color: inherit; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }
th { color: var(--ink); background: var(--blue-soft); }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; padding: 22px 0 36px; background: #fff; }
footer .wrap { display: flex; flex-direction: column; gap: 6px; }

/* skin store */
.store-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 18px 0 4px; }
.store-tools input, .store-tools select { background: #fff; color: var(--ink); border: 1px solid #b9ccf3; border-radius: 12px; padding: 11px 14px; font: inherit; min-width: 0; }
.store-tools input { flex: 1 1 240px; }
.store-tools input::placeholder { color: #8a98b2; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card .shot { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.card .shot img { display: block; width: 100%; height: auto; }
.download { margin-top: 18px; }
.download h3 { margin: 0 0 4px; }
[hidden] { display: none !important; }

/* categories and colours */
.searchbar { position: relative; display: flex; align-items: center; gap: 6px; flex: 1 1 320px; background: #fff; border: 1px solid #b9ccf3; border-radius: 16px; padding: 5px 8px 5px 4px; }
.searchbar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.store-tools .searchbar input { flex: 1 1 auto; border: 0; background: transparent; box-shadow: none; padding: 11px 14px; font-size: 1.05rem; outline: none; }
.filter { margin: 0; }
.filter summary { display: inline-block; cursor: pointer; padding: 8px 18px; border-radius: 999px; border: 1px solid #b9ccf3; background: #fff; color: var(--blue-dark); font-weight: 700; list-style: none; white-space: nowrap; }
.filter summary::-webkit-details-marker { display: none; }
.filter summary::after { content: " \25BE"; }
.filter[open] summary, .filter summary:hover { background: var(--blue-soft); }
.filter-body { position: absolute; right: 0; top: calc(100% + 8px); z-index: 4; display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; width: max-content; max-width: 100%; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(15, 27, 61, 0.18); }
.filter-body label { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.filter-body select { background: #fff; color: var(--ink); border: 1px solid #b9ccf3; border-radius: 10px; padding: 8px 12px; font: inherit; min-width: 150px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(15, 27, 61, 0.25); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.pill { padding: 2px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 0.8rem; font-weight: 700; }
.dots { display: inline-flex; gap: 4px; margin-left: 4px; }
.linklike { background: none; border: 0; padding: 0; color: var(--blue-dark); font: inherit; text-decoration: underline; cursor: pointer; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { display: block; width: 34px; height: 34px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); }
