:root {
  color: #20262b;
  background: #fff;
  font-family: Lato, "Segoe UI", sans-serif;
  line-height: 1.55;
  --blue: #006da4;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: .15em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.portfolio-header { border-bottom: 1px solid #e3e8ec; }
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.header-inner, .portfolio-footer .shell {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
}
.header-inner { min-height: 76px; padding-block: .8rem; }
.header-inner img { display: block; width: 190px; height: auto; }
.header-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.header-inner nav a { color: inherit; }
.header-inner nav [aria-current] { color: var(--blue); }
.intro { background: #eef7fb; padding-block: clamp(2.6rem, 7vw, 5rem); }
h1, h2 { line-height: 1.16; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.8vw, 4.6rem); letter-spacing: -.035em; }
.intro p { max-width: 59ch; font-size: clamp(1rem, 2vw, 1.18rem); margin: 1rem 0 1.35rem; }
.button {
  display: inline-block; padding: .65rem 1rem; border-radius: .35rem;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 700;
}
.button:hover { background: #005482; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1.5rem; padding-block: 2rem 3rem; }
.project { overflow: hidden; border: 1px solid #e3e8ec; border-radius: .65rem; }
.project img { width: 100%; height: auto; display: block; }
.project-cover { display: block; background: #eef2f4; }
.project-cover img { aspect-ratio: 1; object-fit: contain; }
.project-copy { padding: 1rem 1.1rem 1.2rem; }
.project h2 { font-size: 1.3rem; }
.project p { margin: .65rem 0; }
.project details { border-block: 1px solid #e3e8ec; margin-block: .95rem; padding-block: .6rem; }
.project summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.project-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-top: .65rem; }
.project-photos img { aspect-ratio: 1; object-fit: contain; background: #eef2f4; }
.portfolio-footer { background: #f3f7f9; padding-block: 1.3rem; }
@media (max-width: 860px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .projects { grid-template-columns: 1fr; gap: 1.15rem; } }
