@import url('https://fonts.googleapis.com/css2?family=Jua&family=Noto+Sans+KR:wght@400;500;700&display=swap');
@font-face { font-family: 'SSRONET Handwritten'; src: url('https://cdn.jsdelivr.net/gh/sweetherofonts/fontshero_pack4/ssronethandwritten/ssronethandwritten-Regular.woff2') format('woff2'); font-display: swap; }
:root { --bg: #e9dfcc; --window: #fffaf0; --titlebar: #fffaf0; --border: #bdab8b; --text: #344033; --muted: #85755d; --user: #b74030; --path: #2c6147; --ink: #344033; --paper: #fffaf0; --shadow: #59493222; }
body { min-height: 100vh; display: block; margin: 0; padding: 50px 22px 65px; background-color: var(--bg); background-image: repeating-linear-gradient(0deg,transparent 0 179px,#bdae9226 179px 180px); color: var(--ink); font-family: 'Noto Sans KR',sans-serif; }
.terminal { position: relative; width: min(100%,900px); max-width: 900px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.terminal::before,.diary-sticker,.dots { display: none; }
.titlebar { position: relative; display: block; width: fit-content; min-width: 220px; margin: 0 auto 30px; padding: 17px 35px 13px; background: #fff9e9; border: 1px solid #bdab8b; border-radius: 0; box-shadow: 3px 4px 0 #ae9c7b33; transform: rotate(-1deg); }
.titlebar::before,.titlebar::after { content: ''; position: absolute; top: -8px; width: 52px; height: 19px; background: #b9ad81a6; }
.titlebar::before { left: -12px; transform: rotate(-32deg); }
.titlebar::after { right: -12px; transform: rotate(29deg); }
.titlebar-label { margin: 0; color: #b74030; font: 400 clamp(27px,5vw,36px)/1.3 'Jua',sans-serif; text-align: center; letter-spacing: .05em; }
.screen { position: relative; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 15px; line-height: 1.8; }
.prompt { margin: 0 0 24px; color: #77654e; text-align: center; font: 400 20px/1.5 'SSRONET Handwritten',sans-serif; }
.prompt .path { color: var(--path); }
.image-notice { display: block; margin-top: 7px; color: var(--muted); font: 400 12px/1.6 'Noto Sans KR',sans-serif; }
.prompt .sep { color: #b09c7b; }
.prompt-path-link { text-decoration: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.back-link,.new-post-link { display: inline-block; padding: 5px 1px; color: #2c6147; border: 0; border-bottom: 1px solid #7f9271; border-radius: 0; background: transparent; box-shadow: none; text-decoration: none; font: 400 19px/1.5 'SSRONET Handwritten',sans-serif; transform: none; }
.new-post-link { color: #b74030; border-bottom-color: #b74030; }
.back-link:hover,.new-post-link:hover { color: #b74030; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 27px; padding-bottom: 17px; border-bottom: 1px solid #b9a588; }
.category-tab { padding: 5px 12px; border: 1px solid #7f8c73; border-radius: 0; background: #f4eddc; color: #526249; font: 400 17px/1.5 'SSRONET Handwritten',sans-serif; box-shadow: 1px 2px 0 #9b876122; cursor: pointer; transform: rotate(-1deg); }
.category-tab:nth-child(even) { transform: rotate(1deg); }
.category-tab.is-active { border-color: #b74030; color: #b74030; background: #fff6d9; font-weight: 400; outline: 1px solid #b74030; outline-offset: -4px; }
#post-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px 20px; margin: 0; padding: 7px 5px 15px; }
.post-row { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr); align-content: start; align-items: start; gap: 4px 12px; min-width: 0; padding: 18px 16px 12px; border: 1px solid #c2b08b55; border-radius: 0; background: #fffaf0; box-shadow: 3px 4px 0 #aa96752b; color: var(--ink); text-decoration: none; transform: rotate(-1deg); }
.post-row::before { content: ''; position: absolute; z-index: 1; width: 68px; height: 20px; left: 50%; top: -9px; background: #bdb187ab; transform: translateX(-50%) rotate(4deg); }
.post-row:nth-child(3n+2) { background: #f7edc4; transform: rotate(1deg); }
.post-row:nth-child(3n) { background: #e4e9d8; transform: rotate(-.5deg); }
.post-row:nth-child(even)::before { background: #a8b59999; transform: translateX(-50%) rotate(-5deg); }
.post-row::after { display: none; }
.post-category-sticker { display: inline-block; margin: 0 0 12px; padding: 3px 7px; max-width: 100%; border: 1px solid #7d8866; color: #5b6949; font: 400 14px/1.5 'SSRONET Handwritten',sans-serif; filter: none; transform: rotate(-4deg); vertical-align: baseline; }
.post-category-sticker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px 5px 5px; border-color: #a9ad9688; background: #fffdf68c; box-shadow: 1px 2px 2px #5c513322,inset 0 1px 0 #fff; }
.laminated-emoji { position: relative; display: inline-block; flex-shrink: 0; padding: 2px; font: 24px/1.2 'Apple Color Emoji','Segoe UI Emoji',sans-serif; vertical-align: middle; filter: drop-shadow(-2px 0 white) drop-shadow(2px 0 white) drop-shadow(0 -2px white) drop-shadow(0 2px white) drop-shadow(1px 3px 1px #51452d44); transform: rotate(-5deg); }
.laminated-emoji::after { content: ''; position: absolute; top: 2px; left: 5px; right: 3px; height: 40%; border-radius: 50% 40% 55% 30%; background: linear-gradient(155deg,#fff9,#fff1 75%); pointer-events: none; }
.category-tab .laminated-emoji { font-size: 20px; margin-right: 4px; }
.category-tab { display: inline-flex; align-items: center; }
.post-row .post-category-sticker { grid-row: 1 / 3; margin: 0; padding: 3px 5px; gap: 4px; font-size: 12px; }
.post-row .laminated-emoji { font-size: 20px; }
.post-row .post-title { font-size: 24px; line-height: 1.35; }
.post-row .post-meta { grid-column: 2; margin: 0; padding: 0; border: 0; }
.post-title { display: block; padding: 0; margin: 0; background: none; color: #344033; font: 400 26px/1.5 'SSRONET Handwritten',sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
.post-row:hover .post-title { color: #b74030; background: none; text-decoration: none; }
.post-meta { display: block; margin: 17px 0 0; padding-top: 10px; border-top: 1px dashed #b9a27b88; color: var(--muted); font-size: 11px; }
.post-row.is-pinned { background: #fff7d8; }
.post-row.is-pinned::before { width: 17px; height: 17px; top: -7px; left: 50%; border: 1px solid #8f2b23; border-radius: 50%; background: #bb4334; box-shadow: inset 3px 3px 0 #e9876b,inset -2px -2px 0 #942e25,2px 5px 3px #4d352544; transform: translateX(-50%); }
.post-row.is-pinned::after { content: ''; display: block; position: absolute; z-index: 2; top: -3px; left: calc(50% - 4px); width: 5px; height: 4px; border-radius: 50%; background: #ffdcc7; transform: rotate(-25deg); pointer-events: none; }
.pin-icon { display: none; }
.state-msg { grid-column: 1/-1; color: var(--muted); font: 400 20px/1.7 'SSRONET Handwritten',sans-serif; }
#pagination { margin-top: 25px; }
.page-btn { border: 1px solid #9c8666; border-radius: 0; background: #fff9e9; color: #526249; font: 400 16px/1.5 'SSRONET Handwritten',sans-serif; }
.page-status { color: var(--muted); font-size: 12px; }
.post-detail .terminal { max-width: 800px; }
#post-mount { position: relative; min-width: 0; padding: 35px clamp(20px,5vw,45px) 30px; background: #fffaf0; border: 1px solid #c6b493; box-shadow: 4px 5px 0 #b09d7833; }
#post-mount::before { content: ''; position: absolute; top: -10px; left: 50%; width: 95px; height: 24px; background: #bdb187a6; transform: translateX(-50%) rotate(-3deg); }
#post-mount>.post-title { display: block; margin: 0; padding: 0; background: none; color: #2c6147; font: 400 clamp(27px,5vw,36px)/1.5 'SSRONET Handwritten',sans-serif; }
#post-mount>.post-meta { margin: 12px 0 0; border: 0; padding: 0; }
.post-body { margin-top: 23px; padding-top: 20px; min-width: 0; overflow-x: auto; border-top: 1px dashed #b6a17b; color: #4b4234; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.post-body a { color: #2c6147; }
.post-body img { max-width: 100%; height: auto; border-radius: 0; box-shadow: none; }
/* GitHub가 긴 첨부 이미지에 넣는 2,000px 높이 기준의 축소 크기를 해제한다. */
.post-body img.js-gh-image-fallback { width: auto !important; height: auto !important; max-height: none !important; aspect-ratio: auto !important; }
.post-body pre { padding: 14px; overflow-x: auto; background: #f1e7d3; border: 1px solid #c9b48e; border-radius: 0; }
.post-body blockquote { margin-inline: 0; padding: 12px 17px; background: #f4ebcf; border: 0; }
.post-body table { width: 100%; margin: 16px 0; border-collapse: collapse; border: 1px solid #a38b6b; background: #fffaf0; font: inherit; }
.post-body th,.post-body td { border: 1px solid #a38b6b; padding: 9px 12px; vertical-align: middle; overflow-wrap: anywhere; }
.post-body th { background: #eee3cd; font-weight: 600; }
.anon-reactions { margin-top: 27px; padding-top: 17px; border-top: 1px dashed #b9a588; }
.anon-reactions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.anon-reaction-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid transparent; border-radius: 0; background: transparent; color: var(--ink); font-family: inherit; font-size: 15px; cursor: pointer; }
.anon-reaction-btn.reacted { border-color: #b7403066; background: #fff5d7; }
.anon-reaction-count { color: var(--muted); font-size: 12px; }
.back-link--bottom { margin-top: 25px; }
a:focus-visible,button:focus-visible { outline: 2px solid #b74030; outline-offset: 4px; }
@media(max-width: 600px) {
  body { padding: 35px 18px 45px; }
  .titlebar { margin-bottom: 26px; padding-inline: 25px; }
  .toolbar { gap: 10px; }
  .back-link,.new-post-link { font-size: 17px; }
  #post-list { grid-template-columns: 1fr; gap: 18px; }
  .post-row { padding: 17px 14px 12px; gap: 4px 10px; }
  .category-tab { font-size: 16px; padding-inline: 9px; }
  .prompt { font-size: 18px; }
  #post-mount { padding-top: 30px; }
}
@media(prefers-reduced-motion: reduce) { .post-row,.category-tab { transform: none; } }

/* Author HTML blocks in Markdown posts. */
.post-body details { margin-block:16px; padding:12px 15px; border:1px solid #c6b493; }
.post-body summary { cursor:pointer; color:#2c6147; }
.post-body video { max-width:100%; height:auto; }
