:root { --max: 980px; }
main, .page-content { max-width: var(--max); margin: 0 auto; }
.hero {
  padding: 28px 0 8px;
}
.hero h1 { margin-bottom: 6px; }
.subtitle { margin: 0; opacity: 0.85; }
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px auto;
  max-width: 700px;
}

.badges + .badges {
  margin-top: 6px;
}
.badge { font-size: 13px; padding: 6px 10px; border: 1px solid #e7e7e7; border-radius: 999px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.cta a { text-decoration: none; border-bottom: 1px solid transparent; }
.cta a:hover { border-bottom-color: currentColor; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.card {
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  text-align: center;        
  display: flex;             
  flex-direction: column;    
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0 0 10px; opacity: 0.9; }
.meta {display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;margin-top: 8px;  width: 100%;}
.tag { font-size: 12px; padding: 4px 8px; border: 1px solid #eee; border-radius: 999px; background: #fafafa; }
.links {display: flex; justify-content: center; gap: 12px; margin-top: 8px; width: 100%;}
.links a { text-decoration: none; border-bottom: 1px solid transparent; }
.links a:hover { border-bottom-color: currentColor; }
.section-title { margin-top: 28px; font-size: 20px; }
/* Top navigation */
.topnav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
  z-index: 10;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { font-weight: 600; text-decoration: none; }
.nav-links { display: flex; gap: 14px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; border-bottom: 1px solid transparent; }
.nav-links a:hover { border-bottom-color: currentColor; }

/* Homepage hero */
.hero { text-align: center; padding: 28px 0 10px; }
.portrait {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #e7e7e7;
  margin-bottom: 12px;
}

/* Contact row */
.contact {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}
.contact a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
}
.contact a:hover { border-bottom-color: currentColor; }

.project-media{
  width:100%;
  border-radius:10px;
  margin-bottom:10px;
  border:1px solid #e7e7e7;
}

.bio{
  max-width:700px;
  margin:10px auto 18px auto;
  font-size:15px;
  line-height:1.6;
  opacity:0.9;
}

.callout{
  border: 1px solid #e7e7e7;
  background: #fafafa;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0;
}

.arch{
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0 16px;
  background: #fff;
}
.arch-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.arch-box{
  border: 1px solid #eee;
  background: #fafafa;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 210px;
  text-align: center;
}
.arch-arrow{
  font-weight: 600;
  opacity: 0.7;
}
.arch-note{
  margin-top: 10px;
  text-align: center;
  opacity: 0.85;
  font-size: 14px;
}

.project-media{
  display:block;
  margin:20px auto;
  max-width:900px;
  width:100%;
  border-radius:10px;
}

.caption{
  text-align:center;
  font-size:14px;
  color:#555;
  margin-top:-10px;
  margin-bottom:20px;
}

.gif-table {
  width: 100%;
  table-layout: fixed;  /* equal column widths */
}

.gif-table img {
  width: 100%;
  height: auto;
}

.post-content img, article img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.tag {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #e7e7e7;
  border-radius: 999px;
  background: #fafafa;
}


