wcloud/website/dist/styles.css
2026-11-24 15:39:30 +01:00

301 lines
15 KiB
CSS

:root {
color-scheme: dark;
--background: #141812;
--surface: #1b2119;
--surface-raised: #232a20;
--line: #374033;
--ink: #f4f3e8;
--muted: #b9c1b2;
--lime: #cef871;
--lime-dark: #171f0d;
--mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
font-family: Inter, "Segoe UI", system-ui, sans-serif;
font-size: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--background); color: var(--ink); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
outline: 2px solid var(--lime);
outline-offset: 4px;
}
.shell { width: min(100% - 5rem, 82rem); margin-inline: auto; }
.skip, .sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.skip:focus {
z-index: 5;
top: .5rem;
left: .5rem;
width: auto;
height: auto;
padding: .65rem 1rem;
clip-path: none;
background: var(--lime);
color: var(--lime-dark);
}
.site-header {
position: sticky;
z-index: 4;
top: 0;
border-bottom: 1px solid var(--line);
background: var(--background);
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4.8rem; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; width: max-content; font-size: 1.35rem; font-weight: 760; letter-spacing: -.05em; text-decoration: none; }
.brand img { flex: none; }
.site-header nav { display: flex; align-items: center; justify-content: center; gap: 1.55rem; }
.site-header nav a { color: var(--muted); font-size: .94rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--lime); }
.top-action {
justify-self: end;
padding: .5rem .9rem;
border: 1px solid #53643d;
border-radius: .4rem;
color: var(--lime);
font-size: .95rem;
font-weight: 700;
text-decoration: none;
}
.top-action:hover { background: var(--surface-raised); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { letter-spacing: -.045em; }
.hero {
display: grid;
grid-template-columns: minmax(0, .95fr) minmax(0, 1.45fr);
align-items: center;
gap: clamp(2rem, 4.2vw, 4rem);
padding-block: clamp(3.2rem, 7vw, 7.4rem) clamp(3.2rem, 6.2vw, 6.2rem);
}
.release { display: flex; align-items: center; gap: .78rem; margin-bottom: 1.15rem; color: var(--muted); font: .87rem var(--mono); }
.release strong { color: var(--lime); font-weight: 560; }
.release strong::before { content: "/"; color: #778171; padding-right: .75rem; }
.hero h1 { font-size: clamp(2.5rem, 4.7vw, 4.6rem); font-weight: 760; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-intro { max-width: 29rem; margin-top: 1.4rem; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .actions { margin-top: 1.65rem; }
.button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 2.9rem;
padding: .68rem 1rem;
border: 1px solid transparent;
border-radius: .42rem;
font-size: .95rem;
font-weight: 700;
line-height: 1.24;
text-align: center;
text-decoration: none;
cursor: pointer;
}
.primary { background: var(--lime); color: var(--lime-dark); }
.primary:hover { background: #d9ff95; }
.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.secondary:hover { background: var(--surface-raised); border-color: #657258; }
.small { min-height: 2.25rem; padding: .42rem .68rem; font-size: .875rem; }
.text-link { color: var(--lime); text-underline-offset: .22em; }
.text-link:hover { text-decoration-thickness: 2px; }
.hero-shot {
overflow: hidden;
aspect-ratio: auto;
border: 1px solid #4d5a42;
border-radius: .8rem;
background: var(--surface);
box-shadow: 0 22px 68px #0007;
}
.hero-shot-top { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .55rem .9rem; color: var(--muted); font: .83rem var(--mono); }
.hero-shot-top span:first-child { color: var(--lime); }
.hero-shot img { width: 100%; height: auto; background: #101510; border-block: 1px solid var(--line); }
.hero-shot figcaption { padding: .52rem .85rem; color: var(--muted); font-size: .875rem; }
.overview-band { background: var(--surface); border-block: 1px solid var(--line); }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.overview-grid article { padding: 1.5rem 1.7rem; border-right: 1px solid var(--line); }
.overview-grid article:first-child { border-left: 1px solid var(--line); }
.overview-grid h2 { margin-bottom: .45rem; color: var(--lime); font-size: 1.12rem; letter-spacing: -.02em; }
.overview-grid p { max-width: 33ch; color: var(--muted); }
.section { padding-block: clamp(3.2rem, 7vw, 6.6rem); }
.section-header { margin-bottom: 2rem; }
.section-header h2, .guide-header h1 { font-size: clamp(2.2rem, 4.35vw, 3.65rem); font-weight: 750; }
.section-header p, .guide-header p { max-width: 63ch; margin-top: .9rem; color: var(--muted); font-size: 1.08rem; }
.gallery { border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); overflow: hidden; }
.gallery-bar { display: flex; justify-content: center; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.gallery-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .36rem; }
.gallery-tabs button {
padding: .45rem .78rem;
border: 1px solid transparent;
border-radius: .36rem;
background: transparent;
color: var(--muted);
font-size: .93rem;
font-weight: 650;
cursor: pointer;
}
.gallery-tabs button[aria-selected="true"] { border-color: #5e7046; background: #2d3b21; color: var(--lime); }
.gallery-tabs button:hover { color: var(--ink); }
.gallery-tabs button[aria-selected="true"]:hover { color: var(--lime); }
.gallery-image-link { display: grid; place-items: center; padding: clamp(.55rem, 2vw, 1.4rem); background: #101510; cursor: zoom-in; }
.gallery-image-link img { width: 100%; height: auto; max-height: 43rem; object-fit: contain; }
.gallery-caption { display: flex; align-items: center; justify-content: space-between; gap: .7rem 1rem; border-top: 1px solid var(--line); padding: .9rem 1.25rem; }
.gallery-caption p { color: var(--muted); }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.game-shot { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); overflow: hidden; }
.game-image { flex: 1; display: grid; place-items: center; min-height: 11.5rem; padding: 1rem; background: #101510; }
.game-image.tablist { background: #263247; }
.game-image img { max-height: 12.5rem; width: auto; height: auto; }
.game-shot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.game-shot figcaption span { color: var(--muted); }
.architecture-section { border-block: 1px solid var(--line); background: var(--surface); }
.architecture-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.architecture-layout .section-header { margin: 0; }
.architecture-layout .text-link { display: inline-block; margin-top: 1.1rem; }
.architecture { display: grid; gap: .85rem; }
.architecture-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; }
.node { position: relative; display: flex; flex-direction: column; gap: .4rem; justify-content: center; min-height: 6.1rem; padding: .82rem .65rem; border: 1px solid #4c5944; border-radius: .4rem; background: var(--background); }
.node:not(:last-child)::after { position: absolute; content: ""; left: 100%; top: 50%; width: 1.15rem; border-top: 1px solid #829075; }
.node strong { color: var(--ink); font-size: 1rem; line-height: 1.2; }
.node span { color: var(--muted); font-size: .87rem; line-height: 1.42; }
.node.master { background: #29351d; border-color: #839f56; }
.node.master strong { color: var(--lime); }
.setup-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.35rem; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.setup-steps li { position: relative; counter-increment: steps; min-width: 0; padding: 1.1rem 0 1.4rem 2.65rem; border-top: 1px solid var(--line); }
.setup-steps li::before {
position: absolute;
inset: 1.02rem auto auto 0;
content: counter(steps);
display: grid;
place-items: center;
width: 1.7rem;
height: 1.7rem;
border: 1px solid #596d42;
border-radius: .33rem;
color: var(--lime);
font: .91rem var(--mono);
}
.setup-steps h3 { font-size: 1.25rem; }
.setup-steps p { margin-top: .54rem; color: var(--muted); }
.setup-actions { margin-top: 1.2rem; }
.command-line {
display: flex;
align-items: center;
justify-content: space-between;
gap: .7rem;
min-width: 0;
margin-block: .85rem;
padding: .55rem .65rem .55rem .9rem;
border: 1px solid #42503a;
border-radius: .42rem;
background: #101510;
color: #e8efdd;
}
code, kbd { font-family: var(--mono); font-size: .88em; overflow-wrap: anywhere; }
p code, li code, dd code, td code, kbd { padding: .12em .25em; border-radius: .22rem; background: #2a3225; color: #e9f4dc; }
.command-line code { font-size: .91rem; }
.copy { flex: none; min-height: 2rem; padding: .25rem .55rem; border: 1px solid #5b6c49; border-radius: .28rem; background: var(--surface); color: var(--lime); font-size: .87rem; font-weight: 650; cursor: pointer; }
.copy:hover { background: var(--surface-raised); }
.site-footer { border-top: 1px solid var(--line); background: #10150f; }
.footer-inner { min-height: 5.4rem; display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.4rem; padding-block: 1rem; }
.footer-inner > span { color: var(--muted); }
.footer-inner > .text-link { margin-left: auto; }
.lightbox { width: min(95vw, 92rem); max-height: 93vh; margin: auto; padding: 0; border: 1px solid #59694f; border-radius: .65rem; background: var(--surface); color: var(--ink); }
.lightbox::backdrop { background: #050805e5; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
.lightbox-bar h2 { font-size: 1.12rem; }
.lightbox > img { display: block; width: 100%; height: auto; max-height: 81vh; object-fit: contain; background: #101510; }
.guide-header { padding-block: 3.8rem 2.1rem; border-bottom: 1px solid var(--line); }
.guide-grid { display: grid; grid-template-columns: minmax(12rem, .3fr) minmax(0, 1fr); gap: clamp(1.8rem, 4vw, 4.6rem); padding-block: 2rem 4.3rem; }
.guide-nav { position: sticky; top: 6.25rem; align-self: start; display: grid; gap: .25rem; }
.guide-nav a { width: max-content; max-width: 100%; padding: .32rem .55rem; border-radius: .26rem; color: var(--muted); text-decoration: none; }
.guide-nav a:hover, .guide-nav a[aria-current] { background: var(--surface-raised); color: var(--lime); }
.guide-content { width: min(100%, 53rem); }
.guide-content section { min-width: 0; padding-bottom: 2rem; }
.guide-content section + section { padding-top: 2rem; border-top: 1px solid var(--line); }
.guide-content h2 { margin-bottom: .85rem; font-size: clamp(1.68rem, 3vw, 2.4rem); }
.guide-content h3 { margin-block: 1.5rem .5rem; font-size: 1.2rem; }
.guide-content p { margin-block: .72rem; color: var(--muted); }
.guide-content strong { color: var(--ink); }
.guide-content ol { margin-block: .65rem; padding-inline-start: 1.55rem; color: var(--muted); }
.guide-content li + li { margin-top: .5rem; }
.definition-list { margin-block: 1rem; padding: 0; }
.definition-list div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.definition-list dt { font-weight: 700; }
.definition-list dd { margin: 0; color: var(--muted); }
.table-scroll { overflow-x: auto; margin-block: 1rem; border: 1px solid var(--line); border-radius: .45rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .65rem .8rem; vertical-align: top; }
th { background: var(--surface-raised); }
td { border-top: 1px solid var(--line); color: var(--muted); }
td:first-child { color: var(--ink); }
.example-code { padding: .75rem .95rem; border: 1px solid var(--line); border-radius: .4rem; background: #101510; }
.example-code code { white-space: pre-wrap; }
details { margin: .75rem 0 0; padding: .6rem .82rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--surface); }
summary { font-weight: 650; cursor: pointer; }
@media (max-width: 62rem) {
.shell { width: min(100% - 3rem, 82rem); }
.hero { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 1.45rem; }
.hero h1 { font-size: clamp(2.4rem, 5.55vw, 3.8rem); }
.architecture-layout { grid-template-columns: 1fr; }
.command-line { align-items: flex-start; }
}
@media (max-width: 46rem) {
html { scroll-padding-top: 7.5rem; }
.shell { width: min(100% - 2rem, 82rem); }
.header-inner { grid-template-columns: 1fr 1fr; gap: .4rem 1rem; padding-block: .58rem; }
.site-header nav { grid-row: 2; grid-column: 1/-1; justify-content: start; gap: 1.15rem; overflow-x: auto; padding-block: .24rem .14rem; }
.hero { grid-template-columns: 1fr; gap: 2.25rem; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.2rem); }
.hero-intro { max-width: 42rem; }
.overview-grid, .game-grid, .setup-steps { grid-template-columns: 1fr; }
.overview-grid article { border: 0; padding: 1.08rem 0; }
.overview-grid article:first-child { border-left: 0; }
.overview-grid article + article { border-top: 1px solid var(--line); }
.overview-grid p { max-width: none; }
.gallery-caption { align-items: flex-start; flex-direction: column; }
.game-image { min-height: 8.2rem; }
.architecture-row { gap: .54rem; }
.node { padding: .6rem .48rem; min-height: 5.9rem; }
.node:not(:last-child)::after { width: .56rem; }
.node strong { font-size: .93rem; overflow-wrap: anywhere; }
.node span { font-size: .81rem; }
.footer-inner > .text-link { margin-left: 0; }
.guide-header { padding-block: 2.65rem 1.35rem; }
.guide-grid { grid-template-columns: 1fr; gap: 1.4rem; }
.guide-nav { position: static; display: flex; flex-wrap: wrap; gap: .3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.guide-nav a { border: 1px solid var(--line); font-size: .875rem; }
.definition-list div { grid-template-columns: 1fr; gap: .25rem; }
}
@media (max-width: 27rem) {
.setup-steps li { padding-left: 2.1rem; }
.command-line { gap: .4rem; padding-inline: .55rem; }
.command-line code { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
}