@font-face {
  font-family: Pretendard;
  src: url('/fonts/pretendard/PretendardVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #252a27;
  background: #f5f6f3;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f5f6f3; color: #252a27; }
a { color: inherit; }

.site-header {
  height: 60px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #e7e9e5;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img { width: 36px; height: 36px; }

.page { max-width: 1120px; margin: 0 auto; padding: 34px 24px 70px; }
.hero { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.hero h1 { margin: 0; font-size: 34px; letter-spacing: -.03em; }
.public-notice {
  margin: 14px auto 0;
  max-width: 760px;
  color: #667169;
  font-size: 14px;
  line-height: 1.75;
  word-break: keep-all;
}

.reader-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 82px;
  background: #fff;
  border: 1px solid #e3e6e1;
  border-radius: 16px;
  padding: 16px;
  max-height: calc(100vh - 102px);
  overflow: auto;
}

.toc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px;
}

.toc-head h2 { font-size: 15px; margin: 0; }
.toc-head small { color: #7b847e; }
.toc nav { display: grid; }
.toc nav a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 7px;
  padding: 10px 8px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
}
.toc nav a:hover,
.toc nav a[aria-current='page'] { background: #edf3ef; color: #194a3a; }
.toc nav span { font-variant-numeric: tabular-nums; color: #718078; }
.toc nav strong { font-weight: 750; }

.reading {
  background: #fff;
  border: 1px solid #e3e6e1;
  border-radius: 18px;
  padding: 38px 44px;
  min-width: 0;
}

.reading-head {
  padding-bottom: 22px;
  border-bottom: 1px solid #eceeea;
  margin-bottom: 26px;
}

.reading-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.reading-body {
  font-size: 18px;
  line-height: 1.95;
  letter-spacing: -.01em;
  word-break: keep-all;
}

.reading-body p { margin: 0 0 1.05em; white-space: pre-wrap; }
.blank { height: .8em; }

.chapter-nav {
  display: flex;
  position: relative;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #eceeea;
}

.chapter-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #dfe4df;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.chapter-nav .prev { margin-right: auto; }
.chapter-nav .next { margin-left: auto; }
.chapter-progress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #778079;
}

.continue-card {
  margin-top: 34px;
  padding: 22px;
  border-radius: 14px;
  background: #edf3ef;
  text-align: center;
}
.continue-card strong { display: block; font-size: 17px; margin-bottom: 6px; }
.continue-card p { margin: 0 0 15px; color: #647068; font-size: 13px; line-height: 1.6; }
.continue-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: #194a3a;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.rights { margin: 24px 0 0; color: #8b918d; text-align: center; font-size: 11px; }

@media (max-width: 760px) {
  .site-header { height: 54px; padding: 0 14px; }
  .brand img { width: 31px; height: 31px; }
  .brand span { font-size: 14px; }
  .page { padding: 22px 12px 54px; }
  .hero { margin-bottom: 18px; }
  .hero h1 { font-size: 28px; }
  .public-notice { font-size: 14px; }
  .reader-grid { display: block; }
  .toc { position: relative; top: auto; max-height: none; margin-bottom: 12px; padding: 12px; }
  .toc nav { grid-template-columns: 1fr 1fr; }
  .toc nav a { grid-template-columns: 34px 1fr; padding: 8px 6px; font-size: 11px; }
  .reading { padding: 26px 20px; border-radius: 14px; }
  .reading-head { padding-bottom: 18px; margin-bottom: 22px; }
  .reading-head h2 { font-size: 23px; }
  .reading-body { font-size: 17px; line-height: 1.9; word-break: normal; }
  .chapter-nav { margin-top: 26px; }
  .chapter-progress { display: none; }
  .chapter-nav a { font-size: 12px; padding: 0 10px; }
  .continue-card { padding: 19px 14px; }
}
