/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Newsreader', Georgia, serif;
  color: #1a1a1a;
  background: #fafafa;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #1a1a1a;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}


/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.nav-name {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: #1a1a1a;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #666;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #1a1a1a;
}


/* ============================================
   MAIN CONTENT
   ============================================ */

main {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  flex: 1;
}


/* ============================================
   HOME / BIO
   ============================================ */

.hero {
  padding: 6rem 0 4rem;
}

.hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  max-width: 580px;
}

.hero-text p {
  margin-bottom: 1rem;
}

.hero-links {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
}

.hero-links a {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #666;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.hero-links a:hover {
  color: #1a1a1a;
  border-color: #1a1a1a;
}


/* ============================================
   SECTION DIVIDERS
   ============================================ */

.section {
  padding: 3rem 0;
}

.section-label {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 2rem;
}

.divider {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 1rem 0;
}


/* ============================================
   RECENT WRITING (HOME)
   ============================================ */

.post-list {
  list-style: none;
}

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

.post-list a {
  display: block;
  transition: opacity 0.2s ease;
}

.post-list a:hover {
  opacity: 0.6;
}

.post-list-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
}

.post-list-date {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.78rem;
  color: #999;
}

.view-all {
  margin-top: 2rem;
}

.view-all a {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #666;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.view-all a:hover {
  color: #1a1a1a;
  border-color: #1a1a1a;
}


/* ============================================
   CONTACT
   ============================================ */

.contact-text {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
}

.contact-text a {
  border-bottom: 1px solid #ccc;
  transition: border-color 0.2s ease;
}

.contact-text a:hover {
  border-color: #1a1a1a;
}


/* ============================================
   BLOG INDEX
   ============================================ */

.blog-header {
  padding: 4rem 0 2rem;
}

.blog-header h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.blog-list {
  list-style: none;
  padding-bottom: 4rem;
}

.blog-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid #eee;
}

.blog-list li:first-child {
  border-top: 1px solid #eee;
}

.blog-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  transition: opacity 0.2s ease;
}

.blog-list a:hover {
  opacity: 0.6;
}

.blog-list-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #1a1a1a;
}

.blog-list-date {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.78rem;
  color: #999;
  white-space: nowrap;
}


/* ============================================
   BLOG POST
   ============================================ */

.post {
  padding: 4rem 0 2rem;
}

.post-header {
  margin-bottom: 3rem;
}

.post-date {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.78rem;
  color: #999;
  display: block;
  margin-bottom: 0.75rem;
}

.post-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.post-subtitle {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  color: #666;
  margin-top: 0.75rem;
  font-style: italic;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #333;
}

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

.post-content h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 3rem 0 1rem;
  color: #1a1a1a;
}

.post-content h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 2.5rem 0 0.75rem;
  color: #1a1a1a;
}

.post-content blockquote {
  border-left: 2px solid #ddd;
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: #666;
  font-style: italic;
}

.post-content ul, .post-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

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

.post-content code {
  font-size: 0.9em;
  background: #f0f0f0;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.post-content pre {
  background: #f5f5f5;
  padding: 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 2rem 0;
}

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

.post-content a {
  border-bottom: 1px solid #ccc;
  transition: border-color 0.2s ease;
}

.post-content a:hover {
  border-color: #1a1a1a;
}

.post-content img {
  margin: 2rem 0;
  border-radius: 4px;
}

.post-nav {
  padding: 2rem 0 4rem;
}

.post-nav a {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #666;
  transition: color 0.2s ease;
}

.post-nav a:hover {
  color: #1a1a1a;
}



/* ============================================
   READING LIST
   ============================================ */

.reading-section {
  padding: 2rem 0;
}

.reading-section .section-label {
  margin-bottom: 1.25rem;
}

.reading-list {
  list-style: none;
}

.reading-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid #eee;
}

.reading-item:first-child {
  border-top: 1px solid #eee;
}

.reading-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.reading-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #1a1a1a;
}

a.reading-title {
  border-bottom: 1px solid #ddd;
  transition: border-color 0.2s ease;
}

a.reading-title:hover {
  border-color: #1a1a1a;
}

.reading-author {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.78rem;
  color: #999;
}

.reading-stars {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #1B3A6B;
  white-space: nowrap;
}

.reading-hidden {
  display: none;
}

.reading-list.expanded .reading-hidden {
  display: flex;
}

.show-more-btn {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.82rem;
  color: #1B3A6B;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 0 0;
  transition: opacity 0.2s ease;
}

.show-more-btn:hover {
  opacity: 0.7;
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.footer p {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.75rem;
  color: #bbb;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .nav {
    padding: 1.5rem 1.25rem;
  }

  main {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

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

  .blog-list a {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer {
    padding: 2rem 1.25rem;
  }
}
