Files
hearth/nixos/system/hectic-lab/static/wowmine/assets/site.css
T
2026-11-17 20:28:58 +00:00

218 lines
14 KiB
CSS

@font-face {
font-family: "Golos Text";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("./golos-regular.ttf") format("truetype");
}
@font-face {
font-family: "Golos Text";
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("./golos-semibold.ttf") format("truetype");
}
@font-face {
font-family: "Russo One";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("./russo-one.ttf") format("truetype");
}
:root {
color-scheme: dark;
--bg: #141a15;
--surface: #202921;
--inset: #101610;
--ink: #f4f3e7;
--muted: #bec9b8;
--line: #394638;
--grass: #a7d754;
--grass-hover: #b9e66c;
--action-ink: #17250d;
--focus: #e8b86c;
--hero-ink: #fffdf0;
--hero-muted: #e5e9d7;
--body-font: "Golos Text", sans-serif;
--heading-font: "Russo One", sans-serif;
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-6: 24px;
--space-8: 32px;
--space-12: 48px;
--space-16: 64px;
--space-20: 80px;
--space-24: 96px;
--ease: 140ms ease-out;
--gutter: clamp(24px, 4vw, 48px);
scroll-behavior: smooth;
scroll-padding-top: var(--space-8);
scrollbar-color: var(--line) var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body-font); }
::selection { background: var(--grass); color: var(--action-ink); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 400; line-height: 1.2; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.02em; }
h3 { font-size: clamp(24px, 2.1vw, 28px); }
code { font-family: ui-monospace, "Cascadia Code", monospace; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.container { width: min(100% - var(--gutter) * 2, 1200px); margin-inline: auto; }
.section { padding-block: var(--space-24); }
.icon-sprite { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.icon, .world-icon { inline-size: 24px; block-size: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.skip-link { position: fixed; top: var(--space-4); left: var(--space-4); z-index: 3; padding: var(--space-3) var(--space-4); background: var(--grass); color: var(--action-ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { min-block-size: 88px; display: flex; align-items: center; gap: var(--space-8); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand-block { inline-size: 36px; block-size: 40px; flex: 0 0 auto; }
.brand-name { font-family: var(--heading-font); font-size: 20px; letter-spacing: -.02em; line-height: 1.1; }
.brand-name span { display: block; font-size: 24px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: var(--space-8); margin-inline-start: auto; }
.main-nav a { display: flex; align-items: center; min-block-size: 48px; text-decoration: none; font-size: 14px; font-weight: 600; transition: color var(--ease); }
.main-nav a:hover { color: var(--muted); text-decoration: underline; }
.hero { --focus: #e8b86c; position: relative; isolation: isolate; overflow: hidden; color: var(--hero-ink); background: #101a10; }
.hero-scene { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(9 20 10 / 88%), rgb(9 20 10 / 68%) 38%, rgb(9 20 10 / 9%) 78%), linear-gradient(0deg, rgb(9 20 10 / 48%), transparent 45%); }
.hero-inner { min-block-size: 640px; padding-block: var(--space-24) var(--space-24); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
h1 { max-inline-size: 800px; font-size: clamp(36px, 5.3vw, 84px); line-height: 1.09; letter-spacing: -.02em; text-shadow: 0 4px 0 rgb(9 20 10 / 75%); }
h1 span { display: block; }
.hero-lead { max-inline-size: 51ch; margin-block-start: var(--space-6); color: var(--hero-muted); font-size: 18px; line-height: 1.75; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); margin-block-start: var(--space-8); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: var(--space-3); min-block-size: 56px; padding: var(--space-4) var(--space-6); border: 2px solid transparent; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background var(--ease), transform var(--ease), box-shadow var(--ease); }
.button-primary { background: var(--grass); color: var(--action-ink); border-color: rgb(23 37 13 / 28%); box-shadow: inset 0 3px 0 rgb(255 255 255 / 26%), 0 5px 0 #506c26; }
.button-primary:hover { background: var(--grass-hover); transform: translateY(-2px); box-shadow: inset 0 3px 0 rgb(255 255 255 / 26%), 0 7px 0 #506c26; }
.button-primary:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgb(255 255 255 / 26%), 0 1px 0 #506c26; }
.hero-guide { display: inline-flex; align-items: center; gap: var(--space-3); min-block-size: 48px; text-decoration: none; font-weight: 600; }
.hero-guide:hover { text-decoration: underline; }
.hero-guide .icon { inline-size: 20px; }
.hero-note { margin-block-start: var(--space-6); color: var(--hero-muted); font-size: 14px; }
.hero-scroll { position: absolute; inset-block-end: var(--space-6); inset-inline-end: var(--gutter); display: flex; align-items: center; gap: var(--space-3); min-block-size: 44px; color: var(--hero-ink); text-decoration: none; font-size: 14px; }
.hero-scroll .icon { transform: rotate(90deg); inline-size: 18px; }
.hero-scroll:hover span { text-decoration: underline; }
.connection { background: var(--surface); border-bottom: 1px solid var(--line); }
.connection-inner { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-6); padding-block: var(--space-8) var(--space-12); }
.connection-label { display: flex; align-items: center; gap: var(--space-4); }
.signal-mark { inline-size: 12px; block-size: 12px; background: var(--muted); box-shadow: 6px -6px 0 var(--muted); margin-inline-end: var(--space-2); }
.connection-title { font-weight: 600; }
.connection-caption { color: var(--muted); font-size: 14px; }
.address-group { display: flex; align-items: center; gap: var(--space-6); min-inline-size: 0; }
#server-address { font-size: 17px; color: var(--ink); }
.button-copy { inline-size: 184px; min-block-size: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); color: var(--ink); background: var(--inset); font-size: 14px; }
.button-copy:hover { background: var(--bg); }
.button-copy:active { transform: translateY(2px); }
.copied-icon { display: none; }
[data-copied="true"] .copy-icon { display: none; }
[data-copied="true"] .copied-icon { display: block; }
.copy-feedback { position: absolute; inset-inline-end: 0; inset-block-end: var(--space-3); max-inline-size: 100%; min-block-size: 23px; color: var(--muted); font-size: 14px; }
.world-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-24); }
.section-intro > p { margin-block-start: var(--space-6); max-inline-size: 48ch; color: var(--muted); font-size: 18px; }
.world-list { display: grid; gap: var(--space-8); align-content: center; }
.world-entry { display: flex; gap: var(--space-6); }
.world-entry + .world-entry { padding-block-start: var(--space-8); border-top: 1px solid var(--line); }
.world-icon { inline-size: 32px; block-size: 32px; color: var(--muted); }
.world-entry p { margin-block-start: var(--space-3); color: var(--muted); max-inline-size: 48ch; }
.setup-section { background: var(--inset); }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--space-24); margin-block-start: var(--space-12); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); }
.steps li { display: flex; align-items: flex-start; gap: var(--space-6); }
.step-number { flex: 0 0 48px; display: grid; place-items: center; block-size: 48px; color: var(--muted); border: 1px solid var(--line); font-family: var(--heading-font); font-size: 20px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 24px; }
.steps p { margin-block-start: var(--space-3); max-inline-size: 63ch; color: var(--muted); }
.steps a, .questions a { color: var(--ink); }
.steps a:hover, .questions a:hover { text-decoration-thickness: 2px; }
.requirements { align-self: start; padding: var(--space-8); background: var(--surface); }
.requirements dl { margin-block: var(--space-6); }
.requirements dl > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--line); font-size: 14px; }
.requirements dt { color: var(--muted); }
.requirements dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.requirements > p { color: var(--muted); font-size: 14px; }
.help-layout { display: grid; grid-template-columns: 1fr 1.65fr; gap: var(--space-24); }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-block-size: 80px; padding-block: var(--space-6); cursor: pointer; font-size: 18px; font-weight: 600; line-height: 1.5; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary:hover { color: var(--muted); }
.questions summary .icon { transition: transform var(--ease); }
.questions details[open] summary .icon { transform: rotate(45deg); }
.questions details > p { max-inline-size: 65ch; padding-block-end: var(--space-6); padding-inline-end: var(--space-12); color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-12); background: var(--inset); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: var(--space-8); }
.footer-brand { display: flex; flex-direction: column; min-block-size: 48px; text-decoration: none; font-family: var(--heading-font); font-size: 20px; }
.footer-brand span { margin-block-start: var(--space-2); color: var(--muted); font: 400 14px/1.65 var(--body-font); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-6); font-size: 14px; }
.footer-links a { display: flex; align-items: center; min-block-size: 48px; }
.footer-inner > p { flex-basis: 100%; color: var(--muted); font-size: 14px; }
@media (min-width: 1600px) {
.hero-inner { min-block-size: 720px; }
}
@media (max-width: 960px) {
.world-layout, .setup-layout, .help-layout { gap: var(--space-12); }
.world-layout { grid-template-columns: 1fr 1fr; }
.connection-label { flex-basis: 100%; }
.address-group { inline-size: 100%; justify-content: space-between; }
.copy-feedback { inset-inline-start: 0; }
}
@media (max-width: 700px) {
.header-inner { min-block-size: 80px; gap: var(--space-4); }
.brand-block { inline-size: 28px; block-size: 32px; }
.brand-name { font-size: 16px; }
.brand-name span { font-size: 19px; }
.main-nav { gap: 0; }
.main-nav a { font-size: 14px; }
.main-nav .nav-world, .main-nav .nav-help { display: none; }
.theme-toggle { inline-size: 44px; block-size: 44px; flex: 0 0 auto; }
.hero-inner { min-block-size: 620px; padding-block: var(--space-16) var(--space-24); }
.hero-scene { object-position: 61% center; }
.hero::before { background: linear-gradient(90deg, rgb(9 20 10 / 88%), rgb(9 20 10 / 60%)), linear-gradient(0deg, rgb(9 20 10 / 30%), transparent); }
h1 { font-size: clamp(34px, 7.7vw, 48px); }
.hero-lead { margin-block-start: var(--space-6); font-size: 16px; }
.hero-actions { gap: var(--space-4) var(--space-6); margin-block-start: var(--space-8); }
.button-primary { min-block-size: 56px; }
.hero-guide { font-size: 14px; }
.hero-note { font-size: 14px; }
.hero-scroll { inset-inline-start: var(--gutter); inset-inline-end: auto; font-size: 14px; }
.connection-inner { gap: var(--space-6); padding-block: var(--space-8) 52px; }
.address-group { gap: var(--space-3); }
#server-address { font-size: 14px; }
.button-copy { inline-size: 48px; flex: 0 0 48px; padding: var(--space-3); }
.button-copy span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.copy-feedback { font-size: 14px; line-height: 1.5; }
.section { padding-block: var(--space-16); }
.world-layout, .setup-layout, .help-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
.section-intro > p { font-size: 16px; }
.world-entry { gap: var(--space-4); }
.world-entry h3 { font-size: 26px; }
.world-icon { inline-size: 28px; block-size: 28px; }
.setup-layout { margin-block-start: var(--space-8); }
.steps li { gap: var(--space-4); }
.step-number { flex-basis: 40px; block-size: 40px; font-size: 18px; }
.steps h3 { font-size: 24px; }
.requirements { padding: var(--space-6); }
.questions summary { font-size: 16px; gap: var(--space-4); }
.questions details > p { padding-inline-end: 0; }
.footer-inner { gap: var(--space-6); }
.footer-links { gap: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) {
:root { scroll-behavior: auto; }
*, *::before, *::after { transition: none !important; }
.button-primary:hover, .button-primary:active, .button-copy:active, .theme-toggle:active { transform: none; }
}