@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    color-scheme: light;
    --paper: #f4f2ec;
    --ink: #22231f;
    --muted: #77776f;
    --line: #deddd4;
    --green: #4f714e;
    --soft-green: #e5eade;
    --sans: 'DM Sans', 'Segoe UI', sans-serif;
    --display: 'Space Grotesk', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: #d2dfc6; }
.wrap { width: min(100% - 80px, 1040px); margin-inline: auto; }

.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid rgba(34,35,31,.09); background: rgba(244,242,236,.94); backdrop-filter: blur(10px); }
.nav { position: relative; display: flex; height: 68px; align-items: center; justify-content: space-between; }
.wordmark { color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -1.4px; text-decoration: none; }
.wordmark > span { color: var(--green); }
.menu-toggle { display: flex; width: 39px; height: 39px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #ccccc2; border-radius: 5px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.active span:first-child { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
.nav-links { position: absolute; z-index: 11; top: calc(100% + 9px); right: 0; display: none; min-width: 190px; flex-direction: column; gap: 0; padding: 7px; border: 1px solid #deddd4; border-radius: 7px; background: var(--paper); box-shadow: 0 12px 28px rgba(34,35,31,.12); }
.nav-links.open { display: flex; }
.nav-links a { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; border-radius: 4px; color: #565750; font-size: 12px; text-decoration: none; transition: background .2s ease, color .2s ease; }
.nav-links a:hover { background: #e9e8df; color: var(--green); }
.nav-links a span { color: var(--green); }

.intro { position: relative; display: grid; min-height: 585px; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 55px; padding-bottom: 85px; }
.intro-copy { align-self: center; padding: 4px 0 0 14px; }
.overline, .section-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; }
.location-dot { width: 7px; height: 7px; border-radius: 50%; background: #6d9466; }
.flag { font-size: 14px; }
h1, h2, p, figure { margin-top: 0; }
.intro h1 { margin: 24px 0 17px; font-family: var(--display); font-size: clamp(47px, 6.4vw, 75px); font-weight: 600; letter-spacing: -5.5px; line-height: 1.03; }
.intro h1 > span:first-of-type { color: var(--green); }
.hand-underline { position: relative; display: inline-block; color: var(--green); }
.hand-underline::after { position: absolute; right: 2px; bottom: -3px; left: 2px; height: 5px; border-top: 2px solid #9aae88; border-radius: 50%; content: ""; transform: rotate(-2deg); }
.intro-text { max-width: 470px; margin-bottom: 19px; color: #66675f; font-size: 13px; line-height: 1.85; }
.intro-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #6c6c64; font-size: 10px; }
.intro-meta strong { color: var(--ink); font-size: 12px; font-weight: 700; }
.meta-separator { color: #aaa99f; }
.social-links { display: flex; align-items: center; gap: 9px; margin-top: 26px; }
.social-links a, .footer-socials a { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid #d8d7ce; border-radius: 50%; color: #343630; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.social-links a:hover, .footer-socials a:hover { border-color: var(--green); background: var(--green); color: white; }
.social-links svg, .footer-socials svg { width: 16px; height: 16px; fill: currentColor; }
.social-note { padding-left: 4px; color: #83837a; font-size: 10px; }
.portrait { position: relative; width: min(100%, 370px); justify-self: center; margin-bottom: 0; padding: 10px 10px 0; transform: rotate(1.5deg); }
.portrait::before { position: absolute; z-index: -1; top: 24px; right: -8px; bottom: 25px; left: 26px; border: 1px solid #aab89c; content: ""; transform: rotate(-3.5deg); }
.portrait img { display: block; width: 100%; aspect-ratio: 1 / 1.14; object-fit: cover; object-position: center 42%; filter: saturate(.78); }
.portrait figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px 2px; color: #74756c; font-family: var(--display); font-size: 9px; letter-spacing: .2px; }
.portrait figcaption span:last-child { color: var(--green); }
.portrait-sticker { position: absolute; top: 27px; left: -25px; display: grid; width: 58px; height: 58px; place-content: center; border-radius: 50%; background: #e2e7d9; color: var(--green); font-family: var(--display); font-size: 12px; font-weight: 600; line-height: 1.05; text-align: center; transform: rotate(-13deg); }
.visitor-stats { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px 20px; padding: 17px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.visitor-heading { color: #77776f; font-family: var(--display); font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.visitor-metrics { display: flex; align-items: center; gap: 25px; }
.visitor-metrics > div { display: flex; align-items: baseline; gap: 6px; }
.visitor-metrics strong { font-family: var(--display); font-size: 16px; font-weight: 600; }
.visitor-metrics span, .visitor-status { color: #77776f; font-size: 9px; }
.visitor-status { grid-column: 1 / -1; margin: 0; }
.section-block { padding: 48px 14px 55px; border-top: 1px solid var(--line); }
.section-label { gap: 10px; font-size: 9px; }
.section-label span { color: var(--green); }
.about-copy { max-width: 650px; margin: 24px 0 0; }
.about h2, .skills h2 { margin-bottom: 0; font-family: var(--display); font-size: clamp(24px, 3.2vw, 34px); font-weight: 500; letter-spacing: -1.7px; line-height: 1.25; }
.about h2 span { color: var(--green); }
.about-copy > div, .about-copy > p { color: #66675f; font-size: 12px; line-height: 1.85; }
.about-copy > p { margin-bottom: 9px; }
.about-copy > p strong { color: var(--ink); font-weight: 700; }

.skills-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 21px 0 24px; }
.skills h2 { font-size: 30px; }
.skills h2 span { color: var(--green); }
.skills-heading > p { margin-bottom: 4px; color: #77776f; font-size: 11px; }
.tech-list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #d8d7ce; border-bottom: 1px solid #d8d7ce; }
.tech-item { display: flex; min-height: 90px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border-right: 1px solid #d8d7ce; border-bottom: 1px solid #d8d7ce; color: #595a54; font-size: 9px; transition: background .2s ease; }
.tech-item:first-child { border-left: 1px solid #d8d7ce; }
.tech-item:hover { background: rgba(255,255,255,.4); }
.tech-item svg { width: 28px; height: 28px; color: #393b36; }
.tech-item .tech-express { width: 44px; }
.tech-item:nth-child(5n+1) { border-left: 1px solid #d8d7ce; }
.tech-item:nth-last-child(-n+5) { border-bottom: 0; }
.tech-item .tech-react { color: #369bc0; }
.tech-item .tech-express { color: #43443e; }
.tech-item .tech-java { color: #b85345; }
.tech-item .tech-git { color: #dc684a; }
.tech-item .tech-js { color: #b49b23; }
.tech-item .tech-python { color: #3e6e9f; }
.tech-item .tech-node { color: #51854b; }
.tech-item .tech-html { color: #cf6248; }
.tech-item .tech-css { color: #527fa7; }
.tech-item .tech-tailwind { color: #43a4ae; }

.project-list { margin-top: 22px; border-top: 1px solid #d8d7ce; }
.project-row { display: grid; min-height: 78px; grid-template-columns: 44px 1fr auto 24px; align-items: center; gap: 13px; border-bottom: 1px solid #d8d7ce; text-decoration: none; transition: background .2s ease, padding .2s ease; }
.project-row:hover { padding-inline: 10px; background: rgba(255,255,255,.38); }
.project-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 7px; background: #e6e9df; color: var(--green); font-family: var(--display); font-size: 12px; font-weight: 700; }
.bot-icon { background: #e2e9e1; color: #487a55; }
.bot-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.project-description { display: flex; flex-direction: column; gap: 3px; }
.project-description strong { font-family: var(--display); font-size: 13px; font-weight: 600; }
.project-description small { color: #74756d; font-size: 10px; }
.project-status { display: inline-flex; align-items: center; gap: 7px; color: #77776f; font-size: 9px; }
.project-status i { width: 6px; height: 6px; border-radius: 50%; background: #8ca47d; }
.project-arrow { color: var(--green); font-size: 16px; text-align: right; }

.contact-section { margin-top: 4px; padding-top: 40px; padding-bottom: 48px; background: #ebeae2; }
.contact-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 17px 0 21px; }
.contact-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(28px, 4vw, 39px); font-weight: 600; letter-spacing: -2px; }
.contact-heading p { margin: 0 0 5px; color: #6d6e65; font-size: 12px; }
.contact-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contact-link { display: flex; min-height: 92px; align-items: center; gap: 15px; padding: 15px 18px; border: 1px solid #d6d6cc; border-radius: 7px; background: rgba(248,247,242,.72); text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.contact-link:hover { transform: translateY(-2px); border-color: #9baa8d; background: #f7f6f0; }
.contact-icon { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #e4e9de; color: var(--green); }
.contact-icon svg { width: 22px; height: 22px; fill: currentColor; }
.paypal-link .contact-icon { background: #e5e9f3; color: #3456a0; }
.contact-copy { display: flex; min-width: 0; flex-direction: column; }
.contact-copy small { color: #85867d; font-family: var(--display); font-size: 8px; font-weight: 600; letter-spacing: 1px; }
.contact-copy strong { margin-top: 1px; font-family: var(--display); font-size: 15px; font-weight: 600; }
.contact-copy > span { color: #75766d; font-size: 10px; }
.contact-arrow { margin-left: auto; color: var(--green); font-size: 18px; }
.footer { margin-top: 15px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; min-height: 65px; align-items: center; justify-content: flex-start; gap: 15px; }
.footer .wordmark { font-size: 17px; }

@media (max-width: 700px) {
    .wrap { width: min(100% - 40px, 520px); }
    .nav { height: 60px; }
    .intro { min-height: 0; grid-template-columns: 1fr .75fr; gap: 15px; padding-top: 55px; padding-bottom: 75px; }
    .intro-copy { padding-left: 0; }
    .intro h1 { font-size: clamp(42px, 8.4vw, 58px); letter-spacing: -3px; }
    .portrait { width: 100%; padding-inline: 3px; }
    .portrait-sticker { left: -16px; width: 49px; height: 49px; font-size: 10px; }
    .visitor-stats { grid-template-columns: 1fr; gap: 10px; padding-inline: 0; }
    .visitor-metrics { justify-content: space-between; gap: 7px; }
    .visitor-metrics > div { align-items: flex-start; flex-direction: column; gap: 0; }
    .visitor-metrics strong { font-size: 15px; }
    .visitor-status { grid-column: auto; }
    .section-block { padding: 38px 0 43px; }
    .about h2 { font-size: 25px; }
    .skills h2 { font-size: 26px; }
    .contact-section { padding-inline: 18px; }
    .contact-links { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .wrap { width: calc(100% - 36px); }
    .intro { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding-top: 45px; padding-bottom: 70px; }
    .intro-copy { order: 1; }
    .portrait { order: 0; width: min(72%, 290px); align-self: flex-end; margin-right: 10px; }
    .portrait img { aspect-ratio: 1 / 1; }
    .portrait-sticker { top: 18px; }
    .overline { font-size: 9px; }
    .intro h1 { margin-top: 17px; font-size: clamp(47px, 13vw, 62px); line-height: 1.02; }
    .intro-text { max-width: 390px; font-size: 12px; }
    .intro-meta { gap: 6px; font-size: 9px; }
    .intro-meta strong { font-size: 11px; }
    .social-links { margin-top: 19px; }
    .about-copy { margin-top: 18px; }
    .about h2 { font-size: 25px; }
    .about-copy > p { font-size: 11px; }
    .skills-heading { align-items: flex-start; flex-direction: column; gap: 5px; margin: 17px 0; }
    .skills h2 { font-size: 28px; }
    .skills-heading > p { margin-bottom: 0; font-size: 10px; }
    .tech-list { grid-template-columns: repeat(2, 1fr); }
    .tech-item { min-height: 82px; border-bottom: 1px solid #d8d7ce; }
    .tech-item:nth-child(5n+1) { border-left: 0; }
    .tech-item:nth-child(2n+1) { border-left: 1px solid #d8d7ce; }
    .tech-item:nth-child(2n) { border-right: 0; }
    .tech-item:last-child { grid-column: 1 / -1; border-bottom: 0; border-left: 1px solid #d8d7ce; border-right: 1px solid #d8d7ce; }
    .project-row { min-height: 73px; grid-template-columns: 37px 1fr 18px; gap: 9px; }
    .project-status { display: none; }
    .project-description small { font-size: 9px; }
    .contact-section { padding: 30px 0 34px; }
    .contact-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .contact-heading h2 { font-size: 31px; }
    .contact-heading p { font-size: 10px; }
    .contact-links { grid-template-columns: 1fr; gap: 8px; }
    .contact-link { min-height: 78px; padding: 11px 13px; }
    .contact-icon { width: 38px; height: 38px; }
    .footer-inner { min-height: 68px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
