:root {
  --global-bg-color: #ffffff;
  --global-code-bg-color: #f7f7f7;
  --global-text-color: #111111;
  --global-text-color-light: #828282;
  --global-theme-color: #2698ba;
  --global-hover-color: #134b5f;
  --global-footer-bg-color: #1c1c1d;
  --global-footer-text-color: #e8e8e8;
  --global-divider-color: #e8e8e8;
  --global-card-bg-color: #ffffff;
  --global-font-size: 16px;
  --navbar-height: 70px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--global-bg-color);
  color: var(--global-text-color);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--global-font-size);
  line-height: 1.5;
}

a {
  color: var(--global-theme-color);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--global-hover-color);
  text-decoration: underline;
}

.container {
  width: min(100% - 30px, 930px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--global-bg-color);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar {
  display: flex;
  min-height: var(--navbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-brand {
  color: rgba(0, 0, 0, 0.9);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: inherit;
  margin-right: 1rem;
  padding-bottom: 0.3125rem;
  padding-top: 0.3125rem;
  white-space: nowrap;
}

.navbar-brand:hover {
  color: rgba(0, 0, 0, 0.9);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.nav-menu a {
  color: rgba(0, 0, 0, 0.55);
  display: block;
  padding: 0.5rem;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
  color: rgba(0, 0, 0, 0.9);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 6px 0;
}

.page {
  padding: 55px 0 70px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
}

h2 {
  margin: 34px 0 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
}

h3 {
  margin-bottom: 3px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
}

ul {
  margin-top: 0;
  padding-left: 30px;
}

.subtitle {
  margin-bottom: 28px;
  color: var(--global-text-color-light);
}

.about {
  max-width: 860px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 42px;
  align-items: start;
  max-width: 100%;
}

.profile-copy {
  min-width: 0;
}

.profile-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-top: 6px;
}

.profile-photo {
  width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.95) 0 20%, transparent 21%),
    radial-gradient(circle at 50% 112%, #263238 0 42%, transparent 43%),
    linear-gradient(145deg, #dfe7ea, #a9b7bd);
  border: 1px solid #e5e5e5;
  box-shadow: inset 0 0 0 8px #ffffff;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 13px;
}

.social-icons a {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 24px;
  color: #2962ff;
  font-size: 20px;
  line-height: 1;
}

.social-icons a:hover,
.social-icons a:focus {
  color: #0039cb;
  text-decoration: none;
}

.bio-lead {
  color: var(--global-text-color);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--global-font-size);
  line-height: 1.5;
  text-align: justify;
}

.home-section h2 a {
  color: var(--global-theme-color);
}

.entry-list,
.post-list {
  margin: 0;
  padding-left: 32px;
}

.entry {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 28px;
  padding-left: 8px;
}

.entry-thumb {
  width: 175px;
  aspect-ratio: 1.55;
  border: 1px solid var(--global-divider-color);
  border-radius: 2px;
  background: var(--global-code-bg-color);
}

.portfolio-thumb {
  background:
    linear-gradient(90deg, transparent 12px, rgba(255, 255, 255, 0.72) 12px 14px, transparent 14px),
    linear-gradient(180deg, #2698ba 0 24%, #ffffff 24% 100%);
}

.app-thumb {
  background:
    linear-gradient(90deg, #ffffff 18px, transparent 18px),
    linear-gradient(180deg, #efefef 0 18%, #ffffff 18% 100%);
}

.data-thumb {
  background:
    linear-gradient(135deg, rgba(38, 152, 186, 0.25), rgba(0, 0, 0, 0)),
    repeating-linear-gradient(90deg, #ffffff 0 17px, #eeeeee 17px 18px),
    var(--global-code-bg-color);
}

.entry-venue {
  margin-bottom: 6px;
  color: var(--global-text-color-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.entry h2,
.entry h3 {
  margin: 0 0 4px;
  color: var(--global-text-color);
  font-size: 18px;
}

.entry-authors,
.entry-year {
  margin-bottom: 4px;
  color: var(--global-text-color-light);
  font-size: 15px;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.entry-links a,
.entry-links span {
  border: 1px solid var(--global-divider-color);
  border-radius: 3px;
  background: var(--global-code-bg-color);
  color: var(--global-theme-color);
  padding: 2px 8px;
}

.entry-links a:hover {
  border-color: var(--global-theme-color);
  text-decoration: none;
}

.project-page-list .entry {
  margin-bottom: 34px;
}

.post-list li {
  margin-bottom: 18px;
}

.post-list a {
  font-size: 18px;
}

.post-list p {
  margin: 4px 0 0;
}

.post-date {
  display: block;
  color: var(--global-text-color-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.blog-post {
  margin-bottom: 42px;
}

.blog-post h2 {
  margin-top: 0;
}

.cv-section {
  margin-bottom: 34px;
}

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

.cv-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 18px;
}

.cv-date {
  color: var(--global-text-color-light);
  font-size: 14px;
}

.site-footer {
  background: var(--global-footer-bg-color);
  color: var(--global-footer-text-color);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  padding: 18px 0;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

@media (max-width: 680px) {
  .navbar {
    min-height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
  }

  .nav-menu.open {
    display: flex;
  }

  .page {
    padding-top: 36px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    order: -1;
  }

  .profile-photo {
    width: min(210px, 70vw);
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 23px;
  }

  .entry {
    grid-template-columns: 1fr;
  }

  .entry-thumb {
    width: 100%;
  }

  .cv-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
