/* The site's pages (download, design, avatars): the app's tokens and
   classes (dist/web/app.css), plus the header and page layout here. */

html, body { height: auto; }
body { display: block; background: var(--canvas); }
a { color: var(--accent); }

/* ---- header: the same on every page ---- */

.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 16px; background: var(--canvas); border-bottom: 1px solid var(--border); }
.site-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav { display: flex; gap: 2px; }
.site-nav > a, .site-dev > button { display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--text-soft); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; }
.site-nav > a:hover, .site-dev > button:hover, .site-dev > button[aria-expanded="true"] { background: var(--hover); color: var(--text); }
.site-nav > a[aria-current], .site-dev > button[aria-current] { background: var(--active); color: var(--text); }
.site-dev > button .pj-icon { width: 16px; height: 16px; }
.site-dev { position: relative; }
.site-menu { position: absolute; top: 100%; left: 0; }
.site-menu a { display: flex; align-items: center; color: var(--text); text-decoration: none; }
.site-menu a:hover { background: var(--hover); }
.site-menu a[aria-current="page"] { background: var(--active); }
.site-header .pj-icon-btn { width: 32px; height: 32px; }
:root[data-theme="dark"] .site-moon, :root:not([data-theme="dark"]) .site-sun { display: none; }
@media (max-width: 560px) {
  .site-brand span { display: none; }
}

/* ---- design pages ---- */

.ds-page { max-width: 880px; margin: 0 auto; padding: 48px 16px 120px; }
.ds-page h1 { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.ds-page h2 { margin: 56px 0 6px; font-size: 16px; font-weight: 600; }
.ds-page h3 { margin: 24px 0 8px; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.ds-page p, .ds-page li { color: var(--text-soft); line-height: 1.6; }
.ds-page p { margin: 0 0 12px; max-width: 640px; }
.ds-page ol, .ds-page ul { margin: 0 0 12px; padding-left: 24px; max-width: 680px; }
.ds-page li { margin: 4px 0; }
.ds-page strong { color: var(--text); font-weight: 600; }
.ds-page code { font: 12px var(--mono); padding: 2px 4px; border-radius: 4px; background: var(--bg-soft); color: var(--text); }
.ds-lead { font-size: 16px; }
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ds-swatch { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.ds-swatch i { height: 48px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border); }
.ds-swatch span { color: var(--text-soft); }
.ds-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0; }
.ds-box { padding: 24px; border-radius: 10px; background: var(--canvas); box-shadow: var(--shadow); }
.ds-scale { display: flex; flex-direction: column; gap: 12px; }
.ds-scale div { display: flex; align-items: baseline; gap: 16px; }
.ds-scale span:first-child { width: 72px; flex: none; color: var(--text-faint); font-size: 12px; }
.ds-radius i { width: 56px; height: 56px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--border-strong); }
.ds-prose { font-family: var(--doc-font); font-size: var(--doc-size); line-height: var(--doc-leading); }
.ds-card { position: static; max-width: 340px; cursor: default; }
/* real components, placed in the page instead of where the app puts them */
.ds-shadows { gap: 24px; margin-top: 24px; }
.ds-shadows i { width: 120px; background: var(--bg); }
.ds-toolbar { margin: 0; max-width: 520px; }
.ds-files { position: static; width: 240px; padding: 8px; border: 0; border-radius: 10px; }
.ds-files .pj-files-tree { padding: 0; }
.ds-files .pj-files-file { padding-left: 8px; }
.ds-setting-pages { max-width: 480px; }
.ds-setting-pages ul, .ds-setting-pages li { margin: 0; padding: 0; color: inherit; line-height: inherit; }
.ds-setting-pages .pj-back { margin: 0 0 8px -6px; }
.ds-tip { position: static; }
.ds-faces { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; }
.ds-face { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text-soft); }

/* ---- download page ---- */

.dl-page { max-width: 880px; margin: 0 auto; padding: 56px 16px 48px; font-size: 14px; line-height: 1.6; }
.dl-page .hero { text-align: center; margin-bottom: 48px; }
.dl-page .hero .pj-avatar { --size: 96px; }
#clippy .pj-face-body { animation-duration: 8s; }
.dl-page h1 { margin: 16px 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.dl-page .tagline { margin: 0 auto; max-width: 520px; color: var(--text-soft); font-size: 16px; }
.dl-page .version { display: inline-block; margin-top: 16px; padding: 2px 8px; border-radius: 999px; background: var(--hover); color: var(--text-soft); font-size: 12px; }

.dl-page .platforms { display: flex; justify-content: center; gap: 12px; }
.dl-page .platforms a { gap: 8px; height: 40px; padding: 0 16px; font-size: 14px; text-decoration: none; }
.dl-page .platforms svg { width: 18px; height: 18px; }

.dl-page .mobile-note { display: none; margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: var(--bg-soft); color: var(--text-soft); text-align: center; }
