/* hirosien — public blog (white, Ghost/Casper-like) */
.only-sm { display: none !important; }
@media (max-width: 860px) {
  .only-sm { display: inline-flex !important; }
  .hide-sm { display: none !important; }
}
.d-block { display: block; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------- header ---------- */
.gbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.8) blur(12px); -webkit-backdrop-filter: saturate(1.8) blur(12px); border-bottom: 1px solid var(--line); }
.gbar-in { max-width: var(--page-w, 1200px); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 32px; }
.gbar-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.03em; color: var(--ink); min-width: 0; max-width: 300px; }
.gbar-logo:hover { color: var(--ink); }
.gbar-logo img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.gbar-links { display: flex; gap: 22px; font-size: .95rem; font-weight: 500; color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.gbar-links a { opacity: .8; }
.gbar-links a:hover, .gbar-links a.on { opacity: 1; color: var(--ink); }
.gbar-links a.on { font-weight: 700; }
.gbar-nav { display: flex; align-items: center; gap: 8px; }
.gbar-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink); }
.gbar-btn:hover { background: var(--paper-2); color: var(--ink); }
.gbar-signin { font-weight: 600; font-size: .95rem; padding: 0 6px; }
@media (max-width: 860px) {
  .gbar-in { padding: 0 8px; gap: 6px; height: 56px; }
  .gbar-logo { flex: 1; justify-content: center; font-size: 1.02rem; }
  .gbar-logo img { width: 26px; height: 26px; }
}
.owner-note { background: var(--paper-2); color: var(--ink-2); font-size: .88rem; text-align: center; padding: 9px 14px; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.owner-note a { text-decoration: underline; font-weight: 700; color: var(--ink); }

/* ---------- home header (Casper site header) ---------- */
.cover { position: relative; max-width: var(--page-w, 1200px); margin: 0 auto; padding: 88px 32px 72px; text-align: center; border-bottom: 1px solid var(--line); }
/* title image: height and crop position come from 꾸미기 → 타이틀 (--title-h, --title-focus) */
.cover.has-img { display: flex; align-items: center; max-width: none; height: var(--title-h, 360px);
  padding: 0 max(32px, calc((100% - var(--page-w, 1200px)) / 2 + 32px)); background: #111; border: 0; overflow: hidden; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--title-focus, 50%); opacity: .72; }
.cover-in { position: relative; z-index: 2; width: 100%; max-width: 760px; margin: 0 auto; }
.cover.t-left { text-align: left; } .cover.t-left .cover-in { margin-left: 0; }
.cover.t-right { text-align: right; } .cover.t-right .cover-in { margin-right: 0; }
.cover-title { display: block; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; color: var(--ink); }
.cover-sub { display: block; margin: 14px 0 0; color: var(--muted); font-size: 1.2rem; font-weight: 400; letter-spacing: -0.01em; }
.cover.has-img .cover-title, .cover.has-img .cover-sub { color: #fff; }
.cover.has-img .cover-sub { opacity: .9; }
.cover.has-img.t-dark .cover-img, .cover.has-img.t-hide .cover-img { opacity: 1; }
.cover.has-img.t-dark .cover-title { color: #111; }
.cover.has-img.t-dark .cover-sub { color: #333; }
.cover.has-img.t-hide .cover-in { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 860px) {
  .cover { padding: 48px 20px 40px; }
  .cover.has-img { height: max(120px, calc(var(--title-h, 360px) * .55)); padding: 0 20px; }
  .cover-sub { font-size: 1.02rem; }
}

/* ---------- shell ---------- */
.shell { max-width: var(--page-w, 1200px); margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding: 48px 32px 100px; }
.main { min-width: 0; max-width: var(--read-w, 760px); }
@media (max-width: 860px) {
  .shell { display: block; padding: 0 0 100px; }
  .main { max-width: none; padding: 0 18px; }
}

/* ---------- sidebar ---------- */
.side { position: relative; font-size: .93rem; align-self: start; }
.side-profile { padding-bottom: 26px; }
.sp-avatar { position: relative; display: block; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--paper-2); }
.sp-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-mono { display: grid; place-items: center; height: 100%; font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.sp-name { margin-top: 14px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.sp-desc { margin: 6px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; white-space: pre-line; }
.sp-actions { display: flex; gap: 6px; margin-top: 14px; }
.sp-actions .btn.primary { background: var(--ink); border-color: var(--ink); }
.sp-visits { display: flex; gap: 18px; margin: 14px 0 0; font-size: .85rem; }
.sp-visits div { display: flex; gap: 5px; align-items: baseline; }
.sp-visits dt { color: var(--muted); }
.sp-visits dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.side-box { padding: 22px 0; border-top: 1px solid var(--line); }
.side-h { font-size: .75rem; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.side-cats ul { list-style: none; margin: 0; padding: 0; }
.side-cats a { display: flex; align-items: center; gap: 4px; padding: 5px 0; color: var(--ink-2); }
.side-cats a:hover { color: var(--ink); }
.side-cats a.on { color: var(--ink); font-weight: 700; }
.side-cats .n { color: var(--muted); font-size: .8rem; font-weight: 400; margin-left: auto; }
.side-cats .sub a { padding-left: 14px; font-size: .9rem; }
.side-cats .branch { display: none; }
.tiny-ic { width: .9em; height: .9em; color: var(--muted); }
.side-plants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.side-plants a { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--paper-2); display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.side-plants img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.side-tags a { font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.side-tags a:hover { background: var(--ink); color: #fff; }
.side-recent { list-style: none; margin: 0; padding: 0; }
.side-recent li { padding: 6px 0; display: grid; }
.side-recent a { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-search { display: flex; gap: 6px; padding: 22px 0 8px; border-top: 1px solid var(--line); }
.side-foot { font-size: .8rem; color: var(--muted); }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); animation: fade .2s; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #fff; overflow-y: auto; padding: 0 22px calc(30px + env(safe-area-inset-bottom)); animation: slide-in .22s ease-out; }
.drawer-top { position: sticky; top: 0; background: #fff; display: flex; align-items: center; justify-content: space-between; height: 56px; z-index: 2; margin: 0 -22px 20px; padding: 0 8px 0 22px; border-bottom: 1px solid var(--line); }
.drawer-account { margin-top: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }
body.no-scroll { overflow: hidden; }

/* ---------- mobile nav ---------- */
.mcats { display: flex; gap: 22px; overflow-x: auto; margin: 0 -18px 4px; padding: 0 18px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.mcats::-webkit-scrollbar { display: none; }
@media (max-width: 860px) { .mcats.only-sm { display: flex !important; } }
.mcats a { flex: none; padding: 14px 0 12px; font-size: .95rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.mcats a.on { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- archive heads ---------- */
.main-head { padding: 0 0 28px; margin-bottom: 8px; }
.main-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; }
.main-title .muted { font-weight: 500; font-size: 1rem; margin-left: 6px; letter-spacing: 0; }
.main-head p { margin-top: 8px; font-size: 1.05rem; }
.crumb { display: inline-block; font-size: .78rem; color: var(--accent); font-weight: 700; letter-spacing: .04em; margin-bottom: 8px; text-transform: uppercase; }
.sec-h { font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; letter-spacing: -0.03em; }
@media (max-width: 860px) { .main-head { padding-top: 26px; } .main-title { font-size: 1.6rem; } }

/* ---------- post cards (Casper) ---------- */
.pc { display: flex; flex-direction: column; min-width: 0; }
.pc-image { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--paper-2); margin-bottom: 18px; }
.pc-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: #c9ced3; }
.pc-tagline { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pc-tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .03em; margin-bottom: 8px; }
.pc-tagline .pc-tag { margin-bottom: 0; }
.pc-title { font-size: 1.3rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.035em; color: var(--ink); }
.pc-excerpt { margin: 10px 0 0; color: var(--ink-2); opacity: .85; font-size: .98rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { margin-top: 14px; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; }
.pc-meta .dot { margin: 0 6px; }
.pc a:hover .pc-title, .pc-title a:hover { opacity: .75; color: var(--ink); }
.pc-body { color: var(--ink); display: block; }
.pc-body:hover { color: var(--ink); }
.pc-journal { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.pc-plant { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); }
.bloglist { display: grid; gap: 56px; padding-top: 24px; }
.pc-lg .pc-image { aspect-ratio: 16 / 9; margin-bottom: 24px; }
.pc-lg .pc-title { font-size: 2rem; line-height: 1.2; letter-spacing: -0.045em; }
.pc-lg .pc-excerpt { font-size: 1.08rem; margin-top: 12px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; padding-top: 24px; }
.main .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .bloglist { gap: 40px; padding-top: 18px; }
  .pc-lg .pc-title { font-size: 1.5rem; }
  .gallery, .main .gallery { grid-template-columns: 1fr; gap: 36px; }
}

/* care badges */
.care-badges { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.care-b { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--paper-2); color: var(--ink-2); line-height: 1.6; }
.care-b .ic { width: 14px; height: 14px; color: var(--c, var(--muted)); }
.care-water { --c: #2b7bb9; } .care-feed, .care-vital, .care-foliar { --c: #30a46c; } .care-insect, .care-fungus { --c: #d9534f; }
.care-repot, .care-divide, .care-root { --c: #a1712d; } .care-bloom, .care-bud { --c: #d6336c; }

/* ---------- webzine ---------- */
.wz-item { display: flex; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: center; }
.wz-item:first-child { padding-top: 10px; }
.wz-body { flex: 1; min-width: 0; color: var(--ink); }
.wz-body:hover { color: var(--ink); }
.wz-body:hover .wz-title { opacity: .75; }
.wz-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 8px; }
.wz-ex { color: var(--ink-2); opacity: .85; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 10px; }
.wz-thumb { position: relative; flex: none; width: 180px; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.wz-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pmeta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.pm-cat { color: var(--accent); font-weight: 700; }
.pm-c { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .82rem; }
@media (max-width: 560px) { .wz-item { gap: 16px; padding: 20px 0; } .wz-thumb { width: 104px; } .wz-title { font-size: 1.05rem; } }

/* ---------- album (photo grid) ---------- */
.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding-top: 16px; }
.album-cell { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); display: block; }
.album-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.album-text { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; font-size: .95rem; font-weight: 700; color: var(--ink-2); line-height: 1.45; }
.album-multi { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.album-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 20px; color: #fff; font-weight: 700; background: rgba(0,0,0,.32); opacity: 0; transition: opacity .2s; }
.album-hover span { display: inline-flex; align-items: center; gap: 6px; }
.album-hover .ic { fill: #fff; stroke: #fff; }
.album-cell:hover .album-hover { opacity: 1; }
@media (max-width: 860px) { .album { gap: 2px; margin: 0 -18px; padding-top: 2px; } .album-hover { display: none; } }

/* ---------- list ---------- */
.ptable { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .96rem; }
.ptable th { font-size: .78rem; color: var(--muted); font-weight: 600; text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line-2); }
.ptable td { padding: 14px 6px; border-bottom: 1px solid var(--line); }
.ptable td a { font-weight: 600; }
.ptable td a:hover { color: var(--ink); text-decoration: underline; }
.cmt-n { color: var(--accent); font-size: .85em; font-weight: 700; }

/* ---------- instagram-like profile ---------- */
.ig-wrap { max-width: 935px; margin: 0 auto; padding: 44px 20px 100px; }
.ig-head { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center; padding: 6px 0 32px; }
.ig-avatar { position: relative; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin: 0 auto; background: var(--paper-2); display: grid; place-items: center; }
.ig-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ig-avatar span { font-size: 3rem; font-weight: 800; color: var(--ink); }
.ig-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ig-name { font-size: 1.5rem; font-weight: 800; margin-right: 8px; letter-spacing: -0.03em; }
.ig-name-row .btn.primary { background: var(--ink); border-color: var(--ink); }
.ig-stats { display: flex; gap: 30px; list-style: none; padding: 0; margin: 16px 0; color: var(--ink-2); }
.ig-stats strong { font-weight: 800; color: var(--ink); }
.ig-bio { margin: 0; white-space: pre-line; color: var(--ink-2); line-height: 1.6; }
.main .ig-head { grid-template-columns: 120px 1fr; gap: 26px; padding-top: 0; }
.main .ig-avatar { width: 110px; height: 110px; }
.hl-row { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 26px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.hl-row::-webkit-scrollbar { display: none; }
.hl { flex: none; width: 76px; display: grid; justify-items: center; gap: 6px; color: var(--ink); }
.hl-ring { position: relative; width: 68px; height: 68px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line-2); display: grid; place-items: center; }
.hl-ring img, .hl-ring > span { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 50%; object-fit: cover; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-2); font-weight: 800; font-size: 1.3rem; }
.hl:hover .hl-ring { box-shadow: 0 0 0 2px var(--ink); }
.hl-name { font-size: .78rem; max-width: 76px; text-align: center; }
.ig-tabs { display: flex; justify-content: center; gap: 34px; border-top: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.ig-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 14px 0; font-size: .82rem; font-weight: 700; color: var(--muted); border-top: 1px solid transparent; margin-top: -1px; white-space: nowrap; }
.ig-tabs a.on { color: var(--ink); border-top-color: var(--ink); }
@media (max-width: 860px) {
  .ig-wrap { padding: 18px 18px 100px; }
  .ig-head, .main .ig-head { grid-template-columns: 86px 1fr; gap: 20px; padding: 16px 0 20px; }
  .ig-avatar, .main .ig-avatar { width: 86px; height: 86px; }
  .ig-avatar span { font-size: 2rem; }
  .ig-name { font-size: 1.15rem; }
  .ig-stats { gap: 18px; margin: 10px 0; font-size: .9rem; }
  .ig-tabs { justify-content: flex-start; gap: 22px; margin: 0 -18px; padding: 0 18px; }
  .hl { width: 66px; } .hl-ring { width: 62px; height: 62px; }
}

/* ---------- article (Casper post) ---------- */
.post-head { padding: 0 0 30px; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--accent); font-weight: 700; letter-spacing: .02em; }
.crumbs span[aria-hidden] { color: var(--muted); }
.post-title { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; margin: 14px 0 24px; line-height: 1.15; letter-spacing: -0.05em; }
.post-by { display: flex; align-items: center; gap: 12px; }
.by-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; color: var(--ink); font-weight: 800; flex: none; }
.by-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.by-text { display: grid; line-height: 1.4; }
.by-name { font-weight: 700; font-size: .95rem; }
.by-tools { margin-left: auto; }
@media (max-width: 860px) { .post-head { padding-top: 28px; } .post-title { margin-bottom: 20px; } }

.journal-card { margin: 6px 0 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-3); padding: 18px 20px; display: grid; gap: 14px; }
.jc-plant { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.jc-plant:hover { color: var(--ink); }
.jc-img { position: relative; width: 52px; height: 52px; border-radius: var(--r); overflow: hidden; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-2); font-weight: 800; flex: none; }
.jc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pnames { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pn-ko { font-weight: 800; }
.pn-h, .pn-ja { color: var(--muted); font-size: .92em; }
.jc-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font-size: .9rem; }
.jc-facts div { display: flex; gap: 6px; align-items: center; }
.jc-facts dt { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.jc-facts dd { margin: 0; font-weight: 700; }
.jc-care { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.jc-care li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .88rem; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.jc-care li .ic { color: var(--c, var(--muted)); }

/* prose */
.prose { font-size: 1.12rem; line-height: 1.85; padding: 40px 0 10px; color: #20242a; letter-spacing: -0.005em; }
html[data-font="large"] .prose { font-size: 1.15rem; }
.prose > * { margin: 0 0 1.3em; }
.prose p:empty::before { content: "\00a0"; }
.prose h2 { font-size: 1.75rem; font-weight: 800; margin: 2em 0 .7em; letter-spacing: -0.04em; }
.prose h3 { font-size: 1.35rem; font-weight: 800; margin: 1.8em 0 .6em; }
.prose h4 { font-size: 1.1rem; font-weight: 800; margin: 1.5em 0 .5em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose img { border-radius: var(--r-sm); margin: 0 auto; cursor: zoom-in; }
.prose figure { margin: 2em 0; }
.prose figure.img-wide { margin-left: -60px; margin-right: -60px; }
.prose figure.img-full { margin-left: -100px; margin-right: -100px; }
.prose figure.img-small img { max-width: 60%; }
.prose figcaption { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 10px; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 22px; border-left: 3px solid var(--ink); color: var(--ink); }
.prose blockquote.q-box { border: 0; border-radius: var(--r); background: var(--paper-2); padding: 20px 24px; }
.prose blockquote.q-mark { border: 0; text-align: center; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.5; padding: 6px 30px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose hr { border: 0; height: 1px; background: var(--line-2); width: 30%; margin: 3em auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line-2); padding: 8px 10px; }
.prose pre { background: #15171a; color: #e9ecef; padding: 16px; border-radius: var(--r); overflow-x: auto; font-size: .88rem; }
.prose .fs-s { font-size: .86em; } .prose .fs-l { font-size: 1.2em; } .prose .fs-xl { font-size: 1.45em; } .prose .fs-xxl { font-size: 1.8em; line-height: 1.4; }
.prose mark, .prose .hl { background: #fff3b0; padding: 0 2px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; margin: 2em 0; }
.yt a, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; border-radius: 0; cursor: pointer; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(255, 0, 0, .9); }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
@media (max-width: 1100px) { .prose figure.img-full, .prose figure.img-wide { margin-left: 0; margin-right: 0; } }
@media (max-width: 860px) {
  .prose { font-size: 1.06rem; line-height: 1.8; padding-top: 30px; }
  .prose figure.img-full, .prose figure.img-wide { margin-left: -18px; margin-right: -18px; }
  .prose figure.img-full img, .prose figure.img-wide img { border-radius: 0; }
  .prose figure.img-small img { max-width: 80%; }
}

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 6px; }
.post-tags a { font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.post-tags a:hover { background: var(--ink); color: #fff; }
.post-actions { display: flex; align-items: center; gap: 8px; padding: 22px 0; margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pa-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.pa-btn b { font-weight: 700; color: var(--ink); }
.pa-btn:hover { border-color: var(--ink); color: var(--ink); }
.pa-btn.on, .mbar-btn.on { color: var(--seal); border-color: color-mix(in srgb, var(--seal) 40%, transparent); }
.pa-btn.on .ic, .mbar-btn.on .ic { fill: var(--seal); stroke: var(--seal); }
.pa-btn.pop .ic, .mbar-btn.pop .ic { animation: pop .35s ease-out; }
@keyframes pop { 50% { transform: scale(1.35); } }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.pn { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; font-weight: 700; }
.pn.next { text-align: right; }
.pn:hover { border-color: var(--ink); color: var(--ink); }
.catlist { margin: 36px 0; }
.catlist-h { font-size: 1rem; font-weight: 800; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.catlist ul { list-style: none; padding: 0; margin: 0; }
.catlist li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; font-size: .95rem; border-bottom: 1px solid var(--line); min-width: 0; }
.catlist li.on a { font-weight: 800; }
@media (max-width: 560px) { .prevnext { grid-template-columns: 1fr; } .pn.next { text-align: left; } }

/* ---------- comments ---------- */
.comments { margin-top: 44px; }
.cm-h { font-size: 1.3rem; font-weight: 800; padding-bottom: 12px; letter-spacing: -0.03em; }
.cm-list, .cm-replies { list-style: none; margin: 0; padding: 0; }
.cm { padding: 20px 0; border-top: 1px solid var(--line); }
.cm.pending { background: var(--warn-soft); padding-left: 12px; padding-right: 12px; border-radius: var(--r); }
.cm-replies { margin-top: 14px; }
.cm.reply { padding: 14px 0 14px 20px; border-top: 0; border-left: 2px solid var(--line-2); margin-left: 4px; margin-bottom: 6px; }
.cm-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-name { font-size: .95rem; font-weight: 800; }
.cm-lock { color: var(--muted); }
.cm-body { margin: 8px 0 6px; line-height: 1.75; }
.cm-secret { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.cm-tools { display: flex; gap: 12px; align-items: center; font-size: .84rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: inherit; }
.linkish:hover { color: var(--ink); text-decoration: underline; }
form.inline { display: inline; }
.cm-empty { padding: 20px 0; border-top: 1px solid var(--line); }
.cm-form { margin-top: 24px; background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.cm-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.cm-form .input { background: #fff; }
.cm-form textarea { min-height: 100px; }
.cm-form .btn.primary { background: var(--ink); border-color: var(--ink); }
.cm-submit { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cm-replying { font-size: .88rem; background: var(--paper-2); color: var(--ink-2); padding: 6px 12px; border-radius: var(--r-sm); margin-bottom: 10px; }
@media (max-width: 640px) { .cm-fields { grid-template-columns: 1fr; } .cm-form { padding: 16px; } }

/* ---------- mobile post bar & fab ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: grid !important; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 861px) { .mbar { display: none !important; } }
.mbar-btn { height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: .9rem; }
.mbar-btn b { font-weight: 600; }
.fab { position: fixed; right: 18px; bottom: calc(20px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid !important; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); z-index: 55; }
.fab:hover { color: #fff; }
.post ~ .fab, body:has(.mbar) .fab { bottom: calc(74px + env(safe-area-inset-bottom)); }
@media (min-width: 861px) { .fab { display: none !important; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(0, 0, 0, .94); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-x { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.lb-orig { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .85rem; border: 1px solid rgba(255,255,255,.4); padding: 6px 14px; border-radius: 999px; }
.lb-orig:hover { color: #fff; background: rgba(255,255,255,.1); }

/* ---------- plants ---------- */
.plant-banner { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); margin: 0 0 24px; color: var(--ink); }
.plant-banner:hover { border-color: var(--ink); color: var(--ink); }
.pb-img { position: relative; width: 64px; height: 64px; border-radius: var(--r); overflow: hidden; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-2); font-weight: 800; flex: none; }
.pb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pb-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pb-kicker { font-size: .74rem; color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.pgroup { margin-top: 36px; }
.pgroup-h { font-size: 1.2rem; font-weight: 800; margin-bottom: 18px; letter-spacing: -0.03em; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.pcard { display: block; color: var(--ink); }
.pcard:hover { color: var(--ink); }
.pcard-img { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--paper-2); color: #c3c8cd; font-size: 2rem; font-weight: 800; }
.pcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-st { position: absolute; left: 10px; top: 10px; font-size: .72rem; font-weight: 700; background: #fff; color: var(--ink); padding: 2px 9px; border-radius: 999px; }
.pcard-st.lock { left: auto; right: 10px; }
.pcard.gone .pcard-img { filter: grayscale(1) opacity(.7); }
.pcard-body { display: grid; gap: 3px; padding: 12px 2px 0; }
.pcard-tags { display: flex; gap: 6px; flex-wrap: wrap; font-size: .78rem; color: var(--accent); }
@media (max-width: 860px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }

.plant-hero { display: grid; grid-template-columns: 280px 1fr; gap: 36px; padding: 0 0 32px; border-bottom: 1px solid var(--line); }
.ph-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.ph-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.ph-mono { font-size: 3.4rem; font-weight: 800; color: #c3c8cd; }
.ph-name { font-size: 2.4rem; font-weight: 800; margin: 6px 0 6px; letter-spacing: -0.05em; }
.ph-alt { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 1.1rem; }
.ph-alt em { font-size: .95rem; }
.ph-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 22px 0 0; font-size: .94rem; }
.ph-facts div { display: contents; }
.ph-facts dt { color: var(--muted); }
.ph-facts dd { margin: 0; font-weight: 600; }
.ph-last { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; padding: 12px 14px; background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r); font-size: .9rem; }
.ph-last span { display: inline-flex; gap: 6px; align-items: center; }
.ph-desc { padding-top: 26px; }
@media (max-width: 860px) {
  .plant-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 0; }
  .ph-img { aspect-ratio: 1; margin: 0 -18px; border-radius: 0; }
  .ph-name { font-size: 1.9rem; }
}
.strip { display: grid; grid-template-columns: repeat(42, 1fr); gap: 3px; margin-bottom: 24px; }
.strip span { aspect-ratio: 1; border-radius: 2px; background: var(--paper-2); }
.strip .s1 { background: color-mix(in srgb, var(--accent) 35%, #fff); }
.strip .s2 { background: color-mix(in srgb, var(--accent) 65%, #fff); }
.strip .s3 { background: var(--accent); }
@media (max-width: 560px) { .strip { grid-template-columns: repeat(21, 1fr); } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 56px 30px 1fr; gap: 8px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--c, var(--ink-2)); }
.tl-ic .ic { width: 16px; height: 16px; }

.search-big { display: flex; gap: 8px; margin-top: 6px; }
.search-big .btn.primary { background: var(--ink); border-color: var(--ink); }

/* ---------- footer ---------- */
.bfoot { border-top: 1px solid var(--line); margin-top: 20px; }
.bfoot-in { max-width: var(--page-w, 1200px); margin: 0 auto; padding: 34px 32px 60px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.bfoot nav { display: flex; gap: 18px; margin-left: auto; }
.bfoot nav a:hover { color: var(--ink); }
.powered { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.powered .seal { width: 20px; height: 20px; border-radius: 5px; }
@media (max-width: 860px) { .bfoot-in { padding: 28px 18px 110px; flex-direction: column; align-items: flex-start; gap: 12px; } .bfoot nav { margin-left: 0; } }
.timeline a { margin-left: 8px; color: var(--muted); }

/* ---------- blog width (꾸미기 → 블로그 너비): whole page = top bar + side menu + posts ---------- */
body.w-normal { --page-w: 1200px; --read-w: 760px; }
body.w-wide   { --page-w: 1440px; --read-w: 900px; }
body.w-wide .shell { grid-template-columns: 240px minmax(0, 1fr); gap: 80px; }

/* ---------- 매거진형: no side menu, one wide reading column, big lead post ---------- */
.lay-magazine .shell { display: block; max-width: calc(var(--read-w, 760px) + 64px); }
.lay-magazine .side { display: none; }
.lay-magazine .main { max-width: none; }
.lay-magazine .gbar-menu, .lay-cards .gbar-menu { display: inline-grid !important; }
.mz-hero { padding: 8px 0 40px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.mz-hero-img { display: block; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 26px; background: var(--paper-2); }
.mz-hero-img img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; }
.mz-hero-title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.05em; margin: 4px 0 14px; }
.mz-hero-title a { color: var(--ink); } .mz-hero-title a:hover { opacity: .75; }
.mz-hero-ex { font-size: 1.12rem; line-height: 1.75; color: var(--ink-2); margin: 0; }
.lay-magazine .wz-title { font-size: 1.4rem; }
.lay-magazine .wz-thumb { width: 220px; }
.author-box, .cd-head { display: flex; align-items: center; gap: 18px; }
.author-box { margin-top: 56px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2); }
.by-avatar.lg { width: 72px; height: 72px; font-size: 1.6rem; }
.author-name { font-size: 1.1rem; font-weight: 800; }
.author-desc { margin: 6px 0 0; color: var(--ink-2); line-height: 1.6; }
.author-stats { margin: 6px 0 0; }
@media (max-width: 860px) {
  .lay-magazine .shell { padding: 0 0 100px; }
  .mz-hero { padding-top: 22px; }
  .mz-hero-img { margin: 0 -18px 20px; border-radius: 0; }
  .lay-magazine .wz-thumb { width: 104px; }
  .author-box { margin: 40px 0 0; padding: 20px; }
}

/* ---------- 카드형: no side menu, full page width, masonry photo cards ---------- */
.lay-cards .shell { display: block; }
.lay-cards .side { display: none; }
.lay-cards .main { max-width: none; }
.lay-cards.ep-public-post .main, .lay-cards.ep-public-plant .main { max-width: var(--read-w, 760px); margin: 0 auto; }
.lay-cards .main .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cd-head { padding: 4px 0 18px; }
.cd-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 22px; scrollbar-width: none; }
.cd-chips::-webkit-scrollbar { display: none; }
.cd-chips a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.cd-chips a span { color: var(--muted); font-weight: 500; font-size: .82rem; }
.cd-chips a.on, .cd-chips a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cd-chips a.on span, .cd-chips a:hover span { color: rgba(255,255,255,.7); }
.cards { columns: 3 260px; column-gap: 22px; }
.card { break-inside: avoid; margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 30px -14px rgba(0,0,0,.25); transform: translateY(-2px); }
.card-img { display: block; background: var(--paper-2); }
.card-img img { display: block; width: 100%; height: auto; }
.card-body { padding: 14px 16px 16px; }
.card .pc-tag { margin-bottom: 6px; }
.card-title { font-size: 1.05rem; font-weight: 800; line-height: 1.38; letter-spacing: -0.03em; }
.card-title a { color: var(--ink); }
.card.no-img .card-title { font-size: 1.2rem; }
.card-ex { margin: 8px 0 0; color: var(--ink-2); font-size: .93rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 860px) {
  .lay-cards .main { padding: 0 14px; }
  .cd-head { padding-top: 22px; }
  .cards { columns: 2 150px; column-gap: 12px; }
  .card { margin-bottom: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: .95rem; }
  .lay-cards .main .gallery { grid-template-columns: 1fr; }
}

/* ---------- 다이어리형: date timeline, side menu on the right ---------- */
.lay-diary .shell { grid-template-columns: minmax(0, 1fr) 220px; }
.lay-diary .side { order: 2; }
.lay-diary .main { max-width: none; }
.tl { position: relative; padding-left: 0; }
.tl-month { position: sticky; top: 64px; z-index: 3; margin: 26px 0 6px; padding: 10px 0; background: rgba(255,255,255,.96); font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; border-bottom: 2px solid var(--ink); }
.tl-month:first-child { margin-top: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tl-item::before { content: ""; position: absolute; left: 31px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-date { position: relative; z-index: 1; align-self: start; display: grid; justify-items: center; width: 64px; padding: 6px 0; background: #fff; line-height: 1.1; }
.tl-date b { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.tl-date span { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.tl-card { display: flex; gap: 20px; align-items: flex-start; min-width: 0; }
.tl-body { flex: 1; min-width: 0; }
.tl-title { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.tl-title a { color: var(--ink); } .tl-title a:hover { opacity: .75; }
.tl-ex { margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl .pc-journal { margin-top: 10px; }
.tl-thumb { position: relative; flex: none; width: 120px; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.tl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .tl-month { top: 56px; }
  .tl-item { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
  .tl-item::before { left: 22px; }
  .tl-date { width: 46px; }
  .tl-date b { font-size: 1.35rem; }
  .tl-thumb { width: 76px; }
  .tl-card { gap: 12px; }
}

/* ---------- 방명록 (guestbook): tucked away like a small link under the profile ---------- */
.sp-guest { display: inline-block; margin-top: 10px; font-size: .8rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sp-guest:hover { color: var(--ink); }
.comments.gb { margin-top: 0; }
.gb .cm-form { margin: 0 0 28px; }
.lay-cards.ep-public-guestbook .main { max-width: var(--read-w, 760px); margin: 0 auto; }
.gb-reply { margin: 12px 0 0 18px; padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--paper-2); border-radius: 0 var(--r) var(--r) 0; }
.gb-reply .cm-top { margin-bottom: 4px; }
.gb-reply-form { margin: 12px 0 0 18px; }
