Dark only: near-black under grey light, frosted glass cards, white as the only accent, Geist. Hero text and section texts quoted from Deadcode's site; the cards lead to radiance git and to Models, Docs and Changelog there. Icons in white on near-black to match.
119 lines
6 KiB
CSS
119 lines
6 KiB
CSS
/* Radiance landing page in the style of radiance.stilldeadco.de ("Obsidian", by Deadcode):
|
|
near-black under grey light, frosted glass panels, monochrome; white is the only accent.
|
|
Dark only. No external requests: fonts and icons are local. */
|
|
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/Geist-Variable.woff2") format("woff2"); }
|
|
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); }
|
|
|
|
:root {
|
|
color-scheme: dark;
|
|
--bg: #09090a;
|
|
--ink: #fafafa;
|
|
--ink-2: #b8b8be;
|
|
--muted: #86868e;
|
|
--hair: rgba(255, 255, 255, 0.08);
|
|
--edge: rgba(255, 255, 255, 0.12);
|
|
--hi: rgba(255, 255, 255, 0.14);
|
|
--glass: rgba(255, 255, 255, 0.09);
|
|
--frost: blur(36px) saturate(170%);
|
|
--sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
--mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html { -webkit-text-size-adjust: 100%; }
|
|
body {
|
|
margin: 0; min-height: 100vh; display: flex; flex-direction: column;
|
|
background: var(--bg); color: var(--ink);
|
|
font: 15px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased;
|
|
}
|
|
/* the grey light the glass sits in */
|
|
body::before {
|
|
content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
|
|
background:
|
|
radial-gradient(48vmax 38vmax at 4% -8%, rgba(46, 46, 53, 0.95), transparent 70%),
|
|
radial-gradient(42vmax 34vmax at 104% 42%, rgba(34, 36, 40, 0.95), transparent 70%),
|
|
radial-gradient(40vmax 28vmax at 30% 108%, rgba(48, 46, 53, 0.9), transparent 70%);
|
|
}
|
|
|
|
a { color: var(--ink); text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
|
|
a:hover { text-decoration-color: var(--ink); }
|
|
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
|
|
::selection { background: rgba(255, 255, 255, 0.22); }
|
|
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
|
|
h1, h2, h3 { line-height: 1.08; font-weight: 600; }
|
|
h1 { font-size: clamp(2.4rem, 7vw, 3.4rem); letter-spacing: -0.035em; margin: 0 0 14px; }
|
|
h3 { font-size: 1rem; letter-spacing: -0.01em; margin: 0 0 6px; }
|
|
p { margin: 0 0 12px; }
|
|
|
|
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
|
|
main { flex: 1 0 auto; }
|
|
|
|
/* header: a frosted bar; the current page's label carries a lit bar on the bottom edge */
|
|
.site-top {
|
|
position: sticky; top: 0; z-index: 10;
|
|
background: rgba(16, 16, 19, 0.5);
|
|
-webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
|
|
border-bottom: 1px solid var(--hair);
|
|
}
|
|
.site-head { display: flex; align-items: stretch; gap: 0 28px; height: 56px; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
|
|
.brand, .site-nav a, .ext-nav a { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
|
|
.brand { position: relative; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
|
|
.brand-mark { width: 22px; height: 22px; fill: var(--ink); }
|
|
.brand[aria-current="page"]::after {
|
|
content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0;
|
|
background: var(--ink); box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
|
|
}
|
|
.site-nav { display: flex; gap: 6px; }
|
|
.site-nav a { padding: 0 10px; color: var(--muted); font-size: 14px; transition: color .15s; }
|
|
.site-nav a:hover, .ext-nav a:hover { color: var(--ink); }
|
|
.ext-nav { display: flex; align-items: center; margin-left: auto; }
|
|
.ext-nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; transition: color .15s, background .15s; }
|
|
.ext-nav a:hover { background: rgba(255, 255, 255, 0.06); }
|
|
@media (max-width: 640px) {
|
|
.site-head { gap: 0 10px; }
|
|
.site-nav { gap: 0; }
|
|
.site-nav a { padding: 0 6px; }
|
|
.brand .label-text { display: none; }
|
|
}
|
|
|
|
section { padding: 44px 0; }
|
|
.hero { padding: 72px 0 32px; }
|
|
.label { font: 500 13px var(--mono); color: var(--muted); margin: 0 0 12px; }
|
|
.lede { font-size: clamp(1rem, 2.2vw, 1.1rem); line-height: 1.6; color: var(--ink-2); max-width: 620px; }
|
|
|
|
.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
|
|
.btn {
|
|
display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px;
|
|
font-weight: 500; font-size: 14px; text-decoration: none; color: var(--ink);
|
|
background: var(--glass); border: 1px solid var(--edge);
|
|
-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
|
|
transition: background .15s, border-color .15s;
|
|
}
|
|
.btn:hover { background: rgba(255, 255, 255, 0.13); }
|
|
.btn.primary { color: var(--bg); background: var(--ink); border-color: var(--ink); }
|
|
.btn.primary:hover { background: #ffffff; box-shadow: 0 0 22px rgba(255, 255, 255, 0.25); }
|
|
|
|
/* frosted glass panels */
|
|
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
|
|
.card {
|
|
display: block; padding: 20px; color: inherit; text-decoration: none;
|
|
background: var(--glass); border: 1px solid var(--edge); border-radius: 16px;
|
|
-webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost);
|
|
box-shadow: inset 0 1px 0 var(--hi), 0 16px 40px rgba(0, 0, 0, 0.35);
|
|
transition: background .15s, border-color .15s;
|
|
}
|
|
.card:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
|
|
.card p { color: var(--ink-2); font-size: 14px; }
|
|
.card p:last-child { margin-bottom: 0; }
|
|
.card .meta { font: 12px var(--mono); color: var(--muted); }
|
|
|
|
.site-foot {
|
|
display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
|
|
padding: 26px 16px 44px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--hair); margin-top: 28px;
|
|
}
|
|
.site-foot a { color: var(--muted); text-decoration: none; }
|
|
.site-foot a:hover { color: var(--ink); }
|
|
.foot-right { margin-left: auto; }
|
|
|
|
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
|