:root {
    --bg: #f7f6f2;
    --surface: #fff;
    --ink: #262824;
    --muted: #656961;
    --line: #dedfd7;
    --accent: #944731;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #1b1d1a;
    --surface: #252823;
    --ink: #efefe8;
    --muted: #b2b6ac;
    --line: #3e433a;
    --accent: #e2a189;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.75 'DM Sans', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: 'Lora', Georgia, serif; font-weight: 400; }
h2 { font-size: 31px; line-height: 1.25; letter-spacing: -.6px; }
h3 { font-size: 21px; font-weight: 500; line-height: 1.35; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px; background: var(--surface); z-index: 100; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.nav-wrap { display: flex; align-items: center; gap: 30px; height: 82px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 21px; font-weight: 600; letter-spacing: -.8px; }
.main-nav { display: flex; gap: 30px; margin-left: auto; font-size: 13px; }
.nav-actions { display: flex; gap: 12px; }
.icon-button { border: 0; color: var(--ink); background: none; padding: 5px; min-width: 32px; min-height: 32px; font-size: 20px; line-height: 1; }
.ui-icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -.125em; }
.icon-button .ui-icon { width: 19px; height: 19px; }
.text-link .ui-icon, .project-link .ui-icon, .button .ui-icon { width: 16px; height: 16px; }
.menu-toggle { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 65px; align-items: center; padding-block: 65px 65px; }
.role-label { font-size: 14px; color: var(--accent); margin-bottom: 15px; }
.hero h1 { font-size: clamp(40px, 4.7vw, 62px); line-height: 1.13; letter-spacing: -1.7px; max-width: 700px; }
.hero-intro { max-width: 570px; font-size: 16px; line-height: 1.85; margin-top: 23px; color: var(--muted); }
.hero-links { display: flex; gap: 32px; margin-top: 27px; }
.text-link { display: inline-flex; align-items: center; gap: 17px; font-size: 13px; color: var(--accent); }
.text-link.secondary { color: var(--muted); }
.text-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.hero-meta { margin-top: 40px; color: var(--muted); font-size: 11px; }
.hero-meta span { margin-inline: 12px; color: var(--line); }
.portrait { position: relative; width: 340px; height: 387px; isolation: isolate; }
.portrait-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait-print { position: absolute; top: 54px; left: 61px; width: 245px; padding: 8px 8px 24px; background: #fffefa; transform: rotate(-4deg); box-shadow: 2px 9px 18px #34291818; }
.portrait-print img { width: 100%; height: 275px; object-fit: cover; object-position: center; }
:root[data-theme="dark"] .portrait-backdrop { opacity: .82; }
.section { padding-block: 58px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; margin-bottom: 37px; }
.section-heading > p { font-size: 13px; color: var(--muted); }
.project-list { display: flex; flex-direction: column; gap: 50px; }
.project-row { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: center; gap: 38px; }
.project-preview { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.project-preview img { width: 100%; height: auto; transition: opacity .2s; }
/* Exclude the 15px browser scrollbar captured on the right of website previews. */
.website-preview img { width: var(--preview-content-width); max-width: none; }
.project-preview:hover img { opacity: .9; }
.project-category { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.project-detail h3 { font-size: 25px; letter-spacing: -.5px; }
.project-description { font-size: 13px; line-height: 1.9; color: var(--muted); margin-top: 13px; }
.project-link { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; margin-top: 24px; color: var(--accent); overflow-wrap: anywhere; }
.project-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.project-text-only { display: block; padding: 26px 0 0; border-top: 1px solid var(--line); }
.project-text-only .project-detail { max-width: 650px; }
.project-text-only .project-detail h3 { font-size: 23px; }
.project-text-only .project-description { margin-top: 8px; }
.project-technologies { font-size: 11px; color: var(--muted); margin-top: 14px; }
.app-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 26px; background: #eeedf3; border: 1px solid var(--line); border-radius: 3px; }
.app-preview figure { width: 100%; max-width: 158px; margin-inline: auto; }
.app-screen { padding: 4px; background: #34343d; border-radius: 12px; overflow: hidden; }
.app-screen img { width: 100%; height: auto; border-radius: 8px; }
.app-preview figcaption { margin-top: 10px; color: #656476; font-size: 9px; text-align: center; }
.background-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; margin-top: 25px; padding-block: 64px; }
.about-copy > p { color: var(--muted); font-size: 14px; line-height: 1.9; margin-top: 24px; }
.about-copy .qualification { font-size: 12px; color: var(--ink); }
.small-heading { font-size: 14px; font-weight: 500; margin-top: 35px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 15px; font-size: 12px; color: var(--muted); }
.experience-copy { scroll-margin-top: 100px; }
.experience-list { margin-top: 29px; }
.experience-item { border-bottom: 1px solid var(--line); margin-bottom: 23px; padding-bottom: 23px; }
.experience-item:last-child { border-bottom: 0; }
.experience-date { font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.experience-item h3 { font-size: 16px; }
.company-name { margin-top: 4px; font-size: 13px; }
.experience-description { font-size: 11px; color: var(--muted); margin-top: 10px; }
.certificate-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.certificate-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-block: 19px; }
.certificate-item:first-child { padding-top: 0; }
.certificate-item:last-child { border: 0; padding-bottom: 0; }
.certificate-item h3 { font-size: 14px; }
.certificate-item p { font-size: 11px; color: var(--muted); margin-top: 6px; }
.certificate-item .text-link { font-size: 11px; flex-shrink: 0; }
.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-block: 64px; }
.contact-copy > p { margin-top: 23px; max-width: 390px; font-size: 14px; color: var(--muted); }
.contact-email { display: inline-flex; align-items: center; gap: 10px; margin-top: 23px; font-size: 14px; color: var(--accent); overflow-wrap: anywhere; }
.social-links { display: flex; flex-wrap: wrap; gap: 21px; font-size: 11px; color: var(--muted); margin-top: 22px; }
.social-links a, .site-footer a { display: inline-flex; align-items: center; gap: 8px; }
.social-links .ui-icon { width: 15px; height: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: block; font-size: 12px; margin-bottom: 9px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink); padding: 10px 12px; font-size: 13px; }
.contact-form input { height: 43px; }
.contact-form > label { margin-top: 18px; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.button { display: inline-flex; align-items: center; gap: 33px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); padding: 10px 19px; font-size: 12px; border-radius: 2px; margin-top: 16px; }
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.form-notice { margin-bottom: 15px; border: 1px solid var(--line); padding: 12px; font-size: 12px; }
.form-notice.success { color: #197443; background: #e2f3e8; }
.form-notice.error { color: #a42b33; background: #fce6e8; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 25px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
@media (max-width: 1000px) {
    .container { width: calc(100% - 64px); }
    .hero { gap: 28px; grid-template-columns: minmax(0, 1fr) 280px; }
    .portrait { width: 280px; height: 320px; }
    .portrait-print { top: 44px; left: 50px; width: 204px; padding: 6px 6px 20px; }
    .portrait-print img { height: 230px; }
    .project-row { gap: 27px; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); }
    .project-detail h3 { font-size: 22px; }
    .app-preview { padding: 18px; gap: 12px; }
    .project-description { font-size: 12px; }
    .background-section, .certificate-section, .contact-section { gap: 50px; }
}
@media (max-width: 700px) {
    .container { width: calc(100% - 40px); }
    .nav-wrap { height: 68px; gap: 18px; }
    .wordmark { font-size: 20px; }
    .nav-actions { margin-left: auto; gap: 9px; }
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px; }
    .main-nav.open { display: flex; flex-direction: column; gap: 0; }
    .main-nav a { padding: 10px 0; }
    .hero { grid-template-columns: 1fr; gap: 26px; padding-block: 45px; }
    .hero-copy { min-width: 0; }
    .hero h1 { font-size: clamp(38px,9vw,52px); letter-spacing: -1px; max-width: 460px; }
    .hero-intro { font-size: 14px; margin-top: 20px; }
    .role-label { font-size: 13px; margin-bottom: 12px; }
    .hero-links { gap: 25px; margin-top: 22px; }
    .hero-meta { margin-top: 27px; font-size: 10px; }
    .hero-meta span { margin-inline: 7px; }
    .portrait { width: 280px; height: 320px; justify-self: center; margin-top: 4px; }
    h2 { font-size: 27px; }
    .section { padding-block: 38px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 25px; }
    .section-heading > p { font-size: 12px; }
    .project-list { gap: 34px; }
    .app-preview { padding: 18px 14px; gap: 12px; }
    .app-screen { padding: 3px; border-radius: 8px; }
    .app-screen img { border-radius: 5px; }
    .app-preview figcaption { font-size: 8px; }
    .project-row { grid-template-columns: 1fr; gap: 17px; }
    .project-category { margin-bottom: 6px; font-size: 10px; }
    .project-detail h3 { font-size: 23px; }
    .project-description { margin-top: 9px; font-size: 13px; }
    .project-link { margin-top: 13px; }
    .project-text-only { padding-top: 22px; }
    .background-section, .certificate-section, .contact-section { grid-template-columns: 1fr; gap: 36px; }
    .background-section { margin-top: 5px; }
    .experience-copy { border-top: 1px solid var(--line); padding-top: 33px; }
    .about-copy > p, .contact-copy > p { margin-top: 20px; }
    .certificate-section { gap: 26px; }
    .form-row { gap: 14px; }
    .site-footer { font-size: 10px; padding-block: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.experience-points { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.experience-points li + li { margin-top: 7px; }
