/* auto-generated bundle — do not edit. rebuild with scripts/bundle.sh */

/* ========== yaru.css ========== */
/* Yaru-inspired theme.
   Canonical Ubuntu palette tokens, with a few opinionated tweaks for a CV site. */
:root {
  /* Canonical Yaru */
  --yaru-orange: #E95420;
  --yaru-orange-hover: #F37D38;
  --yaru-orange-pressed: #C84418;
  --yaru-warm-grey: #AEA79F;
  --yaru-cool-grey: #757575;
  --yaru-journal: #F4F4F4;
  --yaru-paper: #FFFFFF;
  --yaru-ink: #2C2C2C;

  /* Surfaces (dark mode) */
  --bg-base: #2C2C2C;
  --bg-topbar: rgba(28, 28, 28, 0.92);
  --bg-dock: rgba(28, 28, 28, 0.85);
  --bg-window: #F4F4F4;
  --bg-window-header: #3D3D3D;
  --bg-window-header-inactive: #555555;
  --bg-desktop: #1f1f1f;
  --bg-icon-hover: rgba(233, 84, 32, 0.18);
  --bg-icon-active: rgba(233, 84, 32, 0.32);

  /* Text */
  --fg-primary: #2C2C2C;
  --fg-secondary: #555555;
  --fg-muted: #888888;
  --fg-on-dark: #F4F4F4;
  --fg-on-dark-muted: #B5B5B5;
  --fg-accent: var(--yaru-orange);

  /* Borders */
  --border-window: rgba(0, 0, 0, 0.25);
  --border-subtle: rgba(0, 0, 0, 0.08);

  /* Radii */
  --radius-window: 10px;
  --radius-button: 6px;
  --radius-icon: 8px;

  /* Shadows */
  --shadow-window: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-window-focused: 0 16px 40px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.3);
  --shadow-dock: 0 -4px 20px rgba(0, 0, 0, 0.35);

  /* Sizing */
  --topbar-h: 28px;
  --dock-h: 64px;
  --font-ui: "Ubuntu", "Ubuntu Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Ubuntu Mono", "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", "Menlo", monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Ubuntu"), local("Ubuntu-Regular");
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("Ubuntu Medium"), local("Ubuntu-Medium");
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Ubuntu Bold"), local("Ubuntu-Bold");
}
@font-face {
  font-family: "Ubuntu Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Ubuntu Mono"), local("UbuntuMono-Regular");
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--fg-on-dark);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: var(--yaru-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--yaru-orange); color: #fff; }

/* ========== desktop.css ========== */
/* Desktop chrome: wallpaper, top bar, dock, boot screen, desktop icons */
.desktop {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr var(--dock-h);
  background:
    radial-gradient(circle at 20% 30%, rgba(233, 84, 32, 0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(80, 110, 200, 0.12), transparent 55%),
    linear-gradient(180deg, #1f1f1f 0%, #161616 100%);
}

/* Top bar */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 8px;
  background: var(--bg-topbar);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--fg-on-dark);
  z-index: 1000;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-right { justify-content: flex-end; }
.topbar-center { font-weight: 500; font-size: 13px; }
.topbar-activities {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--fg-on-dark);
  transition: background 120ms var(--ease-out);
}
.topbar-activities:hover { background: rgba(255, 255, 255, 0.08); }
.topbar-activities:active { background: rgba(255, 255, 255, 0.14); }
.topbar-pill {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.18);
  color: #58d68d;
  border: 1px solid rgba(46, 204, 113, 0.35);
}

/* Desktop icons (grid on left) */
.desktop-icons {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, 88px);
  grid-auto-rows: 96px;
  gap: 6px;
  padding: 16px;
  align-content: start;
  overflow: hidden;
}
.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px 4px;
  border-radius: var(--radius-icon);
  color: var(--fg-on-dark);
  text-align: center;
  cursor: pointer;
  transition: background 120ms var(--ease-out);
  user-select: none;
}
.desktop-icon:hover { background: var(--bg-icon-hover); }
.desktop-icon:active { background: var(--bg-icon-active); }
.desktop-icon-img {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--yaru-orange);
}
.desktop-icon-label {
  font-size: 11px;
  line-height: 1.2;
  max-width: 80px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Dock */
.dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-dock);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-dock);
  z-index: 1000;
  user-select: none;
}
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  min-width: 56px;
  color: var(--fg-on-dark);
  transition: background 120ms var(--ease-out), transform 120ms var(--ease-out);
}
.dock-item:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.dock-item:active { transform: translateY(0); }
.dock-item.is-running { background: rgba(233, 84, 32, 0.12); }
.dock-item.is-running::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--yaru-orange);
}
.dock-item-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--yaru-orange);
}
.dock-item-label { font-size: 10px; opacity: 0.85; }

/* Boot screen */
.boot {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #0a0a0a;
  color: var(--fg-on-dark);
  z-index: 2000;
  font-family: var(--font-mono);
  font-size: 13px;
}
.boot-logo { animation: boot-pulse 1.6s ease-in-out infinite; }
@keyframes boot-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.boot-brand {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--yaru-orange);
}
.boot-progress {
  width: 220px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.boot-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--yaru-orange);
  border-radius: 2px;
  transition: width 280ms var(--ease-out);
}
.boot-log {
  width: 360px;
  max-width: 80vw;
  height: 80px;
  overflow: hidden;
  font-size: 11px;
  color: var(--fg-on-dark-muted);
  line-height: 1.6;
  text-align: left;
  white-space: pre;
  font-family: var(--font-mono);
}
.boot.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 480ms var(--ease-out);
}

/* ========== windows.css ========== */
/* Windows: shared chrome for every app */
.window-layer {
  position: fixed;
  inset: var(--topbar-h) 0 var(--dock-h) 0;
  pointer-events: none;
  z-index: 100;
}
.window {
  position: absolute;
  pointer-events: auto;
  background: var(--bg-window);
  color: var(--fg-primary);
  border: 1px solid var(--border-window);
  border-radius: var(--radius-window);
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 320px;
  min-height: 200px;
  font-size: 13px;
}
.window.is-focused { box-shadow: var(--shadow-window-focused); }

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  height: 30px;
  background: var(--bg-window-header);
  color: var(--fg-on-dark);
  cursor: grab;
  user-select: none;
  font-size: 12px;
  font-weight: 500;
}
.window.is-focused .window-header { background: var(--bg-window-header); }
.window:not(.is-focused) .window-header { background: var(--bg-window-header-inactive); }
.window-header:active { cursor: grabbing; }
.window-title {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.window-title-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: var(--yaru-orange);
  flex-shrink: 0;
}
.window-title-icon svg { width: 14px; height: 14px; }
.window-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.win-btn {
  height: 22px;
  min-width: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 4px;
  color: var(--fg-on-dark);
  transition: background 100ms var(--ease-out);
  font-size: 11px;
  font-weight: 500;
}
.win-btn:hover { background: rgba(255, 255, 255, 0.12); }
.win-btn-close:hover { background: #c0392b; }
.win-btn-custom .win-btn-label { letter-spacing: 0.02em; }
.win-btn svg { display: block; }

.window.is-minimised {
  display: none;
}
.window.is-maximised {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
}

.window-body {
  flex: 1;
  overflow: auto;
  background: var(--bg-window);
  color: var(--fg-primary);
}

/* Resize handles */
.window-resize {
  position: absolute;
  z-index: 2;
}
.window-resize.n { top: -3px; left: 6px; right: 6px; height: 6px; cursor: n-resize; }
.window-resize.s { bottom: -3px; left: 6px; right: 6px; height: 6px; cursor: s-resize; }
.window-resize.e { right: -3px; top: 6px; bottom: 6px; width: 6px; cursor: e-resize; }
.window-resize.w { left: -3px; top: 6px; bottom: 6px; width: 6px; cursor: w-resize; }
.window-resize.ne { top: -3px; right: -3px; width: 10px; height: 10px; cursor: ne-resize; }
.window-resize.nw { top: -3px; left: -3px; width: 10px; height: 10px; cursor: nw-resize; }
.window-resize.se { bottom: -3px; right: -3px; width: 10px; height: 10px; cursor: se-resize; }
.window-resize.sw { bottom: -3px; left: -3px; width: 10px; height: 10px; cursor: sw-resize; }

/* ========== apps.css ========== */
/* Per-app styling. All apps live in `.window-body` containers. */

/* Resume app */
.resume {
  padding: 24px 32px;
  font-family: var(--font-ui);
  color: var(--fg-primary);
  max-width: 920px;
  margin: 0 auto;
}
.resume-header {
  border-bottom: 2px solid var(--yaru-orange);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.resume-name {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.resume-title {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--fg-secondary);
  font-weight: 500;
}
.resume-meta {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 12px;
  color: var(--fg-muted);
}
.resume-meta a { color: var(--yaru-orange); }
.resume-tagline {
  margin: 12px 0 0;
  font-style: italic;
  color: var(--fg-secondary);
  font-size: 13px;
}
.resume-section { margin: 28px 0; }
.resume-section h2 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yaru-orange);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 4px;
}
.resume-summary { margin: 0; line-height: 1.65; color: var(--fg-primary); }

.exp-block { margin-bottom: 20px; }
.exp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.exp-role { font-weight: 700; font-size: 14px; }
.exp-company { font-weight: 500; color: var(--fg-secondary); }
.exp-period { font-size: 12px; color: var(--fg-muted); font-family: var(--font-mono); }
.exp-highlights { margin: 6px 0 0 18px; padding: 0; }
.exp-highlights li { margin: 4px 0; line-height: 1.55; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.skill-cat h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--yaru-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skill-cat ul { margin: 0; padding-left: 18px; }
.skill-cat li { margin: 3px 0; font-size: 13px; }

/* Projects app */
.projects {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-content: start;
}
.project-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--yaru-orange);
}
.project-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.project-name { font-weight: 700; font-size: 15px; }
.project-status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(233, 84, 32, 0.12);
  color: var(--yaru-orange);
  font-weight: 600;
  white-space: nowrap;
}
.project-tagline { color: var(--fg-secondary); font-size: 12px; margin: 0; }
.project-stack { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.project-stack span {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--fg-secondary);
  font-family: var(--font-mono);
}
.project-highlights { margin: 4px 0 0; padding-left: 18px; font-size: 12px; }
.project-highlights li { margin: 3px 0; line-height: 1.5; }

/* Skills app */
.skills {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-content: start;
}
.skill-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--yaru-orange);
  border-radius: 6px;
  padding: 12px 14px;
}
.skill-card h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--yaru-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skill-card ul { margin: 0; padding-left: 16px; }
.skill-card li { margin: 3px 0; font-size: 13px; line-height: 1.5; }

/* About app */
.about {
  padding: 24px 32px;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}
.about h2 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--yaru-orange);
}
.about h3 {
  margin: 20px 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-secondary);
}
.about p { margin: 6px 0; }
.about ul { margin: 6px 0; padding-left: 20px; }

/* Contact app */
.contact {
  padding: 24px 32px;
  max-width: 520px;
  margin: 0 auto;
}
.contact h2 { margin: 0 0 8px; font-size: 22px; color: var(--yaru-orange); }
.contact p { margin: 4px 0 16px; color: var(--fg-secondary); }
.contact-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}
.contact-row:last-child { border-bottom: 0; }
.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  font-weight: 600;
}
.contact-value { font-family: var(--font-mono); font-size: 13px; }
.contact-value a { color: var(--yaru-orange); }

/* Terminal app */
.terminal {
  background: #300A24;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 13px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.terminal-output {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-line { display: block; }
.terminal-prompt { color: #8AE234; font-weight: 700; }
.terminal-prompt::after { content: " "; }
.terminal-input-line {
  display: flex;
  align-items: baseline;
  padding: 0 14px 12px;
}
.terminal-input {
  flex: 1;
  background: transparent;
  color: inherit;
  border: 0;
  outline: 0;
  font: inherit;
  caret-color: #FFFFFF;
}
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #FFFFFF;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.terminal-error { color: #EF2929; }
.terminal-info { color: #729FCF; }
.terminal-success { color: #8AE234; }
.terminal-muted { color: #B5B5B5; }
.terminal-accent { color: #FCAF3E; }

/* ========== print.css ========== */
/* Print stylesheet.
   Three modes:
     1. Default (@media print) — when someone hits Ctrl/Cmd+P or clicks the
        Print button, the desktop chrome is hidden and the resume is
        reflowed into a clean PDF-friendly layout.
     2. ?print=1 — same as above but loaded fresh (no boot, no chrome).
        Applied via .is-print-mode on <body>.
     3. /?pdf=1 — same as 2 but auto-triggers the print dialog. */

/* Hide the transient print container on screen — it's only meant for @media
   print. We can't use display:none inline because that beats !important in
   the print stylesheet and causes blank pages. */
@media screen {
  #print-temp {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
  }
}

/* --- Always hide things that should never appear in a printout --- */
@media print {
  /* Hide the entire desktop chrome */
  .desktop,
  .topbar,
  .dock,
  .desktop-icons,
  .window-layer,
  .window-header,
  .window-resize,
  .boot,
  .resume-toolbar {
    display: none !important;
  }

  /* Ctrl/Cmd+P from desktop: the resume was moved into #print-temp on
     <body>. Show it and hide everything else. */
  body.is-printing #print-temp {
    display: block !important;
  }

  /* Strip window chrome from any window that's open */
  .window {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #fff !important;
  }
  .window-body {
    overflow: visible !important;
    background: #fff !important;
    height: auto !important;
  }

  /* Override dark-mode CSS custom properties so every element using
     var(--fg-on-dark) etc. resolves to print-safe dark-on-white values.
     This is necessary because CSS variables are resolved before cascade,
     so !important on a specific color rule won't fix a var() reference. */
  :root {
    --fg-primary: #1a1a1a;
    --fg-secondary: #444444;
    --fg-muted: #666666;
    --fg-on-dark: #1a1a1a;
    --fg-on-dark-muted: #555555;
    --fg-accent: #C84418;
    --bg-window: #ffffff;
    --bg-base: #ffffff;
  }

  /* Reset the page background — no Yaru wallpaper in a CV */
  html, body {
    background: #fff !important;
    color: #000 !important;
    overflow: visible !important;
    height: auto !important;
  }

  /* Page setup */
  @page {
    size: A4;
    margin: 12mm 14mm 14mm 14mm;
  }

  /* Make clickable links show their URL in print — but NOT inside the
     Links section, where the visible text already IS the URL. */
  a[href]:not([href^="mailto:"]):not([href^="#"]):not(.resume-link-plain)::after {
    content: " (" attr(href) ")";
    color: #666;
    font-size: 0.85em;
    word-break: break-all;
  }
  /* Don't append the URL for the email — it'd be redundant */
  a[href^="mailto:"]::after { content: ""; }
  /* The Links section is the only place where link text == link URL */
  .resume-links a::after { content: "" !important; }

  /* Resume reflow — sized to fit a 2-page A4 with all content. */
  .resume {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    color: #000 !important;
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 9.5pt;
    line-height: 1.4;
  }
  .resume-doc {
    /* No border, full bleed */
  }
  .resume-header {
    border-bottom: 1.5pt solid #C84418 !important; /* muted Yaru orange */
    padding-bottom: 6pt;
    margin-bottom: 8pt;
    page-break-after: avoid;
  }
  .resume-name {
    font-size: 20pt !important;
    color: #000 !important;
    margin: 0 0 2pt;
  }
  .resume-title {
    font-size: 10.5pt !important;
    color: #333 !important;
    margin: 0;
  }
  .resume-meta {
    font-size: 8.5pt !important;
    color: #555 !important;
    margin-top: 5pt;
    gap: 4pt 14pt !important;
  }
  .resume-meta a { color: #C84418 !important; }
  .resume-tagline {
    font-size: 9pt !important;
    color: #444 !important;
    font-style: italic;
    margin: 5pt 0 0;
  }

  .resume-section {
    margin: 8pt 0 !important;
    page-break-inside: avoid;
  }
  .resume-section h2 {
    font-size: 8pt !important;
    color: #C84418 !important;
    letter-spacing: 0.1em !important;
    border-bottom: 0.5pt solid #ddd !important;
    margin: 0 0 4pt !important;
    padding-bottom: 2pt !important;
  }
  .resume-summary {
    font-size: 9.5pt !important;
    line-height: 1.4 !important;
    color: #111 !important;
    margin: 0;
  }

  .exp-block {
    margin-bottom: 6pt !important;
    page-break-inside: avoid;
  }
  .exp-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
  }
  .exp-role {
    font-size: 10pt !important;
    font-weight: 700;
    color: #000 !important;
  }
  .exp-company {
    font-size: 10pt !important;
    color: #333 !important;
    font-weight: 400;
  }
  .exp-period {
    font-size: 8.5pt !important;
    color: #666 !important;
    font-family: "JetBrains Mono", "SF Mono", "Consolas", monospace !important;
  }
  .exp-highlights {
    margin: 2pt 0 0 14pt !important;
    padding: 0 !important;
  }
  .exp-highlights li {
    font-size: 9pt !important;
    line-height: 1.35 !important;
    color: #111 !important;
    margin: 1pt 0 !important;
  }

  /* Skills grid: 2 columns on print for compactness */
  .resume-skills-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4pt 14pt !important;
  }
  .resume-skills-cell {
    page-break-inside: avoid;
  }
  .resume-skills-cell h3 {
    font-size: 8pt !important;
    color: #C84418 !important;
    margin: 0 0 1pt !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
  }
  .resume-skills-cell p {
    font-size: 8.5pt !important;
    line-height: 1.35 !important;
    color: #222 !important;
    margin: 0;
  }

  /* Force page breaks before major sections that might overflow */
  .resume-section.resume-section-last {
    page-break-before: avoid;
  }
  .resume-section-pair {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 18pt !important;
    page-break-inside: avoid !important;
  }
  .resume-section-pair .resume-section { margin: 8pt 0 !important; }
  .resume-links {
    font-size: 9pt !important;
    line-height: 1.5 !important;
    color: #111 !important;
    margin: 0;
    word-break: break-all;
  }
  .resume-links a { color: #C84418 !important; }
}

/* --- ?print=1 mode: no desktop, just the resume (SCREEN VIEW ONLY).
   The rules below must be inside @media screen so they don't override
   the @media print rules above — otherwise the in-body print toolbar
   bleeds into the printed PDF. */
@media screen {
  body.is-print-mode {
    background: #fff !important;
    color: #000 !important;
    overflow: auto !important;
    height: auto !important;
    min-height: 100vh;
  }
  body.is-print-mode .print-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
    background: #fff;
    min-height: 100vh;
  }
  body.is-print-mode .print-page .resume {
    padding: 0;
    max-width: 100%;
  }
  /* In ?print=1 mode (screen view), make the resume look like a clean
     document rather than a dark-mode window. */
  body.is-print-mode {
    color: #1a1a1a;
  }
  body.is-print-mode .resume {
    color: #1a1a1a;
  }
  body.is-print-mode .resume-name { color: #1a1a1a; }
  body.is-print-mode .resume-title { color: #4a4a4a; }
  body.is-print-mode .resume-section h2 { color: #C84418; }
  body.is-print-mode .resume-meta { color: #666; }
  body.is-print-mode .resume-meta a { color: #C84418; }
  body.is-print-mode .resume-toolbar {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
  }
  body.is-print-mode .resume-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #C84418;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
  }
  body.is-print-mode .resume-print-btn:hover { background: #a8380f; }
  body.is-print-mode .resume-toolbar-hint { font-size: 11px; color: #666; }
  body.is-print-mode .resume-toolbar-hint kbd {
    display: inline-block;
    padding: 1px 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    font-family: monospace;
    font-size: 10px;
  }
}

/* ========== responsive.css ========== */
/* Mobile / small-screen responsive overrides.
   Cap window sizes to viewport so overlays fit on the screen,
   tighten content padding, and shrink chrome. */

@media (max-width: 820px) {
  /* ---- Windows: never overflow the viewport ---- */
  .window {
    max-width: calc(100vw - 12px);
    max-height: calc(100vh - var(--topbar-h) - var(--dock-h) - 12px);
    min-width: 240px;
  }

  /* ---- Resume app ---- */
  .resume { padding: 14px 16px; }
  .resume-name { font-size: 20px; }
  .resume-title { font-size: 12px; }
  .resume-meta { gap: 6px 12px; font-size: 11px; }
  .resume-section { margin: 18px 0; }
  .exp-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .exp-role { font-size: 13px; }
  .skill-grid { grid-template-columns: 1fr; }

  /* ---- Projects app ---- */
  .projects {
    padding: 10px;
    grid-template-columns: 1fr;
  }
  .project-card { padding: 10px 12px; }
  .project-head { flex-direction: column; gap: 4px; }
  .project-name { font-size: 14px; }

  /* ---- Skills app ---- */
  .skills {
    padding: 10px;
    grid-template-columns: 1fr;
  }
  .skill-card { padding: 10px; }

  /* ---- About app ---- */
  .about { padding: 14px 16px; }
  .about h2 { font-size: 18px; }

  /* ---- Contact app ---- */
  .contact { padding: 14px 16px; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
  .contact-label { font-size: 10px; }

  /* ---- Terminal ---- */
  .terminal { font-size: 12px; }
  .terminal-output { padding: 8px 10px; }
  .terminal-input-line { padding: 0 10px 10px; }

  /* ---- Dock: compact ---- */
  .dock { gap: 4px; padding: 4px 6px; }
  .dock-item { min-width: 40px; padding: 4px 6px; }
  .dock-item-icon { width: 26px; height: 26px; }
  .dock-item-icon svg { width: 20px; height: 20px; }
  .dock-item-label { font-size: 9px; }

  /* ---- Top bar: compact ---- */
  .topbar { padding: 0 4px; }
  .topbar-center { font-size: 11px; }
  .topbar-pill { font-size: 10px; padding: 2px 6px; }
  .topbar-activities { font-size: 10px; padding: 2px 6px; }
  .topbar-activities svg { width: 12px; height: 12px; }

  /* ---- Desktop icons: compact ---- */
  .desktop-icons {
    grid-template-columns: repeat(auto-fill, 68px);
    grid-auto-rows: 74px;
    gap: 4px;
    padding: 8px;
  }
  .desktop-icon { padding: 4px 2px; }
  .desktop-icon-img { width: 36px; height: 36px; }
  .desktop-icon-img svg { width: 18px; height: 18px; }
  .desktop-icon-label { font-size: 9px; max-width: 64px; }
}

@media (max-width: 480px) {
  /* Very narrow screens: reduce min-height on windows */
  .window { min-height: 140px; }

  /* Even tighter content */
  .resume { padding: 10px 12px; }
  .resume-name { font-size: 18px; }
  .resume-header { padding-bottom: 10px; margin-bottom: 16px; }

  .projects { padding: 8px; }
  .about { padding: 10px 12px; }
  .contact { padding: 10px 12px; }

  .dock-item { min-width: 34px; padding: 3px 4px; }
  .dock-item-icon { width: 22px; height: 22px; }
}
