/* 둥이 이야기 · 일기 (B안 다꾸 위클리)
   모눈종이 위에 마스킹테이프, 월~일 한 줄 메모, 사진 콜라주. PC에서는 다이어리를 펼친 두 쪽
   손글씨(Gaegu)는 제목·메모·라벨에만, 본문은 Gowun Dodum 으로 읽기 쉽게 */
html[data-ds="diary"], html[data-ds="diary"] body { background: #e6eaf0; }
.dk { --ink: #2a2630; --sub: #5d5866; --line: #d6dde8; --red: #c33a2c; --mint: #9fe0cf; --lilac: #cdbdf4; --lemon: #ffe27a;
  color: var(--ink); font-family: "Gowun Dodum", sans-serif; padding: 84px 0 120px; min-height: 100vh; box-sizing: border-box; }
.dk *, .dk *::before, .dk *::after { box-sizing: border-box; }
.dk .hw { font-family: "Gaegu", cursive; }
.dk a { color: var(--ink); }
.dk a:focus-visible, .dk button:focus-visible, .dk input:focus-visible, .dk textarea:focus-visible, .dk select:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dk-top { max-width: 1150px; margin: 0 auto; padding: 0 20px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--sub); }
.dk-top a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--ink); }

.pg { position: relative; background-color: #fcfdff;
  background-image: linear-gradient(#e4ebf5 1px, transparent 1px), linear-gradient(90deg, #e4ebf5 1px, transparent 1px); background-size: 20px 20px; }
.tape { position: absolute; height: 26px; opacity: .88; pointer-events: none; }
.t-lemon { background: var(--lemon); } .t-mint { background: var(--mint); } .t-lilac { background: var(--lilac); }

/* ───── 한 편 ───── */
.dk-spread { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); }
.dk-page { padding: 34px 20px 30px; }
.dk-label { position: relative; height: 34px; }
.dk-label .tape { left: -24px; top: 2px; width: 220px; transform: rotate(-3deg); }
.dk-label span.hw { position: relative; display: inline-block; padding-left: 4px; font-size: 20px; transform: rotate(-3deg); }
.dk-week { margin: 12px 0 0; font-size: clamp(48px, 9vw, 64px); font-weight: 700; line-height: 1; }
.dk-sticker { position: absolute; right: 22px; top: 30px; width: 66px; height: 66px; }
.dk-left-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 22px; }
.dk-days { list-style: none; margin: 0; padding: 0; }
.dk-days li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 40px; border-bottom: 1.5px dashed var(--line); }
.dk-days .d { font-size: 14px; color: var(--sub); }
.dk-days .m { font-family: "Gaegu", cursive; font-size: 20px; line-height: 1.2; }
.dk-days .hot .d { color: var(--red); font-weight: 700; }
.dk-days .hot .m { color: var(--red); font-weight: 700; justify-self: start; padding: 0 8px; border: 2.5px solid #e0483a; border-radius: 50%; }
.dk-photos { position: relative; min-height: 360px; }
.dk-ph { position: absolute; margin: 0; background: #ffffff; padding: 8px 8px 0; box-shadow: 0 10px 18px -10px rgba(42, 38, 48, .55); }
.dk-ph img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #e9edf2; }
.dk-ph figcaption { font-family: "Gaegu", cursive; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; padding: 8px 2px 10px; text-align: center; }
.dk-ph .tape { width: 92px; top: -12px; left: 50%; margin-left: -46px; }
.ph0 { width: 62%; left: 0; top: 10px; transform: rotate(-4deg); z-index: 2; }
.ph0 .tape { transform: rotate(-10deg); }
.ph1 { width: 46%; right: 2%; top: 150px; transform: rotate(6deg); z-index: 1; }
.ph1 .tape { transform: rotate(12deg); }
.ph2 { width: 40%; left: 30%; top: 300px; transform: rotate(-2deg); z-index: 3; }
.ph2 .tape { transform: rotate(-6deg); }
.dk-photos.n1 { min-height: 330px; } .dk-photos.n1 .ph0 { width: 76%; left: 10%; }
.dk-photos.n2 { min-height: 400px; }
.dk-photos.n3 { min-height: 520px; }
.dk-photos.n0 { display: none; }

.dk-memo { position: relative; background: #ffffff; padding: 30px 22px 22px; box-shadow: 0 12px 24px -16px rgba(42, 38, 48, .6); }
.dk-memo .tape { left: 50%; top: -13px; width: 120px; margin-left: -60px; transform: rotate(2deg); }
.dk-memo h1 { margin: 0 0 12px; font-size: clamp(30px, 6vw, 36px); font-weight: 700; line-height: 1.1; }
.dk-meta { margin: 0 0 14px; font-size: 14px; color: var(--sub); }
.dk-body { font-size: 17px; line-height: 1.8; }
.dk-body p { margin: 0 0 12px; }
.dk-body p:last-child { margin-bottom: 0; }
.dk-body img { max-width: 100%; height: auto; }
.dk-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 26px; }
.dk-note { display: block; padding: 15px 15px 17px; min-height: 44px; text-decoration: none; color: var(--ink); box-shadow: 0 10px 18px -12px rgba(42, 38, 48, .6); }
.dk-note:nth-child(odd) { background: #fff1a8; transform: rotate(-2deg); }
.dk-note:nth-child(even) { background: #cdf1e5; transform: rotate(2deg); }
.dk-note small { display: block; font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.dk-note b { font-size: 16px; line-height: 1.4; }
.dk-checks { margin-top: 30px; }
.dk-checks h2 { margin: 0 0 4px; font-size: 28px; font-weight: 700; }
.dk-checks p { margin: 0 0 12px; font-size: 14px; color: var(--sub); }
.dk-checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dk-checks li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.dk-box { width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 5px; flex: none; transform: rotate(-4deg); position: relative; }
.dk-box svg { position: absolute; left: 1px; top: -5px; }
.dk-foot { margin: 26px 0 0; font-size: 13px; line-height: 1.55; color: var(--sub); }
.dk-pn { max-width: 1150px; margin: 22px auto 0; padding: 0 20px; display: flex; justify-content: space-between; gap: 12px; }
.dk-pn a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #ffffff; box-shadow: inset 0 0 0 1.5px var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }

@media (min-width: 980px) {
  .dk-top { padding: 0 24px 16px; }
  .dk-spread { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(40, 46, 60, .55); }
  .dk-page { padding: 40px 42px 36px; }
  .dk-left { box-shadow: inset -24px 0 30px -24px rgba(40, 46, 60, .35); }
  .dk-right { box-shadow: inset 24px 0 30px -24px rgba(40, 46, 60, .35); display: flex; flex-direction: column; }
  .dk-left-grid { grid-template-columns: 190px minmax(0, 1fr); gap: 28px; }
  .dk-foot { margin-top: auto; padding-top: 26px; }
  .dk-pn { padding: 0 24px; }
}
@media (max-width: 979px) { .dk-spread .dk-page + .dk-page { padding-top: 6px; } .dk-spread { background-color: #fcfdff; } }

/* ───── 목록 ───── */
.dk-hero { max-width: 1150px; margin: 0 auto; padding: 18px 20px 8px; position: relative; }
.dk-hero .tape { left: -10px; top: 18px; width: 200px; transform: rotate(-3deg); }
.dk-hero .k { position: relative; display: inline-block; font-size: 20px; transform: rotate(-3deg); padding-left: 6px; }
.dk-hero h1 { margin: 14px 0 10px; font-size: clamp(44px, 8vw, 64px); font-weight: 700; line-height: 1; }
.dk-hero p { margin: 0; max-width: 34em; font-size: 16px; line-height: 1.7; color: var(--sub); }
.dk-list { max-width: 1150px; margin: 26px auto 0; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.dk-card { position: relative; display: block; padding: 30px 20px 22px; text-decoration: none; color: var(--ink); box-shadow: 0 16px 30px -20px rgba(40, 46, 60, .6); transition: transform .2s; }
.dk-card:hover { transform: translateY(-3px) rotate(-.4deg); }
.dk-card .tape { left: 50%; top: -12px; width: 110px; margin-left: -55px; transform: rotate(-3deg); }
.dk-card .w { font-family: "Gaegu", cursive; font-size: 36px; font-weight: 700; line-height: 1; }
.dk-card h2 { margin: 10px 0 6px; font-size: 20px; line-height: 1.35; }
.dk-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--sub); }
.dk-card time { display: block; margin-top: 12px; font-size: 13px; color: var(--sub); }
.dk-card .th { float: right; width: 96px; margin: -4px 0 8px 12px; background: #ffffff; padding: 5px 5px 14px; transform: rotate(4deg); box-shadow: 0 8px 14px -8px rgba(42, 38, 48, .55); }
.dk-card .th img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.dk-card.now { box-shadow: 0 0 0 3px var(--ink), 0 16px 30px -20px rgba(40, 46, 60, .6); }
.dk-empty { max-width: 1150px; margin: 26px auto 0; padding: 0 20px; }
.dk-empty .pg { padding: 30px 22px; box-shadow: 0 16px 30px -20px rgba(40, 46, 60, .6); }
.dk-empty b { font-family: "Gaegu", cursive; font-size: 28px; }
.dk-empty p { margin: 8px 0 0; font-size: 16px; line-height: 1.7; }
.dk-how { max-width: 1150px; margin: 34px auto 0; padding: 0 20px; }
.dk-how .pg { padding: 26px 22px; box-shadow: 0 16px 30px -20px rgba(40, 46, 60, .6); }
.dk-how h2 { margin: 0 0 6px; font-family: "Gaegu", cursive; font-size: 30px; font-weight: 700; }
.dk-how p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--sub); }
.dk-how ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 24px; }
.dk-how li { display: flex; gap: 12px; align-items: center; font-size: 16px; }

@media (prefers-reduced-motion: reduce) { .dk-card { transition: none; } .dk-card:hover { transform: none; } }
