/* Inter Font Definitions - Local Hosting */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable-Italic.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Fallback fonts for older browsers */
@font-face {
  font-family: 'Inter Fallback';
  src: url('../fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Fallback';
  src: url('../fonts/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Fallback';
  src: url('../fonts/Inter-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Typography - Helvetica-like with Inter */
body {
  font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #e5e5e5;
  background-color: #1c1c1c;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #fbfbfb;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* Layout Styles */
body {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header and Navigation */
header {
  margin-bottom: 3rem;
  border-bottom: 1px solid #444;
  padding-bottom: 1rem;
}

header h1 {
  margin-bottom: 0;
}

header a {
  color: #fbfbfb;
  text-decoration: none;
  font-weight: 700;
}

header a:hover {
  color: #bcbcbc;
}

/* Back Arrow Styles */
.back-arrow svg {
  width: 28px;
  height: 28px;
  color: #fbfbfb;
  transition: color 0.2s ease;
}

.back-arrow:hover svg {
  color: #bcbcbc;
}

/* Main Content */
main {
  margin-bottom: 3rem;
}

/* Post List Styles */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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



.post-date {
  color: #bcbcbc;
  font-size: 0.9rem;
  font-weight: 400;
  margin-right: 1.5rem;
  min-width: 80px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.post-title {
  color: #e5e5e5;
  text-decoration: none;
  font-weight: 500;
  flex: 1;
}

.post-title:hover {
  color: #fbfbfb;
}

/* Single Post Styles */
.post-header {
  margin-bottom: 2rem;
}

.post-content {
  line-height: 1.7;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

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

.post-content blockquote {
  border-left: 4px solid #bcbcbc;
  margin: 2rem 0;
  padding-left: 1.5rem;
  font-style: italic;
  color: #bcbcbc;
}

.post-content code {
  background-color: #333;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.9em;
}

.post-content pre {
  background-color: #333;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
}

/* Tags */
.tags {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
}

.tag {
  background-color: #333;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  display: inline-block;
  color: #bcbcbc;
}



/* Links */
a {
  color: #e5e5e5;
  text-decoration: none;
}

a:hover {
  color: #fbfbfb;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 600px) {
  body {
    padding: 1rem 0.5rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }
  
  .post-item {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }
  
  .post-date {
    margin-right: 0;
    margin-bottom: 0.25rem;
    min-width: auto;
    font-size: 0.8rem;
  }
}
