221 lines
7.8 KiB
CSS
221 lines
7.8 KiB
CSS
/* SERUBI base: tokens, fonts, reset, shared controls. */
|
|
@font-face {
|
|
font-family: "Archivo";
|
|
src: url("../fonts/archivo-var.woff2") format("woff2");
|
|
font-weight: 100 900;
|
|
font-stretch: 62% 125%;
|
|
font-display: swap;
|
|
}
|
|
@font-face {
|
|
font-family: "JetBrains Mono";
|
|
src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
|
|
font-weight: 400 700;
|
|
font-display: swap;
|
|
}
|
|
|
|
:root {
|
|
color-scheme: light;
|
|
--font-ui: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
|
|
--font-tape: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
|
|
|
|
/* desk (page ground) */
|
|
--desk: #e7ebf2;
|
|
--desk-2: #dde3ec;
|
|
--desk-ink: #14223b;
|
|
--desk-muted: #4b576c;
|
|
--desk-line: #c6cfdc;
|
|
|
|
/* machine body */
|
|
--machine: #0b2e66;
|
|
--machine-hi: #154290;
|
|
--machine-lo: #072153;
|
|
--machine-ink: #eef3fb;
|
|
--machine-muted: #aebfdb;
|
|
--machine-line: rgba(174, 191, 219, .22);
|
|
--key: #143c7c;
|
|
--key-hi: #1c4a93;
|
|
--key-edge: #061a40;
|
|
--key-ink: #e9f0fc;
|
|
|
|
/* gold (Bank Papua accent) */
|
|
--gold: #f2c14e;
|
|
--gold-hi: #f8d377;
|
|
--gold-edge: #a87b14;
|
|
--gold-ink: #241800;
|
|
|
|
/* display */
|
|
--display: #04132f;
|
|
--display-ink: #ffe6a0;
|
|
--display-dim: #c9b98c;
|
|
--display-line: rgba(255, 230, 160, .16);
|
|
|
|
/* paper */
|
|
--paper: #fffef8;
|
|
--paper-ink: #1a2130;
|
|
--paper-muted: #545d70;
|
|
--paper-rule: #c3c7cf;
|
|
--paper-accent: #0b2e66;
|
|
--paper-hilite: #fff2c4;
|
|
--bar: #0b2e66;
|
|
--bar-dep: #9aa3b3;
|
|
|
|
/* states */
|
|
--good: #0a7140;
|
|
--bad: #b42318;
|
|
--warn: #7a5000;
|
|
--warn-bg: #fff3d6;
|
|
--focus: #f2c14e;
|
|
--focus-on-light: #0b57d0;
|
|
|
|
--radius-s: 8px;
|
|
--radius-m: 12px;
|
|
--radius-l: 22px;
|
|
--ease-out: cubic-bezier(.16, 1, .3, 1);
|
|
--shadow-machine: 0 1px 0 rgba(255,255,255,.14) inset, 0 -2px 0 rgba(0,0,0,.25) inset, 0 28px 50px -24px rgba(4, 18, 48, .6), 0 3px 8px rgba(4, 18, 48, .18);
|
|
--shadow-paper: 0 18px 30px -18px rgba(20, 34, 59, .45), 0 2px 4px rgba(20, 34, 59, .08);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:not([data-theme="light"]) {
|
|
color-scheme: dark;
|
|
--desk: #070c17;
|
|
--desk-2: #0c1424;
|
|
--desk-ink: #e4e9f3;
|
|
--desk-muted: #9ba7bc;
|
|
--desk-line: #1f2a40;
|
|
--machine: #0c2a5c;
|
|
--machine-hi: #12387a;
|
|
--machine-lo: #071a40;
|
|
--key: #11346d;
|
|
--key-hi: #184083;
|
|
--display: #020a1c;
|
|
--paper: #ebe7db;
|
|
--paper-ink: #191f2b;
|
|
--paper-muted: #4c5464;
|
|
--paper-rule: #b4b1a6;
|
|
--paper-hilite: #f4e3ad;
|
|
--shadow-machine: 0 1px 0 rgba(255,255,255,.08) inset, 0 -2px 0 rgba(0,0,0,.3) inset, 0 28px 50px -24px rgba(0,0,0,.8), 0 3px 8px rgba(0,0,0,.4);
|
|
--shadow-paper: 0 18px 30px -18px rgba(0,0,0,.7), 0 2px 4px rgba(0,0,0,.3);
|
|
}
|
|
}
|
|
:root[data-theme="dark"] {
|
|
color-scheme: dark;
|
|
--desk: #070c17;
|
|
--desk-2: #0c1424;
|
|
--desk-ink: #e4e9f3;
|
|
--desk-muted: #9ba7bc;
|
|
--desk-line: #1f2a40;
|
|
--machine: #0c2a5c;
|
|
--machine-hi: #12387a;
|
|
--machine-lo: #071a40;
|
|
--key: #11346d;
|
|
--key-hi: #184083;
|
|
--display: #020a1c;
|
|
--paper: #ebe7db;
|
|
--paper-ink: #191f2b;
|
|
--paper-muted: #4c5464;
|
|
--paper-rule: #b4b1a6;
|
|
--paper-hilite: #f4e3ad;
|
|
--shadow-machine: 0 1px 0 rgba(255,255,255,.08) inset, 0 -2px 0 rgba(0,0,0,.3) inset, 0 28px 50px -24px rgba(0,0,0,.8), 0 3px 8px rgba(0,0,0,.4);
|
|
--shadow-paper: 0 18px 30px -18px rgba(0,0,0,.7), 0 2px 4px rgba(0,0,0,.3);
|
|
}
|
|
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
background: var(--desk);
|
|
color: var(--desk-ink);
|
|
font-family: var(--font-ui);
|
|
font-size: 1rem;
|
|
line-height: 1.5;
|
|
font-variant-numeric: tabular-nums;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
|
|
p { margin: 0; }
|
|
button, input, select, textarea { font: inherit; color: inherit; }
|
|
button { cursor: pointer; }
|
|
a { color: inherit; text-underline-offset: .2em; }
|
|
::selection { background: var(--gold); color: var(--gold-ink); }
|
|
:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 2px; border-radius: 4px; }
|
|
code { font-family: var(--font-tape); font-size: .9em; }
|
|
|
|
.icon { width: 1.15em; height: 1.15em; flex: none; }
|
|
|
|
.skip-link {
|
|
position: absolute; left: 12px; top: -60px; z-index: 50;
|
|
background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: var(--radius-s);
|
|
font-weight: 700; text-decoration: none;
|
|
}
|
|
.skip-link:focus { top: 12px; }
|
|
|
|
.visually-hidden {
|
|
position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
|
|
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
|
|
}
|
|
|
|
/* ---- Bank Papua logo ---- */
|
|
.logo-wrap { display: inline-flex; line-height: 0; }
|
|
.logo { display: block; height: 36px; width: auto; max-width: 100%; }
|
|
.logo-auto .logo-white { display: none; }
|
|
:root[data-theme="dark"] .logo-auto .logo-color { display: none; }
|
|
:root[data-theme="dark"] .logo-auto .logo-white { display: block; }
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:not([data-theme="light"]) .logo-auto .logo-color { display: none; }
|
|
:root:not([data-theme="light"]) .logo-auto .logo-white { display: block; }
|
|
}
|
|
@media (max-width: 419px) { .topbar .logo { height: 29px; } .topbar .brand { gap: 4px 8px; } }
|
|
|
|
/* ---- top bar ---- */
|
|
.topbar {
|
|
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
|
|
max-width: 1200px; margin: 0 auto;
|
|
padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left));
|
|
}
|
|
.brand { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; text-decoration: none; min-height: 44px; align-items: center; }
|
|
.brand-prog {
|
|
font-weight: 700; font-size: .78rem; letter-spacing: .14em;
|
|
padding: 3px 8px 2px; border-radius: 5px; background: var(--gold); color: var(--gold-ink);
|
|
}
|
|
.topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
|
|
@media (max-width: 479px) { .topbar-actions .text-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .topbar-actions .text-btn { padding: 0; } }
|
|
.icon-btn, .text-btn {
|
|
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
|
min-width: 44px; min-height: 44px; padding: 0 12px;
|
|
border: 1px solid var(--desk-line); background: transparent; color: var(--desk-ink);
|
|
border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .92rem;
|
|
transition: background-color .18s, border-color .18s;
|
|
}
|
|
.icon-btn { padding: 0; }
|
|
.icon-btn:hover, .text-btn:hover { background: var(--desk-2); border-color: var(--desk-muted); }
|
|
.icon-sun { display: none; }
|
|
:root[data-theme="dark"] .icon-sun { display: block; }
|
|
:root[data-theme="dark"] .icon-moon { display: none; }
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:not([data-theme="light"]) .icon-sun { display: block; }
|
|
:root:not([data-theme="light"]) .icon-moon { display: none; }
|
|
}
|
|
|
|
/* ---- keys (machine buttons) ---- */
|
|
.key {
|
|
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
|
min-height: 48px; padding: 0 16px; border-radius: 10px;
|
|
border: 0; box-shadow: inset 0 -3px 0 var(--key-edge);
|
|
background: var(--key); color: var(--key-ink); font-weight: 650; font-size: .95rem;
|
|
transition: background-color .15s, transform .08s, box-shadow .08s;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.key:hover { background: var(--key-hi); }
|
|
.key:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 var(--key-edge); }
|
|
.key-gold { background: var(--gold); color: var(--gold-ink); box-shadow: inset 0 -3px 0 var(--gold-edge); }
|
|
.key-gold:active { box-shadow: inset 0 -1px 0 var(--gold-edge); }
|
|
.key-gold:hover { background: var(--gold-hi); }
|
|
.key:disabled { opacity: .55; cursor: not-allowed; transform: none; }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
|
|
}
|