/* === FONT FACES === */
@font-face {
  font-family: 'Courier Prime Code';
  src: url('/assets/fonts/Courier Prime Code.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Courier Prime Code';
  src: url('/assets/fonts/Courier Prime Code Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/EBGaramond-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/EBGaramond-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

/* === BASE RESET === */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Courier Prime Code', monospace;
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  line-height: 1.6;
}

/* === CONTAINER === */
.container {
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

/* === HEADER === */
header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 1.25rem 1.5rem 1rem;
  min-height: auto;
  background: #f8f8f8;
  font-size: 1rem;
  flex-shrink: 0;
}

.site-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0;
  padding: 0;
  border-bottom: none !important;
  text-decoration: none !important;
}

.site-menu {
  display: flex;
  gap: 2rem;
  margin-left: 0.3rem;
}

.site-menu a {
  font-family: 'Courier Prime Code', monospace;
  font-size: 1rem;
  line-height: 1;
  margin: 0;
  padding: 0;
  border-bottom: none !important;
  text-decoration: none !important;
}

/* === FOOTER === */
footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 1.5rem;
  min-height: 48px;
  background: #f8f8f8;
  font-size: 1rem;
  flex-shrink: 0;
}

/* === CONTENT === */
.content-wrapper {
  flex: 1;
  padding: 4rem 5rem;
  overflow-y: auto;
}

/* === TYPOGRAPHY === */
h1 {
  font-family: 'EB Garamond', serif;
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1.3;
}

h2 {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.3;
}

h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.3;
}

/* === LINKS === */
a {
  color: black;
  text-decoration: none;
  border-bottom: 1px dotted red;
  transition: border-bottom 0.2s ease;
  font-size: 1rem;
}

a:hover {
  border-bottom: 1px solid red;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  html {
    font-size: 20px;
  }

  .container {
    border: none;
  }

  .content-wrapper {
    padding: 1.25rem;
  }

  header,
  footer,
  .site-menu a,
  .site-name {
    font-size: 1rem;
  }

  a {
    word-break: break-word;
  }
}

/* Remove bullets from post list */
ul.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.post-list li {
  margin-bottom: 0.5rem;
}

.pagination {
  text-align: center;
  font-family: 'Courier Prime Code', monospace;
  font-size: 1rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.pagination a {
  color: black;
  text-decoration: none;
  border-bottom: 1px dotted red;
  margin: 0 1rem;
}

.pagination a:hover {
  border-bottom: 1px solid red;
}

.post-item {
  display: flex;
  align-items: baseline;
  margin-bottom: 1rem;
}

.post-date {
  flex: 0 0 8ch;
  color: #333;
  margin-right: 1rem;
}

.post-title {
  display: inline;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px dotted red;
  transition: border-bottom 0.2s ease;
  word-break: break-word;
}

.post-title:hover {
  border-bottom: 1px solid red;
}

/* Remove link border on post title */
.post-title-page {
  border-bottom: none !important;
  text-decoration: none !important;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  min-height: 100%
}

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

.pagination {
  text-align: center;
  font-family: 'Courier Prime Code', monospace;
  font-size: 1rem;
  margin-top: 2rem;
}

.post-content-wrapper {
  padding: 0rem 0rem;
}

@media screen and (min-width: 1280px) {
  .post-content-wrapper {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}