body {
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0E1117;
  color: #E6EDF3;
}

/* smooth scroll */
html { scroll-behavior: smooth; }


:root {
  --sidebar-w: 280px;
  --sidebar-gap: 16px;
}

/* link style */
a {
  color: #58A6FF;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}

/* link hover */
a:hover {
  color: #79C0FF;
  border-bottom-color: currentColor;
}

/* navigation style */
nav {
  margin-top: 24px;
}
nav p {
  margin: 12px 0;
}
nav a {
  font-size: 1.1rem;
  padding: 10px 12px;
  display: block;
  border-radius: 6px;
  transition: background-color 150ms ease;
}
nav a:hover {
  background-color: rgba(88, 166, 255, 0.15);
}

/* headings and subheadings */
h1, h2 { letter-spacing: 0.2px; }
h1, h2, h3, h4, h5, h6 { color: #F0F6FC; }
strong, b { color: #E6EDF3; }
p, li, span { color: #E6EDF3; }
.image-caption, em, i { color: #9AA4B2; }
.badge-row { margin-bottom: 18px; }
h3 {
  font-size: 1.25rem;
  margin-top: 1.2rem;
}

/* images */
.page-content img, main img, article img {
  max-width: 100%;
  width: auto;
  height: auto;
}

/* hover animation */
.badge-row img, figure img {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.badge-row img:hover, figure img:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

/* image captions */
figure {
  text-align: center;
  width: 100%;
  margin: 16px 0;
}

/* cards */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 16px 24px;
  margin: 16px 0;
  width: 100%;
  box-sizing: border-box;
}
.card h3 { margin-top: 0.2rem; }
.card figure, .card img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* sidebar */
header {
  width: var(--sidebar-w);
  min-height: 100vh;
  padding: 24px 18px;
  background: #262730;
  border-radius: 12px;
  position: fixed;
  top: 0;
  left: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* profile image */
header img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e6e6e6;
}

/* main content */
section {
  animation: fadeUp 450ms ease-out both;
  margin-left: calc(var(--sidebar-w) + var(--sidebar-gap));
  padding: 0 30px;
  box-sizing: border-box;
  width: auto;
  max-width: none;
}

/* fade in animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wrapper,
.page-content,
.post-content {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* when screen is narrower than 960px, make sidebar and main content stack */
@media (max-width: 960px) {
  header {
    position: relative;
    width: 100%;
    min-height: unset;
  }
  section {
    margin-left: 0;
    padding: 0 16px;
  }
}