@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css');
@import url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2104@1.0/MaruBuri-Regular.woff');

@font-face {
  font-family: 'MaruBuri';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2104@1.0/MaruBuri-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f3f1;
  --accent: #f57c00;
  --text: #222222;
  --muted: #666666;
  --line: #d8d8d8;
  --soft: #f7f7f7;
  --content: 960px;
  --post: 760px;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --serif: 'MaruBuri', 'Noto Serif KR', serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.site-shell {
  width: min(var(--content), calc(100% - 80px));
  margin: 0 auto;
  padding: 54px 0 64px;
}
.site-header {
  position: relative;
  text-align: center;
  padding: 0 0 22px;
}
.logo-link { display: inline-block; line-height: 0; }
.site-logo {
  width: clamp(260px, 32vw, 390px);
  display: block;
  margin: 0 auto;
}
.site-search {
  position: absolute;
  right: 0;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transition: width .2s ease, opacity .2s ease, padding .2s ease, border .2s ease;
}
.site-search:focus-within .search-input,
.site-search:hover .search-input {
  width: 160px;
  opacity: 1;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  outline: none;
}
.search-button {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  padding: 4px;
}
.search-button:hover { color: var(--accent); }
.accent-line {
  width: var(--content);
  max-width: 100%;
  height: 1px;
  background: var(--accent);
  margin: 22px auto 0;
}

.site-main { margin-top: 22px; }
.home-intro {
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 22px 0;
  margin: 0 auto 46px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.74;
}
.home-intro p { margin: 0; }
.notice-section, .recent-section, .list-page, .post { margin: 0 auto; }
.notice-section, .recent-section { max-width: var(--post); }
.notice-section {
  margin-bottom: 56px;
}
.section-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .02em;
  margin: 0 0 14px;
  color: var(--text);
}
.simple-list {
  list-style: none;
  padding: 0;
  margin: 0 0 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.simple-list li {
  position: relative;
  padding: 17px 0 17px 22px;
}
.simple-list li::before,
.recent-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 27px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.notice-list a { font-weight: 500; }

.recent-section { margin-top: 0; }
.recent-section + .recent-section .section-title {
  display: none;
}

.recent-section + .recent-section {
  margin-top: 0;
}
.recent-item {
  position: relative;
  padding: 22px 0 24px 22px;
  border-top: 0;
}
.recent-item:last-child { border-bottom: 1px solid var(--line); }
.recent-section .recent-item {
  border-top: 0;
}

.recent-section .recent-item:last-child {
  border-bottom: 0;
}
.recent-title {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
  margin: 0 0 8px;
}
.recent-date {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.recent-summary {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-page { max-width: var(--post); }
.list-header {
  text-align: center;
  padding: 22px 0 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.list-header h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.36;
  margin: 0 0 12px;
}
.list-header p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--muted);
  white-space: pre-line;
}
.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.archive-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.archive-item time {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}
.archive-title {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 7px;
}
.archive-item p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.empty-page {
  text-align: center;
  padding: 110px 0;
}
.empty-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 72px;
  margin: 0;
}
.empty-page p { margin: 10px 0 26px; }
.empty-page a { color: var(--muted); }

.post { max-width: var(--post); }
.post-header {
  text-align: center;
  padding: 20px 0 46px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 42px;
}
.post-category {
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}
.post-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.32;
  max-width: 900px;
  margin: 18px auto 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-header time {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.post-content {
  font-size: 17px;
  line-height: 1.86;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.post-content p { margin: 0 0 1.45em; }
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.44;
  margin: 2.2em 0 .8em;
}
.post-content h2 { font-size: 30px; }
.post-content h3 { font-size: 24px; }
.post-content blockquote {
  margin: 2em 0;
  padding: .2em 0 .2em 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.post-content pre {
  overflow-x: auto;
  background: var(--soft);
  border-radius: 10px;
  padding: 18px 20px;
  line-height: 1.62;
  font-size: 14px;
}
.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  background: var(--soft);
  border-radius: 4px;
  padding: 2px 5px;
}
.post-content pre code { padding: 0; background: transparent; }
.post-content img {
  display: block;
  margin: 2em auto;
  box-shadow: none;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 15px;
}
.post-content th,
.post-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.post-tags {
  margin: 44px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.post-tags a { margin-right: 8px; }
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin: 50px 0;
  font-size: 14px;
  color: var(--muted);
}
.post-nav .next { text-align: right; }

.comments {
  margin-top: 54px;
  padding-top: 0;
}
.comments .tt-box-total {
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 18px 0 !important;
  margin: 0 0 26px !important;
  font-size: 14px !important;
  color: var(--text) !important;
}
.comments .tt_num_g { color: var(--accent) !important; }
.comments .tt-area-reply,
.comments .tt-list-reply,
.comments .tt-item-reply { background: transparent !important; }
.comments .tt-list-reply { padding: 0 !important; }
.comments .tt-item-reply {
  border-bottom: 1px solid var(--line) !important;
  padding: 20px 0 !important;
}
.comments .tt-box-thumb { display: none !important; }
.comments .tt-box-content { margin-left: 0 !important; }
.comments .tt-link-user,
.comments .tt_date { font-family: var(--sans) !important; }
.comments .tt_desc { color: var(--text) !important; line-height: 1.7 !important; }
.comments textarea,
.comments input[type='text'],
.comments input[type='password'] {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  font-family: var(--sans) !important;
}
.comments textarea { min-height: 130px !important; }
.comments button,
.comments input[type='submit'],
.comments .tt-btn_register {
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-family: var(--sans) !important;
  cursor: pointer !important;
}

.site-footer {
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

body:not(#tt-body-index) .only-index { display: none !important; }
body#tt-body-index .list-page { display: none; }
body#tt-body-page .recent-section { display: none; }
body#tt-body-index .recent-section .section-title {
  display: none;
}

@media (max-width: 768px) {
  .site-shell {
    width: calc(100% - 40px);
    padding: 34px 0 46px;
  }
  .site-logo { width: clamp(220px, 70vw, 260px); }
  .site-search { top: 4px; }
  .site-search:focus-within .search-input,
  .site-search:hover .search-input { width: 120px; }
  .accent-line { width: 100%; margin-top: 18px; }
  .home-intro { padding: 18px 0; margin-bottom: 36px; font-size: 15px; }
  .recent-title { font-size: 21px; }
  .archive-title { font-size: 20px; }
  .post-header { padding-bottom: 34px; margin-bottom: 34px; }
  .post-header h1 { -webkit-line-clamp: 3; font-size: 34px; }
  .post-content { font-size: 16px; line-height: 1.8; word-break: normal; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
}
