@charset "UTF-8";

/* Modern professional style */

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  font-size: 16px;
  line-height: 1.6;

  background: #f3f4f6;

  min-height: 100vh;

  margin: 0;
  padding: 0;

  color: #374151;
}

#container {
  max-width: 880px;
  margin: 0 auto;
  padding: 27px 20px;
}

/* Header */

header {
  margin-bottom: 17px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;

  padding-bottom: 12px;

  border-bottom: 3px solid #4085f4;
}

h1 {
  font-size: 2.4rem;
  font-weight: 600;

  color: #1a365d;

  margin: 0;
}

/* Navigation */

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav a {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  font-weight: 600;

  color: #1a365d;

  padding:
    0.45rem
    0.8rem;

  border-radius: 999px;

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

.site-nav a:hover {
  color: #4085f4;
  background: rgba(64, 133, 244, 0.08);
  text-decoration: none;
}

.site-nav a.active {
  background: rgba(64, 133, 244, 0.14);
  color: #1f4fa8;
}

.nav-icon {
  display: none;
}

.nav-label {
  display: block;
}

/* Main content */

h2 {
  font-size: 1.15rem;
  font-weight: 600;

  color: #fff;

  background: #4085f4;

  padding: 10px 18px;

  margin: 0 0 13px 0;

  border-radius: 6px;
}

#content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#info {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;

  background: #fff;

  padding: 20px;

  border-radius: 8px;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#face {
  flex-shrink: 0;
  order: 1;
}

#face img {
  width: 200px;
  height: auto;

  border-radius: 6px;
}

#contact {
  flex: 1;
  min-width: 250px;
  order: 2;
}

#contact p {
  margin: 0 0 12px 0;
  padding: 0;
}

#position {
  font-size: 1.25rem;
  font-weight: 600;

  color: #4085f4;

  margin-bottom: 15px;
}

#links {
  flex-shrink: 0;
  min-width: 100px;
  order: 3;
}

.link-list {
  list-style: none;

  margin: 0;
  padding: 0;
}

.link-list li {
  margin-bottom: 4px;
}

.link-list li a {
  display: block;

  padding: 5px 9px;

  background: #fff;

  border-radius: 3px;

  text-decoration: none;

  color: #4085f4;

  font-weight: 500;
  font-size: 0.875rem;

  transition: all 0.2s ease;

  border: 1px solid #e5e7eb;

  text-align: center;
}

.link-list li a:hover {
  background: #4085f4;
  color: #fff;
  border-color: #4085f4;
}

#aboutme,
#recent-thoughts {
  background: #fff;

  padding: 18px 20px;

  border-radius: 8px;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#info > *:last-child,
#aboutme > *:last-child,
#recent-thoughts > *:last-child {
  margin-bottom: 0;
}

#aboutme p {
  padding-inline: 6px;
}

a {
  color: #4085f4;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2b6aec;
  text-decoration: underline;
}

p {
  margin: 0 0 9px 0;
  padding: 0;
}

.list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.list li {
  margin-bottom: 12px;

  line-height: 1.5;

  padding-top: 10px;
  padding-bottom: 6px;
  padding-left: 12px;
  padding-right: 12px;

  background: #f9fafb;

  border-radius: 6px;

  border-left: 3px solid #4085f4;
}

.strong {
  font-weight: 600;
  color: #1a365d;
}

/* Microblog */

.microblog-header {
  position: relative;
}

.microblog-header h2 {
  padding-right: 56px;
}

.microblog-rss-link {
  position: absolute;
  top: 50%;
  right: 10px;

  transform: translateY(-50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.08);

  color: rgba(255, 255, 255, 0.98);

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

.microblog-rss-link:hover {
  background: rgba(255, 255, 255, 0.24);

  color: #ffffff;

  text-decoration: none;
}

.microblog-rss-link svg {
  width: 20px;
  height: 20px;

  fill: #ffffff;

  display: block;
}

.microblog-post {
  margin-bottom: 0.6rem;
  transition: background-color 0.2s ease;
}

.microblog-post:hover {
  background-color: #f5f7fa;
}

.microblog-content {
  line-height: 1.45;
}

.microblog-content a {
  overflow-wrap: anywhere;
}

.microblog-permalink {
  display: inline-block;

  margin-top: 0.15rem;

  font-size: 0.85rem;

  color: #9ca3af;
}

.microblog-permalink:hover {
  color: #6b7280;
}

/* Footer */

footer {
  margin-top: 27px;

  padding-top: 14px;

  border-top: 1px solid #e5e7eb;

  text-align: center;

  color: #9ca3af;

  font-size: 0.9rem;
}

/* Tablet */

@media (max-width: 768px) {

  #container {
    padding: 30px 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
  }

  #info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }

  #contact {
    min-width: auto;
  }

  #links {
    width: 100%;
  }

  .link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .link-list li {
    margin: 0;
  }

  h1 {
    font-size: 1.9rem;
  }

  #aboutme,
  #recent-thoughts {
    padding: 24px;
  }

}

/* Mobile */

@media (max-width: 480px) {

  body {
    padding-bottom: 88px;
  }

  #container {
    padding: 20px 12px;
  }

  header {
    margin-bottom: 25px;
  }

  .topbar {
    align-items: center;
  }

  h1 {
    font-size: 1.6rem;
    margin-bottom: 0;
  }

  .site-nav {
    position: fixed;

    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));

    transform: translateX(-50%);

    z-index: 1000;

    width: auto;
    max-width: calc(100vw - 28px);

    gap: 0.02rem;

    padding:
      0.14rem
      0.68rem;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.70);

    border: 1px solid rgba(255, 255, 255, 0.72);

    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.82);

    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
  }

  .site-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 82px;

    padding:
      0.30rem
      1.00rem;

    border-radius: 999px;

    color: #344256;

    background: transparent;

    transition:
      background 0.18s ease,
      color 0.18s ease,
      transform 0.18s ease,
      padding 0.18s ease,
      margin 0.18s ease;

    -webkit-tap-highlight-color: transparent;
  }

  .site-nav a:hover,
  .site-nav a:focus,
  .site-nav a:active {
    background: transparent;
    color: #344256;
  }

  .site-nav a.active {
    background: rgba(255, 255, 255, 0.48);

    color: #3560b8;

    padding-top: 0.22rem;
    padding-bottom: 0.22rem;

    margin-left: 0.10rem;
    margin-right: 0.10rem;

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.82),
      0 2px 5px rgba(37, 99, 235, 0.16);

    transform: translateY(-1px);
  }

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

    margin-bottom: 0.04rem;
  }

  .nav-icon svg {
    width: 26px;
    height: 26px;

    display: block;
  }

  .nav-icon .icon-solid {
    display: none;

    fill: currentColor;
  }

  .nav-icon .icon-outline {
    display: block;

    fill: none;
    stroke: currentColor;

    opacity: 0.88;
  }

  .site-nav a.active .nav-icon .icon-outline {
    display: none;
  }

  .site-nav a.active .nav-icon .icon-solid {
    display: block;
  }

  .nav-label {
    display: block;

    margin-top: 0.10rem;

    font-size: 0.70rem;
    font-weight: 500;
    line-height: 1;

    color: inherit;
  }

  h2 {
    font-size: 1.05rem;
    padding: 10px 14px;
    margin-bottom: 14px;
  }

  #info {
    padding: 20px 16px;
    gap: 20px;
  }

  #face img {
    width: 140px;
  }

  #position {
    font-size: 1.1rem;
  }

  #links {
    padding: 14px;
  }

  .link-list {
    justify-content: center;
    gap: 8px;
  }

  .link-list li a {
    padding: 10px 14px;
    font-size: 0.95rem;
    min-width: 110px;
  }

  #aboutme,
  #recent-thoughts {
    background: #fff;

    padding: 20px 16px;

    border-radius: 8px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  .list li {
    margin-bottom: 12px;

    padding-top: 10px;
    padding-bottom: 6px;
    padding-left: 12px;
    padding-right: 12px;

    font-size: 0.95rem;
  }

  .microblog-post {
    margin-bottom: 1rem;
  }

  #content {
    gap: 20px;
  }

  footer {
    margin-top: 35px;
    font-size: 0.85rem;
  }

}
