* { box-sizing: border-box; }
:root { color-scheme: light; --navy: #0a246a; }
body { margin: 0; padding: 68px 20px 36px; background: #008080 url('images.jpeg') repeat fixed; color: #1d2634; font: 15px/1.65 Arial, Helvetica, sans-serif; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: #215cac; }
a:focus-visible { outline: 3px solid #a35c00; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 2000; background: white; padding: 12px; }
.skip-link:focus { top: 8px; }
.resume-shell { max-width: 1080px; margin: auto; scroll-margin-top: 90px; }
.resume-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 16px; }
.back-link { color: white; background: #0a246a; padding: 4px 10px; }
.back-link:hover { color: white; }
.language-switch { display: flex; background: #c0c0c0; border: 2px outset white; padding: 3px; gap: 3px; }
.language-switch a { padding: 3px 13px; text-decoration: none; font-size: 13px; }
.language-switch a[aria-current] { background: var(--navy); color: white; }
.resume-window { background: #c0c0c0; border: 2px solid; border-color: white #202020 #202020 white; box-shadow: 6px 6px 0 #0004; padding: 3px; }
.document-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: linear-gradient(90deg, #0a246a, #3a6ea5); color: white; padding: 5px 9px; font-size: 12px; font-weight: bold; }
.document-title > span:first-child { display: flex; align-items: center; gap: 8px; }
.document-title img { width: 16px; height: 16px; image-rendering: pixelated; }
.document-layout { display: grid; grid-template-columns: minmax(0, 1fr) 224px; padding: 12px; gap: 16px; align-items: start; }
.resume-paper { background: #fff; padding: 36px 42px; border: 1px solid #808080; box-shadow: 2px 2px 0 #808080; }
.resume-header { border-bottom: 2px solid var(--navy); padding-bottom: 22px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 10px; font: bold 11px/1.4 monospace; letter-spacing: 2px; text-transform: uppercase; color: #52637b; }
h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -1.4px; line-height: 1.15; margin: 0 0 12px; color: #142b4d; }
.resume-role { font-size: 17px; margin: 0 0 14px; line-height: 1.5; }
.contact-links { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 13px; }
section { margin-top: 26px; }
h2 { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); margin: 0 0 14px; }
h3 { font-size: 17px; margin: 0 0 5px; line-height: 1.4; }
p { margin: 0 0 10px; }
.resume-project { padding: 18px 0; border-bottom: 1px solid #e0e5ec; }
.resume-project:first-of-type { padding-top: 0; }
.resume-project:last-child { padding-bottom: 0; border-bottom: 0; }
.stack { font-size: 12px; color: #50607a; line-height: 1.6; margin-bottom: 12px; }
.link-icon { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; flex-shrink: 0; image-rendering: pixelated; }
.project-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; margin-top: 12px; }
.resume-skills { display: grid; gap: 10px; }
.resume-skills h3 { font-size: 14px; }
.resume-sidebar { position: sticky; top: 82px; padding-top: 6px; }
.download-panel { background: #e9e8e3; padding: 18px 12px; border: 2px inset #fff; text-align: center; }
.file-icon { image-rendering: pixelated; margin-bottom: 10px; }
.download-panel h2 { text-transform: none; letter-spacing: 0; font-size: 17px; color: #182b48; margin-bottom: 3px; }
.download-panel p { font-size: 12px; color: #50565e; margin-bottom: 18px; }
.retro-button { display: block; font: bold 13px/1.5 Arial, sans-serif; padding: 11px 12px; text-align: center; text-decoration: none; border: 2px solid; border-color: #fff #151515 #151515 #fff; box-shadow: 1px 1px 0 #808080; }
.primary-button { background: var(--navy); color: white; }
.primary-button:hover { color: white; background: #173e87; }
.retro-button:active { border-color: #151515 #fff #fff #151515; }
.sidebar-contact { margin: 25px 10px 0; font-size: 13px; }
.sidebar-contact h2 { font-size: 12px; }
.sidebar-contact a { display: block; padding: 6px 0; }
.resume-status { border: 2px inset #dfdfdf; margin: 0 10px 10px; padding: 4px 10px; font-size: 11px; color: #333; }
@media (max-width: 780px) {
  body { padding: 72px 12px 24px; }
  .document-layout { display: flex; flex-direction: column; gap: 12px; padding: 8px; }
  .resume-sidebar { position: static; order: -1; width: 100%; padding: 0; }
  .download-panel { display: grid; grid-template-columns: 1fr auto; text-align: left; align-items: center; gap: 0 10px; padding: 12px; }
  .file-icon { display: none; }
  .download-panel h2, .download-panel p { margin: 0; }
  .download-panel .retro-button { grid-column: 2; grid-row: 1 / 3; }
  .sidebar-contact { display: none; }
  .resume-paper { padding: 26px 22px; width: 100%; }
  .resume-status { margin: 0 7px 7px; }
}
@media (max-width: 380px) { .resume-paper { padding: 22px 15px; } .download-panel { display: block; } .download-panel .retro-button { margin-top: 10px; } }
@page { size: A4; margin: 14mm; }
@media print {
  body { background: white; padding: 0; font-size: 10pt; line-height: 1.45; }
  .win98-topbar, .skip-link, .resume-toolbar, .document-title, .resume-sidebar, .resume-status { display: none !important; }
  .resume-window, .resume-paper { border: 0; box-shadow: none; padding: 0; }
  .document-layout { display: block; padding: 0; }
  .resume-header { padding-bottom: 12px; margin-bottom: 14px; }
  h1 { font-size: 25pt; }
  h2 { break-after: avoid; }
  section { margin-top: 16px; }
  .resume-project, .resume-skills > div { break-inside: avoid; }
  .resume-project { padding: 10px 0; }
  .project-links { display: none; }
  a { color: inherit; text-decoration: none; }
}
