html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* MazenOS in the look of Mac OS 8/9 "Platinum": grey bevelled windows with
   pinstriped title bars, lavender folders and scroll thumbs, Charcoal-style type.
   Icons: Mac OS 9 system icons (MIT, github.com/bearz314/MacOS9-icons).
   Fonts: ChicagoFLF (public domain), ChiKareGo2 and FindersKeepers (via system.css, MIT). */
@font-face { font-family: 'Chicago'; src: url(fonts/ChicagoFLF.woff2) format('woff2'); }
@font-face { font-family: 'ChiKareGo'; src: url(fonts/ChiKareGo2.woff2) format('woff2'); }
@font-face { font-family: 'Geneva9'; src: url(fonts/FindersKeepers.woff2) format('woff2'); }

:root {
  --ui: 'Chicago', 'ChiKareGo', system-ui, sans-serif;
  --small: 'Geneva9', 'ChiKareGo', system-ui, sans-serif;
  --doc: 'Helvetica Neue', Helvetica, Arial, sans-serif;   /* SimpleText's Geneva stand-in, readable at size */
  --plat: #dddddd; --plat-hi: #ffffff; --plat-lo: #888888; --plat-dk: #555555;
  --desk: #5a5f9c; --sel: #3333a0; --lav: #ccccff;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--desk); color: #000; font: 12px/1.4 var(--ui);
  -webkit-font-smoothing: none; user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; }
a { color: #0000cc; }
:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }

/* The Mac OS default desktop: a soft blue-violet with a fine pattern. */
#desktop { position: absolute; top: 22px; right: 0; bottom: 0; left: 0; background-color: var(--desk);
  background-image: radial-gradient(#ffffff14 1px, #0000 1.3px), linear-gradient(160deg, #6a70ad, #4d5190); background-size: 3px 3px, 100% 100%; }
.scan { position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 999; display: none;
  background: repeating-linear-gradient(0deg, #0000 0 2px, #00000012 2px 3px), radial-gradient(ellipse, #0000 62%, #0006 100%); }
body.in-room .scan { display: block; }

/* ---------- boot ---------- */
#boot { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; background: var(--desk); display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .35s; }
#boot .happy img { width: 64px; height: 64px; image-rendering: auto; }
#boot .welcome { background: var(--plat); border: 1px solid #000; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--plat-lo), 2px 2px 0 #0006;
  padding: 18px 34px 16px; display: grid; gap: 12px; justify-items: center; font-size: 15px; }
#boot .progress { width: 220px; height: 12px; border: 1px solid #000; background: #fff; box-shadow: inset 1px 1px 0 var(--plat-lo); }
#boot .progress i { display: block; height: 100%; width: 0; background: linear-gradient(#b8b8ff, #6060c0); animation: boot 1.3s steps(14) forwards; }
#boot.done { opacity: 0; pointer-events: none; }
@keyframes boot { to { width: 100%; } }

/* ---------- menu bar ---------- */
#menubar { position: fixed; top: 0; right: 0; bottom: auto; left: 0; height: 22px; z-index: 50; display: flex; align-items: center; gap: 0; padding: 0 8px;
  background: linear-gradient(#f4f4f4, #d8d8d8); border-bottom: 1px solid #000; font-size: 12px; }
#menubar > button { padding: 0 10px; height: 100%; }
#menubar > button:hover, #menubar > button.open { background: var(--sel); color: #fff; }
#menubar .logo { font-size: 15px; color: #3a3aa6; padding: 0 12px 0 6px; }
#menubar .logo:hover { color: #fff; }
#clock { margin-left: auto; padding: 0 10px; }
#appmenu { display: flex; align-items: center; gap: 6px; padding: 0 8px; height: 100%; border-left: 1px solid #aaa; }
#appmenu img { width: 16px; height: 16px; }
.menu { position: fixed; z-index: 60; min-width: 210px; background: var(--plat); border: 1px solid #000; box-shadow: 2px 2px 0 #0005, inset 1px 1px 0 #fff;
  padding: 3px 0; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 2px 20px; }
.menu button img { width: 16px; height: 16px; margin-left: -12px; }
.menu button:hover { background: var(--sel); color: #fff; }
.menu hr { border: 0; border-top: 1px solid var(--plat-lo); border-bottom: 1px solid #fff; margin: 3px 0; }
.menu .dim { color: #999; pointer-events: none; }

/* ---------- desktop icons ---------- */
.icons { position: absolute; top: 10px; right: 12px; display: grid; gap: 10px; justify-items: center; }
.icon { width: 92px; display: grid; justify-items: center; gap: 2px; text-align: center; font: 16px/1.05 var(--small); color: #000; }
.icon img { width: 40px; height: 40px; filter: drop-shadow(1px 1px 0 #0003); }
.icons .icon span { color: #fff; text-shadow: 1px 1px 0 #000; padding: 0 3px; }
.icon.sel img, .icon:focus-visible img { filter: brightness(.55) sepia(1) hue-rotate(200deg) saturate(3); }
.icon.sel span, .icon:focus-visible span { background: #000; color: #fff !important; text-shadow: none; }

/* ---------- windows: Platinum ---------- */
.win { position: absolute; background: var(--plat); border: 1px solid #000; display: flex; flex-direction: column; min-width: 240px;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--plat-lo), 2px 2px 0 #0004; animation: zoom .16s steps(4) both; padding: 0 4px 4px; }
.win .bar { position: relative; flex: none; height: 20px; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; }
.win.active .bar { background: repeating-linear-gradient(#0000 0 1px, #9a9a9a 1px 2px) 0 5px / 100% 11px no-repeat; }
.win .bar b { position: relative; padding: 0 8px; background: var(--plat); font-weight: 400; font-size: 12px; white-space: nowrap; }
.win:not(.active) .bar b { color: #777; }
.win .close, .win .zoombox, .win .shade { position: absolute; top: 4px; width: 12px; height: 12px; background: linear-gradient(135deg, #fff, #bbb);
  border: 1px solid #000; box-shadow: inset 1px 1px 0 #fff; }
.win .close { left: 6px; }
.win .zoombox { right: 24px; } .win .zoombox::after { content: ''; position: absolute; top: 2px; right: 4px; bottom: 4px; left: 2px; border: 1px solid #000; }
.win .shade { right: 6px; } .win .shade::after { content: ''; position: absolute; left: 1px; right: 1px; top: 4px; height: 2px; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.win:not(.active) .close, .win:not(.active) .zoombox, .win:not(.active) .shade { visibility: hidden; }
.win .close:active { background: #888; }
.win .body { flex: 1; overflow: auto; padding: 12px 14px; user-select: text; background: #fff; border: 1px solid var(--plat-dk);
  box-shadow: inset 1px 1px 0 var(--plat-lo); }
.win .body::-webkit-scrollbar { width: 16px; background: #e8e8e8; border-left: 1px solid #000; }
.win .body::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #d8d8ff, #9999dd); border: 1px solid #000; box-shadow: inset 1px 1px 0 #fff; }
.win .status { flex: none; font: 16px/1 var(--small); padding: 3px 6px 0; display: flex; justify-content: space-between; color: #222; }
.win.shaded .body, .win.shaded .status { display: none; }
.win.shaded { height: auto !important; }
@keyframes zoom { from { transform: scale(.35); opacity: 0; } }

.folder { display: flex; flex-wrap: wrap; gap: 14px 6px; align-content: flex-start; }
.folder .icon span { background: none; }
.doc { font: 13px/1.5 var(--doc); }
.doc h1 { font: 400 20px/1.1 var(--ui); margin: 0 0 4px; }
.doc .hook { font-weight: 700; margin: 0 0 10px; }
.doc .stat { display: inline-block; border: 1px solid #000; padding: 4px 10px; margin: 0 0 10px; background: #ffffe8; box-shadow: 1px 1px 0 #0004; }
.doc .stat b { font: 18px/1 var(--ui); margin-right: 8px; }
.doc ul { padding-left: 18px; margin: 0 0 12px; }
.doc li { margin-bottom: 5px; }
.doc .tags { color: #555; font-size: 12px; }
.doc .buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pbtn { display: inline-block; font: 12px var(--ui); color: #000; text-decoration: none; padding: 3px 16px; border: 1px solid #000; border-radius: 4px;
  background: linear-gradient(#fff, #d4d4d4); box-shadow: inset 1px 1px 0 #fff; cursor: pointer; }
.pbtn.default { box-shadow: 0 0 0 2px var(--plat), 0 0 0 3px #000, inset 1px 1px 0 #fff; }
.pbtn:active { background: linear-gradient(#999, #bbb); color: #fff; }
.cert img { width: 100%; border: 1px solid #000; display: block; }
.readme-hero { display: block; width: 100%; margin: 0 0 12px; border: 1px solid #000; background: #f5f3ee; }

/* terminal */
.term .body { background: #000; color: #33ff66; font: 13px/1.3 'Chicago', ui-monospace, monospace; padding: 8px 10px; border-color: #000; }
.term .body a { color: #7dfcff; }
.term .line { white-space: pre-wrap; }
.term .prompt { display: flex; gap: 8px; }
.term input { flex: 1; background: none; border: 0; outline: none; color: inherit; font: inherit; caret-color: #33ff66; padding: 0; }

.zoomrect { position: absolute; z-index: 400; border: 1px dotted #000; pointer-events: none; opacity: 0; animation: zr .2s steps(2) both; }
@keyframes zr { 0% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .win { animation: none; } #boot .progress i { animation-duration: .01s; } }

