:root {
  --bg: #ffffff;
  /* background */
  --text: #111827;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;              /* allow flex layout to fill screen */
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 24px
}

/* Header nav: brand left, links right */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid #eee
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px
}

.brand {
  font-weight: 800;
  letter-spacing: 0.3px
}

.links {
  display: flex;
  gap: 22px
}

.nav-link {
  opacity: 0.9
}

.nav-link.active {
  font-weight: 700
}




.hero-content {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 1.6px;
  font-weight: 800
}

.hero-title {
  font-size: clamp(40px, 8vw, 88px);
  line-height: 0.95;
  margin: 0 0 10px;
  font-weight: 900
}

.portrait {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #00000010;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06)
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* Sections */
h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px
}

h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 14px
}

.muted {
  color: #5b677a
}

/* Cards and grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px
}

.card {
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 16px
}

.card h2,
.card h3 {
  margin: 0 0 6px
}

/* Blog list */
.post-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none
}

.post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eee
}

.post:last-child {
  border-bottom: none
}

time {
  color: #7a8699;
  font-variant-numeric: tabular-nums
}

main {
  flex: 1;                   /* take up remaining space */
}

.site-footer {
  border-top: 1px solid #eee;
  padding: 16px 24px;
  background: #fff;
}

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

  .portrait {
    justify-self: start;
    width: 200px;
    height: 200px;
  }

  .shape {
    left: -18%;
    top: 6%;
    width: 70vw;
  }
}

.profile-card {
  margin-bottom: 3rem;
  text-align: center;
}

.profile-card .card {
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fff;
}

.profile-img {
  max-width: 180px;
  height: auto;
  margin-bottom: 1rem;
  display: inline-block;
  filter: grayscale(100%); /* optional: remove if your PNG is already BW */
}

.profile-name {
  font-weight: 600;
  margin: 0.5rem 0;
}

.center {
  position: static !important;        /* ensure it scrolls */
  display: grid;
  place-items: center;
}