/* =========================
   Base
========================= */

body {
  font-family: Georgia, serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
  margin: 0;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.container {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}


/* =========================
   Navigation
========================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-bottom: 15px;
  margin-bottom: 45px;

  border-bottom: 1px solid #ddd;
}

.site-name {
  color: #111;
  text-decoration: none;

  font-size: 18px;
  font-weight: bold;

  white-space: nowrap;
}

.site-name:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #111;
  text-decoration: none;

  font-size: 15px;
  white-space: nowrap;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-links a.active {
  color: #111;
  font-weight: bold;
}


/* =========================
   Theme Toggle
========================= */

#theme-toggle {
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;

  color: #111;

  font-family: Georgia, serif;
  font-size: 14px;

  cursor: pointer;

  padding: 5px 10px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

#theme-toggle:hover {
  background: #eaeaea;
  border-color: #aaa;
}


/* =========================
   Profile Photo
========================= */

.hero-photo {
  margin-bottom: 25px;
}

.hero-photo img {
  width: 300px;
  height: 300px;

  object-fit: cover;
  display: block;
}


/* =========================
   Profile
========================= */

.profile {
  margin-bottom: 25px;
}

.profile-info h1 {
  margin-top: 0;
  margin-bottom: 5px;
}

h1 {
  font-size: 32px;
}

h2 {
  margin-top: 40px;
  font-size: 20px;
}

h3 {
  font-size: 18px;
}


/* =========================
   Links
========================= */

a {
  color: #0645ad;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* =========================
   Lists
========================= */

ul {
  padding-left: 25px;
}


/* =========================
   Horizontal Rule
========================= */

hr {
  margin: 30px 0;

  border: none;
  border-top: 1px solid #ddd;
}


/* =========================
   Footer
========================= */

footer {
  margin-top: 50px;
  padding-top: 20px;
  padding-bottom: 30px;

  border-top: 1px solid #ddd;

  color: #777;
  font-size: 14px;
}


/* =========================
   Dark Theme
========================= */

body.dark {
  background: #111;
  color: #eee;
}

body.dark .navbar {
  border-bottom-color: #333;
}

body.dark .site-name {
  color: #eee;
}

body.dark .nav-links a {
  color: #eee;
}

body.dark .nav-links a.active {
  color: #fff;
}

body.dark a {
  color: #8ab4f8;
}

body.dark hr,
body.dark footer {
  border-color: #333;
}

body.dark footer {
  color: #999;
}

body.dark #theme-toggle {
  background: #222;
  border-color: #444;
  color: #eee;
}

body.dark #theme-toggle:hover {
  background: #2c2c2c;
  border-color: #666;
}


/* =========================
   Tablet
========================= */

@media (max-width: 750px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    justify-content: flex-start;
  }
}


/* =========================
   Mobile
========================= */

@media (max-width: 500px) {
  .container {
    margin: 25px auto;
    padding: 0 18px;
  }

  .navbar {
    margin-bottom: 35px;
  }

  .site-name {
    font-size: 17px;
  }

  .nav-links {
    width: 100%;
    gap: 10px 16px;
  }

  .nav-links a {
    font-size: 14px;
  }

  #theme-toggle {
    font-size: 16px;
  }

  .hero-photo img {
    width: 220px;
    height: 220px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 19px;
  }

  p,
  li {
    font-size: 16px;
  }
}