:root{
  --bg: #ffffff;
  --bgSoft: #f5f5f5;
  --text: #333333;
  --textSoft: #666666;
  --textBlue: #0066cc;
  --border: #e0e0e0;
}

* {
  margin: 0;
  box-sizing: border-box;
}

body{
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
  margin: auto;
  position: relative;
}

p {
  margin-bottom: 1.2em;
}

a {
  color: var(--textBlue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:visited{
  color: var(--textBlue);
}

a:hover {
  text-decoration-thickness: 2px;
}



.container {
  max-width: 800px;
  padding-left: min(4vw, 2rem);
  padding-right: min(4vw, 2rem);
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* NAVBAR START */
.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  height: 50px;
  padding-bottom: 20px;
}

.links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.125rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .navbar {
    padding-bottom: 1rem;
  }

  .links {
    font-size: 1.125rem;
    gap: 1.2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: min(5vw, 1rem);
    padding-right: min(5vw, 1rem);
  }

  .navbar {
    flex-direction: column;
    gap: 0.5rem;
    height: auto;
    padding-bottom: 1.5rem;
  }

  .links {
    font-size: 1.1rem;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* NAVBAR END   */

/* Homepage */
.homepage {
  h1{
      margin-bottom: 1rem;
      font-size: 2rem;
      font-weight: 600;
      line-height: 1.3;
  }

  hr{
      margin-bottom: 1.5rem;
      border: none;
      height: 1px;
      background: var(--border);
  }

  img {
      display: block;
      margin: 0 auto;
      width: 200px;
      height: 200px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--border);
  }

  figure{
      margin-bottom: 1.5rem;
  }

  figcaption {
      font-style: italic;
      font-size: 0.875rem;
      color: var(--textSoft);
      text-align: center;
      margin-top: 0.5rem;
      line-height: 1.4;
  }
}


@media (max-width: 768px) {
  .homepage h1 {
    font-size: 1.875rem;
  }
}

@media (max-width: 480px) {
  .homepage img {
    width: 150px;
    height: 150px;
    border: 2px solid var(--border);
  }

  .homepage h1 {
    font-size: 1.625rem;
    margin-bottom: 0.75rem;
  }

  .homepage p {
    font-size: 1rem;
    line-height: 1.5;
  }
}
/* Homepage End */

/* FOOTNOTES */
.footnotes{
  font-size: 0.875rem;
  color: var(--textSoft);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1rem;
}

/* Hide the automatic hr that appears before footnotes */
div.footnotes hr:first-child {
  display: none;
}

/* Remove underlines from footnote reference links */
a.footnote-ref {
  text-decoration: none;
}

a.footnote-ref:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .footnotes{
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footnotes{
    font-size: 0.7rem;
    padding-top: 0.75rem;
    margin-top: 1.5rem;
  }
}

/* FOOTNOTES END */

/* HEADER START */

/* Header styling */
.site-header {
  text-align: center;
  /* margin-bottom: 20px; */
  padding: 10px;
  background-color: var(--bg);
  /* border-bottom: 1px solid #ddd; */
}

.logo {
  width: 300px; /*Adjust width as necessary */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* HEADER END */


/* FOOTER START */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: var(--bg); /* Change this to your preferred background color */
}

.footer a {
  text-decoration: none;
  color: var(--textBlue);
  margin: 0 10px;
  position: relative;
}

.footer a:not(:first-child)::before {
  content: "|";
  position: absolute;
  left: -15px;
  color: var(--textSoft);
}

.footer a:first-child {
  margin-left: 0; /* Remove left margin for the first link */
}

.footer a:last-child {
  margin-right: 0; /* Remove right margin for the last link */
}

@media (max-width: 768px) {
  .footer {
      padding: 1rem;
  }

  .footer a {
      margin: 0 0.75rem;
      font-size: 0.95rem;
  }

  .footer a:not(:first-child)::before {
      left: -12px;
  }
}

@media (max-width: 480px) {
  .footer {
      padding: 0.75rem 0.25rem;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
  }

  .footer a {
      margin: 0 0.25rem;
      font-size: 0.8rem;
      white-space: nowrap;
  }

  .footer a:not(:first-child)::before {
      left: -6px;
      font-size: 0.8rem;
  }
}
/* FOOTER END   */

/* BLOG LIST START */

/* General Container */
.blog-container {
  max-width: 800px; /* Optimal width for readability */
  margin: 0 auto; /* Center align */
  padding: 10px;
}

/* Month Title Styling */
.month-title {
  font-size: 1.5em;
  font-weight: bold;
  color: black;
  margin: 20px 0 5px;
  text-align: left;
}

/* Horizontal line */
hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 1rem 0 1.5rem;
}

/* Blog Entry */
.blog-entry {
  margin-left: 10px;
  margin-bottom: 15px;
  padding: 5px;
}

.blog-entry p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

.blog-entry a {
  text-decoration: none;
}

/* Date Styling */
.date {
  display: block; /* Ensures date appears below title on small screens */
  color: #0056b3;
  font-size: 0.9em;
  margin-top: 5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .blog-container {
    padding: 1rem;
  }

  .month-title {
    font-size: 1.3em;
  }

  .blog-entry {
    margin-left: 0.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-container {
    padding: 0.5rem;
  }

  .month-title {
    font-size: 1.2em;
  }

  .blog-entry {
    margin-left: 0;
    margin-bottom: 1.2rem;
    padding: 0.75rem;
  }

  .blog-entry p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .date {
    font-size: 0.9rem;
    margin-top: 0.25rem;
  }
}
/* BLOG LIST END */

/* BLOG SINGLE START */
.blog-header{
  line-height: 1.3;
  margin-bottom: 1rem;
  font-size: 1.875rem;
  margin-top: 1rem;
  color: var(--text);
  font-weight: 600;
}


.blog-heading{
  @media (max-width: 768px) {
      .blog-header {
          font-size: 1.625rem;
      }
  }

  @media (max-width: 480px) {
      .blog-header {
          font-size: 1.5rem;
          line-height: 1.2;
      }
  }
}



.blog-single{
  img{
      width: 100%;
      margin: 1rem 0;
  }

  h1,h2,h3,h4,h5,h6 {
      margin-bottom: 1rem;
      margin-top: 2rem;
      line-height: 1.3;
      font-weight: 600;
  }

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.875rem; }

  blockquote{
      margin: 1.5rem 0;
      font-style: italic;
      color: var(--textSoft);
      padding: 1rem 1.5rem;
      border-left: 4px solid var(--textBlue);
      line-height: 1.6;
      background: var(--bgSoft);
    }
    
   
    blockquote::after{
      content: '';
    }
    
    blockquote span{
      display:block;
      color:#333333;
      font-style: normal;
      font-weight: bold;
      margin-top:1em;
      text-align: end;
    }

    blockquote p{
      margin-bottom: 5px;
    }

    pre {
      padding: 1rem;
      overflow: auto;
      font-size: 0.875rem;
      line-height: 1.5;
      color: var(--text);
      background-color: var(--bgSoft);
      border-radius: 4px;
      border: 1px solid var(--border);
      margin: 1rem 0;
      font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
    }

    pre code {
      display: inline;
      max-width: auto;
      padding: 0;
      margin: 0;
      overflow: visible;
      line-height: inherit;
      word-wrap: normal;
      background-color: transparent;
      border: 0;
      font-size: inherit;
    }

    code {
      font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
      font-size: 0.875em;
      background-color: var(--bgSoft);
      padding: 0.2em 0.4em;
      border-radius: 3px;
      border: 1px solid var(--border);
    }

    figure {
      margin: 1.5rem 0;
    }

    figcaption {
      font-style: italic;
      font-size: 0.875rem;
      color: var(--textSoft);
      text-align: center;
      margin-top: 0.5rem;
      line-height: 1.4;
    }

  /* Mobile responsiveness */
  @media (max-width: 768px) {
      h1 { font-size: 1.75rem; }
      h2 { font-size: 1.375rem; }
      h3 { font-size: 1.125rem; }

      blockquote {
        padding: 0.75rem 1rem;
        margin: 1.25rem 0;
      }

      pre {
        font-size: 0.8rem;
        padding: 0.75rem;
        overflow-x: auto;
      }
  }

  @media (max-width: 480px) {
      font-size: 1rem;
      line-height: 1.6;

      h1 {
        font-size: 1.625rem;
        margin-top: 1.5rem;
      }
      h2 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
      }
      h3 {
        font-size: 1.125rem;
        margin-top: 1.25rem;
      }

      blockquote {
        padding: 0.5rem 0.75rem;
        margin: 1rem 0;
        font-size: 0.95rem;
      }

      pre {
        font-size: 0.75rem;
        padding: 0.5rem;
        border-radius: 3px;
      }

      code {
        font-size: 0.8em;
        padding: 0.15em 0.3em;
      }

      figcaption {
        font-size: 0.8rem;
        margin-top: 0.375rem;
      }
  }

}

/* 404 Pages */
.container404 {
  text-align: center;
  padding: 20px;

  h1 {
      font-size: 6rem;
      color: var(--textBlue);
      margin: 0;
      font-weight: 700;
  }

  p {
      font-size: 1.2rem;
      margin: 10px 0;
      color: var(--textSoft);
  }
}
/* Responsive styles */
@media (max-width: 600px) {
  .container404 {    
      h1 {
      font-size: 4rem;
      }
  
      p {
      font-size: 1rem;
      }
  
      .home-link {
      padding: 8px 16px;
      font-size: 0.9rem;
      }
  
  }
}

/** CV **/

.resume h1 {
  text-align: left;
  color: var(--textBlue);
  font-size: 32px;
  margin-bottom: 0;
}

.resume h2 {
  text-align: left;
  color: #555;
  font-size: 20px;
  margin-bottom: 10px;
}

.resume ul{
  margin-bottom: 20px;
}

.resume .contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  color: #555;
}

.resume .contact div{
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.resume .contact div img {
  margin-right: 5px;
}

.resume a {
  color: var(--textBlue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.resume a:hover {
  text-decoration-thickness: 2px;
}

@media (max-width: 768px) {
  .resume h1 {
    font-size: 1.875rem;
  }

  .resume h2 {
    font-size: 1.125rem;
  }

  .resume .contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .resume .contact div {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .resume {
    padding: 1rem;
    font-size: 1rem;
  }

  .resume h1 {
    font-size: 1.625rem;
    margin-bottom: 0.5rem;
  }

  .resume h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .resume .contact div {
    margin-bottom: 0.75rem;
    margin-right: 0;
  }

  .resume ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
  }
}
