/* STILL — 모든 페이지 하늘톤 */

:root {
  --fog: #E7EEF0;        /* 바탕, 옅은 하늘 */
  --paper: #F6F9F8;      /* 카드·사진 테두리, 구름 */
  --ink: #22343A;        /* 글자, 먼 산 */
  --ink-soft: #607880;   /* 보조 글자, 안개 낀 산등성이 */
  --line: rgba(34, 52, 58, .16);
  --grass: #9FB3A4;      /* 밑줄 강조, 들풀 */
  --sky: #CFE0E8;
  --cloud: #FBFDFC;
  --leaf: #CBDACB;
  --clay: #9A6F66;       /* 오류 문구 */
  --en: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  --ko: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --measure: 36rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--fog);
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--ink);
  font-family: var(--ko);
  font-weight: 300;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

p, li, h1, h2, h3, figcaption, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
  transition: text-decoration-color .2s;
}
a:hover { text-decoration-color: var(--grass); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.en { font-family: var(--en); font-variant-numeric: lining-nums; }
.wrap { width: min(100% - 3rem, 70rem); margin-inline: auto; }

.vh, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--paper); padding: .4rem .9rem; border-radius: 3px; z-index: 10;
}
.skip:focus { top: 1rem; }

/* ───────── 하늘: 배경의 유일한 움직임 ───────── */

.sky {
  position: fixed;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 20% 16%, var(--sky) 0%, rgba(207, 224, 232, 0) 72%),
    radial-gradient(46% 34% at 54% 10%, var(--cloud) 0%, rgba(251, 253, 252, 0) 72%),
    radial-gradient(44% 40% at 82% 86%, var(--leaf) 0%, rgba(203, 218, 203, 0) 72%);
  filter: blur(12px);
  animation: drift 60s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes drift {
  from { transform: translate3d(-4%, 0, 0); }
  to   { transform: translate3d(4%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .sky { animation: none; }
  a { transition: none; }
}

/* ───────── 머리 ───────── */

.site-head, .admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.8rem 0 1.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  font-family: var(--en);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: .16em;
  line-height: 1;
}
.brand .tag {
  display: flex;
  flex-direction: column;
  padding-left: 1.15rem;
  border-left: 1px solid var(--line);
  line-height: 1.4;
}
.brand .tag .en { font-style: italic; font-size: 1.02rem; }
.brand .tag .ko { font-size: .72rem; color: var(--ink-soft); }

.menu ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .95rem;
}
.menu li + li::before { content: "·"; color: var(--ink-soft); margin: 0 .65rem; }
/* 한글 메뉴 옆의 작은 영문. inline-block이라 현재 페이지 밑줄은 한글에만 그어집니다. */
.menu-en { display: inline-block; margin-left: .3rem; font-style: italic; font-size: .82rem; color: var(--ink-soft); letter-spacing: .01em; }
.menu a[aria-current="page"], .tabs a[aria-current="page"], .filters a[aria-current="page"] {
  text-decoration-color: var(--grass);
  text-decoration-thickness: 1.5px;
}

/* ───────── 바닥 ───────── */

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 2rem;
  margin-top: 6rem;
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-soft);
}
.site-foot p { margin: 0; }
.site-foot .mark { font-family: var(--en); letter-spacing: .16em; color: var(--ink); margin-right: .5rem; }

/* ───────── 사진 테두리 ───────── */

.ph {
  display: block;
  background: var(--paper);
  padding: .09rem; /* 얇은 흰 테두리 (예전 .45rem의 1/5) */
  border-radius: 3px;
}
.ph img {
  display: block;
  width: 100%;
  height: auto;
}
.ph.fit {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.ph.fit img {
  width: auto;
  max-width: 100%;
  max-height: min(82vh, 60rem);
  object-fit: contain;
}

.thumb {
  position: relative;
  display: block;
  width: 4.4rem;
  aspect-ratio: 1;
  background: var(--paper);
  border-radius: 3px;
  flex: none;
}
.thumb img {
  position: absolute;
  inset: .22rem;
  width: calc(100% - .44rem);
  height: calc(100% - .44rem);
  object-fit: contain;
}
.thumb.sm { width: 3.4rem; }
.thumb.empty { background: rgba(246, 249, 248, .5); }

/* ───────── 공통 글 ───────── */

.prose { max-width: var(--measure); font-size: 1.05rem; line-height: 1.9; }
.prose p { margin: 0 0 1.25em; }
.u {
  text-decoration: underline;
  text-decoration-color: var(--grass);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .38em;
  text-decoration-skip-ink: none;
}
.meta { color: var(--ink-soft); font-size: .84rem; }
.meta .sep { margin: 0 .55rem; opacity: .55; }
.note { color: var(--ink-soft); font-size: .86rem; }
.flash {
  margin: 1rem 0;
  padding: .7rem 1rem;
  border-left: 2px solid var(--grass);
  background: rgba(246, 249, 248, .72);
  font-size: .92rem;
}
.flash.err { border-left-color: var(--clay); }
.err-text { color: var(--clay); font-size: .85rem; }

.badge {
  display: inline-block;
  font-size: .72rem;
  line-height: 1.6;
  padding: 0 .55rem;
  border: 1px solid var(--grass);
  border-radius: 999px;
  color: var(--ink-soft);
  vertical-align: .1em;
  white-space: nowrap;
}
.badge.soft { border-color: var(--line); }

/* ───────── 입력 ───────── */

.field { display: block; margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.field > span:first-child, .flabel {
  display: block;
  font-size: .84rem;
  color: var(--ink-soft);
  margin-bottom: .3rem;
  padding: 0;
}
.flabel small { font-size: .78rem; }
input[type="text"], input[type="password"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: rgba(251, 253, 252, .72);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .6rem .8rem;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { outline-offset: 1px; }
::placeholder { color: var(--ink-soft); opacity: .8; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.btn {
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: .45rem 1.35rem;
  cursor: pointer;
  line-height: 1.6;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.quiet { border-color: var(--line); }
.btn.quiet:hover { border-color: var(--ink); }
.btn.sm { font-size: .84rem; padding: .25rem .9rem; }
.btn[disabled] { opacity: .5; cursor: progress; }
.link-btn {
  font: inherit;
  font-size: .84rem;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: .15rem 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .3em;
}
.link-btn:hover { color: var(--ink); }
.link-btn.danger:hover, .danger:hover { color: var(--clay); }

/* ───────── 첫 화면 ───────── */

.home {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 4rem 5.5rem;
  padding: 4.5rem 0 2rem;
}
.intro h1 {
  margin: 0 0 .5rem;
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.35;
  letter-spacing: -.01em;
}
.intro .sub { margin: 0 0 2.8rem; color: var(--ink-soft); font-size: 1.02rem; }
.intro .sub em { font-style: italic; font-size: 1.28rem; color: var(--ink); }

.side { padding-top: .6rem; }
.latest-h { margin: 0 0 .8rem; font-weight: 300; font-style: italic; font-size: 1.7rem; line-height: 1.2; }
.latest { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.latest a {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.latest a:hover .t { text-decoration: underline; text-decoration-color: var(--grass); }
.latest .t { display: block; font-size: .98rem; line-height: 1.5; margin-bottom: .15rem; }
.latest .meta { display: block; font-size: .78rem; }
.all-links { margin: 1.1rem 0 2.8rem; font-size: .9rem; color: var(--ink-soft); }
.all-links a { color: var(--ink); text-decoration-color: var(--line); }
.elsewhere-h { margin: 0 0 .8rem; font-weight: 400; font-size: .92rem; }
.elsewhere { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.elsewhere a {
  display: block;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(246, 249, 248, .55);
  text-decoration: none;
  transition: background .2s;
}
.elsewhere a:hover { background: var(--paper); }
.elsewhere b { display: block; font-weight: 400; font-size: 1.2rem; line-height: 1.3; }
.elsewhere span { display: block; font-size: .78rem; color: var(--ink-soft); line-height: 1.5; margin-top: .2rem; }

/* ───────── 카테고리 ───────── */

.cat-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline; /* 제목·영문·설명·편수를 같은 글줄에 */
  gap: 1rem 2.4rem;
  padding: 3.4rem 0 .8rem; /* 글과 아래 줄 사이 간격을 절반으로 */
  margin-bottom: 3.2rem;
  border-bottom: 1px solid var(--line);
}
.cat-head h1 {
  margin: 0;
  font-weight: 600;
  font-size: 1.68rem; /* STILL 로고(1.4rem)보다 20% 크게 */
  line-height: 1.3;
  white-space: nowrap;
}
.cat-head h1 .en {
  margin-left: .55rem; /* 영문 부제는 한글 제목 바로 옆에 */
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.cat-head h1 .en { font-weight: 300; }
/* 설명은 '자연' 줄과 같은 높이에 */
.cat-head p { margin: 0; color: var(--ink-soft); max-width: 30rem; font-size: .81rem; }
.cat-head .count { color: var(--ink); white-space: nowrap; }
.cat-head .count .en { font-size: 1.6rem; margin-right: .1rem; }

.feature { margin: 0 0 5rem; }
.feature-link { display: block; text-decoration: none; }
.feature .cap { max-width: 40rem; margin: 1.3rem auto 0; text-align: center; }
.feature h2 { margin: 0 0 .2rem; font-weight: 400; font-size: 1.32rem; line-height: 1.55; }
.feature h2 a { text-decoration-color: transparent; }
.feature .meta { margin: 0; }
.feature-box { width: fit-content; max-width: 100%; margin-inline: auto; }
.feature .meta.top { margin: 0 0 .5rem; text-align: left; }

.past-h { margin: 0 0 1.6rem; font-weight: 400; font-size: 1.02rem; }
.past-h .en { font-size: 1.15rem; }

.masonry { columns: 3; column-gap: 1.8rem; }
.tile {
  display: block;
  break-inside: avoid;
  margin: 0 0 2.4rem;
  text-decoration: none;
}
.tile-ph { position: relative; display: block; }
.tile .plus {
  position: absolute;
  right: .9rem;
  bottom: .9rem;
  padding: 0 .5rem;
  border-radius: 2px;
  background: rgba(246, 249, 248, .9);
  font-size: .95rem;
  line-height: 1.6;
}
.tile .d { display: block; margin: 0 0 .45rem; font-size: .8rem; line-height: 1.5; color: var(--ink-soft); }
.tile .d .en { font-size: 1.02rem; }
.tile .d .sep { margin: 0 .55rem; opacity: .55; }
.tile .t { margin-top: .6rem; }
.tile .t { display: block; line-height: 1.6; }
.tile:hover .t { text-decoration: underline; text-decoration-color: var(--grass); text-underline-offset: .32em; }
.tile .meta { display: block; margin-top: .15rem; font-size: .8rem; }

.jlist { list-style: none; margin: -1.4rem 0 0; padding: 0; } /* 위 줄은 제목 칸의 아래 줄이 대신합니다 */
.jlist a {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) 7.5rem;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.jlist .date { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.7; }
.jlist .jt { display: block; font-size: 1.3rem; font-weight: 400; line-height: 1.5; }
.jlist a:hover .jt { text-decoration: underline; text-decoration-color: var(--grass); }
.jlist .js { display: block; color: var(--ink-soft); margin-top: .1rem; }
.jlist .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: .6rem 0 .5rem;
  font-size: .95rem;
  line-height: 1.85;
}
.jlist .meta { display: block; }
.jthumb { width: 7.5rem; }

.empty-note { color: var(--ink-soft); padding: 2rem 0 1rem; }

.pages { display: flex; justify-content: space-between; margin: 1rem 0 0; font-size: .92rem; }
.pages a { text-decoration-color: var(--line); }

/* ───────── still letter ───────── */

.letter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 1.5rem 4rem;
  margin-top: 6rem;
  padding: 3rem 0 0;
  border-top: 1px solid var(--line);
}
.letter h2 { margin: 0; font-family: var(--en); font-weight: 300; font-size: 2.1rem; line-height: 1.2; }
.letter .sub { margin: .2rem 0 0; color: var(--ink-soft); }
.letter p { margin: 0 0 1rem; }
.letter-form { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 30rem; margin-bottom: .6rem; }
.letter-form input[type="email"] { flex: 1 1 14rem; width: auto; }
.letter.compact { max-width: 52rem; margin-inline: auto; }

/* ───────── 글 상세 ───────── */

.crumb { margin: 1.6rem 0 1.8rem; font-size: .9rem; color: var(--ink-soft); }
.crumb a { color: var(--ink); text-decoration-color: var(--line); }
.crumb .en { font-size: 1rem; }

.post .cover { margin: 0; }
.post-text { max-width: var(--measure); margin: 2.2rem auto 0; }
.post-text h1 { margin: 0 0 .3rem; font-weight: 400; font-size: 1.5rem; line-height: 1.55; }
.post-text .meta { margin: 0 0 2rem; }
.more-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 1.6rem;
  margin-top: 3.5rem;
}
.more-photos figure, .inline { margin: 0; }

.journal .jhead { max-width: 40rem; margin: 2.5rem auto 3rem; text-align: center; }
.journal .jhead h1 { margin: 0; font-weight: 300; font-size: clamp(1.9rem, 3.8vw, 2.5rem); line-height: 1.4; }
.journal .jsub { margin: .5rem 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.journal .jhead .meta { margin: 1rem 0 0; }
.jbody { margin: 0 auto; max-width: 38rem; }
.jbody .inline { margin: 2.4rem 0; }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 52rem;
  margin: 5rem auto 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pager a { display: flex; align-items: center; gap: .9rem; text-decoration: none; font-size: .95rem; line-height: 1.5; }
.pager a:hover span:not(.thumb) { text-decoration: underline; text-decoration-color: var(--grass); }
.pager .next { justify-content: flex-end; text-align: right; }
.pager small { display: block; color: var(--ink-soft); font-size: .78rem; }

/* ───────── 댓글 ───────── */

.comments { max-width: 40rem; margin: 4.5rem auto 0; }
.comments h2 { margin: 0 0 1.2rem; font-weight: 300; font-size: 1.45rem; }
.comments h2 .en { font-size: 1.6rem; margin-left: .2rem; }
.clist { list-style: none; margin: 0 0 3rem; padding: 0; border-top: 1px solid var(--line); }
.c { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.c:target { background: rgba(246, 249, 248, .6); }
.who { margin: 0; font-size: .92rem; }
.who .name { font-weight: 400; }
.who .badge { margin-left: .45rem; }
.who time { margin-left: .7rem; color: var(--ink-soft); font-size: .95rem; }
.cbody { margin: .25rem 0 0; overflow-wrap: anywhere; }
.gone { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.replies { list-style: none; margin: .9rem 0 0 1.4rem; padding: 0; }
.c.reply { padding: .2rem 0 .2rem 1.2rem; border-bottom: 0; border-left: 1px solid var(--grass); }
.c.reply + .c.reply { margin-top: .8rem; }

.del { margin-top: .3rem; }
.del summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  color: var(--ink-soft);
  font-size: .8rem;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .3em;
}
.del summary::-webkit-details-marker { display: none; }
.del-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; }
.del-form input { width: 11rem; padding: .3rem .6rem; font-size: .9rem; }

.cform h3 { margin: 0 0 1rem; font-weight: 400; font-size: 1.05rem; }
.cf-turnstile { margin: .2rem 0 .6rem; min-height: 65px; }

.quiet-page { padding: 6rem 0 2rem; max-width: var(--measure); }
.quiet-page h1 { font-weight: 300; font-size: 1.8rem; line-height: 1.5; margin: 0 0 1rem; }
.quiet-page a { text-decoration-color: var(--grass); }

/* ───────── 관리자 ───────── */

.admin-head { padding: .2rem 0 .9rem; border-bottom: 1px solid var(--line); margin-bottom: 2.6rem; }
.admin-head .dot { display: inline-block; width: .45rem; height: .45rem; margin-right: .5rem; border-radius: 50%; background: var(--grass); vertical-align: .1em; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; font-size: .98rem; margin-right: auto; }
.tabs a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .55em; color: var(--ink-soft); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs .en { font-size: 1.05rem; }
.pill-n {
  display: inline-block;
  min-width: 1.5rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: .74rem;
  line-height: 1.5;
  text-align: center;
  vertical-align: .1em;
}
.who-admin, .admin-head .who { margin: 0; font-size: .84rem; color: var(--ink-soft); }
.admin-head .who a { color: var(--ink); text-decoration-color: var(--line); }

.admin-h { margin: 0 0 1.2rem; font-weight: 300; font-size: 1.6rem; }
.admin-h .en { font-size: 1.7rem; }
.admin-h2 { margin: 0 0 .8rem; font-weight: 400; font-size: 1rem; }
.admin-h2 small { font-weight: 300; color: var(--ink-soft); font-size: .8rem; margin-left: .3rem; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.card { background: rgba(246, 249, 248, .7); border: 1px solid var(--line); border-radius: 3px; padding: 1rem 1.1rem .9rem; }
.card p { margin: 0; }
.card-t { font-size: .84rem; color: var(--ink-soft); }
.card-v { font-size: 2.3rem; line-height: 1.15; }
.card-s { font-size: .78rem; color: var(--ink-soft); margin-bottom: .7rem !important; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 2.6rem; }
.bars span { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bars i { display: block; width: 100%; min-height: 2px; background: var(--grass); border-radius: 1px; }
.bars span:last-child i { background: var(--ink-soft); }

.dash { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; }
.filters { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; margin: -.3rem 0 1rem; font-size: .9rem; }
.admin-comments { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ac { padding: 1rem .9rem; border-bottom: 1px solid var(--line); }
.ac.new { background: rgba(207, 224, 232, .65); }
.ac.st-hidden, .ac.st-spam { opacity: .78; }
.ac-head { margin: 0; font-size: .88rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.ac-head b { font-weight: 400; }
.ac-head .en { color: var(--ink-soft); font-size: .95rem; }
.ac-post { margin-left: auto; color: var(--ink-soft); font-size: .8rem; text-decoration-color: var(--line); }
.ac-reply { margin: .5rem 0 0 1rem; padding-left: .9rem; border-left: 1px solid var(--grass); font-size: .92rem; }
.ac-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .2rem 1rem; margin-top: .5rem; }
.ac-actions form { margin: 0; }
.reply-box { flex-basis: 100%; }
.reply-box summary { cursor: pointer; font-size: .84rem; color: var(--ink); list-style: none; display: inline-block; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .3em; }
.reply-box summary::-webkit-details-marker { display: none; }
.reply-box form { margin: .5rem 0 .4rem; display: grid; gap: .5rem; justify-items: start; }
.reply-box[open] + form, .reply-box:not([open]) { flex-basis: auto; }

.top5 { margin: 0 0 2.4rem; padding-left: 1.2rem; font-size: .92rem; }
.top5 li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.top5 li::marker { color: var(--ink-soft); }
.top5 a { text-decoration-color: var(--line); }
.refs { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.refs li { display: grid; grid-template-columns: 6.5rem 1fr 2.6rem; gap: .6rem; align-items: center; padding: .25rem 0; }
.refs .en { text-align: right; font-size: 1rem; }
.ref-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.ref-bar i { display: block; height: 100%; background: var(--grass); }

.table-wrap { position: relative; overflow-x: auto; }
.posts-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.posts-table th { text-align: left; font-weight: 400; font-size: .8rem; color: var(--ink-soft); padding: .4rem .6rem; border-bottom: 1px solid var(--line); }
.posts-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.posts-table td.en { font-size: 1.02rem; }
.posts-table .pt { margin-right: .3rem; }
.posts-table a { text-decoration-color: var(--line); }
.nowrap { white-space: nowrap; }

/* 글쓰기 */
.write-head { margin: .2rem 0 2.2rem; }
.write-head h1 { margin: 0; font-weight: 300; font-size: 1.65rem; line-height: 1.4; }
.write-head h1 .badge { font-size: .72rem; vertical-align: .25em; }
.write-head .en { margin: .15rem 0 0; font-style: italic; font-size: 1rem; color: var(--ink-soft); }

.write { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }

.wfield { margin: 0 0 1.9rem; padding: 0; border: 0; min-width: 0; }
.wlabel {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  width: 100%; margin: 0 0 .55rem; padding: 0;
  font-size: .84rem; color: var(--ink-soft);
}
.wlabel .en { font-size: .95rem; }
.whint { margin: .45rem 0 0; font-size: .76rem; color: var(--ink-soft); min-height: 1.1em; }
.whint.err, #msg.err { color: var(--clay); }
.over-limit { color: var(--clay); }

/* 밑줄형 입력 칸 */
.wform input[type="text"], .wform textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(34, 52, 58, .35);
  border-radius: 0;
  padding: .45rem 0 .55rem;
  font-size: 1.02rem;
}
.wform input.big { font-size: 1.22rem; }
.wform textarea { line-height: 1.85; }
.wform input[type="text"]:focus-visible, .wform textarea:focus-visible {
  outline: none;
  border-bottom: 1.5px solid var(--ink);
}
.wrow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6rem; }

/* 계절: 고르거나 직접 적는 칸 */
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: .3rem; top: 50%;
  width: .42rem; height: .42rem; margin-top: -.32rem;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg); pointer-events: none;
}
.wform .select input { padding-right: 1.4rem; }
.select input::-webkit-calendar-picker-indicator { opacity: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .55rem; }
.chips button {
  font: inherit; font-size: .74rem; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 .6rem; line-height: 1.7; cursor: pointer;
}
.chips button:hover, .chips button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }

/* 사진: 크게 보기 + 썸네일 줄 */
.stage {
  border: 1px dashed rgba(34, 52, 58, .35);
  border-radius: 3px;
  padding: .7rem;
  background: rgba(251, 253, 252, .35);
}
.stage.over { border-color: var(--ink); background: var(--paper); }
.stage-empty {
  display: grid; place-items: center; text-align: center;
  min-height: 15rem; padding: 2rem 1rem;
  color: var(--ink-soft); font-size: .95rem; cursor: pointer; line-height: 1.7;
}
.stage-empty small { display: block; font-size: .78rem; }
.stage-img { display: grid; place-items: center; background: var(--paper); border-radius: 2px; }
.stage-img img { display: block; max-width: 100%; max-height: 30rem; width: auto; height: auto; }
.stage-cap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1rem;
  margin-top: .55rem; font-size: .78rem; color: var(--ink-soft);
}
.stage-cap .fname { color: var(--ink); font-family: var(--en); font-size: .92rem; }
.stage-cap .err { color: var(--clay); }
.stage-ops { display: flex; align-items: center; gap: .35rem .8rem; flex-wrap: wrap; }
.stage-ops .mv {
  font: inherit; font-size: .95rem; line-height: 1; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 3px;
  width: 1.8rem; height: 1.6rem; cursor: pointer;
}
.stage-ops .mv:hover { border-color: var(--ink); }
.stage-ops .mv:disabled { opacity: .3; cursor: default; }
.text-btn {
  font: inherit; font-size: .8rem; color: var(--ink-soft);
  background: none; border: 0; padding: .1rem 0; cursor: pointer;
}
.text-btn:hover { color: var(--ink); }
.stage-ops .text-btn { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .3em; }

.strip { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; margin: .7rem 0 0; padding: 0; }
.strip li { position: relative; }
.strip .tb {
  display: block; width: 4.6rem; aspect-ratio: 1; padding: 0; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
}
.strip .tb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip .tb[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.strip .no {
  position: absolute; left: .25rem; top: .25rem; pointer-events: none;
  min-width: 1.15rem; padding: 0 .25rem; border-radius: 999px;
  background: rgba(34, 52, 58, .82); color: var(--paper);
  font-size: .64rem; line-height: 1.15rem; text-align: center;
}
.strip .tb.add {
  display: grid; place-items: center; background: transparent;
  border: 1px dashed rgba(34, 52, 58, .35); color: var(--ink-soft); font-size: 1.3rem;
}
.strip .tb.add:hover { border-color: var(--ink); color: var(--ink); }

/* 카테고리: 같은 너비 알약 */
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: block; text-align: center; padding: .55rem 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(251, 253, 252, .6); font-size: .95rem; line-height: 1.6;
}
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 아래 버튼 줄 */
.wbar {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.wbar .text-btn { font-size: .95rem; padding: .5rem .8rem; }
.wbar .btn { padding: .55rem 1.5rem; }
.wbar .solid { margin-left: auto; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.wbar .solid:hover { background: #2f474e; }
.wfoot { display: flex; justify-content: space-between; gap: 1rem; margin: .6rem 0 0; font-size: .78rem; color: var(--ink-soft); }

/* 오른쪽 미리보기 */
.preview-wrap { position: sticky; top: 1.2rem; }
.preview {
  max-height: calc(100vh - 12rem);
  overflow: auto;
  padding: 2rem 2.2rem 2.2rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(246, 249, 248, .6);
  font-size: .86rem;
}
.preview .ph { padding: 0; background: none; }
.preview .ph.fit img { max-height: 24rem; }
.preview .post-text { margin: 1.8rem auto 0; text-align: center; }
.preview .post-text h1 { font-size: 1.25rem; }
.preview .post-text .meta { margin-bottom: 1.4rem; }
.preview .post-text .prose { text-align: left; font-size: .92rem; }
.preview .journal .jhead { margin: 0 auto 1.6rem; }
.preview .journal .jhead h1 { font-size: 1.6rem; }
.preview .more-photos { margin-top: 1.6rem; gap: .8rem; }
.preview .prose { font-size: .92rem; }
.preview .placeholder { color: var(--ink-soft); padding: 4rem 0; text-align: center; border: 1px dashed var(--line); border-radius: 2px; }
.checks { list-style: none; margin: 1.6rem 0 0; padding: 0; font-size: .86rem; color: var(--ink-soft); }
.checks li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.checks li::before { content: "✓"; margin-right: .6rem; color: var(--ink-soft); }

.preview-banner {
  margin: 1rem 0 0;
  padding: .6rem 1rem;
  border-left: 2px solid var(--grass);
  background: rgba(207, 224, 232, .65);
  font-size: .9rem;
}
.preview-banner a { margin-left: .6rem; text-decoration-color: var(--line); }

/* ───────── 좁은 화면 ───────── */

@media (max-width: 980px) {
  .home { grid-template-columns: 1fr; gap: 3.5rem; padding-top: 3rem; }
  .side { max-width: 34rem; }
  .masonry { columns: 2; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash { grid-template-columns: 1fr; }
  .write { grid-template-columns: 1fr; }
  .preview-wrap { position: static; }
  .preview { max-height: none; }
}

@media (max-width: 720px) {
  html { font-size: 16px; }
  .wrap { width: min(100% - 2rem, 70rem); }
  .site-head { padding: 1.3rem 0 1rem; gap: .9rem; }
  .brand { gap: .9rem; }
  .brand .mark { font-size: 1.25rem; }
  .brand .tag { padding-left: .9rem; }
  .brand .tag .en { font-size: .95rem; }
  .brand .tag .ko { font-size: .68rem; }
  .menu ul { font-size: .9rem; }
  .menu li + li::before { margin: 0 .45rem; }
  .menu-en { display: none; } /* 휴대폰에서는 한글 메뉴만 */
  .cat-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem 1rem; padding-top: 2.4rem; margin-bottom: 2.4rem; }
  .cat-head h1 { font-size: 1.5rem; } /* 좁은 화면의 STILL 로고(1.25rem)보다 20% 크게 */
  .masonry { columns: 1; }
  .jlist a { grid-template-columns: minmax(0, 1fr) 5rem; gap: .4rem 1rem; padding: 1.5rem 0; }
  .jlist .date { grid-column: 1 / -1; }
  .jthumb { width: 5rem; }
  .letter { grid-template-columns: 1fr; gap: 1rem; }
  .more-photos { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
  .row2 { grid-template-columns: 1fr; }
  .wrow { grid-template-columns: 1fr; }
  .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wbar { flex-wrap: wrap; }
  .preview { padding: 1.4rem 1.2rem; }
  .elsewhere { grid-template-columns: 1fr 1fr; }
  .site-foot { flex-direction: column; margin-top: 4rem; }
  .ph { padding: .07rem; }
  .cards { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .card-v { font-size: 1.9rem; }
}

/* 휴대폰(480px 이하)만: 제목·영문·편수는 한 줄, 설명은 그 아래 전체 폭 한 줄로. 좁은 컴퓨터 창에는 적용하지 않습니다. */
@media (max-width: 480px) {
  .cat-head h1 { grid-column: 1; grid-row: 1; }
  .cat-head .count { grid-column: 3; grid-row: 1; }
  .cat-head p { grid-column: 1 / -1; grid-row: 2; max-width: none; white-space: nowrap; font-size: min(.76rem, 2.5vw); }
}

/* ───────── 작성자 로그인 ───────── */

.login { max-width: 24rem; margin: 4rem auto 2rem; }
.login h1 { margin: 0 0 .3rem; font-weight: 400; font-size: 1.6rem; }
.login > .note { margin: 0 0 2rem; }
.login-form { display: grid; gap: .7rem; margin: 0 0 1rem; }
.login-form .note { margin: 0; }
.btn.wide { width: 100%; padding: .65rem 1rem; }
.btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.solid:hover { background: #2f474e; }
.code-input { font-family: var(--en); font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; }
.login-passkey { margin-bottom: 1rem; }
.login-passkey .note { margin: .5rem 0 0; text-align: center; }
.or { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0 1rem; color: var(--ink-soft); font-size: .8rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.inline-form { display: inline; margin: 0; }
.admin-head .who { margin: 0; font-size: .84rem; color: var(--ink-soft); }
.admin-head .who .link-btn { font-size: .84rem; color: var(--ink); }

.security { display: grid; gap: 2.2rem; max-width: 40rem; }
.sec-block .note { margin: 0 0 .9rem; }
.pk-list { list-style: none; margin: 0 0 1.2rem; padding: 0; border-top: 1px solid var(--line); }
.pk-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.pk-name { font-weight: 400; }
.pk-list form { margin-left: auto; }
.pk-add { display: grid; gap: .6rem; justify-items: start; max-width: 22rem; }
.pk-add .field { width: 100%; margin: 0; }
