/* YISLEA v0.1 — design tokens are here so approved landing CSS can replace them later. */
:root {
  color-scheme: light;
  --bg: #fbfbfa;
  --ink: #171818;
  --text: #303232;
  --muted: #717575;
  --soft: #969a9a;
  --line: #dedfdd;
  --surface: #f2f3f1;
  --hover: #eeeeec;
  --max: 1120px;
  --read: 760px;
  --font: "NanumSquare Neo", "NanumSquareNeo", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #151617; --ink: #eeefed; --text: #cdd0cf;
    --muted: #a2a5a4; --soft: #7f8584; --line: #343739;
    --surface: #202223; --hover: #252828;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151617; --ink: #eeefed; --text: #cdd0cf;
  --muted: #a2a5a4; --soft: #7f8584; --line: #343739;
  --surface: #202223; --hover: #252828;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfbfa; --ink: #171818; --text: #303232;
  --muted: #717575; --soft: #969a9a; --line: #dedfdd;
  --surface: #f2f3f1; --hover: #eeeeec;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.72 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button { cursor: pointer; }
button, input { border-radius: 0; }
a,button,input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--bg); }
.shell { width: min(var(--max), calc(100% - 104px)); margin-inline: auto; }
.read-wrap { width: min(var(--read), calc(100% - 44px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 50; top: -70px; left: 20px; padding: 10px 16px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 10px; }
/* Header */
.site-header { position: relative; border-bottom: 1px solid var(--line); }
.topbar { min-height: 92px; display: flex; gap: 34px; align-items: center; }
.wordmark { font-size: 22px; font-weight: 850; letter-spacing: -.055em; color: var(--ink); white-space: nowrap; line-height: 1; }
.wordmark-dot { color: var(--soft); }
.site-nav { display: flex; align-items: center; gap: clamp(13px,1.9vw,27px); margin-left: auto; white-space: nowrap; }
.site-nav a { font-size: 13px; font-weight: 550; letter-spacing: -.02em; color: var(--muted); padding: 13px 0; transition: color .15s ease; }
.site-nav a:is(:hover, [aria-current="page"]) { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -1px var(--ink); }
.theme-button { padding: 6px; margin-right: -6px; background: transparent; border: 0; color: var(--ink); line-height: 1; font-size: 20px; width: 32px; height: 32px; }
/* Global */
.site-main { min-height: 65vh; }
.eyebrow,.section-index { color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 650; letter-spacing: .12em; }
.inline-arrow,.section-more { font-size: 13px; font-weight: 680; display: inline-flex; gap: 12px; align-items: baseline; color: var(--ink); }
.inline-arrow:hover,.section-more:hover,.quiet-back:hover { text-decoration: underline; text-underline-offset: 5px; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.muted { color: var(--muted); }
.empty-copy { padding: 33px 0 45px; margin: 0; color: var(--muted); font-size: 14px; }
/* Hero */
.hero { padding-top: 120px; padding-bottom: 116px; }
.hero-overline { margin-bottom: 30px; }
.hero-separator { padding-inline: 10px; color: var(--soft); }
.hero h1 { font-size: clamp(77px,10.7vw,154px); font-weight: 850; letter-spacing: -.092em; line-height: 1.05; margin: 0 0 31px -.045em; color: var(--ink); }
.hero .wordmark-dot { padding-left: .06em; }
.hero-lead { max-width: 615px; color: var(--text); font-size: clamp(17px,2vw,23px); letter-spacing: -.042em; line-height: 1.65; font-weight: 390; margin: 0 0 34px; }
/* Sections */
.ruled-section { border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 111px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.section-index { margin: 0 0 17px; }
.section-heading h2 { color: var(--ink); font-size: clamp(24px,3vw,35px); font-weight: 700; line-height: 1.25; letter-spacing: -.055em; margin: 0; }
.heading-en { display: inline-block; font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 14px; letter-spacing: 0; vertical-align: middle; }
.section-more { padding-bottom: 4px; font-size: 12px; }
.line-list { border-top: 1px solid var(--line); }
.line-entry { border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; column-gap: 30px; padding: 20px 3px 21px 0; }
.line-entry-main { min-width: 0; }
.line-entry .eyebrow { display: block; margin: 0 0 4px; font-size: 11px; font-weight: 550; letter-spacing: 0; }
.line-entry h3 { font-size: 16px; line-height: 1.48; font-weight: 580; margin: 0; color: var(--ink); letter-spacing: -.035em; overflow-wrap: anywhere; }
.line-entry h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.line-entry-date { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry-summary { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.pin-mark { font-weight: 750; color: var(--ink); }
/* Applications */
.app-section { padding-bottom: 82px; }
.project-list { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.project-entry { padding: 27px 28px 35px 0; border-bottom: 1px solid var(--line); min-height: 190px; }
.project-entry:nth-child(even) { padding-left: 32px; padding-right: 0; }
.project-entry:nth-child(odd) { border-right: 1px solid var(--line); }
.project-entry:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.project-name { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.project-entry h2,.project-entry h3 { color: var(--ink); font-size: 20px; font-weight: 660; line-height: 1.45; letter-spacing: -.055em; margin: 0; }
.project-entry h2 a:hover,.project-entry h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.project-status { color: var(--muted); font-size: 11px; white-space: nowrap; }
.project-entry p { color: var(--muted); font-size: 13px; margin: 14px 0 17px; line-height: 1.75; }
.project-entry .inline-arrow { font-size: 12px; }
.second-action { margin-left: 22px; }
.afterword { padding: 25px 0 115px; display: grid; grid-template-columns: 145px minmax(0, 550px); gap: 10px 30px; border-top: 1px solid var(--line); }
.afterword p { margin: -5px 0 5px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.afterword .inline-arrow { grid-column: 2; }
/* Inner pages */
.page-content { padding-top: 92px; padding-bottom: 132px; }
.page-heading { margin-bottom: 70px; }
.page-heading .eyebrow { margin: 0 0 22px; }
.page-heading h1 { font-weight: 800; font-size: clamp(48px,7.5vw,78px); line-height: 1.14; color: var(--ink); letter-spacing: -.072em; margin: 0 0 19px; overflow-wrap: anywhere; }
.heading-period { color: var(--soft); }
.page-intro { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 720px; margin: 0; letter-spacing: -.025em; }
.board-tools { display: flex; align-items: end; justify-content: space-between; gap: 26px; padding-bottom: 17px; }
.category-tabs { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 7px; }
.category-tabs a { color: var(--muted); font-size: 13px; white-space: nowrap; }
.category-tabs a:hover,.category-tabs a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.search-form { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.search-form:focus-within { border-color: var(--ink); }
.search-form input { min-width: 130px; width: 160px; color: var(--ink); padding: 4px 2px 8px; border: 0; background: transparent; outline: none; font-size: 12px; }
.search-form input::placeholder { color: var(--soft); }
.search-form button { border: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 650; padding: 4px 0 8px; }
.board-list .line-entry { padding-top: 23px; padding-bottom: 24px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 42px; color: var(--muted); font-size: 13px; margin-top: 42px; }
.pagination a { color: var(--ink); }
.inactive-page { opacity: .4; }
.note-small,.soft-note { color: var(--muted); font-size: 12px; margin-top: 30px; }
/* Text reading */
.article-page { padding-top: 64px; padding-bottom: 118px; }
.quiet-back { display: inline-flex; color: var(--muted); font-size: 12px; margin-bottom: 67px; }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 33px; margin-bottom: 47px; }
.article-header .quiet-back { margin-bottom: 63px; }
.article-header h1 { color: var(--ink); font-size: clamp(30px,4.3vw,48px); line-height: 1.3; font-weight: 750; letter-spacing: -.065em; margin: 11px 0 24px; overflow-wrap: anywhere; }
.article-meta { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.article-summary { padding-top: 16px; margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.prose { color: var(--text); font-size: 15.5px; line-height: 1.98; overflow-wrap: break-word; }
.prose h1,.prose h2,.prose h3,.prose h4 { color: var(--ink); line-height: 1.35; font-weight: 700; letter-spacing: -.04em; margin: 2.25em 0 .6em; }
.prose h1 { font-size: 27px; } .prose h2 { font-size: 23px; } .prose h3 { font-size: 18px; } .prose h4 { font-size: 16px; }
.prose p { margin: 0 0 1.3em; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose ul,.prose ol { padding-left: 1.5em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .24em; }
.prose blockquote { margin: 1.8em 0; padding: .15em 0 .15em 21px; border-left: 2px solid var(--ink); color: var(--muted); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 42px 0; }
.prose pre { border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); padding: 22px; margin: 26px 0 28px; overflow-x: auto; white-space: pre; font: 13px/1.8 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace; }
.prose :not(pre)>code { background: var(--surface); padding: 2px 5px; font: .85em/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; }
.prose img { display: block; max-width: 100%; height: auto; margin: 30px auto; }
.prose table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; margin: 25px 0 36px; }
.prose td,.prose th { padding: 10px 15px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface); color: var(--ink); }
.article-related,.attached-files { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 24px; }
.article-related { display: flex; align-items: center; gap: 18px; }
.article-related a,.attached-files a { display: block; color: var(--ink); font-size: 14px; }
.attached-files h2 { font-size: 17px; color: var(--ink); }
.attached-files a { padding: 8px 0; }
.article-neighbors { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 78px; }
.article-neighbors a { display: flex; flex-direction: column; gap: 6px; padding: 22px 0 23px; }
.article-neighbors a:last-child { padding-left: 25px; border-left: 1px solid var(--line); }
.article-neighbors a span { font-size: 11px; color: var(--muted); }
.article-neighbors a strong { font-weight: 550; font-size: 13px; color: var(--ink); }
.article-bottom { padding-top: 28px; }
/* Other pages */
.full-project-list { margin-top: 50px; }
.full-project-list .project-entry { min-height: 225px; }
.application-page>.quiet-back { margin-bottom: 40px; }
.application-page .page-heading { margin-bottom: 32px; }
.primary-text-action { display: inline-block; color: var(--ink); font-weight: 750; border-bottom: 1px solid var(--ink); font-size: 15px; padding: 10px 0; margin-top: 25px; }
.read-section { max-width: var(--read); padding: 18px 0 55px; }
.linked-sections { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.linked-sections h2 { color: var(--ink); font-size: 18px; margin: 0 0 19px; }
.linked-sections a { display: block; color: var(--text); padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.linked-sections .muted { font-size: 13px; }
.about-section { border-top: 1px solid var(--line); padding-top: 35px; }
.about-section .prose h2:first-child { margin-top: 0; }
.about-contact { border-top: 1px solid var(--line); padding-top: 27px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 15px 30px; }
.about-contact .eyebrow { margin-right: 28px; }
.about-contact a { color: var(--ink); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.about-contact p { margin: 0; }
.forum-intro { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 38px 0 42px; }
.forum-intro h2 { color: var(--ink); letter-spacing: -.055em; font-size: 27px; line-height: 1.45; font-weight: 670; margin: 10px 0 14px; }
.forum-intro p { max-width: 650px; margin: 0 0 21px; color: var(--muted); font-size: 14px; }
.future-forum-list { margin-top: 55px; }
.future-forum-list>.eyebrow { display: block; padding-bottom: 16px; }
.future-forum-row { border-top: 1px solid var(--line); padding: 16px 0; display: flex; gap: 24px; justify-content: space-between; }
.future-forum-row span { color: var(--ink); font-size: 15px; font-weight: 650; }
.future-forum-row small { color: var(--muted); font-size: 12px; }
.error-page { padding-top: 160px; padding-bottom: 140px; }
.error-page h1 { color: var(--ink); font-size: 42px; letter-spacing: -.05em; }
.error-page p { color: var(--muted); }
/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 31px; padding-bottom: 38px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: baseline; }
.footer-wordmark { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.045em; }
.footer-note { color: var(--muted); font-size: 11px; margin-left: 25px; }
.footer-links { color: var(--muted); display: flex; flex-wrap: wrap; gap: 26px; font-size: 12px; }
.footer-links a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .shell { width: calc(100% - 62px); }
  .topbar { gap: 20px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12px; }
  .hero { padding-top: 100px; padding-bottom: 94px; }
  .ruled-section { padding-bottom: 80px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 42px); }
  .topbar { min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px 10px; padding-top: 24px; padding-bottom: 10px; }
  .wordmark { font-size: 21px; }
  .theme-button { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-nav { grid-column: 1/-1; grid-row: 2; width: 100%; overflow-x: auto; margin: 0; gap: 23px; padding-bottom: 2px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 12px 0; }
  .hero { padding-top: 94px; padding-bottom: 92px; }
  .hero h1 { font-size: clamp(63px,14vw,97px); letter-spacing: -.09em; margin-bottom: 25px; }
  .hero-lead { font-size: 17px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading { align-items: center; }
  .heading-en { display: none; }
  .project-list { grid-template-columns: 1fr; }
  .project-entry,.project-entry:nth-child(even),.project-entry:nth-child(odd) { border-right: 0; padding: 24px 0 31px; min-height: 0; }
  .afterword { grid-template-columns: 1fr; gap: 12px; padding-bottom: 80px; }
  .afterword .inline-arrow { grid-column: 1; }
  .page-content { padding-top: 68px; padding-bottom: 88px; }
  .page-heading { margin-bottom: 45px; }
  .page-heading h1 { font-size: clamp(45px,11vw,65px); }
  .page-intro { font-size: 14px; }
  .board-tools { align-items: stretch; flex-direction: column; gap: 21px; }
  .category-tabs { gap: 9px 17px; }
  .search-form { align-self: flex-end; width: min(100%, 280px); }
  .search-form input { width: 100%; }
  .line-entry { align-items: flex-start; gap: 11px; flex-direction: column; padding: 18px 0 21px; }
  .line-entry h3 { font-size: 15px; }
  .line-entry-date { font-size: 11px; }
  .article-page { padding-top: 43px; }
  .article-header .quiet-back { margin-bottom: 46px; }
  .article-meta { gap: 7px 19px; }
  .prose { font-size: 15px; line-height: 1.88; }
  .prose pre { padding: 15px; font-size: 12px; }
  .linked-sections { grid-template-columns: 1fr; gap: 24px; }
  .article-neighbors { grid-template-columns: 1fr; }
  .article-neighbors a:last-child { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .footer-inner { flex-direction: column; gap: 13px; }
  .footer-note { margin-left: 17px; }
  .future-forum-row { align-items: start; flex-direction: column; gap: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* v0.2 additions: resource taxonomy and staff-only saved-draft preview.
   Public v0.1 type, grids, margins and monochrome colour palette are preserved. */
.resource-tools { align-items: end; }
.resource-filters { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.resource-categories { column-gap: 16px; }
.resource-categories a { font-size: 12px; }
.resource-sub-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 11px; }
.resource-sub-links a { font-size: 12px; font-weight: 650; color: var(--ink); }
.resource-sub-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.draft-preview-notice { padding: 15px 18px; margin: 0 0 40px; background: var(--surface); border-left: 2px solid var(--ink); color: var(--muted); font-size: 13px; }
.draft-preview-notice a { color: var(--ink); margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .resource-filters { gap: 15px; }
  .resource-tools .search-form { align-self: stretch; }
  .resource-sub-links { gap: 14px; }
}

/* v0.2.2: compact controls within the existing monochrome design. */
.footer-links { flex-wrap: wrap; }
.footer-logout { margin: 0; }
.footer-logout button { background: transparent; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.footer-logout button:hover { text-decoration: underline; }
.editor-actions { display: flex; justify-content: flex-end; margin: 0 0 18px; font-size: 13px; }
.release-entry { padding: 28px 0; border-top: 1px solid var(--line); }
.release-entry h2 { margin: 0 0 12px; font-size: 24px; }
.release-current { margin-left: 14px; color: var(--muted); font-size: 12px; font-weight: 400; }
.release-entry ul { padding-left: 20px; line-height: 1.9; color: var(--text); }
.test-site-notice { padding-block: 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* Stored HTML from the board editor shares the public prose styles. */
.site-messages { padding-block: 12px; color: var(--muted); font-size: 13px; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-size-small { font-size: .8em; }
.prose .ql-size-large { font-size: 1.4em; }
.prose .ql-size-huge { font-size: 1.8em; }
.prose .ql-indent-1 { padding-left: 3em; }
.prose .ql-indent-2 { padding-left: 6em; }
.prose .ql-indent-3 { padding-left: 9em; }
.prose .ql-indent-4,.prose .ql-indent-5,.prose .ql-indent-6,.prose .ql-indent-7,.prose .ql-indent-8 { padding-left: min(12em,25vw); }
.prose img { max-width: 100%; height: auto; }
