:root {
    --ink: #141414;
    --muted: #747474;
    --line: #e8e8e8;
    --soft: #f6f6f4;
    --green-0: #ebedf0;
    --green-1: #d8e8d4;
    --green-2: #a8cf9c;
    --green-3: #6daa68;
    --green-4: #367a45;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.site-header { padding: 27px 5vw; }
nav { display: flex; gap: 24px; }
nav a { color: var(--ink); font-size: 14px; text-decoration: none; }
nav a:hover, .section-heading a:hover, .contacts a:hover, .project:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

main, footer { width: min(100% - 10vw, 940px); margin: 0 auto; }
.hero { min-height: 53vh; display: flex; align-items: center; gap: clamp(34px, 7vw, 86px); padding: 58px 0 52px; }
.profile-photo { width: clamp(165px, 25vw, 255px); aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(100%); border-radius: 18px; }
.hero-copy h1, .hero-copy p { margin: 0; font-size: clamp(25px, 3.3vw, 42px); font-weight: 400; line-height: 1.16; letter-spacing: -0.045em; }
.hero-copy p { color: var(--muted); margin-top: 5px; }

.content-section { padding: 68px 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 31px; font-family: "DM Mono", monospace; font-size: 11px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.about { padding-top: 48px; }
.about-space { min-height: 52px; }
.section-heading { display: flex; justify-content: space-between; align-items: start; }
.section-heading a { color: var(--muted); font-family: "DM Mono", monospace; font-size: 11px; text-decoration: none; }

.contribution-graph { max-width: 760px; padding: 18px 18px 14px; border: 1px solid var(--line); overflow: hidden; }
.months { display: grid; grid-template-columns: repeat(6, 1fr); padding-left: 29px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.graph-wrap { display: flex; gap: 8px; margin-top: 7px; }
.weekdays { display: flex; flex: 1 0 21px; height: 75px; flex-direction: column; justify-content: space-around; color: var(--muted); font-family: "DM Mono", monospace; font-size: 8px; }
.graph-grid { display: grid; grid-template-rows: repeat(7, 9px); grid-auto-flow: column; grid-auto-columns: 9px; gap: 3px; overflow: hidden; }
.graph-cell, .legend i { display: block; width: 9px; height: 9px; background: var(--green-0); border-radius: 1px; }
.level-1 { background: var(--green-1); }.level-2 { background: var(--green-2); }.level-3 { background: var(--green-3); }.level-4 { background: var(--green-4); }
.graph-footer { display: flex; justify-content: space-between; margin-top: 13px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.legend { display: flex; align-items: center; gap: 3px; }.legend i { margin: 0; }.legend i:first-of-type { margin-left: 4px; }.legend i:nth-of-type(2) { background: var(--green-1); }.legend i:nth-of-type(3) { background: var(--green-2); }.legend i:nth-of-type(4) { background: var(--green-3); }.legend i:nth-of-type(5) { background: var(--green-4); margin-right: 4px; }

.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; border-top: 1px solid var(--line); }
.contacts a { display: flex; justify-content: space-between; padding: 12px 0; margin-right: 40px; border-bottom: 1px solid var(--line); font-size: 15px; text-decoration: none; }.contacts .contact-email { grid-column: 1 / -1; margin-right: 0; }.contacts span, .project h3 span { color: var(--muted); }
.project-list { max-width: 760px; border-top: 1px solid var(--line); }
.hi { display: flex; justify-content: space-between; padding: 12px 0; margin-right: 40px; border-bottom: 1px solid var(--line); font-size: 15px; text-decoration: none; }.contacts .contact-email { grid-column: 1 / -1; margin-right: 0; }.contacts span, .project h3 span { color: var(--muted); }
.project { display: grid; grid-template-columns: 39px 1fr; gap: 16px; padding: 19px 0 21px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left .2s ease; }
.project:hover { padding-left: 7px; }.project-index { padding-top: 3px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 11px; }.project h3 { margin: 0 0 5px; font-size: 16px; font-weight: 500; }.project p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.resource-card { min-height: 156px; padding: 18px; border: 1px solid var(--line); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.resource-card:hover { border-color: var(--ink); transform: translateY(-3px); }.resource-card span { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }.resource-card h3 { margin: 27px 0 0; font-size: 16px; font-weight: 500; line-height: 1.35; }.resource-card i { color: var(--muted); font-style: normal; }
.notes-intro { max-width: 620px; margin: -12px 0 22px; color: var(--muted); line-height: 1.55; }.resource-button { display: inline-flex; gap: 22px; align-items: center; padding: 11px 14px; border: 1px solid var(--ink); font-size: 14px; text-decoration: none; transition: background .2s ease, color .2s ease; }.resource-button:hover { background: var(--ink); color: #fff; }.notes-list { margin-top: 32px; }
footer { padding: 24px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.subpage-main { min-height: calc(100vh - 131px); }.first-section { border-top: 0; padding-top: 58px; }.home-link { display: inline-block; margin-bottom: 56px; color: var(--muted); font-size: 14px; text-decoration: none; }.home-link:hover { color: var(--ink); }.page-title { margin: 0 0 36px; font-size: clamp(32px, 5vw, 54px); font-weight: 400; letter-spacing: -.05em; }

@media (max-width: 600px) {
    .site-header { padding: 21px 6vw; } main, footer { width: min(100% - 12vw, 940px); }.hero { min-height: 46vh; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 40px 0 46px; }.profile-photo { width: 150px; }.content-section { padding: 49px 0; }.about { padding-top: 36px; }.about-space { min-height: 36px; }.section-heading { display: block; }.section-heading a { display: block; margin-top: -17px; margin-bottom: 28px; }.contribution-graph { padding: 14px 10px 12px; }.months { display: none; }.graph-grid { grid-template-rows: repeat(7, 8px); grid-auto-columns: 8px; gap: 3px; }.graph-cell { width: 8px; height: 8px; }.weekdays { height: 70px; }.graph-footer { font-size: 8px; }.contacts { grid-template-columns: 1fr; }.contacts a { margin-right: 0; }.legend { display: none; }.first-section { padding-top: 24px; }.home-link { margin-bottom: 42px; }.resource-grid { grid-template-columns: 1fr; }.resource-card { min-height: 0; }.resource-card h3 { margin-top: 18px; }
}
