*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --content-width: 870px;
  --nav-height: 45px;
  --nav-width: 258px;
  --text-body: 20px;
  --text-heading: 24px;
  --text-small: 12px;
  --paragraph-gap: 30px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(226deg, #ffffff 0%, #f1f1f1 78%);
  min-height: 100vh;
  color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  line-height: 1.4;
}

/* ── Navigation Bar ── */
.navbar {
  display: flex;
  justify-content: center;
  padding-top: 40px;
  position: sticky;
  top: 40px;
  z-index: 100;
}

.navbar-inner {
  display: flex;
  align-items: center;
  width: var(--nav-width);
  height: var(--nav-height);
  background-color: rgba(84, 84, 84, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 174px;
  backdrop-filter: blur(45px);
  -webkit-backdrop-filter: blur(45px);
  padding: 6px 5px;
  gap: 4px;
  overflow: hidden;
}

.nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 46px;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}

.nav-tab--active {
  background: rgba(0, 0, 0, 0.1);
}

.nav-tab:hover:not(.nav-tab--active) {
  background: rgba(0, 0, 0, 0.05);
}

/* ── Main Content ── */
.main-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 100px 1.5rem 80px;
}

/* ── Profile Picture ── */
.profile-pic {
  display: block;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

/* ── Greeting Heading ── */
.greeting {
  margin-top: 48px;
  font-size: var(--text-heading);
  font-weight: 700;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  line-height: 1.2;
  color: #000000;
}

.greeting em {
  font-style: italic;
}

/* ── Bio Text ── */
.bio {
  margin-top: var(--paragraph-gap);
  display: flex;
  flex-direction: column;
  gap: var(--paragraph-gap);
}

.bio p {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.4;
  color: #000000;
}

.bio strong {
  font-weight: 700;
}

.bio a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bio a:hover {
  opacity: 0.7;
}

.italic-link {
  font-style: italic;
}

.italic-underline {
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-blue {
  color: #3185ce !important;
}

/* ── Update Date ── */
.update-date {
  margin-top: 40px;
  font-size: var(--text-small);
  font-weight: 400;
  color: #9d9d9d;
  white-space: nowrap;
}

/* ── Resources Page ── */
/* Nav at top:40px (45px tall) → cards at top:220px → gap = 135px */
.resources-content {
  padding-top: 135px;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 577px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  display: block;
  height: 114px;
  background: #e4e4e4;
  border-radius: 18px;
  text-decoration: none;
  color: #000000;
  transition: opacity 0.15s ease;
}

.project-card:hover {
  opacity: 0.85;
}

.card-logo {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  border-radius: 18px;
  box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  flex-shrink: 0;
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-text {
  position: absolute;
  left: 131px;
  right: 15px;
  top: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
  flex-shrink: 0;
}

.card-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #000000;
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  :root {
    --content-width: 100%;
    --text-body: 17px;
    --text-heading: 20px;
    --paragraph-gap: 24px;
  }

  .main-content {
    padding-top: 80px;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-width: 220px;
    --text-body: 15px;
    --text-heading: 18px;
  }

  .profile-pic {
    width: 72px;
    height: 72px;
  }
}
