@font-face {
  font-family: "Noto Sans KR";
  src: url("./fonts/noto-sans-kr-400.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans KR";
  src: url("./fonts/noto-sans-kr-700.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif KR";
  src: url("./fonts/noto-serif-kr-600.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

* { box-sizing: border-box; }
html { background: var(--dotori-surface); scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--dotori-surface);
  color: var(--dotori-text);
  font-family: var(--dotori-font-reading);
  font-size: 16px;
  line-height: 1.95;
  font-synthesis: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--dotori-forest); outline-offset: 5px; border-radius: 2px; }
p { margin: 0; }
p + p { margin-top: 1.15em; }
h1, h2, h3 { margin: 0; }
strong { font-weight: 700; }
::selection { background: var(--dotori-sage); color: var(--dotori-forest-deep); }
.skip-link { position: absolute; top: 8px; left: 16px; z-index: 2; padding: 10px 16px; background: var(--dotori-paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { max-width: 1200px; margin: 0 auto; padding: 20px 24px 0; }
.home-link { display: inline-flex; min-height: 48px; align-items: center; }
.home-link img { width: 108px; height: auto; }
.opening { padding-top: 50px; }
.opening-copy { padding: 0 26px; text-align: center; }
.opening h1 { font-family: var(--dotori-font-title); font-weight: 600; font-size: 32px; line-height: 1.6; letter-spacing: -.045em; max-width: 10em; margin: 0 auto 26px; text-wrap: balance; }
.opening-copy > p { max-width: 36em; margin: 0 auto; color: var(--dotori-text-secondary); font-size: 15px; line-height: 1.95; }
.departure { display: block; margin: 42px auto 0; max-width: 1120px; }
.departure img { width: 100%; }
.invitation { max-width: 23em; margin: 44px auto 0; padding: 0 28px; font-family: var(--dotori-font-title); font-weight: 600; font-size: 19px; text-align: center; line-height: 1.9; text-wrap: balance; }
.walk { max-width: 1040px; margin: 0 auto; padding: 0 26px; }
.chapter { position: relative; }
.chapter h2, .download h2 { max-width: 17em; font-family: var(--dotori-font-title); font-size: 25px; font-weight: 600; letter-spacing: -.035em; line-height: 1.65; text-wrap: balance; }
.chapter h2 + p, .download h2 + p { margin-top: 26px; }
.chapter p { color: var(--dotori-text-secondary); }
.audience { padding-top: 108px; padding-bottom: 84px; }
.audience .chapter-copy { max-width: 530px; }
.forest-edge { margin: 30px 0 0 auto; width: 240px; }
.before { max-width: 530px; margin-right: 30px; padding-top: 38px; }
.before::before, .during::before, .after::before { content: ""; display: block; width: 30px; height: 1px; background: var(--dotori-forest); margin-bottom: 28px; }
.during { max-width: 530px; margin-top: 100px; margin-left: 24px; padding-top: 28px; }
.acorn { width: 64px; margin: 0 10px 26px auto; }
.after { max-width: 610px; margin-top: 118px; padding-top: 12px; }
.collection { display: grid; grid-template-columns: minmax(0, 1fr) 86px; gap: 24px; align-items: center; margin-top: 24px; }
.collection img { width: 86px; }
.download { max-width: 1120px; margin: 108px auto 0; padding: 64px 26px 72px; border-top: 1px solid var(--dotori-sage); text-align: center; }
.download .chapter-copy { max-width: 550px; margin: 0 auto; }
.download h2 { margin: 0 auto; }
.download p { color: var(--dotori-text-secondary); }
.download p:last-child { font-size: 14px; }
.site-footer { border-top: 1px solid var(--dotori-sage); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 32px 26px 42px; font-size: 13px; color: var(--dotori-text-secondary); }
.operator { color: var(--dotori-text); font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.footer-inner > p:last-child { margin-top: 12px; }

/* The legal pages share the paper and ink; the reading column sets their rhythm. */
.document-main { max-width: 1160px; margin: 0 auto; padding: 48px 24px 80px; }
.document-lead { max-width: 720px; }
.document-lead h1 { font-family: var(--dotori-font-title); font-weight: 600; font-size: 29px; line-height: 1.55; letter-spacing: -.04em; text-wrap: balance; }
.effective-date { margin-top: 20px; margin-bottom: 28px; font-size: 14px; color: var(--dotori-text-secondary); }
.document-lead p:not(.effective-date) { color: var(--dotori-text-secondary); }
.document-layout { margin-top: 38px; }
.contents { margin-bottom: 54px; }
.contents details { padding: 18px 0; border-top: 1px solid var(--dotori-sage); border-bottom: 1px solid var(--dotori-sage); }
.contents summary { cursor: pointer; font-size: 15px; font-weight: 700; min-height: 36px; }
.contents nav ul { list-style: none; margin: 8px 0 0; padding: 0; }
.contents li { margin: 0; }
.contents a { display: block; padding: 7px 0; font-size: 14px; line-height: 1.65; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.contents .toc-level-3 a { padding-left: 14px; color: var(--dotori-text-secondary); }
.document-body { min-width: 0; }
.document-body h2 { margin: 58px 0 24px; font-size: 22px; line-height: 1.6; letter-spacing: -.025em; font-weight: 700; }
.document-body > h2:first-child { margin-top: 0; }
.document-body h3 { margin: 36px 0 18px; font-size: 18px; line-height: 1.7; font-weight: 700; }
.document-body p, .document-body li { color: var(--dotori-text-secondary); }
.document-body ul { padding-left: 1.3em; }
.document-body table { width: 100%; margin: 28px 0; border-collapse: collapse; font-size: 14px; line-height: 1.85; color: var(--dotori-text-secondary); }
.document-body th, .document-body td { padding: 16px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--dotori-sage); }
.document-body th { font-weight: 700; color: var(--dotori-text); background: #F0F3EB; border-top: 1px solid var(--dotori-sage); }
.document-body td:first-child { min-width: 7em; }

@media (max-width: 759px) {
  .document-body table, .document-body tbody { display: block; }
  .document-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .document-body tr { display: block; padding: 20px 0; border-bottom: 1px solid var(--dotori-sage); }
  .document-body tr:first-child { border-top: 1px solid var(--dotori-sage); }
  .document-body td { display: block; padding: 0; border: 0; }
  .document-body td + td { margin-top: 14px; }
  .document-body td::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 12px; font-weight: 700; color: var(--dotori-text); }
}

@media (min-width: 760px) {
  .site-header { padding: 28px 40px 0; }
  .home-link img { width: 120px; }
  .opening { padding-top: 58px; }
  .opening h1 { font-size: 48px; max-width: 18em; margin-bottom: 28px; }
  .opening-copy > p { font-size: 17px; }
  .departure { margin-top: 52px; width: calc(100% - 80px); }
  .invitation { margin-top: 54px; font-size: 23px; max-width: 30em; }
  .walk { padding: 0 40px; }
  .chapter h2, .download h2 { font-size: 32px; }
  .chapter p { font-size: 17px; line-height: 2; }
  .audience { padding-top: 156px; padding-bottom: 122px; }
  .audience .chapter-copy { margin-left: 8%; }
  .forest-edge { width: 370px; margin-top: 24px; margin-right: 3%; }
  .before { margin-left: 4%; margin-right: 0; max-width: 540px; }
  .during { margin: 138px 0 0 auto; max-width: 560px; }
  .acorn { width: 84px; margin-bottom: 18px; margin-right: 0; }
  .after { margin-top: 164px; margin-left: 8%; max-width: 700px; }
  .after .chapter-copy > p { max-width: 540px; }
  .collection { grid-template-columns: minmax(0, 1fr) 132px; gap: 52px; margin-top: 32px; }
  .collection img { width: 132px; }
  .download { margin-top: 150px; padding: 90px 40px 100px; }
  .download p { font-size: 17px; }
  .download p:last-child { font-size: 15px; }
  .footer-inner { padding: 40px 40px 48px; }
  .document-main { padding: 70px 40px 110px; }
  .document-lead h1 { font-size: 40px; }
  .document-body h2 { font-size: 25px; }
}

@media (min-width: 1100px) {
  .document-lead { margin-left: 296px; }
  .document-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 56px; margin-top: 52px; align-items: start; }
  .contents { position: sticky; top: 28px; max-height: calc(100vh - 56px); overflow-y: auto; scrollbar-width: thin; }
  .contents details { padding-top: 0; border-top: 0; }
  .contents summary { padding-top: 3px; }
  .contents a { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .contents, .skip-link, .site-footer { display: none; }
  .document-main { max-width: none; padding: 0; }
  .document-lead { margin-left: 0; }
  .document-layout { display: block; }
  .document-body h2, .document-body h3 { break-after: avoid; }
  .document-body tr { break-inside: avoid; }
}
