:root { --silver: #c0c0c0; --navy: #000080; --ink: #171717; --paper: #fffff7; --teal: #397777; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { font: 13px Tahoma, Verdana, sans-serif; color: var(--ink); background: var(--teal); }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
a { color: #000080; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible { outline: 2px dotted #181818; outline-offset: 3px; }
button:disabled { cursor: default; color: #727272; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pixel-icon { width: 36px; height: 36px; flex-shrink: 0; image-rendering: pixelated; overflow: visible; }
.small-icon { width: 20px; height: 20px; }
.bevel, .classic-button { background: var(--silver); border: 2px solid; border-color: #fff #222 #222 #fff; box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf; }
.classic-button { padding: 7px 12px; }
.classic-button:active { border-color: #222 #fff #fff #222; box-shadow: inset 1px 1px #808080; }
.inset { border: 2px solid; border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px #222; }
#desktop { position: absolute; inset: 0 0 38px; padding: 23px 18px; background-image: radial-gradient(#a5c5bb33 .6px, transparent .6px); background-size: 4px 4px; }
.desktop-icons { display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, 94px); grid-auto-columns: 96px; gap: 13px 12px; width: max-content; max-width: 100%; }
.desktop-icon { border: 0; background: transparent; padding: 6px 2px; width: 96px; min-height: 88px; display: flex; align-items: center; justify-content: flex-start; flex-direction: column; gap: 7px; color: white; text-shadow: 1px 1px #173f3f; }
.desktop-icon span { font-size: 12px; line-height: 1.35; text-align: center; max-width: 94px; padding: 2px 3px; }
.desktop-icon:hover span, .desktop-icon:focus-visible span { background: var(--navy); outline: 1px dotted white; }
.desktop-icon:focus-visible { outline-color: white; }
.desktop-icon, .start-item { text-decoration: none; }
.wallpaper-mark { position: absolute; right: 30px; bottom: 62px; color: #255b5b; font: italic 74px/0.93 Georgia, serif; text-align: right; pointer-events: none; letter-spacing: -4px; }
#windows { position: absolute; inset: 0 0 38px; pointer-events: none; }
.window { position: absolute; background: var(--silver); padding: 3px; border: 2px solid; border-color: #fff #242424 #242424 #fff; box-shadow: 3px 3px #163d3d70, inset -1px -1px #808080; pointer-events: auto; display: flex; flex-direction: column; min-width: 280px; max-width: calc(100vw - 30px); max-height: calc(100vh - 138px); }
.window:focus { outline: none; }
.window.about-window { width: 790px; height: 640px; left: max(210px, calc(50% - 300px)); top: max(26px, calc(50% - 340px)); }
.window.content-window { width: 710px; height: 565px; left: max(140px, calc(50% - 320px)); top: 67px; }
.window.inactive .titlebar { background: #808080; }
.titlebar { background: linear-gradient(90deg, #000080, #1668a7); color: #fff; min-height: 29px; display: flex; align-items: center; padding: 3px 3px 3px 5px; gap: 7px; cursor: grab; touch-action: none; }
.titlebar:active { cursor: grabbing; }
.window-title { font-weight: bold; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.window-controls { display: flex; gap: 3px; }
.window-control { padding: 0; width: 23px; height: 22px; font: bold 15px/16px Arial, sans-serif; color: #000; cursor: pointer; }
.window-control[data-action='minimise'] { display: inline-grid; place-items: center; }
.minimise-mark { width: 8px; height: 2px; background: currentColor; }
.titlebar .pixel-icon { width: 18px; height: 18px; }
.window-menubar { display: flex; align-items: center; gap: 1px; padding: 2px 4px; border-bottom: 1px solid #888; min-height: 28px; }
.menu-button { background: none; border: 1px solid transparent; padding: 3px 8px; font-size: 12px; }
.menu-button:hover { border-color: #fff #777 #777 #fff; }
.window-main { min-height: 0; flex: 1; overflow: auto; background: #f5f3e9; }
.statusbar { display: flex; gap: 3px; margin-top: 3px; height: 23px; flex-shrink: 0; }
.statusbar span { padding: 3px 6px; border: 1px solid; border-color: #888 #fff #fff #888; font-size: 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statusbar span:last-child { flex: 0 0 115px; }
.window.maximised { left: 6px !important; top: 6px !important; width: calc(100% - 12px) !important; height: calc(100% - 76px) !important; max-width: none; max-height: none; }
.eyebrow { font: 10px/1.5 Tahoma, sans-serif; letter-spacing: 1.8px; text-transform: uppercase; color: #666; }
.personal-intro { display: grid; grid-template-columns: 156px 1fr; gap: 29px; padding: 29px 30px 21px; }
.portrait { width: 100%; height: 182px; object-fit: cover; object-position: 50% 12%; display: block; }
.portrait-frame { padding: 5px 5px 24px; background: #fff; box-shadow: 1px 2px 0 #0003; transform: rotate(-2deg); position: relative; }
.portrait-frame figcaption { position: absolute; bottom: 7px; left: 0; right: 0; text-align: center; font: 11px 'Courier New', monospace; }
figure { margin: 0; }
.profile-name { font: 38px/1.02 Georgia, serif; letter-spacing: -1.6px; margin: 8px 0 10px; }
.profile-headline { font: 18px/1.35 Georgia, serif; margin: 0 0 10px; max-width: 370px; }
.profile-summary { margin: 0; color: #424242; line-height: 1.65; font-size: 12px; max-width: 370px; }
.profile-location { margin-top: 10px; font-size: 10px; color: #596256; text-align: center; }
.selected-section { margin: 0 30px 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.section-heading h2 { font-size: 11px; font-weight: normal; letter-spacing: 1.5px; text-transform: uppercase; margin: 0; color: #555; }
.text-button { border: 0; background: none; color: #000080; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; font-size: 11px; }
.work-row { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; border: 0; border-top: 1px dotted #a9a9a0; background: none; padding: 11px 0; }
.work-row .pixel-icon { width: 29px; height: 29px; }
.work-row strong { display: block; font-size: 13px; font-weight: normal; }
.work-row small { display: block; color: #777; font-size: 10px; margin-top: 4px; }
.work-row .row-copy { flex: 1; }
.work-row .arrow { font: 19px Georgia, serif; color: #666; padding-right: 3px; }
.work-row:hover, .work-row:focus-visible { background: #e5e7d8; }
.profile-footer { display: flex; gap: 18px; padding: 10px 30px; background: #e9e7de; font: 10px 'Courier New', monospace; color: #555; border-top: 1px solid #d0d0c4; }
.explorer-address { display: flex; align-items: center; gap: 8px; background: var(--silver); padding: 5px 7px; font-size: 11px; }
.explorer-address span:last-child { flex: 1; background: #fff; padding: 4px 7px; }
.explorer-layout { display: grid; grid-template-columns: 180px 1fr; min-height: calc(100% - 35px); }
.explorer-tree { background: #fff; padding: 17px 10px; border-right: 3px ridge #d0d0d0; font-size: 11px; }
.tree-root { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-weight: bold; }
.tree-item { display: flex; gap: 6px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 7px 4px 7px 15px; font-size: 11px; }
.tree-item.current { background: var(--navy); color: white; }
.tree-item:not(.current):hover { background: #e3e3e3; }
.tree-item .pixel-icon, .tree-root .pixel-icon { width: 19px; height: 19px; }
.tree-label { border-top: 1px dotted #aaa; margin: 16px 4px 6px; padding-top: 13px; font-size: 9px; color: #777; letter-spacing: 1px; text-transform: uppercase; }
.directory-main { padding: 25px 28px 20px; background: white; }
.directory-heading { display: grid; grid-template-columns: 1fr 75px; gap: 15px; align-items: start; }
.directory-heading .portrait { height: 84px; border: 1px solid #bbb; padding: 3px; }
.directory-heading h1 { font: 32px Georgia, serif; margin: 5px 0 10px; }
.directory-main > p { font-size: 12px; line-height: 1.7; color: #444; }
.about-copy { font-size: 12px; line-height: 1.7; color: #444; }
.about-copy p { margin: 10px 0; }
.language-note { font-size: 11px; line-height: 1.7; margin-top: 10px; }
summary { cursor: pointer; }
summary:focus-visible { outline: 2px dotted #181818; outline-offset: 3px; }
.skills-index { margin-top: 22px; padding-top: 15px; border-top: 1px solid #ccc; }
.skills-index h2, .work-group h2 { font: 20px/1.3 Georgia, serif; margin: 8px 0 12px; }
.skills-index details { border-bottom: 1px dotted #aaa; }
.skills-index summary { padding: 10px 3px; color: #000080; }
.skills-index .prose { font-size: 12px; }
.skills-index ul { padding-left: 21px; }
.work-group { margin-top: 28px; }
.contact-routes { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; }
.contact-link { display: inline-flex; align-items: center; gap: 10px; }
.contact-link .pixel-icon { width: 25px; height: 25px; }
.directory-lead { display: block; padding: 19px 0 18px; margin: 17px 0 9px; border-top: 2px solid #000080; border-bottom: 1px solid #ccc; }
.directory-lead .eyebrow { color: #000080; }
.directory-lead h2 { font: 23px/1.2 Georgia, serif; margin: 9px 0; }
.directory-lead p { line-height: 1.6; font-size: 12px; margin: 0 0 12px; }
.directory-lead .classic-button { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; }
.directory-link { padding: 10px 0; }
.directory-link .pixel-icon { width: 22px; height: 22px; }
body[data-variant='B'] .about-window { width: 845px; height: 640px; left: max(180px, calc(50% - 335px)); }
body[data-variant='B'] .window-main { background: #fff; }
.notebook-layout { display: grid; grid-template-columns: 1fr 160px; min-height: 100%; }
.notebook-paper { padding: 27px 27px 24px 39px; background-color: #ffffef; background-image: linear-gradient(90deg, transparent 24px, #ce4a4a44 24px, #ce4a4a44 25px, transparent 25px); }
.notebook-date { font: 10px 'Courier New', monospace; color: #727363; }
.notebook-paper h1 { font: 34px/1.1 Georgia, serif; letter-spacing: -1px; margin: 22px 0 15px; }
.notebook-paper .lead { font: italic 20px/1.45 Georgia, serif; margin: 0 0 15px; }
.notebook-prose { font: 14px/1.75 Georgia, serif; }
.notebook-prose p { margin: 0 0 13px; }
.notebook-signature { font: italic 22px Georgia, serif; margin: 16px 0 10px; }
.notebook-margin { background: #e4e6d7; padding: 24px 13px; border-left: 1px solid #c5c6b6; }
.notebook-margin .portrait-frame { margin: 0 3px 25px; padding-bottom: 18px; transform: rotate(3deg); }
.notebook-margin .portrait { height: 130px; }
.notebook-margin figcaption { font-size: 9px; bottom: 5px; }
.notebook-margin .eyebrow { font-size: 9px; }
.margin-link { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; border-bottom: 1px dotted #a1a590; background: none; padding: 12px 0; width: 100%; font-size: 10px; line-height: 1.4; }
.margin-link .pixel-icon { width: 24px; height: 24px; }
.margin-link:hover { text-decoration: underline; }
body[data-variant='C'] .about-window { width: 710px; height: 590px; left: max(225px, calc(50% - 270px)); }
.document { padding: 29px 35px 38px; background: #fffef8; min-height: 100%; }
.document h1 { font: 30px/1.15 Georgia, serif; margin: 10px 0 12px; letter-spacing: -.8px; }
.document-summary { font: 17px/1.5 Georgia, serif; color: #4e5555; margin-bottom: 20px; }
.document-role { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #777; padding: 0 0 20px; border-bottom: 1px solid #ccc; }
.prose { font-size: 14px; line-height: 1.75; }
.prose h2 { font: 22px/1.3 Georgia, serif; margin: 25px 0 10px; }
.prose li { margin-bottom: 7px; }
.prose img { display: block; max-width: 100%; height: auto; margin: 15px 0; }
.instagram-button { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 16px; min-height: 64px; color: #211b35; background: #c0c0c0; border: 2px solid; border-color: #fff #242424 #242424 #fff; box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf, 3px 3px #29243955; font: bold 13px Tahoma, Verdana, sans-serif; text-decoration: none; }
.instagram-button:hover { background: #d8d3e8; }
.instagram-button:active { border-color: #242424 #fff #fff #242424; box-shadow: inset 1px 1px #808080; transform: translate(1px, 1px); }
.instagram-button .pixel-icon { width: 42px; height: 42px; image-rendering: pixelated; }
.instagram-arrow { margin-left: 8px; font-size: 18px; }
.work-directory { padding: 24px 28px; background: #fff; min-height: 100%; }
.work-directory h1 { font: 30px Georgia, serif; margin: 5px 0 14px; }
.work-directory > p { color: #606060; font-size: 12px; line-height: 1.6; }
.work-directory .work-row { padding: 18px 0; }
.work-directory .work-row small { font-size: 11px; line-height: 1.5; }
.empty-note { padding: 20px; background: #ffffdf; border: 1px solid #d8d8b0; line-height: 1.6; }
#taskbar { position: fixed; bottom: 0; left: 0; width: 100%; height: 38px; background: var(--silver); border-top: 2px solid #fff; padding: 3px 4px; display: flex; align-items: center; gap: 5px; z-index: 9000; }
.start-button { display: flex; align-items: center; gap: 6px; font-weight: bold; padding: 2px 8px; height: 30px; }
.start-button .pixel-icon { width: 22px; height: 22px; }
.task-divider { height: 25px; width: 3px; border-left: 1px solid #777; border-right: 1px solid #eee; margin: 0 3px; }
.tasks { display: flex; gap: 4px; flex: 1; overflow: hidden; }
.task-button { height: 29px; width: 166px; flex-shrink: 1; min-width: 45px; padding: 3px 7px; display: flex; align-items: center; gap: 6px; text-align: left; }
.task-button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.task-button .pixel-icon { width: 16px; height: 16px; }
.task-button.active { border-color: #333 #fff #fff #333; background: #dcdcdc; font-weight: bold; }
.task-clock { padding: 6px 9px; font-size: 10px; white-space: nowrap; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }
#start-menu { position: fixed; bottom: 38px; left: 3px; width: 240px; max-height: calc(100% - 42px); overflow-y: auto; background: var(--silver); border: 2px solid; border-color: white #222 #222 white; padding: 4px 4px 4px 33px; z-index: 9100; box-shadow: 3px 3px #0005; }
#start-menu::before { content: 'Nobel Rimal'; position: absolute; left: 2px; top: 2px; bottom: 2px; width: 27px; background: #000080; color: #ccc; writing-mode: vertical-rl; transform: rotate(180deg); padding: 8px 4px; font-weight: bold; font-size: 16px; }
.start-item { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 10px; text-align: left; font-size: 12px; color: inherit; }
.start-item:hover { color: white; background: var(--navy); }
.start-item .pixel-icon { width: 23px; height: 23px; }
#prototype-controls { position: fixed; bottom: 53px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 11px; color: #fff; background: #1b2530; border: 1px solid #ffffff30; border-radius: 40px; box-shadow: 0 4px 18px #0004; z-index: 10000; font: 11px/1.3 Tahoma, sans-serif; white-space: nowrap; }
.preview-badge { font: 8px Tahoma, sans-serif; letter-spacing: 1px; color: #afb9c3; }
.variant-label { min-width: 132px; text-align: center; }
.variant-label strong { display: block; font-size: 11px; }
.variant-label small { font-size: 8px; color: #bbc4ce; }
.switch-button, .phone-button { border: 1px solid #ffffff50; background: #ffffff0b; color: white; border-radius: 50%; min-height: 29px; min-width: 29px; padding: 3px; }
.switch-button:hover, .phone-button:hover { background: #ffffff24; }
.switch-button:focus-visible, .phone-button:focus-visible { outline-color: white; }
.phone-button { border-radius: 14px; font-size: 10px; padding: 5px 10px; margin-left: 3px; }
.state-label { color: #bbc4ce; font: 8px Tahoma, sans-serif; }
.phone-shell { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #273332; padding-bottom: 90px; z-index: 9500; }
.phone-shell iframe { width: 390px; height: min(720px, calc(100vh - 115px)); border: 7px solid #111; border-radius: 24px; box-shadow: 0 10px 30px #0006; background: var(--teal); }
body.embedded #prototype-controls { display: none; }
::-webkit-scrollbar { width: 16px; height: 16px; background: #dedede; }
::-webkit-scrollbar-thumb { background: #c0c0c0; border: 2px solid; border-color: white #222 #222 white; }
@media (min-width: 701px) and (max-width: 1050px) {
  .window.about-window, body[data-variant] .window.about-window { left: 190px; width: calc(100vw - 210px); }
  .window.content-window { left: 140px; width: calc(100vw - 160px); }
}
@media (max-width: 700px) {
  #desktop { padding: 18px 12px; overflow-y: auto; }
  .desktop-icons { grid-auto-flow: row; grid-template-rows: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 14px 4px; }
  .desktop-icon { width: 100%; min-height: 88px; }
  .desktop-icon span { font-size: 12px; }
  .wallpaper-mark { font-size: 52px; right: 20px; bottom: 80px; }
  .window, .window.about-window, body[data-variant] .window.about-window, .window.content-window, .window.maximised { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-width: none; max-height: none; min-width: 0; border-width: 2px; }
  .titlebar { min-height: 41px; padding: 4px 5px; }
  .window-title { font-size: 13px; }
  .window-control { width: 35px; height: 32px; }
  .window-control[data-action='minimise'], .window-control[data-action='maximise'] { display: none; }
  .menu-button { min-height: 35px; padding: 5px 9px; }
  .personal-intro { grid-template-columns: 83px 1fr; gap: 16px; padding: 23px 17px 20px; }
  .portrait { height: 105px; }
  .portrait-frame { padding: 3px 3px 20px; }
  .portrait-frame figcaption { font-size: 9px; }
  .profile-name { font-size: 30px; margin-top: 4px; }
  .profile-headline { font-size: 17px; }
  .profile-summary { font-size: 12px; line-height: 1.6; }
  .eyebrow { font-size: 8px; }
  .profile-location { font-size: 9px; }
  .selected-section { margin: 0 18px 24px; }
  .work-row { padding: 15px 0; }
  .work-row strong { font-size: 13px; }
  .work-row small { font-size: 11px; }
  .profile-footer { padding: 12px 18px; font-size: 9px; gap: 9px; flex-wrap: wrap; }
  .explorer-layout { grid-template-columns: 1fr; }
  .explorer-tree { display: none; }
  .directory-main { padding: 22px 19px 30px; }
  .directory-heading h1 { font-size: 30px; }
  .directory-main > p, .directory-lead p { font-size: 13px; }
  .about-copy, .language-note, .skills-index .prose { font-size: 13px; }
  .skills-index summary, .language-note summary { min-height: 40px; padding-top: 10px; }
  .directory-lead .classic-button { min-height: 40px; }
  .notebook-layout { grid-template-columns: 1fr; }
  .notebook-paper { padding: 22px 24px 15px 35px; }
  .notebook-paper h1 { font-size: 32px; margin-top: 16px; }
  .notebook-prose { font-size: 15px; }
  .notebook-margin { border-top: 1px solid #bbb; border-left: 0; padding: 20px 25px; }
  .notebook-margin .portrait-frame { display: none; }
  .margin-link { font-size: 13px; min-height: 52px; }
  .document { padding: 24px 22px; }
  .document h1 { font-size: 27px; }
  .document-summary { font-size: 17px; }
  .prose { font-size: 15px; }
  .work-directory { padding: 23px 19px; }
  .statusbar span:last-child { display: none; }
  .task-clock { font-size: 9px; padding: 7px 6px; }
  .task-button { width: 120px; }
  #prototype-controls { gap: 6px; padding: 7px 8px; bottom: 48px; max-width: calc(100vw - 16px); }
  .preview-badge, .state-label, .phone-button { display: none; }
  .switch-button { min-width: 35px; min-height: 35px; }
  .variant-label { min-width: 140px; }
  .window-main { padding-bottom: 65px; }
  body.embedded .window-main { padding-bottom: 0; }
}
