@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@1,400;1,500&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap");
* {
  outline: none;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

body {
  background-color: #121418;
  display: flex;
  font-family: "IBM Plex Sans", sans-serif;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: 0 2em;
  font-weight: 400;
  height: 100vh;
}

.blog {
  background-color: #e9e6e4;
  max-width: 1700px;
  min-width: 1700px;
  display: grid;
  height: 90vh;
  max-height: 800px;
  overflow: hidden;
  grid-template-columns: 15% 55% 30%;
  grid-template-rows: 100%;
  width: 100%;
  padding: 40px 4px;
  position: relative;
}
.blog-part {
  padding: 0 20px;
}
.blog-part:not(:last-child) {
  border-right: 1px solid #94918f;
}
.blog-menu {
  font-size: 22px;
  text-decoration: none;
  color: #161419;
  display: flex;
  letter-spacing: -0.5px;
  align-items: center;
}
.blog-menu svg {
  width: 22px;
  margin-left: 4px;
}
.blog-menu + .blog-menu {
  margin-top: 24px;
}
.blog-menu.mention {
  margin-top: auto;
  font-size: 19px;
}
.blog-menu.subscribe {
  margin-top: 8px;
  font-size: 19px;
  position: relative;
}
.blog-menu.subscribe:before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: #161419;
  left: 0;
  border-radius: 1px;
  margin-right: 14px;
}
.blog-menu.rounded:before {
  content: "";
  border-radius: 50%;
  width: 12px;
  height: 12px;
  background-color: #161419;
  margin-right: 12px;
}
.blog .is-menu {
  display: flex;
  flex-direction: column;
}
.blog-big__title {
  font-size: 130px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  letter-spacing: -10px;
  line-height: 1;
  margin-bottom: 6px;
}
.blog-header {
  display: flex;
  flex-direction: column;
}
.blog-article {
  padding: 0 20px;
}
.blog-article img {
  height: 260px;
  max-height: 22vh;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  filter: grayscale(1);
}

.page-number {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  font-size: 72px;
  text-align: center;
  letter-spacing: -3px;
  font-weight: lighter;
  font-family: "IBM Plex Mono", monospace;
  border-right: 1px solid #94918f;
  white-space: nowrap;
}

details {
  display: hidden;
}

.collapse-header {
  margin-top: -70px;
  display: hidden;
}

.small-title {
  border-bottom: 1px solid #94918f;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.date {
  display: flex;
  justify-content: flex-end;
}

.blog-article h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  margin: 8px 0 8px;
}
.blog-article h2 span {
  font-family: "IBM Plex Serif", serif;
}
.blog-article p {
  line-height: 1.5;
  margin: 14px 0;
}
.blog-article a {
  color: #161419;
  text-decoration: none;
  font-size: 26px;
  letter-spacing: -1px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid #94918f;
  padding-top: 14px;
}
.blog-article a svg {
  width: 26px;
  margin-right: 10px;
}

#warn {
  display: none;
}

a.link {
  border-top: none;
  justify-content: flex-start;
  padding-top: 0px;
  font-size: 18px;
  margin: 0;
}

.blog-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.blog-detail span {
  font-family: "IBM Plex Serif", serif;
}

.blog-header-container {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  -ms-scroll-snap-type: y mandatory;
      scroll-snap-type: y mandatory;
  border-right: 1px solid #94918f;
}
.blog-header-container > * {
  flex-shrink: 0;
  min-height: 100%;
  scroll-snap-align: start;
}
.blog-header-container .blog-article:not(.header-article) {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

marquee {
  font-size: 20px;
  background-color: #121418;
  color: #e9e6e4;
  padding: 6px 0;
  width: calc(100% + 44px);
  margin-left: -20px;
  flex-shrink: 0;
}
marquee span:before {
  display: inline-block;
  content: "";
  border-radius: 50%;
  width: 10px;
  height: 10px;
  position: relative;
  top: -1px;
  vertical-align: baseline;
  background-color: #e9e6e4;
  margin: 0 16px;
}

.blog-right {
  overflow: auto;
  height: calc(100% + 60px);
}
.blog-right .rounded {
  font-style: italic;
  font-size: 18px;
}
.blog-right .rounded:before {
  content: "";
  border-radius: 50%;
  width: 9px;
  height: 9px;
  background-color: #161419;
  margin-right: 6px;
}

.blog-right-title {
  font-size: 25px;
  font-family: "IBM Plex Serif", serif;
}

.blog-right-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #94918f;
  margin-bottom: 20px;
  padding-bottom: 20px;
  margin-top: 100px;
  letter-spacing: -1px;
}

.blog-title-date {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.blog-right-page {
  font-size: 36px;
  margin-bottom: 16px;
  font-family: "IBM Plex Mono", monospace;
}
.blog-right-page-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 28px;
  font-weight: 600;
  max-width: 16ch;
  letter-spacing: -2px;
}
.blog-right-page-subtitle {
  max-width: 55ch;
  font-size: 15px;
  margin-top: 12px;
  line-height: 1.4;
}

.blog-right-container + .blog-right-container {
  margin-top: 40px;
}

.right-blog {
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar {
  display: none;
}

.circle {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: #121418;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: #e9e6e4;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}
.circle-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: "IBM Plex Mono", monospace;
}
.circle-subtitle {
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.circle-footer {
  font-family: "IBM Plex Serif", serif;
  font-size: 30px;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 700px) {
  body {
    margin: 0;
    padding: 0;
  }

  #warn {
    display: block;
    font-size: 18px;
    font-style: regular;
    letter-spacing: 0px;
    color: #cccccc;
  }

  #head {
    border: 0px solid black;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  #cv,
#pers-data {
    display: none;
  }

  body {
    padding: 1;
    /* Remove padding to maximize space on small screens */
    height: auto;
    overflow-x: hidden;
  }

  .blog {
    display: flex;
    /* Switch from Grid to Flex for vertical stacking */
    flex-direction: column;
    min-width: 100%;
    /* Remove that 1800px restriction */
    max-width: 400px;
    /* As requested */
    height: auto;
    max-height: none;
    overflow: visible;
    margin: 0 auto;
    padding: 20px 0;
  }

  /* Sticky Header Setup */
  .blog-is-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #e9e6e4;
    padding-bottom: 10px;
    border-bottom: 1px solid #94918f;
  }

  /* Resetting parts for vertical flow */
  .blog-part,
.blog-header-container,
.blog-header {
    width: 100%;
    border-right: none !important;
    /* Remove vertical borders */
    overflow: visible;
  }

  .blog-header-container {
    -ms-scroll-snap-type: none;
        scroll-snap-type: none;
    /* Disable snapping for better mobile scrolling */
  }

  .blog-big__title {
    font-size: 80px;
    /* Scale down font for mobile screens */
    letter-spacing: -4px;
    text-align: left;
  }

  .page-number {
    font-size: 24px;
    border-right: none;
    text-align: center;
    margin-top: 10px;
  }

  /* Skills and right column adjustments */
  .blog-right-title-container {
    margin-top: 40px;
  }

  .blog-article {
    padding: 0 15px;
    margin-bottom: 40px;
  }

  .page-number {
    border-right: none;
    height: auto;
    padding: 10px 20px;
  }
}