@font-face {font-family: PortfolioDM; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(/assets/fonts/dm-sans-latin.woff2) format("woff2");}
:root {
  color-scheme: light;
  --ink: #1c2923;
  --body: #3e4d43;
  --muted: #667469;
  --accent: #23714f;
  --line: #dce5df;
  --wash: #edf6f0;
  --page: #fafcfb;
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-padding-top: 28px; }
body { margin: 0; color: var(--body); font: 16px/1.72 PortfolioDM, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { color: var(--ink); }
p { text-wrap: pretty; }
p + p { margin-top: 12px; }
section,article,footer { scroll-margin-top: 28px; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 2; padding: 8px 14px; min-height: 44px; background: #fff; }
.skip-link:focus { top: 12px; }
.preview-bar { max-width: 1080px; margin: 16px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.preview-bar a { min-height: 44px; display: inline-flex; align-items: center; }
main { max-width: 1080px; width: calc(100% - 80px); margin: 66px auto 88px; display: grid; grid-template-columns: 300px minmax(0, 660px); gap: 120px; align-items: start; }
main:focus { outline: none; }
.identity { position: sticky; top: 42px; animation: arrive 420ms ease-out both; }
.location { font-size: 13px; letter-spacing: .02em; color: var(--muted); display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.location::before { content: ''; width: 22px; height: 2px; background: var(--accent); }
h1 { font-size: 54px; letter-spacing: -2.7px; line-height: 1.02; font-weight: 650; margin-bottom: 24px; }
h1 span { display: block; }
h1 .surname { color: var(--accent); }
h1 .surname::after { content: '.'; }
.bio { font-size: 19px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.identity p + p { margin-top: 18px; }
.identity .contract-interest { font-size: 14px; color: var(--muted); line-height: 1.65; }
.identity .contact-label { font-size: 14px; margin-top: 24px; }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; margin-top: 12px; }
.contact-group-label { grid-column: 1 / -1; font-size: 14px; color: var(--muted); margin-top: 8px; }
.contact a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 88px; padding: 8px 16px; border: 1px solid #b7cebf; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 550; transition: background 160ms, border-color 160ms; }
.contact a:first-child { color: #fff; background: var(--accent); border-color: var(--accent); }
.contact a:first-child::after { content: '↗'; margin-left: 12px; display: inline-block; transition: transform 160ms; }
.contact a:hover { background: #e4f1e9; border-color: var(--accent); }
.contact a:first-child:hover { background: #195b3d; }
.contact a:first-child:hover::after { transform: translate(2px,-2px); }
.section-nav { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 15px; margin-top: 24px; border-top: 1px solid var(--line); }
.section-nav a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; font-size: 14px; color: var(--body); text-decoration: none; position: relative; }
.section-nav a::after { content: ''; height: 2px; background: var(--accent); position: absolute; left: 0; right: 0; bottom: 7px; transform: scaleX(0); transform-origin: left; transition: transform 160ms; }
.section-nav a:hover::after, .section-nav a:focus-visible::after { transform: scaleX(1); }
.reading { min-width: 0; animation: arrive 420ms 70ms ease-out both; }
.section-heading { font-size: 26px; line-height: 1.25; letter-spacing: -.7px; font-weight: 600; margin-bottom: 34px; display: flex; gap: 22px; align-items: center; }
.section-heading::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.work-entry { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.work-entry:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.work-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 18px; }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -.4px; line-height: 1.4; }
.work-heading h3 a, .project h3 a { color: var(--ink); text-decoration-color: #b7cabe; }
.work-heading h3 a::after, .project h3 a::after { content: ' ↗'; color: var(--accent); font-size: 16px; }
.work-heading h3 a:hover, .project h3 a:hover { color: var(--accent); }
.work-kind { color: var(--muted); font-size: 12px; white-space: nowrap; }
.work-role { display: inline; font-size: 14px; font-weight: 500; color: var(--ink); }
.work-dates { display: inline; font-size: 12px; color: var(--muted); white-space: nowrap; }
.work-dates::before { content: ' / '; white-space: pre; margin: 0 4px; color: #829388; }
.work-entry .description { margin-top: 14px; }
#education { margin-top: 58px; }
#education .section-heading { margin-bottom: 22px; }
.education-institution { color: var(--ink); font-size: 18px; font-weight: 600; }
.education-faculty { margin-top: 0; font-size: 14px; color: var(--muted); }
.education-entry { margin-top: 20px; }
.education-entry h3 { font-size: 18px; letter-spacing: -.2px; }
.education-entry .education-dates { margin-top: 4px; font-size: 13px; color: var(--muted); }
.education-entry .education-status { margin-top: 2px; font-size: 14px; }
#projects { margin-top: 70px; }
.project { margin-top: 32px; }
.project:first-of-type { margin-top: 0; }
.project-status { font-size: 12px; color: var(--muted); margin-top: 6px; }
.project .description { margin-top: 14px; }
.project-source { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; }
.project-source::after { content: ' ↗'; margin-left: 8px; display: inline-block; transition: transform 160ms; }
.project-source:hover::after { transform: translate(2px,-2px); }
.secondary-project { border-top: 1px solid var(--line); padding-top: 24px; }
.secondary-project h3 { font-size: 18px; }
.hook { margin-top: 10px; }
details { margin-top: 4px; }
summary { cursor: pointer; color: var(--accent); font-size: 13px; min-height: 44px; min-width: 44px; width: fit-content; padding-block: 10px; }
summary::marker { font-size: 10px; }
summary:hover { text-decoration: underline; text-underline-offset: 4px; }
details[open] { padding-bottom: 8px; }
.technical { font-size: 14px; color: var(--muted); }
.about { margin-top: 58px; }
.about h2 { font-size: 22px; font-weight: 550; letter-spacing: -.5px; margin-bottom: 16px; }
.closing { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.closing h2 { font-size: 23px; font-weight: 550; line-height: 1.35; letter-spacing: -.5px; margin-bottom: 14px; }
.motto { margin-top: 38px; font-size: 20px; line-height: 1.45; letter-spacing: -.45px; color: var(--ink); }
.motto span { color: var(--accent); }
@keyframes arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (hover:hover) {
  .work-entry { transition: border-color 180ms; }
  .work-entry:hover { border-color: #9ebdab; }
}
@media (max-width: 1200px) {
  .preview-bar { margin-inline: 40px; }
  main { grid-template-columns: 260px minmax(0,660px); gap: 72px; }
}
@media (max-width: 820px) {
  .preview-bar { margin-inline: 24px; }
  main { display: block; max-width: 640px; width: calc(100% - 48px); margin-top: 38px; }
  .identity { position: static; }
  h1 { font-size: 40px; letter-spacing: -1.8px; margin-bottom: 16px; }
  h1 span { display: inline; }
  .location { margin-bottom: 12px; }
  .bio { font-size: 18px; }
  .identity p + p { margin-top: 12px; }
  .identity .contact-label { margin-top: 16px; }
  .section-nav { margin-top: 20px; padding-top: 6px; }
  .reading { margin-top: 34px; }
  .section-heading { font-size: 25px; margin-bottom: 28px; }
}
@media (max-width: 480px) {
  .preview-bar { margin-inline: 20px; font-size: 12px; }
  main { width: calc(100% - 40px); margin-top: 28px; margin-bottom: 48px; }
  h1 { font-size: 37px; letter-spacing: -1.6px; }
  .work-heading { gap: 5px 10px; }
  .work-heading h3 { font-size: 20px; }
  .work-kind { font-size: 11px; }
  .work-role { display: block; margin-top: 6px; }
  .work-dates { display: block; margin-top: 2px; }
  .work-dates::before { content: none; }
  #education, #projects { margin-top: 52px; }
}
@media (max-height: 760px) and (min-width: 821px) { .identity { position: static; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  html { background: #fff; }
  .preview-bar,.skip-link,.section-nav { display: none; }
  main { display: block; max-width: 760px; }
  .identity { position: static; margin-bottom: 36px; }
  body { font-size: 12pt; }
}

.error-page {display:block;max-width:660px;padding-block:48px;}
.error-page h1 {font-size:40px;margin-block:20px;}
.error-page .project-source {margin-top:20px;}
