/* 金燕美材行 - editorial blog styles */

html, body { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }

/* 文章內文 (Markdown -> HTML) */
.blog-content {
  font-size: 1.02rem;
  color: #3b2f33;
  line-height: 1.9;
}
.blog-content h2 {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1E1418;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #E6D4B8;
  letter-spacing: 0.01em;
}
.blog-content h3 {
  font-family: "Noto Serif TC", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2a1f23;
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
}
.blog-content p {
  margin-bottom: 1.25rem;
}
.blog-content ul, .blog-content ol {
  line-height: 1.9;
  margin-bottom: 1.25rem;
  padding-left: 1.35rem;
}
.blog-content ul { list-style-type: square; }
.blog-content ol { list-style-type: decimal; }
.blog-content ul::marker, .blog-content ol::marker { color: #B48A57; }
.blog-content li { margin-bottom: 0.4rem; }
.blog-content strong { color: #B24A5C; font-weight: 600; }
.blog-content a {
  color: #B24A5C;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.blog-content a:hover { color: #8a3645; }

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
}
.blog-content th {
  background: #FBF7F3;
  color: #1E1418;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #E6D4B8;
  font-family: "Noto Serif TC", serif;
}
.blog-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f0e8de;
  color: #3b2f33;
}
.blog-content tr:last-child td { border-bottom: none; }

.blog-content hr {
  border: none;
  border-top: 1px solid #E6D4B8;
  margin: 3rem 0;
}
.blog-content blockquote {
  border-left: 2px solid #B48A57;
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  color: #6E5D63;
  font-style: italic;
  font-size: 1.1rem;
  font-family: "Noto Serif TC", serif;
}
.blog-content code {
  background: #FBF7F3;
  padding: 0.15em 0.4em;
  border-radius: 2px;
  font-size: 0.9em;
  color: #B24A5C;
}
.blog-content pre {
  background: #1E1418;
  color: #FBF7F3;
  padding: 1rem 1.25rem;
  border-radius: 2px;
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
.blog-content pre code { background: transparent; color: inherit; padding: 0; }

@media (max-width: 768px) {
  .blog-content { font-size: 1rem; }
  .blog-content h2 { font-size: 1.5rem; }
  .blog-content h3 { font-size: 1.15rem; }
  .blog-content table { font-size: 0.88rem; }
  .blog-content th, .blog-content td { padding: 0.5rem 0.65rem; }
}

/* line-clamp (Tailwind CDN 預設未啟用 plugin) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 讓 serif 字體落下較細的筆畫 */
.font-display { font-feature-settings: "liga", "dlig"; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #FBF7F3; }
::-webkit-scrollbar-thumb {
  background: #B48A57;
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: #B24A5C; }

/* 選取顏色 */
::selection {
  background: #B24A5C;
  color: #fff;
}
