@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
 --bg: #ffffff;
 --text: #222222;
 --muted: #8b8b8b;
 --line: #ececec;
 --line-strong: #dedede;
 --soft: #f7f7f7;
 --button: #111111;
 --max: 1120px;
 --content: 760px;
 --sidebar: 290px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
 margin: 0;
 background: var(--bg);
 color: var(--text);
 font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
 font-size: 15px;
 line-height: 1.82;
 -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
body, input, button, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; padding: 0; }
img { max-width: 100%; display: block; }

.site-header {
 border-bottom: 1px solid var(--line);
 background: #fff;
}
.site-header-inner {
 max-width: var(--max);
 margin: 0 auto;
 padding: 30px 24px 22px;
 display: flex;
 align-items: flex-end;
 justify-content: space-between;
 gap: 24px;
}

.site-brand {
 display: inline-block;
 font-size: 2.15rem;
 font-weight: 600;
 letter-spacing: -0.05em;
}
.site-brand span {
 color: var(--muted);
 font-weight: 400;
 font-size: 1.2rem;
}
.header-search {
 width: 220px;
 display: flex;
 justify-content: flex-end;
 align-items: flex-end;
 flex-shrink: 0;
}

.header-search input {
 width: 100%;
 height: 35px;
 padding: 0 14px;
 border: 1px solid var(--line-strong);
 background: #fff;
 outline: none;
 font-size: 0.92rem;
}

.header-search input::placeholder {
 color: #a0a0a0;
}

.site-main { min-height: calc(100vh - 140px); }

.archive-page,
.entry-page,
.contact-page { padding: 34px 24px 56px; }
.archive-page,
.entry-wrap,
.contact-shell,
.site-footer-inner { max-width: var(--max); margin: 0 auto; }

.form-row input:focus,
.form-row textarea:focus { border-color: #b7b7b7; }

.archive-layout {
 display: grid;
 grid-template-columns: minmax(0, 1fr) var(--sidebar);
 gap: 52px;
 padding-top: 28px;
}
.archive-main { min-width: 0; }
.archive-total {
 margin: 0 0 18px;
 color: #555;
 font-size: 0.96rem;
}
.archive-total strong {
 color: #d56f6f;
 font-weight: 600;
}
.archive-rows { border-top: 1px solid var(--line); }
.archive-row {
 border-bottom: 1px solid var(--line);
}
.archive-row.is-hidden { display: none; }
.archive-row-link {
 display: grid;
 grid-template-columns: 196px minmax(0, 1fr);
 gap: 22px;
 align-items: start;
 padding: 20px 0;
}
.archive-row-thumb {
 width: 196px;
 height: 132px;
 background: var(--soft);
 border: 1px solid var(--line);
}
.archive-row-thumb-placeholder {
 display: flex;
 align-items: center;
 justify-content: center;
 color: #9a9a9a;
 font-size: 0.9rem;
}
.archive-row-body { min-width: 0; padding-top: 2px; }
.archive-row-category {
 margin-bottom: 8px;
 color: #8e8e8e;
 font-size: 0.84rem;
}
.archive-row h2 {
 margin: 0;
 font-size: 1.18rem;
 line-height: 1.42;
 font-weight: 600;
 letter-spacing: -0.03em;
}
.archive-row p {
 margin: 9px 0 0;
 color: #666;
 font-size: 0.95rem;
 line-height: 1.72;
}
.archive-row-meta {
 margin-top: 11px;
 color: #9a9a9a;
 font-size: 0.87rem;
}
.archive-row-meta span + span::before {
 content: '·';
 margin: 0 8px;
}

.archive-aside {
 display: grid;
 gap: 24px;
 align-content: start;
}
.aside-card {
 padding-bottom: 20px;
 border-bottom: 1px solid var(--line);
}
.aside-card:last-child { border-bottom: 0; padding-bottom: 0; }
.author-card {
 text-align: center;
 padding-bottom: 28px;
}
.author-avatar {
 width: 112px;
 height: 112px;
 margin: 0 auto 16px;
 border-radius: 50%;
 background: linear-gradient(135deg, #f2f4f7, #dfe7ef);
 border: 1px solid var(--line);
 display: flex;
 align-items: center;
 justify-content: center;
 color: #3f4f60;
 font-size: 2rem;
 font-weight: 600;
}
.author-card h2 {
 margin: 0;
 font-size: 1.26rem;
 letter-spacing: -0.03em;
}
.author-card p {
 margin: 10px 0 12px;
 color: #666;
 font-size: 0.94rem;
 line-height: 1.72;
}
.author-email {
 display: inline-block;
 margin-bottom: 14px;
 color: #888;
 font-size: 0.92rem;
}
.aside-card h3 {
 margin: 0 0 14px;
 font-size: 1rem;
 font-weight: 600;
}
.category-list {
 display: grid;
 gap: 10px;
}
.category-link {
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 12px;
 color: #666;
 font-size: 0.94rem;
}
.category-link span { color: #9a9a9a; }
.category-link.is-active { color: var(--text); font-weight: 600; }
.aside-tag-list,
.tag-list {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
}
.tag-chip {
 display: inline-flex;
 align-items: center;
 min-height: 30px;
 padding: 0 10px;
 border: 1px solid var(--line);
 background: #fff;
 color: #666;
 font-size: 0.84rem;
}
.dark-button,
.light-button {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 44px;
 padding: 0 18px;
 font-size: 0.94rem;
 cursor: pointer;
}
.dark-button {
 background: var(--button);
 color: #fff;
}
.light-button {
 background: #fff;
 border: 1px solid var(--line-strong);
}
.full-width { width: 100%; }

.empty-note,
.form-status { color: #8f8f8f; }

.entry-wrap { max-width: var(--content); }
.entry-back {
 display: inline-block;
 margin-bottom: 18px;
 color: #8c8c8c;
}
.entry-header {
 padding-bottom: 22px;
 border-bottom: 1px solid var(--line);
}
.entry-title {
 margin: 0;
 font-size: 2.15rem;
 line-height: 1.28;
 letter-spacing: -0.05em;
 font-weight: 600;
}
.entry-description {
 margin: 12px 0 0;
 color: #5f5f5f;
}
.entry-meta {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 margin-top: 16px;
 color: #8e8e8e;
 font-size: 0.9rem;
}
.entry-content {
 padding-top: 26px;
 font-size: 1rem;
 line-height: 1.9;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content pre,
.entry-content table { margin: 1.15em 0; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content blockquote {
 margin-left: 0;
 padding-left: 16px;
 border-left: 3px solid #d8d8d8;
 color: #5e5e5e;
}
.entry-content pre {
 overflow-x: auto;
 padding: 16px;
 background: #fafafa;
 border: 1px solid var(--line);
}
.entry-content table {
 width: 100%;
 border-collapse: collapse;
 border-top: 1px solid var(--line-strong);
 border-bottom: 1px solid var(--line-strong);
}
.entry-content th,
.entry-content td {
 padding: 10px 12px;
 border-bottom: 1px solid var(--line);
 text-align: left;
 vertical-align: top;
}

.contact-shell { max-width: 760px; }
.contact-intro {
 padding-bottom: 22px;
 border-bottom: 1px solid var(--line);
}
.contact-intro h1,
.chat-modal-dialog h2 {
 margin: 0;
 font-size: 2rem;
 line-height: 1.28;
 letter-spacing: -0.05em;
 font-weight: 600;
}
.page-kicker {
 margin: 0 0 8px;
 color: #8d8d8d;
 font-size: 0.84rem;
}
.contact-form-wrap { padding-top: 24px; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 0.93rem; }
.form-row input,
.form-row textarea {
 width: 100%;
 padding: 7px 10px;
 border: 1px solid var(--line-strong);
 background: #fff;
 outline: none;
 resize: vertical;
 font-size: 1rem;
}

.chat-modal {
 position: fixed;
 inset: 0;
 z-index: 200;
}
.chat-modal[hidden] { display: none; }
.chat-modal-backdrop {
 position: absolute;
 inset: 0;
 background: rgba(0, 0, 0, 0.42);
}
.chat-modal-dialog {
 position: relative;
 width: min(450px, calc(100% - 32px));
 margin: 52px auto;
 padding: 28px;
 background: #fff;
 border: 1px solid var(--line-strong);
}
.chat-modal-close {
 position: absolute;
 top: 10px;
 right: 16px;
 font-size: 1.8rem;
 line-height: 1;
 cursor: pointer;
}
.chat-modal-description { margin-bottom: 18px; }

.site-footer {
 border-top: 1px solid var(--line);
}
.site-footer-inner {
 padding: 18px 24px 34px;
 display: flex;
 justify-content: space-between;
 gap: 20px;
 color: #9a9a9a;
 font-size: 0.9rem;
}
.site-footer p { margin: 0; } 
@media (max-width: 960px) {
  .archive-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding-top: 22px;
 }

 .archive-aside {
  gap: 20px;
 }
}

@media (max-width: 760px) {
 .site-header-inner,
 .archive-page,
 .entry-page,
 .contact-page,
 .site-footer-inner {
  padding-left: 18px;
  padding-right: 18px;
 }

 .site-header-inner {
  padding-top: 22px;
  padding-bottom: 18px;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
 }

 .site-brand {
  font-size: 1.86rem;
  line-height: 1.12;
 }

 .site-brand span {
  display: block;
  font-size: 1rem;
  margin-top: 2px;
 }

 .header-search {
  width: 100%;
  justify-content: flex-start;
  align-items: stretch;
 }

 .header-search input {
  height: 40px;
 }

 .archive-page,
 .entry-page,
 .contact-page {
  padding-top: 24px;
  padding-bottom: 44px;
 }

 .archive-layout {
  gap: 28px;
  padding-top: 18px;
 }

 .archive-row-link {
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px 0;
 }

 .archive-row-thumb {
  width: 100%;
  height: 180px;
 }

 .archive-row h2 {
  font-size: 1.08rem;
 }

 .archive-row p {
  font-size: 0.93rem;
  line-height: 1.66;
 }

 .archive-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
 }

 .archive-row-meta span + span::before {
  content: none;
  margin: 0;
 }

 .author-card {
  padding-bottom: 24px;
 }

 .author-avatar {
  width: 88px;
  height: 88px;
  margin-bottom: 14px;
  font-size: 1.6rem;
 }

 .entry-title,
 .contact-intro h1,
 .chat-modal-dialog h2 {
  font-size: 1.72rem;
 }

 .entry-content {
  font-size: 0.98rem;
  line-height: 1.82;
 }

 .chat-modal-dialog {
  width: calc(100% - 24px);
  margin: 24px auto;
  padding: 24px 18px 18px;
 }

 .dark-button,
 .light-button {
  width: 100%;
 }

 .site-footer-inner {
  flex-direction: column;
  gap: 8px;
 }
}

@media (max-width: 480px) {
 .site-brand {
  font-size: 1.66rem;
 }

 .archive-row-thumb {
  height: 156px;
 }

 .aside-card {
  padding-bottom: 16px;
 }

 .tag-chip {
  min-height: 28px;
  font-size: 0.82rem;
 }
}
.archive-row.has-thumb .archive-row-link {
  grid-template-columns: minmax(0, 1fr) 196px;
  gap: 22px;
  align-items: start;
}

.archive-row.no-thumb .archive-row-link {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.archive-row.no-thumb .archive-row-thumb {
  display: none;
}

.archive-row-thumb {
  width: 196px;
  height: 132px;
  overflow: hidden;
 background: var(--soft);
  border: 1px solid var(--line);
}

.archive-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-row-body {
  min-width: 0;
  padding-top: 2px;
}

.archive-row-category {
  margin-bottom: 8px;
  color: #8e8e8e;
  font-size: 0.84rem;
}

.archive-row h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.42;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.archive-row p {
  margin: 9px 0 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.72;
}

.archive-row-meta {
  margin-top: 11px;
  color: #9a9a9a;
  font-size: 0.87rem;
}

.archive-row-meta .archive-row-tags {
  display: inline;
}

@media (max-width: 760px) {
  .archive-row.has-thumb .archive-row-link {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .archive-row.has-thumb .archive-row-thumb {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .archive-row.has-thumb .archive-row-thumb {
    height: 156px;
  }
}
