@font-face {
    font-family: Caveat;
    src: url("../fonts/caveat.woff") format("woff");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    font-family: system-ui, sans-serif;
    color: #f3f2ea;
    background: #101012;
    --accent: #deff85;
}

* { box-sizing: border-box; }
body {
    min-height: 100svh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: clamp(12px, 4vw, 56px);
    background: radial-gradient(ellipse at 50% 0%, #343139, #151418 65%, #101012);
}

.workstation {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 1050px);
}
.monitor {
    padding: clamp(8px, 1.5vw, 18px) clamp(8px, 1.5vw, 18px) 0;
    border: 1px solid #54535a;
    border-radius: clamp(14px, 2vw, 26px);
    background: linear-gradient(#303035, #1b1b1e);
    box-shadow: 0 32px 72px #0009, inset 0 1px #ffffff1c;
}

.desktop {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: clamp(360px, 68svh, 660px);
    overflow: hidden;
    border: 1px solid #555b45;
    border-radius: 10px;
    background:
        linear-gradient(135deg, #131810 17%, transparent 85%),
        repeating-linear-gradient(125deg, transparent 0 35px, #d9ff8a20 36px 37px),
        radial-gradient(ellipse at 88% 90%, #78924d, #33412a 42%, #171e15 76%);
}

.topbar, .taskbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px clamp(12px, 2.5vw, 26px);
    background: #131710eb;
    font-family: ui-monospace, monospace;
    font-size: 0.78rem;
}

.topbar { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid #ffffff24; }
.taskbar { border-top: 1px solid #ffffff24; color: #d3ddc3; }
.brand { font-weight: 700; }
.brand-icon, .prompt { color: var(--accent); }
.brand-icon { margin-right: 5px; }
.prompt { padding: 4px 7px; border: 1px solid #deff8555; border-radius: 4px; }

.workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: clamp(22px, 5vw, 70px);
}

.role {
    margin: 0 0 12px;
    color: var(--accent);
    font: 700 0.76rem ui-monospace, monospace;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(3.1rem, 8.3vw, 7.3rem);
    line-height: .89;
    letter-spacing: -.082em;
}
h1 span { color: var(--accent); }

.folders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 104px));
    gap: 10px;
}
.folders button {
    width: 100%;
    min-width: 0;
    min-height: 86px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 10px 3px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    font: 700 .76rem ui-monospace, monospace;
    text-align: center;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 3px #000;
    cursor: pointer;
}
.folders button:hover, .folders button:focus-visible {
    background: #182211aa;
    border-color: #deff8566;
}

.folder-icon {
    position: relative;
    display: block;
    width: 48px;
    height: 31px;
    margin-top: 7px;
    border: 1px solid #edffba;
    border-radius: 5px;
    background: linear-gradient(155deg, #e9ffa9, #9cb858);
    box-shadow: 0 5px 12px #0005, inset 0 3px #efffc655;
}
.folder-icon::before {
    content: "";
    position: absolute;
    inset: -7px auto auto -1px;
    width: 23px;
    height: 7px;
    border-radius: 4px 6px 0 0;
    background: #bbd980;
}

.file-icon {
    display: grid;
    place-items: end center;
    width: 34px;
    height: 39px;
    padding-bottom: 5px;
    border-radius: 3px;
    background: #f3f2ea;
    clip-path: polygon(0 0, 72% 0, 100% 25%, 100% 100%, 0 100%);
    color: #672d25;
    text-shadow: none;
}
.file-icon::after { content: "PDF"; }

.window {
    position: fixed;
    inset: var(--window-y) auto auto var(--window-x);
    transform: translate(-50%, -50%);
    width: min(640px, var(--window-width));
    max-width: none;
    max-height: var(--window-height);
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: #eef0e6;
    border: 1px solid #a2ba73;
    border-radius: 12px;
    background: #1b2118;
    box-shadow: 0 16px 65px #000a;
}
.window[open] { display: flex; flex-direction: column; }
.window::backdrop { background: #090c08a8; }
.window-bar {
    display: flex;
    flex: none;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px 7px 20px;
    background: #2b3625;
    border-bottom: 1px solid #637255;
}
.window-bar h2 { margin: 0; font: 700 .9rem ui-monospace, monospace; }
.close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #81946f;
    border-radius: 6px;
    background: #1b2118;
    color: inherit;
    font-size: 1.35rem;
    cursor: pointer;
}
:where(button, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.window-content {
    min-height: 0;
    padding: clamp(12px, 4vw, 32px);
    overflow: auto;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
    line-height: 1.65;
}
.window-content h3 { margin: 0; font-size: 1.45rem; overflow-wrap: anywhere; }
.window-content p { margin: 8px 0 0; overflow-wrap: anywhere; }
.window-content a { display: inline-block; margin-top: 10px; color: var(--accent); overflow-wrap: anywhere; }
.resume-preview {
    display: block;
    width: 100%;
    height: clamp(100px, calc(var(--window-height) - 150px), 420px);
    border: 1px solid #637255;
    background: #f3f2ea;
}
.resume-preview ~ a { margin-right: 12px; }
.script-notice { grid-column: 1 / -1; }

.bezel { height: 26px; display: grid; place-items: center; }
.bezel span { width: 5px; height: 5px; border-radius: 50%; background: #b9eb78; box-shadow: 0 0 8px #b9eb78a0; }
.stand { width: 28%; min-width: 90px; height: 34px; margin: auto; clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%); background: linear-gradient(#18181c, #353438); }

@media (max-width: 560px) {
    .workspace { grid-template-columns: 1fr; align-content: center; padding-inline: 14px; }
    .folders { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
    .folders button { min-height: 72px; font-size: clamp(.7rem, 2.7vw, .76rem); }
    .intro { padding-left: 6px; }
}

.skills, .experience {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #637255;
}
.skills-panel {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    gap: 10px 16px;
    margin: 12px 0 0;
    padding: 14px;
    border: 1px solid #637255;
    border-radius: 8px;
    background: #151b13;
    font: .82rem/1.5 ui-monospace, monospace;
}
.skills h3.typing + .skills-panel { opacity: 0; }
.skills-panel dt { color: #c2cfae; }
.skills-panel dd { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.skills-panel dd > span {
    padding: 3px 8px;
    border: 1px solid #657744;
    border-radius: 4px;
    color: var(--accent);
}

@media (max-width: 560px) {
    .skills-panel { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
    .skills-panel dd + dt { margin-top: 6px; }
}

.experience-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 12px;
    padding: 14px;
    border-radius: 8px;
    background: #2b3625;
}
.experience-card div { min-width: 0; overflow-wrap: anywhere; }
.experience-card img { flex: none; object-fit: contain; border-radius: 5px; }
.experience-card h4 { margin: 0; }
.experience-card p { margin-top: 2px; }
.experience-period { color: #c2cfae; font-size: .9rem; }

.typing { display: grid; }
.typing > span { grid-area: 1 / 1; min-width: 0; }
.typing > span:first-child { opacity: 0; }
.typing-caret::after { content: "▍"; color: var(--accent); }

.certificate-legend {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #637255;
    border-radius: 6px;
    background: #151b13;
}

.certificate-legend h3 { font: 700 .8rem/1.4 ui-monospace, monospace; }
.certificate-legend ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
.certificate-legend li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
}
.certificate-legend .certificate-icon { flex: none; width: 1.5rem; height: 1.5rem; font-size: .9rem; }

.certificate-records {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.certificate-record {
    --certificate-accent: #d0dcc6;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: clamp(10px, 3vw, 16px);
    border: 1px solid #637255;
    border-left: 3px solid var(--certificate-accent);
    border-radius: 6px;
    background: #242d20;
}

.certificate-type--education { --certificate-accent: #b9d9ff; }
.certificate-type--professional { --certificate-accent: var(--accent); }

.certificate-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: #151b13;
    color: var(--certificate-accent, #d0dcc6);
    font-size: 1.25rem;
}

.certificate-category {
    margin-bottom: 5px;
    color: var(--certificate-accent);
    font: 700 .75rem/1.4 ui-monospace, monospace;
    overflow-wrap: anywhere;
}

.certificate-record h3 { font-size: 1.12rem; line-height: 1.3; }
.certificate-record .certificate-issuer { margin-top: 4px; color: #d0dcc6; }

.project-records, .project-stack {
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-records { display: grid; gap: 12px; }

.project-record {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(10px, 2.5vw, 16px);
    padding: clamp(12px, 3vw, 18px);
    border: 1px solid #637255;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    background: #242d20;
}

.project-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid #758451;
    border-radius: 5px;
    background: #151b13;
    color: var(--accent);
    font: 700 .9rem ui-monospace, monospace;
}

.project-details h3 { font-size: 1.15rem; line-height: 1.3; }
.project-details p { color: #d0dcc6; }
.project-details .project-category {
    margin-top: 5px;
    color: var(--accent);
    font: 700 .75rem/1.4 ui-monospace, monospace;
}
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.project-stack li {
    padding: 3px 7px;
    border: 1px solid #657744;
    border-radius: 4px;
    background: #151b13;
    color: var(--accent);
    font: .74rem/1.4 ui-monospace, monospace;
    overflow-wrap: anywhere;
}

.window-content .project-link {
    margin-top: 12px;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #758451;
    border-radius: 4px;
    font: 700 1rem/1 ui-monospace, monospace;
    text-decoration: none;
}
.project-link:hover { background: #37462b; }

.stand, .contact-note { grid-area: 2 / 1; }
.stand { align-self: start; margin-block: 0; }

.contact-note {
    --fold-size: 23px;
    position: relative;
    isolation: isolate;
    z-index: 1;
    justify-self: end;
    align-self: start;
    width: min(74%, 270px);
    margin: -69px clamp(16px, 4vw, 40px) 0 0;
    padding: 14px 18px 25px;
    transform: rotate(2.5deg);
    filter: drop-shadow(1px 2px 1px #140f0c65) drop-shadow(4px 9px 7px #15100555);
    color: #3d321a;
    font: 500 1.3rem/1.1 Caveat, "Segoe Print", cursive;
}
.contact-note::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 2px 3px 0 21% / 2px 3px 0 8px;
    background:
        repeating-linear-gradient(104deg, #74531b07 0 1px, transparent 1px 4px),
        radial-gradient(ellipse at 18% 80%, #fff5ccaa, transparent 55%),
        radial-gradient(ellipse at 100% 100%, #9e762748, transparent 38%),
        linear-gradient(168deg, #e9cc77 0%, #f8e6a0 17%, #fff0b5 61%, #f6dc88 100%);
    clip-path: polygon(0 0, 100% 1px, 100% calc(100% - var(--fold-size)), calc(100% - var(--fold-size)) 100%, 32% 100%, 0 calc(100% - 4px));
}
.contact-note::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: var(--fold-size);
    height: var(--fold-size);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    background: linear-gradient(135deg, #ad8739 0%, #f2d47d 22%, #fff2bd 60%, #dcb75f 100%);
    pointer-events: none;
}
.contact-tape {
    position: absolute;
    top: -8px;
    left: 38%;
    width: 31%;
    height: 21px;
    transform: rotate(-6deg);
    clip-path: polygon(2% 1%, 98% 4%, 96% 21%, 100% 34%, 97% 53%, 100% 70%, 97% 98%, 0 94%, 3% 75%, 0 52%, 3% 32%, 0 14%);
    background: linear-gradient(175deg, #f4e4b598, #e0c48b85 58%, #c7a36b75);
    box-shadow: inset 0 1px #fff4c788, inset 0 -1px #8c703449;
    pointer-events: none;
}
.contact-note h2 {
    margin: 0;
    font: 700 1.65rem/1.1 Caveat, "Segoe Print", cursive;
}
.contact-links { display: grid; gap: 5px; margin: 6px 0 0; padding: 0; list-style: none; }
.contact-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.contact-links a { color: inherit; overflow-wrap: anywhere; text-underline-offset: 3px; }
.contact-copy {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.contact-copy:hover { color: #936015; }
.copy-icon { position: relative; width: 18px; height: 18px; }
.copy-icon::before, .copy-icon::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
}
.copy-icon::before { top: 1px; left: 1px; }
.copy-icon::after { bottom: 0; right: 0; background: #f8e6a0; }
.contact-note :focus-visible { outline-color: #594819; }
.contact-status { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 1.05rem; }
.contact-status:empty { margin: 0; }

.window-content .featured-project {
    display: block;
    margin: 0 0 14px;
    padding: 10px;
    border: 1px solid #758451;
    border-radius: 4px;
}
.portfolio-article h4 { margin: 14px 0 0; }
.portfolio-article figure { margin: 15px 0; }
.portfolio-article img { display: block; width: 100%; height: auto; border: 1px solid #637255; }
.portfolio-article figcaption { margin-top: 5px; color: #d0dcc6; font-size: .8rem; }
.portfolio-article a { margin-right: 12px; }

@media (max-height: 480px) and (orientation: landscape) {
    body { padding-block: 10px; }
    .desktop { min-height: 0; }
    .workspace { gap: 12px; padding-block: 12px; }
    .folders button { min-height: 58px; gap: 5px; padding-block: 4px; }
}
