/*
Theme Name: Hushudt Board
Theme URI: https://eventpage.co.kr/hushudt/
Author: Conbox
Description: Compact board-style blog grid for the hushudt WordPress section.
Version: 1.0.0
Requires PHP: 7.0
*/

:root {
  --page-bg: #f6f7f9;
  --panel: #fff;
  --text: #17191d;
  --muted: #6a7280;
  --line: #dfe3ea;
  --accent: #1769e0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.site-header-inner,
.site-main,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.site-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-title a {
  color: var(--text);
}

.site-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-main {
  padding: 28px 0 42px;
}

.archive-head {
  margin-bottom: 16px;
}

.archive-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.archive-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9edf3;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 12px 14px;
}

.post-card-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title a:hover {
  color: var(--accent);
}

.post-card-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.post-card-excerpt {
  margin: 8px 0 0;
  color: #404753;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}

.pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.single-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
}

.single-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 850;
}

.single-meta {
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.single-content {
  font-size: 17px;
}

.single-content h2 {
  margin-top: 32px;
  font-size: 24px;
}

.single-content figure {
  margin: 24px 0;
}

.single-content img {
  border-radius: 8px;
}

.single-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 14px;
}

.site-footer {
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1024px) {
  .site-header-inner,
  .site-main,
  .site-footer {
    width: min(100% - 32px, 1120px);
  }

  .post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .post-card-title {
    font-size: 14px;
  }

  .post-card-excerpt {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-header-inner,
  .site-main,
  .site-footer {
    width: min(100% - 28px, 1280px);
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .post-card-body {
    padding: 12px;
  }

  .post-card-title {
    font-size: 15px;
  }

  .post-card-excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .single-wrap {
    padding: 22px 18px;
  }

  .single-title {
    font-size: 26px;
  }
}

@media (max-width: 420px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}
