@font-face {
  font-family: "Simula";
  src:
    url("../fonts/Simula.woff2") format("woff2"),
    url("../fonts/Simula.woff") format("woff"),
    url("../fonts/Simula.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --text-main: #1a1a1a;
  --text-secondary: #737373;
  --text-paragraph: #333333;
  --border-color: #dfdfdf;
  --bg-color: #ffffff;
  --watermark: #f4f4f4;
}

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

body {
  font-family:
    "Lexend",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.main-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -8vh; /* Shift slightly up for visual balance */
}

.header-content {
  text-align: center;
}

h1 {
  font-family: "Simula", serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}

.dashed-line-short {
  width: 210px;
  height: 1px;
  background-image: linear-gradient(
    to right,
    var(--border-color) 45%,
    transparent 45%
  );
  background-size: 22px 1px;
  background-repeat: repeat-x;
  margin: 32px auto 36px;
}

.body-content {
  max-width: 380px;
  width: 100%;
}

.body-content p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--text-paragraph);
}

.body-content a {
  color: inherit;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 26px;
  margin-top: 20px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text-main);
}

nav a.active {
  font-weight: 600;
  color: var(--text-main);
}

.footer-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-bottom: 40px;
}

.dashed-line-full {
  width: 100%;
  height: 1px;
  background-image: linear-gradient(
    to right,
    var(--border-color) 45%,
    transparent 45%
  );
  background-size: 26px 1px;
  background-repeat: repeat-x;
  margin-bottom: 30px;
}

.watermark {
  font-family: "Simula", serif;
  font-size: 96px;
  font-weight: 500;
  color: var(--watermark);
  white-space: nowrap;
  user-select: none;
  letter-spacing: -0.5px;
}

@media (max-width: 600px) {
  .watermark {
    font-size: 64px;
  }
}

/* Blog List Styles */
.articles-list {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
}

.articles-list li {
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
}

.articles-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-secondary);
}

.articles-list a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.articles-list a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.articles-date {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Single Post Styles */
.post-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 60px;
}

.post-header {
  margin-bottom: 40px;
  text-align: center;
}

.post-title {
  font-family: 'Simula', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.post-date {
  color: var(--text-secondary);
  font-size: 14px;
}

.post-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-paragraph);
}

.post-content p {
  margin-bottom: 24px;
}

.post-content strong {
  font-weight: 600;
  color: var(--text-main);
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  cursor: pointer;
}

.back-link:hover {
  color: var(--text-main);
}

/* Align to top when showing a post */
.main-wrapper.post-view {
  align-items: flex-start;
}
