/* Font faces - Ginto Copilot */
@font-face {
  font-family: 'Ginto Copilot';
  src: url('../fonts/GintoCopilot-Thin.woff2') format('woff2'),
       url('../fonts/GintoCopilot-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ginto Copilot';
  src: url('../fonts/GintoCopilot-Light.woff2') format('woff2'),
       url('../fonts/GintoCopilot-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ginto Copilot';
  src: url('../fonts/GintoCopilot-Regular.woff2') format('woff2'),
       url('../fonts/GintoCopilot-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ginto Copilot';
  src: url('../fonts/GintoCopilot-Medium.woff2') format('woff2'),
       url('../fonts/GintoCopilot-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSlow {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Ginto Copilot', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #fffdf7;
  color: #272320;
  line-height: 1.75;
  min-height: 100vh;
}

/* Accent bar at top */
.accent-bar {
  height: 13px;
  background-color: #f7ecd9;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

/* Main container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px 60px;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 80px;
}

/* Content area */
.content {
  max-width: 650px;
}

/* Single post layout (no sidebar) */
.container.single-post {
  grid-template-columns: 1fr;
  max-width: 750px;
}

/* Site header */
.site-header {
  margin-bottom: 60px;
  animation: fadeIn 0.6s ease-out;
}

.site-title {
  font-size: 3.95rem;
  font-weight: 500;
  color: #272320;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  opacity: 0.8;
}

.site-subtitle {
  font-size: 0.9375rem;
  font-weight: 300;
  color: #272320;
  letter-spacing: 0;
}

/* Posts list */
.posts {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Post preview */
.post-preview,
.post {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.6s ease-out backwards;
}

.post-preview:nth-child(1) { animation-delay: 0.1s; }
.post-preview:nth-child(2) { animation-delay: 0.2s; }
.post-preview:nth-child(3) { animation-delay: 0.3s; }
.post-preview:nth-child(4) { animation-delay: 0.4s; }
.post-preview:nth-child(5) { animation-delay: 0.5s; }

.post-divider {
  height: 1px;
  background-color: #e5ddd0;
  margin-bottom: 26px;
}

.post-date {
  margin-bottom: 12px;
}

.post-date span {
  display: inline-block;
  background-color: #f7ecd9;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.9px;
  color: #272320;
}

.post-title {
  font-size: 2.375rem;
  font-weight: 400;
  color: #5d534c;
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: #272320;
}

.post-excerpt,
.post-content {
  font-size: 1rem;
  font-weight: 300;
  color: #000;
  line-height: 1.75;
  margin-bottom: 24px;
}

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

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #272320;
  margin: 2em 0 1em;
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #272320;
  margin: 1.5em 0 0.75em;
}

.post-content ul,
.post-content ol {
  margin: 1em 0 1.5em 1.5em;
}

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

.post-content blockquote {
  border-left: 3px solid #f7ecd9;
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #5d534c;
}

.post-content code {
  background-color: #f7ecd9;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-content pre {
  background-color: #f7ecd9;
  padding: 1em 1.5em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

.post-image {
  margin-top: 8px;
}

.post-image img {
  width: 100%;
  max-width: 637px;
  height: auto;
  border-radius: 4px;
}

/* Read more link */
.read-more {
  display: inline-block;
  margin-top: 16px;
  color: #694111;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
}

.read-more:hover {
  text-decoration: underline;
}

/* YouTube embed styling */
.video-container {
  max-width: 637px;
  width: 100%;
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.video-container iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* Back link */
.back-link {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e5ddd0;
}

.back-link a {
  color: #694111;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
}

.back-link a:hover {
  text-decoration: underline;
}

/* Sidebar */
.sidebar {
  padding-top: 180px;
  animation: fadeInSlow 0.8s ease-out 0.3s backwards;
}

.connect h3 {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #231f1c;
  margin-bottom: 12px;
}

.connect a {
  display: block;
  color: #694111;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
}

.connect a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5ddd0;
  background-color: #fffdf7;
  padding: 60px 40px;
  margin-top: 80px;
  animation: fadeInSlow 0.8s ease-out 0.4s backwards;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand {
  flex: 1;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #272320;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-title:hover {
  opacity: 0.8;
}

.footer-subtitle {
  font-size: 0.875rem;
  font-weight: 300;
  color: #5d534c;
}

.footer-links h3 {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #231f1c;
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  flex-direction: column;
}

.footer-social a {
  color: #694111;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
}

.footer-social a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 24px 40px;
  }

  .content {
    max-width: 100%;
  }

  .sidebar {
    display: none;
  }

  .site-title {
    font-size: 2.5rem;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .site-footer {
    padding: 40px 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 70px 16px 32px;
  }

  .site-title {
    font-size: 2rem;
  }

  .post-title {
    font-size: 1.5rem;
  }
}
