:root{
  --bg:#ffffff;
  --fg:#000000;
  --muted:#343434b8;
  --line:rgb(255, 255, 255);
  --max:1080px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  letter-spacing:.2px;
}

a{color:inherit;text-decoration:none}

.header{
  position:sticky; top:0;
  display:flex; justify-content:space-between; align-items:center;
  padding:18px 22px;
  background:rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  z-index:10;
}

.brand{font-weight:700; letter-spacing:.18em; font-size:12px}
.nav a{margin-left:14px; color:var(--muted); font-size:14px}
.nav a:hover{color:var(--fg)}

.page{max-width:var(--max); margin:0 auto; padding:32px 18px 60px}

.hero{padding:34px 0 20px; border-bottom:1px solid var(--line)}
.kicker{
  margin:0 0 14px;
  font-size:12px;
  letter-spacing:.22em;
  color:var(--muted);
}
.hero h1{
  margin:0;
  font-size:clamp(34px, 4vw, 56px);
  line-height:1.05;
}
.sub{max-width:62ch; color:var(--muted); line-height:1.6; margin:16px 0 0}

.actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}
.btn{
  padding:10px 14px;
  border:1px solid var(--fg);
  border-radius:999px;
  font-size:10px;
}
.btn.ghost{
  border-color:var(--line);
  color:var(--muted);
}

.section{padding:26px 0; border-bottom:1px solid var(--line)}
.section-head{display:flex; justify-content:space-between; align-items:baseline; gap:14px}
.section h2{margin:0; font-size:18px; letter-spacing:.08em; text-transform:uppercase}
.muted{color:var(--muted)}
.textlink{color:var(--fg); border-bottom:1px solid var(--line)}
.textlink:hover{border-bottom-color:var(--fg)}

.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.card{
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover{transform: translateY(-2px); border-color:rgba(242,242,242,.28)}
.card h3{margin:0 0 8px; font-size:16px}
.card p{margin:0; color:var(--muted); font-size:14px}

.stack{margin-top:14px; display:grid; gap:10px}
.row{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
}
.row h3{margin:0 0 6px; font-size:16px}

.footer{
  padding-top:26px;
  display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap;
}

@media (max-width: 860px){
  .grid{grid-template-columns:1fr}
}

.project-image{
  width:100%;
  margin-top:12px;
  border-radius:12px;
  border:1px solid var(--line);
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 999;
}

.lightbox.active{
  opacity: 1;
  pointer-events: all;
}

#lightbox-img{
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  background: white;
}

.caption-small{
    font-size: 10px;
    color:hsla(0, 0%, 56%, 0.722)
}

/* About page layout */
.about-layout{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

.headshot{
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

/* Details (no bullets) */
.details{
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.details p{
  margin: 6px 0;
  font-size: 14px;
  color: var(--muted);
}

.details span{
  display: inline-block;
  width: 160px;
  color: var(--fg);
  font-weight: 500;
}

/* Mobile */
@media (max-width: 900px){
  .about-layout{
    grid-template-columns: 1fr;
  }

  .headshot{
    max-width: 160px;
  }
}

.about-card h2{
  margin-bottom: 14px;
}

/* Contact page spacing */
.card p{
  margin-bottom: 14px;
}

.download-section{
  margin-top: 24px;
}
