@font-face {
  font-family: "Liza Terminal";
  src: url("fonts/VT323-logo.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --portfolio-bar-height: 48px;
  --portfolio-bar-inset: clamp(12px, 2.2vw, 28px);
  --portfolio-brand-padding: 6px;
  --portfolio-logo-size: 28px;
}
.terminal-logo {
  display: inline-flex;
  align-items: baseline;
  min-width: 12ch;
  color: #20354a;
  font: 400 var(--portfolio-logo-size)/1 "Liza Terminal", monospace;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.terminal-cursor { animation: terminal-caret 1s steps(1) infinite; }
.menu-home .terminal-logo { display: inline-flex; }
.menu-home :is(.terminal-letters, .terminal-cursor) { display: inline; }
@keyframes terminal-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.menubar { height: var(--portfolio-bar-height); min-height: var(--portfolio-bar-height); }
.login { padding-top: 0; padding-inline: 0; }
.login-hud { height: var(--portfolio-bar-height); padding: 3px var(--portfolio-bar-inset); grid-template-rows: minmax(0, 1fr); }
.login-hud > .login-brand { display: flex; align-items: center; grid-column: 1; grid-row: 1; justify-self: start; padding: 4px var(--portfolio-brand-padding); }
.app-window[data-closing] { pointer-events: none; }
.mobile-profile, .mobile-grid-heading, .mobile-experience, .mobile-office-icon,
.mobile-office-label { display: none; }

@media screen and (max-width: 720px) {
  :root { --mobile-bar-height: 58px; --portfolio-bar-height: var(--mobile-bar-height); --portfolio-bar-inset: 20px; --portfolio-brand-padding: 0px; --portfolio-logo-size: 25.6px; }
  html, body { min-width: 0; background: #f2f4f7; }
  .wallpaper { background: #f2f4f7; }
  .wallpaper::before {
    inset: 0;
    opacity: .45;
    background: radial-gradient(#9facbe 0.7px, transparent 1px) 12px 12px / 28px 28px;
    filter: none;
    mask-image: none;
  }
  .wallpaper::after { background: linear-gradient(180deg, #fff5, #edf2f966); }
  .desktop { min-height: 100svh; grid-template-rows: var(--mobile-bar-height) minmax(0, 1fr); padding-bottom: 0; }
  .menubar {
    height: var(--mobile-bar-height);
    min-height: var(--mobile-bar-height);
    padding: 8px 20px;
    gap: 8px;
    background: #f5f7fbe8;
    box-shadow: 0 1px #bcc9d747, 0 1px #fff inset;
    backdrop-filter: blur(16px);
  }
  .menubar .menu-home { padding: 0; min-height: 42px; }
  .menubar .terminal-logo, .login-hud .terminal-logo { min-width: 0; }
  .login-hud { padding: 8px var(--portfolio-bar-inset); }
  .login-hud > .login-brand { min-height: 42px; padding-block: 0; }
  .menubar :is(.menu-active, .menu-shortcuts, .menu-lock, .menu-divider, .menu-location) { display: none; }
  .menu-tools { gap: 9px; }
  .menu-tools time { font-size: 11px; font-weight: 600; color: #52627a; }
  :is(.menubar, .login-hud) .languages { padding: 2px; border: 1px solid #b4c2d280; border-radius: 8px; background: #edf1f68c; }
  :is(.menubar, .login-hud) .languages button { min-width: 29px; min-height: 29px; padding: 4px; font-size: 10px; border-radius: 5px; }
  :is(.menubar, .login-hud) .languages button[aria-pressed=true] { background: #fff; box-shadow: 0 1px 4px #3449671a; }
  .workspace { display: block; min-height: calc(100svh - var(--mobile-bar-height)); }
  .desktop-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(100%, 470px);
    min-height: calc(100svh - var(--mobile-bar-height));
    padding: 25px 20px calc(36px + env(safe-area-inset-bottom, 0px));
    margin: 0 auto;
  }
  .welcome, .desk-note { display: none; }
  .mobile-profile { display: flex; align-items: center; gap: 12px; padding: 1px 3px 28px; }
  .mobile-intro-copy { min-width: 0; flex: 1; }
  .mobile-eyebrow { font-size: 10px; font-weight: 600; color: #6b7a8c; margin-bottom: 9px; letter-spacing: .025em; }
  .mobile-profile h1 { width: fit-content; color: #1b2b40; font-size: clamp(25px, 7.4vw, 31px); letter-spacing: -.045em; line-height: 1.1; font-weight: 600; }
  .mobile-specialty { font-size: 12px; line-height: 1.5; margin-top: 8px; color: #52657c; }
  .mobile-mac { flex: 0 0 auto; display: grid; place-items: center; width: 65px; height: 72px; padding: 0; background: none; border: 0; border-radius: 9px; }
  .mobile-mac img { width: 62px; height: 62px; filter: drop-shadow(0 4px 4px #786e5d20); }
  .launchpad {
    display: block;
    position: static;
    padding: 0;
    overflow: hidden;
    border: 1px solid #a9bad0;
    border-radius: 15px;
    background: #ffffffed;
    box-shadow: 0 1px #fff inset, 0 8px 25px #36557810;
  }
  .mobile-grid-heading { display: flex; align-items: center; gap: 7px; padding: 10px 13px; border-bottom: 1px solid #b6c6d8; background: linear-gradient(#fbfcfe, #e6edf5); }
  .mobile-grid-heading img { display: block; width: 21px; height: 21px; }
  .mobile-grid-heading h2 { font-size: 12px; font-weight: 600; color: #3d526f; }
  .mobile-grid-heading > span { margin-left: auto; font-size: 10px; color: #7a8a9e; }
  .launch-grid { display: flex; flex-direction: column; height: auto; max-width: none; gap: 0; margin: 0; padding: 5px; }
  .launch-grid .launch-app {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    align-content: center;
    justify-items: start;
    gap: 3px 10px;
    min-height: 63px;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #26374f;
    text-align: left;
    text-shadow: none;
  }
  .launch-grid .launch-app { position: relative; inset: auto; translate: none !important; transform: none; width: 100%; touch-action: pan-y; cursor: pointer; }
  .launch-grid .launch-app + .launch-app::before { content: ""; position: absolute; top: -1px; left: 67px; right: 10px; height: 1px; background: #dce4ee7a; }
  .launch-grid .launch-file[data-project] { display: none; }
  .launch-grid .launch-app .app-icon { grid-column: 1; grid-row: 1 / 3; width: 43px; height: 43px; filter: drop-shadow(0 2px 2px #2e435914); touch-action: pan-y; -webkit-touch-callout: none; }
  .launch-grid .launch-app strong { grid-column: 2; grid-row: 1; align-self: end; color: #26364c; font-size: 14px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; margin: 0; }
  .launch-grid .launch-app small { display: block; grid-column: 2; grid-row: 2; align-self: start; font-size: 10px; line-height: 1.4; color: #7b899b; margin: 0; }
  .launch-grid .launch-app[data-open="projects"] { background: linear-gradient(110deg, #eaf3ff, #f4f8ff); border-color: #cfdef2; }
  .launch-grid .launch-app:hover { background: #edf4fc; box-shadow: none; border-color: transparent; }
  .launch-grid .launch-app:focus-visible { outline: 2px solid #6396cb; outline-offset: -2px; }
  .launch-grid .launch-app:active .app-icon { transform: none; }
  .launch-grid [data-open="office"] .mini-window { display: none; }
  .mobile-office-icon { display: grid; }
  .mobile-office-label { display: block; }
  .mobile-experience { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 20px auto 0; color: #8996a6; font-size: 10px; }
  .mobile-experience::before { content: ""; width: 13px; height: 1px; background: #acb9c9; }
  .dock { display: none; }
  .app-window { --window-anchor: translateX(0px); }
  html[data-mobile-window], html[data-mobile-window] body { overflow: hidden; }
  .desktop[data-has-window="true"] { height: 100dvh; min-height: 0; }
  .desktop[data-has-window="true"] .workspace { min-height: 0; }
  .desktop[data-has-window="true"] .windows { position: fixed; inset: var(--mobile-bar-height) 0 0; overflow: hidden; }
  .desktop[data-has-window="true"] .app-window[data-window] {
    position: absolute;
    inset: 7px 7px max(7px, env(safe-area-inset-bottom, 0px));
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    overflow: hidden;
    transform: none;
    border-radius: 12px;
  }
  .desktop[data-has-window="true"] .app-window .window-bar { position: relative; top: auto !important; flex: 0 0 auto; z-index: 3; border-radius: 12px 12px 0 0; }
  .desktop[data-has-window="true"] .app-window .window-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; }
  .app-window[data-reader="true"] .reader-sidebar { top: calc(var(--mobile-bar-height) + 60px); }
}
@media screen and (max-width: 360px) {
  :root { --portfolio-bar-inset: 16px; --portfolio-logo-size: 22.4px; }
  .menubar { padding-inline: 16px; }
  .menu-tools { gap: 6px; }
  .desktop-body { padding-inline: 16px; }
  .mobile-mac { width: 52px; }
  .mobile-mac img { width: 52px; height: 52px; }
  .mobile-specialty { font-size: 11px; }
  .launch-grid .launch-app { grid-template-columns: 39px minmax(0, 1fr); gap: 3px 9px; min-height: 62px; padding-inline: 8px; }
  .launch-grid .launch-app .app-icon { width: 36px; height: 36px; }
  .launch-grid .launch-app strong { font-size: 13px; }
}
@media screen and (max-width: 720px) and (max-height: 700px) {
  :root { --mobile-bar-height: 54px; }
  .desktop-body { padding-top: 18px; }
  .mobile-profile { padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .terminal-cursor { animation: none; } }
