@font-face {
  font-family: Newsreader; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('assets/newsreader-latin.woff2') format('woff2');
}
@font-face {
  font-family: Newsreader; font-style: normal; font-weight: 200 800; font-display: swap; 
  src: url('assets/newsreader-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root { font-family: Newsreader, Georgia, serif; font-size: 18px; font-optical-sizing: auto; font-weight: 400; color: #000; background: #fff; color-scheme: light; --line: #e5e5e5; --tint: #f4f4f4; }
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h2, h3, strong { font-weight: 600; }
p { line-height: 1.4; }
a { color: #000; text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: #000; }
a:focus-visible, button:focus-visible { outline: 2px solid #000; outline-offset: 5px; }
::selection { background: #e5e5e5; color: #000; }
.skip { position: fixed; top: -100px; left: 16px; background: #fff; padding: 12px; z-index: 1000; }
.skip:focus { top: 12px; }
.site-heading { text-align: center; padding: 28px 20px 18px; }
.site-heading h1 { font-size: 36px; font-weight: 500; line-height: 1.15; letter-spacing: -.6px; }
.site-heading p { font-size: 17px; margin-top: 8px; font-weight: 300; }
.topbar { position: sticky; top: 0; z-index: 10; background: #fffffff5; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1120px; margin: auto; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.segment-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--tint); }
.segment-switch a { padding: 9px 13px; font-size: 17px; border-radius: 6px; line-height: 1.2; }
.segment-switch a:first-child { background: #fff; box-shadow: 0 1px 3px #0000000d; }
.segment-switch a:hover { background: #fff; }
.cv-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; white-space: nowrap; }
.portfolio { max-width: 1120px; margin: auto; }
.intro { padding: 28px 0 32px; }
.intro p { max-width: 630px; font-size: 18px; line-height: 1.45; }
.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 36px; align-items: start; }
#work, #experience, #about { scroll-margin-top: 96px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: 27px; font-weight: 500; line-height: 1.2; letter-spacing: -.3px; }
.section-heading > span { font-size: 15px; font-weight: 300; }
.projects { display: flex; flex-direction: column; gap: 8px; }
.project-row { display: grid; grid-template-columns: 190px minmax(0,1fr); grid-template-areas: "image heading" "image detail"; gap: 0 24px; padding: 26px 0; }
.project-heading { grid-area: heading; align-self: end; }
.project-description { grid-area: detail; align-self: start; }
.project-image { grid-area: image; align-self: center; display: flex; align-items: center; justify-content: center; width: 190px; min-height: 0; background: #fff; }
.project-image > img { display: block; width: 100%; height: auto; object-fit: contain; }
.phone-mockup > img { width: auto; height: 156px; max-width: 100%; }
.project-heading h3 { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.2px; }
.project-heading h3 a { display: block; }
.project-meta { font-size: 15px; margin: 7px 0; font-weight: 300; }
.project-description { font-size: 17px; line-height: 1.4; }
#experience { position: sticky; top: 98px; }
.experience-list { list-style: none; margin: 0; padding: 0; }
.experience-list li { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: start; gap: 13px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.company-logo { display: block; width: 42px; height: 42px; object-fit: contain; border: 1px solid var(--line); border-radius: 9px; padding: 5px; background: #fff; }
.experience-list h3 { font-size: 19px; font-weight: 500; line-height: 1.2; margin-bottom: 6px; }
.experience-list p { font-size: 15px; font-weight: 300; line-height: 1.35; }
.experience-list .role { font-size: 16px; font-weight: 400; margin-bottom: 9px; }
.about { margin: 44px 0 60px; border-top: 1px solid var(--line); padding-top: 40px; display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 44px; }
.about figure img { display: block; width: 100%; height: 285px; object-fit: cover; border-radius: 5px; }
.about figcaption { font-size: 15px; font-weight: 300; line-height: 1.3; margin-top: 10px; }
.about-copy { max-width: 620px; }
.about h2 { font-size: 27px; font-weight: 500; margin-bottom: 17px; }
.about p { margin-bottom: 14px; font-size: 18px; }
.about p a { text-decoration: underline; }
.contact-link { display: inline-block; font-size: 17px; margin-top: 8px; }
footer { max-width: 1120px; margin: auto; padding: 24px 0 32px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 16px; font-weight: 300; }
footer > div { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.social-link svg { display: block; }
@media (max-width: 1184px) { .nav-inner, .portfolio, footer { margin-left: 32px; margin-right: 32px; } }
@media (max-width: 1000px) { .content-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 26px; } .project-row { grid-template-columns: 150px minmax(0,1fr); gap: 0 18px; } .project-image { width: 150px; } .section-heading > span { display: none; } }
@media (max-width: 760px) {
  .nav-inner, .portfolio, footer { margin-left: 20px; margin-right: 20px; }
  .site-heading { padding-top: 23px; } .site-heading h1 { font-size: 32px; } .site-heading p { font-size: 16px; }
  .section-heading h2, .about h2 { font-size: 25px; }
  .cv-link { font-size: 16px; }
  .nav-inner { gap: 12px; flex-wrap: wrap; padding: 12px 0; min-height: 70px; }
  .segment-switch a { padding: 9px 10px; font-size: 16px; }
  .intro { padding: 24px 0 28px; } .intro p { font-size: 18px; }
  .content-layout { grid-template-columns: 1fr; gap: 36px; }
  .project-row { padding: 22px 0; grid-template-columns: 132px minmax(0,1fr); grid-template-areas: "image heading" "detail detail"; gap: 14px 18px; align-items: center; }
  .project-heading { align-self: center; }
  .project-image { width: 132px; }
  .phone-mockup > img { height: 132px; }
  .project-meta { margin: 7px 0 0; }
  #experience { position: static; } .experience-list li { grid-template-columns: 42px minmax(0,1fr); gap: 16px; }
  .about { grid-template-columns: 150px minmax(0,1fr); gap: 24px; margin: 40px 0; padding-top: 30px; }
  .about figure img { height: 190px; } .about p { font-size: 18px; }
  footer { align-items: center; flex-direction: column; text-align: center; gap: 10px; }
  footer > div { flex-direction: column; justify-content: center; gap: 8px; }
}
@media (max-width: 420px) {
  .project-row { grid-template-columns: 116px minmax(0,1fr); gap: 12px 16px; }
  .project-image { width: 116px; }
  .phone-mockup > img { height: 120px; }
  .about { grid-template-columns: 1fr; } .about figure { max-width: 220px; } .about figure img { height: 260px; }
  #work, #experience, #about { scroll-margin-top: 96px; }
}
@media (max-width: 360px) { .nav-inner { justify-content: center; gap: 4px; } #work, #experience, #about { scroll-margin-top: 140px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Reflect anchor navigation without requiring JavaScript. */
body:has(#experience:target, #about:target) .segment-switch a:first-child { background: transparent; box-shadow: none; }
body:has(#experience:target) .segment-switch a[href="#experience"],
body:has(#about:target) .segment-switch a[href="#about"] { background: #fff; box-shadow: 0 1px 3px #0000000d; }
