:root { --ink: #0c0c0c; --paper: #f2efe9; --muted: #6b665e; --line: #0c0c0c; --accent: #d6ff3f; --pad: clamp(18px, 4vw, 56px); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); line-height: 1.65;
  font-family: "Helvetica Neue", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: var(--accent); }
img { display: block; max-width: 100%; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding: 18px var(--pad); border-bottom: 1px solid var(--line); }
.logo { font-weight: 900; font-size: 1.35rem; letter-spacing: -0.04em; text-decoration: none; }
.logo i { color: var(--muted); }
.top nav, .util, .admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.top a { text-decoration: none; }
.top a:hover { text-decoration: underline; }
.top nav { text-transform: uppercase; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; }
.util { margin-left: auto; font-size: 0.85rem; gap: 16px; }
.link { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
main { flex: 1; width: 100%; padding: 0 var(--pad) 80px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px var(--pad); background: var(--ink); color: var(--paper); font-size: 0.8rem; }

.hero { padding: 6vh 0 28px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(4rem, 19vw, 19rem); line-height: 0.82; font-weight: 900; letter-spacing: -0.065em; }
.hero h1 span { display: block; }
.hero h1 .outline { text-align: right; padding-right: 0.06em; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
.hero-foot p { font-family: Georgia, "Noto Serif KR", serif; font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.7rem); }

.btn { display: inline-block; align-self: flex-start; padding: 12px 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: inherit; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; cursor: pointer; }
.btn:hover, .btn:focus-visible { background: var(--accent); color: var(--ink); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 72px 0 24px; }
h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 40px 0 14px; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 900; }
.page-title { font-size: clamp(2.8rem, 10vw, 8rem); line-height: 1.05; font-weight: 900; letter-spacing: -0.05em; text-transform: uppercase; padding: 48px 0 20px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }

.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 44px 24px; }
.cards a { display: block; text-decoration: none; }
.cards img, .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 14px; }
.ph { display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 3rem; font-weight: 900; }
.cards a:hover img, .cards a:hover .ph { outline: 6px solid var(--accent); outline-offset: -6px; }
.cards h3 { font-size: 1.25rem; line-height: 1.35; }
.cards p, .muted, .empty, time, small { color: var(--muted); }
time, small { font-size: 0.8rem; font-weight: 400; }
.empty { padding: 36px 0; }
.pager { display: flex; gap: 12px; margin-top: 48px; }

.narrow { max-width: 640px; }
.narrow > p { margin-bottom: 18px; }
.lead { font-family: Georgia, "Noto Serif KR", serif; font-size: 1.3rem; }
.post { max-width: 820px; margin: 0 auto; padding-top: 56px; }
.post h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.15; letter-spacing: -0.035em; margin: 8px 0 20px; }
.post img { width: 100%; margin: 28px 0; }
.body, .pre { white-space: pre-wrap; }
.body { margin: 28px 0 56px; font-size: 1.05rem; }

.stack { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 700; }
input, textarea, select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid #4b5dff; outline-offset: 2px; }
.check { flex-direction: row; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 6px; }
fieldset { border: 1px solid var(--line); padding: 16px; margin: 0; }
legend { font-weight: 900; padding: 0 8px; }
.hp { position: absolute; left: -9999px; }
.notice, .alert { padding: 12px 16px; margin: 16px 0; border: 1px solid var(--line); }
.notice { background: var(--accent); }
.alert { background: #ffd9d2; }
details { margin-top: 40px; }
summary { cursor: pointer; color: var(--muted); }

.box { display: block; padding: 20px; margin-bottom: 16px; border: 1px solid var(--line); text-decoration: none; }
.reply { margin-top: 12px; padding: 12px; background: #fff; }
.admin-nav { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stats b { display: block; font-size: 3rem; }
.scroll { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.error { padding-top: 12vh; text-align: center; }
.error h1 { font-size: clamp(5rem, 22vw, 14rem); line-height: 1; font-weight: 900; }
.error p { margin-bottom: 28px; }

@media (max-width: 640px) {
  .top nav { order: 3; width: 100%; gap: 18px; }
}
