@font-face {
  font-family: Geist;
  src: url("/assets/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --blue: #1687e8;
  --ink: #0c1117;
  --muted: #607080;
  --line: #dfe8ef;
  --light: #f6faff;
  --white: #fff;
  --shadow: 0 12px 40px #24425f12;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: Geist, Arial, sans-serif; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.blog-container { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 20;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 10px; }
.blog-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #e8eff5;
  background: #ffffffed;
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { flex: 0 0 auto; }
.header-inner nav { display: flex; align-items: center; gap: 34px; font-family: Geist, Arial, sans-serif; }
.header-inner nav a:hover, .header-inner nav .is-active { color: var(--blue); }
.header-inner .header-button {
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}
.header-inner .header-button:hover { background: #0877d5; color: var(--white); }
.blog-main { min-height: calc(100vh - 270px); padding: 78px 0 110px; background: var(--light); }
.page-heading { max-width: 700px; margin-bottom: 48px; }
.eyebrow { margin-bottom: 12px; color: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.page-heading h1 { font-size: clamp(42px, 6vw, 66px); line-height: 1.05; }
.page-heading > p:last-child { margin-top: 18px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.article-image { display: block; height: 218px; overflow: hidden; background: #e8f3fc; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.article-card:hover .article-image img { transform: scale(1.025); }
.image-placeholder { display: grid; height: 100%; place-items: center; color: #8facc3; font-family: Geist, Arial, sans-serif; font-size: 28px; font-weight: 700; }
.article-card-body { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.article-meta, .detail-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.article-meta span, .detail-meta span { color: var(--blue); font-weight: 800; }
.article-meta span:after, .detail-meta span:after { content: "·"; margin-left: 10px; color: #9fb0bf; }
.article-card h2 { margin-top: 15px; font-size: 23px; line-height: 1.28; }
.article-card h2 a:hover { color: var(--blue); }
.article-card-body > p { display: -webkit-box; overflow: hidden; margin-top: 13px; color: var(--muted); font-size: 15px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.read-more { margin-top: auto; padding-top: 22px; color: var(--blue); font-size: 14px; font-weight: 800; }
.read-more span { margin-left: 5px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin: 52px 0 0; padding: 0; list-style: none; }
.pagination a, .pagination span { display: grid; min-width: 42px; height: 42px; padding: 0 10px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-weight: 700; }
.pagination a:hover, .pagination .active a { border-color: var(--blue); background: var(--blue); color: var(--white); }
.pagination .disabled span { color: #a9b7c3; }
.empty-state { padding: 70px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); text-align: center; }
.empty-state h2 { font-size: 30px; }
.empty-state p { margin-top: 12px; color: var(--muted); }
.article-main { min-height: calc(100vh - 270px); padding: 70px 0 110px; background: var(--white); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 72px; }
.article-detail { min-width: 0; }
.back-link { display: inline-flex; gap: 8px; margin-bottom: 48px; color: var(--blue); font-weight: 800; }
.detail-meta { margin-bottom: 18px; }
.article-detail h1 { max-width: 800px; font-size: clamp(38px, 6vw, 62px); line-height: 1.08; letter-spacing: -.025em; }
.detail-hero { width: 100%; aspect-ratio: 16 / 9; margin-top: 34px; border-radius: 14px; object-fit: cover; }
.article-content { min-width: 0; margin-top: 42px; color: #27333e; font-size: 18px; line-height: 1.8; overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 { margin: 1.7em 0 .65em; color: var(--ink); font-family: Geist, Arial, sans-serif; line-height: 1.25; }
.article-content h1 { font-size: 38px; }
.article-content h2 { font-size: 32px; }
.article-content h3 { font-size: 25px; }
.article-content h4 { font-size: 21px; }
.article-content h5 { font-size: 18px; }
.article-content h6 { font-size: 16px; }
.article-content p, .article-content ul, .article-content ol, .article-content blockquote, .article-content table, .article-content pre { margin: 0 0 1.25em; }
.article-content ul, .article-content ol { padding-inline-start: 1.65em; }
.article-content ul { list-style: disc outside; }
.article-content ol { list-style: decimal outside; }
.article-content ul ul, .article-content ol ul { list-style-type: circle; }
.article-content ul ul ul, .article-content ol ul ul { list-style-type: square; }
.article-content li { padding-inline-start: .3em; }
.article-content blockquote p { margin-bottom: 0px }
.article-content li + li { margin-top: .45em; }
.article-content li p { margin-bottom: 0px }
.article-content li > ul, .article-content li > ol { margin: .45em 0 0; }
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { height: auto; margin: 34px auto; border-radius: 14px; }
.article-content blockquote { padding: 18px 24px; border-left: 4px solid var(--blue); background: var(--light); }
.article-content pre { max-width: 100%; overflow-x: auto; padding: 20px; border-radius: 10px; background: #16202a; color: #fff; }
.article-content code { padding: .12em .35em; border-radius: 5px; background: #edf4f9; font-size: .9em; }
.article-content pre code { padding: 0; background: transparent; color: inherit; }
.article-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; border-spacing: 0; -webkit-overflow-scrolling: touch; }
.article-content caption { margin-bottom: .65em; color: var(--muted); font-size: .9em; text-align: left; }
.article-content th, .article-content td { min-width: 120px; padding: 12px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: var(--light); color: var(--ink); font-weight: 700; }
.article-content tbody tr:nth-child(even) { background: #f9fbfd; }
.article-content hr { height: 1px; margin: 2em 0; border: 0; background: var(--line); }
.recent-articles { position: sticky; top: 122px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--light); }
.recent-articles .eyebrow { margin-bottom: 7px; font-size: 12px; }
.recent-articles > h2 { font-size: 28px; line-height: 1.2; }
.recent-list { margin-top: 8px; }
.recent-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.recent-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 12px; }
.recent-meta span { color: var(--blue); font-weight: 800; }
.recent-meta span:after { content: "·"; margin-left: 7px; color: #9fb0bf; }
.recent-item h3 { margin: 9px 0 0; font-family: Geist, Arial, sans-serif; font-size: 18px; line-height: 1.35; }
.recent-item h3 a:hover { color: var(--blue); }
.all-articles-link { display: inline-flex; gap: 7px; margin-top: 22px; color: var(--blue); font-size: 14px; font-weight: 800; }
.blog-footer { padding: 42px 0; background: var(--ink); color: #d9e3eb; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-inner p { color: #93a3b0; font-size: 14px; }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a:hover { color: var(--blue); }
@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner nav { gap: 20px; }
  .header-inner nav a:not(.is-active):not(.header-button) { display: none; }
  .detail-layout { grid-template-columns: 1fr; gap: 60px; }
  .recent-articles { position: static; }
  .recent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
@media (max-width: 620px) {
  .blog-container { width: min(100% - 32px, 1160px); }
  .header-inner { min-height: 74px; }
  .header-inner nav { gap: 14px; }
  .header-inner .header-button { padding: 11px 13px; font-size: 13px; }
  .blog-main { padding: 50px 0 78px; }
  .page-heading { margin-bottom: 32px; }
  .page-heading > p:last-child { font-size: 16px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-image { height: 210px; }
  .article-main { padding: 48px 0 78px; }
  .back-link { margin-bottom: 36px; }
  .article-content { margin-top: 32px; font-size: 17px; line-height: 1.72; }
  .detail-layout { gap: 46px; }
  .recent-articles { padding: 24px; }
  .recent-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
