/* delius-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Delius';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/delius-v21-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* Force monospaced font in code blocks */

pre {
  overflow-x: auto;
  white-space: pre;
  scrollbar-width: thin;              /* Firefox */
  scrollbar-color: #888 #f0f0f0;      /* Firefox */
}

code, pre {
  /* font-family: 'JetBrains Mono', 'Fira Code', monospace !important; */
  /* color: #57564F !important; or any visible color */

  font-family: "Delius", sans-serif;

  display: block;
  padding: 1em;
  border-radius: 0.5em;
  tab-size: 8;
}

/* @import url('https://fonts.googleapis.com/css2?family=Delius+Swash+Caps&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap'); */


p, h1, h2, h3, h4, a, button, ul, li {
  font-family: "Delius", sans-serif;
  text-align: justify;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

:root {
  --content-max-width: 1200px;
  --font-size-base: 18px;
}

.custom-header {
  margin: 1px;
}

.avatar-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 400px;
  flex-wrap: wrap;
}

.avatar {
  margin-right: 10px;
}

.month-header {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.post-card {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    min-height: 280px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);

    font-family: "Delius", sans-serif;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #ddd;
}

.post-title {
  margin-top: 0px;
  text-align: left;
  line-height: 1.3;
  height: 2.8em; /* 1.3 * 2 = 2.6em to fit exactly two lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 20px;
}

.post-meta {
  font-size: small;
}

.post-excerpt {
  font-size: medium;
  margin-bottom: 20px;
  flex-grow: 1;
}

.post-card .read-more {
    margin-top: auto;
    align-self: flex-end;
    padding: 0;
    background-color: transparent;
    color: #555;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    box-shadow: none;
    width: auto;
    height: auto;
    transition: color 0.2s ease, transform 0.2s ease;
}

.post-card .read-more:hover {
    background-color: transparent;
    color: #000;
    box-shadow: none;
    transform: translateX(4px);
    text-decoration: none;
}

figure.center {
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

figure.center img {
    display: block;
    margin: 10px;
}

code {
    display: inline !important;
    /* color: #cdd6f4 !important; */
    /* background-color: #1e1e2e; */
    background-color: unset;
    /* white-space: normal; Prevents long code from stretching the page */
    padding: 4px 4px 4px 4px;
    /* padding-left: 4px;
    padding-right: 4px; */
    /* margin-left: 4px;
    margin-right: 4px; */
}

.highlight pre code[class*="language-cpp"]::before {
  content: "C++";
  background: #DC0000;
  color: #ffffff;
}