Dezio/web/site/assets/site.css
astar76 dfb4f1b7e0 Dashboard and website redesign; role menus keep servers' own roles
Dashboard: faders, searchable channel and role pickers, a colour picker,
segmented controls, one save bar, a live embed preview. Website: a split
hero with a working player preview. Fonts are self-hosted for the CSP.

Bot: publishing a role menu no longer marks roles it didn't create as its
own, so removing one can't delete a server's role. Zero ids no longer panic
D!ban, announcement channels are pickable, and static files revalidate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 19:32:57 -06:00

107 lines
7.1 KiB
CSS

/* Dezio website: shared by index, terms and privacy. The tokens are in tokens.css. */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-size: 16px; line-height: 24px; }
a { color: var(--text); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.btn.big { height: 44px; padding: 0 20px; font-size: 15px; }
.ic, .key svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(20, 20, 21, .9); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 16px; font-weight: 500; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.top nav a:not(.btn) { color: var(--text-2); font-size: 14px; text-decoration: none; transition: color var(--fast) var(--ease); }
.top nav a:not(.btn):hover { color: var(--text); }
/* hero: the copy on the left, the player on the right */
.hero { display: flex; align-items: center; min-height: calc(100vh - 57px); padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy > * { animation: rise var(--enter) var(--ease) backwards; }
.hero-copy > :nth-child(2) { animation-delay: 48ms; }
.hero-copy > :nth-child(3) { animation-delay: 96ms; }
.hero-copy > :nth-child(4) { animation-delay: 144ms; }
.hero h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.03em; }
.hero-copy > p:not(.facts) { max-width: 36rem; margin: 24px 0 32px; color: var(--text-2); font-size: 18px; line-height: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.facts { margin: 24px 0 0; color: var(--text-3); font-size: 14px; line-height: 20px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
/* the player: Dezio's now-playing panel, working */
.deck { display: grid; gap: 16px; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 32px 64px rgba(0, 0, 0, .4); animation: rise var(--enter) var(--ease) 192ms backwards; }
.deck-top { display: flex; align-items: center; gap: 16px; }
.cover { width: 96px; height: 96px; flex: none; border-radius: 8px; }
.deck-title { display: grid; min-width: 0; }
.deck-title small { color: var(--text-3); font-size: 13px; line-height: 20px; }
.deck-title strong { overflow: hidden; font-size: 20px; font-weight: 500; line-height: 28px; text-overflow: ellipsis; white-space: nowrap; }
.deck-title span { color: var(--text-2); font-size: 14px; line-height: 20px; }
.vu { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; height: 96px; }
.vu i { display: block; height: 100%; border-radius: 2px; background: var(--cobalt); transform: scaleY(.04); transform-origin: bottom; transition: transform 120ms linear; }
.vu i.mid { background: var(--violet); }
.vu i.high { background: var(--orchid); }
.deck.paused .vu i { transform: scaleY(.04) !important; transition-duration: 420ms; transition-timing-function: var(--ease); }
.deck-progress { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; color: var(--text-3); font: 400 12px/16px var(--mono); font-variant-numeric: tabular-nums; }
.bar { height: 4px; overflow: hidden; border-radius: 2px; background: var(--raised-2); }
.bar i { display: block; height: 100%; background: var(--text); transform-origin: left; transform: scaleX(.3); transition: transform 300ms linear; }
.deck-meta { margin: 0; color: var(--text-3); font-size: 13px; line-height: 20px; }
.deck-meta b { color: var(--text-2); font-weight: 400; }
.deck-buttons { display: flex; gap: 8px; }
.key { display: grid; place-items: center; width: 44px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); color: var(--text-2); cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.key svg { width: 18px; height: 18px; }
.key:hover { background: var(--raised-2); color: var(--text); }
.key:active { transform: scale(.95); }
.key.lead { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.key.lead:hover { background: #dc92f0; }
.key[aria-pressed="true"] { color: var(--accent); }
/* features */
.features { padding: 80px 0; border-top: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.features-head { position: sticky; top: 96px; }
.features-head h2 { font-size: 32px; line-height: 40px; letter-spacing: -.01em; }
.features-head p { margin: 12px 0 0; color: var(--text-2); }
.item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.item:first-child { padding-top: 0; }
.item:last-child { border-bottom: 0; }
.item .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--text-3); transition: color var(--fast) var(--ease); }
.item:hover .ic { color: var(--accent); }
.item h3 { font-size: 16px; line-height: 24px; }
.item p { max-width: 36rem; margin: 4px 0 0; color: var(--text-2); font-size: 15px; line-height: 22px; }
.js .item { opacity: 0; transform: translateY(8px); transition: opacity var(--enter) var(--ease), transform var(--enter) var(--ease); }
.js .item.in { opacity: 1; transform: none; }
.callout { display: flex; align-items: center; gap: 24px; margin-bottom: 80px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.callout > div { flex: 1; min-width: 0; }
.callout h2 { font-size: 24px; line-height: 32px; }
.callout p { margin: 4px 0 0; color: var(--text-2); }
/* footer */
footer { padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; line-height: 20px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 16px; }
footer a { color: var(--text-2); }
/* legal pages */
.doc { max-width: 720px; padding: 48px 0 80px; }
.doc h1 { font-size: 36px; line-height: 44px; }
.doc .updated { margin: 8px 0 32px; color: var(--text-3); }
.doc h2 { margin: 32px 0 8px; font-size: 20px; line-height: 28px; }
.doc p, .doc li { color: var(--text-2); }
.doc li { margin: 4px 0; }
@media (max-width: 960px) {
.hero { min-height: 0; padding-top: 48px; }
.hero-grid, .features-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.features-head { position: static; }
.callout { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
.top nav a.optional { display: none; }
.hero h1 { font-size: 36px; }
.item { grid-template-columns: 18px minmax(0, 1fr); }
.item code { grid-column: 2; justify-self: start; }
.vu { height: 64px; }
.cover { width: 72px; height: 72px; }
.deck-title strong { font-size: 18px; line-height: 24px; }
}