/* ===== Global ===== */
body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.65;
    color: #333;
    background: #fff;

    max-width: 970px;
    margin: 50px auto;
    padding: 0 30px;
  }
  
  /* ===== Headings ===== */
  h1, h2, h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  
  h1 {
    font-size: 34px;
    margin-bottom: 0.4em;
  }
  
  h2 {
    font-size: 24px;
    margin-top: 2.5em;
  }
  
  h3 {
    font-size: 18px;
    margin-top: 1.8em;
  }
  
  /* ===== Links ===== */
  a {
    color: #0055aa;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* ===== Header ===== */
  header {
    margin-bottom: 20px;
  }
  
  /* ===== Lists ===== */
  ul {
    padding-left: 20px;
  }
  
  li {
    margin-bottom: 6px;
  }

  /* ===== Intro Section ===== */
  .intro-section {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5em;
    padding: 2em 0 1em 0;
  }

  .profile-photo {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: none;
  }

  .intro-content {
    flex: 0 0 auto;
    min-width: 450px;
  }

  .intro-section h1 {
    font-size: 42px;
    margin-bottom: 0.3em;
    margin-top: 0;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.5px;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  }

  .bio {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 0.8em;
    color: #666;
    font-style: italic;
  }

  .bio a {
    color: #0055aa;
    text-decoration: underline;
  }

  .social-icons {
    display: flex;
    gap: 10px;
    margin-top: 0.8em;
  }

  .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    transition: background-color 0.2s;
  }

  .social-icons a:hover {
    background-color: #555;
  }

  .social-icons svg {
    fill: white;
  }

  .section-divider {
    border: none;
    border-top: 2px solid #ddd;
    margin: 0 0 2.5em 0;
  }

  /* ===== Skills Grid ===== */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    margin-bottom: 2em;
  }

  .skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 6px;
    transition: background-color 0.2s, transform 0.2s;
  }

  .skill-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
  }

  .skill-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .skill-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: center;
  }

  .skill-years {
    font-size: 11px;
    color: #0055aa;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  }

  /* ===== Visual Timeline (Karpathy.ai style) ===== */
  #history, #education {
    margin-top: 2em;
    margin-bottom: 3em;
  }

  .entry.row {
    display: grid;
    grid-template-columns: 110px 100px 1fr 70px;
    margin-bottom: 0;
    padding-bottom: 20px;
    gap: 0 15px;
  }

  .timespan {
    text-align: right;
    padding-right: 10px;
    font-size: 14px;
    color: #bbb;
    padding-top: 5px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    white-space: nowrap;
  }

  .ico {
    position: relative;
    border-left: 2px solid #cfcfcf;
    padding-left: 10px;
  }

  .entry-dot {
    position: absolute;
    top: 5px;
    left: -8px;
    width: 10px;
    height: 10px;
    border-radius: 7px;
    background-color: #cfcfcf;
    border: 2px solid white;
  }

  .ico img {
    border-radius: 5px;
    width: 100%;
    max-width: 80px;
    margin-top: 0;
    display: block;
  }

  .desc {
    padding-left: 20px;
    font-size: 17px;
    line-height: 1.65;
  }

  .desc strong {
    font-weight: 600;
  }

  .desc ul {
    margin-top: 0.8em;
    margin-bottom: 0;
    padding-left: 25px;
  }

  .desc li {
    margin-bottom: 0.6em;
    line-height: 1.6;
  }

  .desc li:last-child {
    margin-bottom: 0;
  }

  .desc a {
    color: #0055aa;
    text-decoration: none;
  }

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

  .desc code {
    font-size: 0.85em;
  }

  /* ===== Tech Stack ===== */
  .tech-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    padding-top: 5px;
  }

  .tech-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.75;
    transition: opacity 0.2s;
  }

  .tech-logo:hover {
    opacity: 1;
  }

  /* ===== Blog Post List ===== */
  .post-list {
    list-style-type: none;
    padding: 0;
    margin-top: 2em;
  }

  .post-item {
    margin-bottom: 2em;
  }

  .post-date {
    display: block;
    font-size: 15px;
    color: #818181;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    margin-bottom: 0.3em;
  }

  .post-link {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.3;
  }

  .post-excerpt {
    margin-top: 0.5em;
    color: #555;
    font-size: 16px;
  }

  /* ===== Blog Post Page ===== */
  .post-header {
    margin-bottom: 2em;
  }

  .post-title {
    font-size: 36px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 0.3em;
  }

  .post-meta {
    color: #818181;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  }

  .post-content {
    font-size: 17px;
    line-height: 1.7;
  }

  .post-content h1 {
    font-size: 30px;
    margin-top: 1.5em;
  }

  .post-content h2 {
    font-size: 24px;
    margin-top: 2em;
  }

  .post-content h3 {
    font-size: 20px;
    margin-top: 1.5em;
  }

  .post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border: 1px solid #ddd;
  }

  .post-content blockquote {
    border-left: 4px solid #ddd;
    padding-left: 1em;
    margin-left: 0;
    color: #666;
    font-style: italic;
  }

  /* ===== Code Blocks ===== */
  code {
    font-family: "Monaco", "Menlo", "Consolas", monospace;
    font-size: 0.9em;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e1e1e1;
  }

  pre {
    background-color: #f5f5f5;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 1em;
    overflow-x: auto;
    line-height: 1.4;
  }

  pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    font-size: 0.85em;
  }

  /* ===== Footer ===== */
  footer {
    margin-top: 100px;
    margin-bottom: 50px;
    text-align: center;
  }

  .footer-links {
    font-size: 15px;
    color: #666;
  }

  .footer-links a {
    color: #0055aa;
    text-decoration: none;
  }

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

  .footer-links .separator {
    color: #ccc;
    margin: 0 0.6em;
  }

  /* ===== Header ===== */
  header {
    margin-bottom: 20px;
  }

  main {
    min-height: 70vh;
  }

  /* ===== Page Layout ===== */
  .page-header {
    margin-bottom: 2em;
  }

  .page-title {
    font-size: 36px;
    letter-spacing: -1.5px;
  }

  .page-content {
    font-size: 17px;
    line-height: 1.7;
  }

  /* ===== Responsive ===== */
  @media (max-width: 600px) {
    body {
      font-size: 16px;
      margin: 40px auto;
      padding: 0 16px;
    }

    .post-title {
      font-size: 28px;
    }

    .post-link {
      font-size: 18px;
    }

    h1 {
      font-size: 28px;
    }

    h2 {
      font-size: 22px;
    }

    /* Intro section responsive */
    .intro-section {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 20px;
    }

    .profile-photo {
      width: 140px;
      height: 140px;
    }

    .intro-section h1 {
      font-size: 32px;
    }

    .bio {
      font-size: 16px;
    }

    .social-links {
      font-size: 15px;
    }

    .social-links .separator {
      margin: 0 0.5em;
    }

    /* Skills grid responsive */
    .skills-grid {
      grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
      gap: 8px;
    }

    .skill-item {
      padding: 6px;
    }

    .skill-logo {
      width: 26px;
      height: 26px;
    }

    .skill-name {
      font-size: 10px;
    }

    .skill-years {
      font-size: 9px;
    }

    /* Timeline responsive */
    .entry.row {
      grid-template-columns: 50px 65px 1fr 40px;
      gap: 0 10px;
    }

    .tech-logo {
      width: 18px;
      height: 18px;
    }

    .tech-stack {
      gap: 4px;
    }

    .timespan {
      font-size: 11px;
      padding-right: 3px;
    }

    .ico {
      border-left-width: 1px;
      padding-left: 8px;
    }

    .entry-dot {
      width: 8px;
      height: 8px;
      left: -5px;
    }

    .ico img {
      max-width: 50px;
    }

    .desc {
      padding-left: 8px;
      font-size: 15px;
    }
  }
