:root{
  --max: 920px;
  --text: #1f1f1f;
  --muted: #4b4b4b;
  --border: #e6e6e6;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:#fff;
  line-height:1.45;
}

.container{
  max-width: var(--max);
  margin: 28px auto 48px;
  padding: 0 22px;
}

a{ color: var(--text); text-decoration: underline; }
a:hover{ text-decoration: none; }

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.topbar-links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.dot{ color:#777; }

.counter{
  color: var(--muted);
  white-space: nowrap;
}

.stackwrap{
  margin-top: 18px;
  text-align:center;
}

.stackimg{
  width: 420px;
  max-width: 100%;
  height: auto;
  display:block;
  margin: 0 auto 10px;
}

.stackblurb{
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
}

.hero{
  display:flex;
  align-items:flex-start;
  gap: 22px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.hero-photo{
  width: 270px;
  height: 320px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 10px;
  flex-shrink:10;
}

.name{
  margin: 0 0 6px 0;
  font-size: 2.2rem;
}

.meta{
  margin: 0 0 12px 0;
  color: var(--muted);
}

.summary{
  margin: 0;
  max-width: 700px;
}

main{ margin-top: 22px; }

h2{
  margin: 28px 0 12px 0;
  font-size: 1.35rem;
}

.role{
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.role-head{
  margin-bottom: 8px;
}

.company{
  font-weight: 700;
}

.title{
  color: var(--muted);
}

ul{ margin: 8px 0 0 20px; }

.edu{
  padding: 6px 0 0;
}

.edu-school{ font-weight: 700; }
.edu-degree{ color: var(--muted); }

.certs{
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: stretch;
}

.cert{
  display:flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 10px;
  width: 220px;
  min-height: 220px;
}

.cert img{
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.cert-label{
  font-size: 0.95rem;
  color: var(--text);
}

.cert-textonly{
  justify-content: center;
  align-items: center;
  text-align:center;
}

.skills{
  margin-left: 20px;
}

.footer{
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align:center;
  color:#666;
  font-size: 0.9rem;
}

@media (max-width: 760px){
  .topbar{ flex-direction: column; align-items:flex-start; }
  .hero{ flex-direction: column; }
  .hero-photo{ width: 100%; height: 380px; }
  .cert{ width: 100%; }
  .stackimg{ width: 100%; }
}
