:root {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-synthesis: none;
  line-height: 1.5;
  color: #252d33;
  background: #fff;
  --accent: #233e55;
  --muted: #626b73;
  --border: #dce0e3;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.4; }
h1 { font-size: 26px; color: var(--accent); }
h2 { font-size: 21px; color: var(--accent); }
h3 { font-size: 14px; }
p { line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }
::selection { background: #dce6ed; color: #172c3e; }

.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: stretch; gap: 36px; min-height: 76px; }
.nav a { display: flex; align-items: center; padding-bottom: 1px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: center; gap: 40px; padding: 44px 0 38px; border-bottom: 1px solid var(--border); }
.intro-copy { min-width: 0; }
/* Follow the existing circular photo boundary; hide only the dark screenshot surround. */
.portrait { display: block; width: 180px; max-width: 100%; height: auto; clip-path: ellipse(44.5% 49.2% at 53.65% 50.25%); }
.intro p { margin-top: 14px; font-size: 16px; }
.projects { padding-top: 30px; scroll-margin-top: 24px; }
.projects h2 { margin-bottom: 18px; }
.project-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.project { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr) minmax(0, 235px); gap: 32px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--border); }
.project p { color: var(--muted); }
.project-link { justify-self: start; font-size: 13px; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: #bbc7cf; text-underline-offset: 3px; }
.project-link:hover { text-decoration-color: currentColor; }
.footer { padding: 24px 0 36px; color: var(--muted); font-size: 12px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; padding: 12px; color: #fff; background: var(--accent); }
.skip-link:focus { top: 12px; }

@media (max-width: 1000px) {
  .project { grid-template-columns: minmax(0, 150px) minmax(0, 1fr) minmax(0, 205px); gap: 24px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .nav { min-height: 64px; gap: 28px; }
  .nav a { font-size: 13px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 30px 0; }
  .portrait { width: 160px; }
  .project { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .project-link { margin-top: 2px; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 32px); }
  .nav a { font-size: 12px; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
}

@media print {
  .header, .skip-link { display: none; }
  .shell { width: 100%; }
  .project { break-inside: avoid; }
}
