/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.65;
  color: #1f2937;
  background-color: #f8fafc; /* subtle off-white */
}

/* Layout */
header,
main,
footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 1.75rem;
  background-color: #ffffff;
}

header {
  margin-top: 2.5rem;
  border-radius: 14px 14px 0 0;
}

main {
  margin-top: 0;
}

footer {
  margin-bottom: 3rem;
  border-radius: 0 0 14px 14px;
}

/* Navigation */
nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: #374151;
}

nav a:hover {
  color: #111827;
}

/* Typography */

h1 {
  font-size: 2.3rem;
  line-height: 1.25;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 0.3rem;
}

h2 {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

p {
  margin: 0.8rem 0;
}

strong {
  font-weight: 600;
}

/* Lists */
ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

li {
  margin-bottom: 0.4rem;
}

/* Links */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Sections */
section {
  margin-top: 0;
}

/* Article (About / Notes pages) */
article {
  margin-top: 1rem;
}

/* Subtle divider feel */
section + section {
  margin-top: 2rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1.25rem;
}

.intro {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.intro-text {
  max-width: 520px;
}

.intro-text p:first-of-type {
  font-size: 1rem;
  font-weight: 500;
  color: #4b5563;
  margin-top: 0.25rem;
}

.intro-text p {
  margin-top: 0.9rem;
}

.intro-text p strong {
  font-weight: 500;
  color: #4b5563; /* softer gray */
}

.profile-pic {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #f1f5f9;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  header,
  main,
  footer {
    padding: 1.25rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  .intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .profile-pic {
    align-self: center;
    width: 96px;
    height: 96px;
  }
}
