/* 까치 공개 페이지. 한지 위의 먹 글씨. 앱 아이콘(원상과 까치)과 같은 바탕이다. */
:root {
  --paper: #f4f0e6;
  --paper-deep: #ebe4d4;
  --ink: #14161a;
  --ink-soft: #3a3e46;
  --muted: #6b6a66;
  --line: rgba(20, 22, 26, 0.12);
  --gold: #8f7330;
  --gold-line: rgba(184, 150, 62, 0.45);
  --seal: #c4452d;
  --todo: #fde68a;
  --display-ko: "Noto Serif KR", "AppleMyungjo", "Nanum Myeongjo", "Batang", serif;
  --display-en: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  --body: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(184, 150, 62, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(20, 22, 26, 0.05), transparent 60%),
    var(--paper);
  color: var(--ink);
  font: 16px/1.75 var(--body);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 고른 언어만 보인다. 스크립트가 없으면 둘 다 보인다. */
html[data-lang="ko"] .l[lang="en"],
html[data-lang="en"] .l[lang="ko"] { display: none !important; }
html:not([data-lang]) span.l + span.l::before { content: " · "; }
html:not([data-lang]) article.l + article.l {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 3rem;
}

a { color: inherit; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--seal); }

/* 머리 */
.top { border-bottom: 1px solid var(--line); }
.top-in, .foot-in, main {
  max-width: 46rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display-ko);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
html[lang="en"] .brand { font-family: var(--display-en); font-size: 1.3rem; letter-spacing: 0.02em; }

.lang { display: flex; gap: 0.25rem; font-size: 0.9rem; }
.lang a {
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
}
.lang a[aria-current] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold-line); }

/* 본문 */
main { padding-top: 2.5rem; padding-bottom: 3rem; }

h1 {
  font-family: var(--display-ko);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  line-height: 1.3;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
article[lang="en"] h1 { font-family: var(--display-en); font-size: clamp(2.1rem, 6vw, 2.7rem); letter-spacing: 0; }

.lede { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 0.4rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 2rem; }

h2 {
  font-family: var(--display-ko);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.45;
  margin: 2.6rem 0 0.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  position: relative;
}
h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--seal);
}
article[lang="en"] h2 { font-family: var(--display-en); font-size: 1.45rem; }

h3 { font-size: 1rem; margin: 1.6rem 0 0.4rem; }

p, li { color: var(--ink-soft); }
ul, ol { padding-left: 1.2rem; }
li + li { margin-top: 0.3rem; }
strong { color: var(--ink); font-weight: 650; }
.note { color: var(--muted); font-size: 0.92rem; }
.end { margin-top: 2rem; }

/* 목차 */
.toc {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.toc ol { margin: 0; columns: 2 15rem; column-gap: 2rem; font-size: 0.93rem; }
.toc li { break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* 맡기는 곳·옮기는 곳 */
.card {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.card h3 { margin: 0 0 0.5rem; }
.card dl { margin: 0; display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.35rem 1rem; }
.card dt { color: var(--muted); font-size: 0.9rem; }
.card dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 520px) {
  .card dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .card dd { margin-bottom: 0.5rem; }
}

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 0.88rem; }

/* 삭제 요청 */
.form {
  margin: 1.2rem 0;
  padding: 1.3rem 1.2rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--gold-line);
  border-radius: 16px;
}
.form label { display: block; font-weight: 600; margin-bottom: 0.45rem; color: var(--ink); }
.form input[type="email"] {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(20, 22, 26, 0.22);
  border-radius: 12px;
}
.form input[type="email"]:focus { outline: 2px solid var(--gold-line); outline-offset: 1px; }
.form button {
  margin-top: 0.9rem;
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.form button:hover { background: #2a2d33; }
.form .note { margin: 0.8rem 0 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.4rem; margin: 0.7rem 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  border: 1px solid rgba(196, 69, 45, 0.6);
  color: var(--seal);
  font-family: var(--display-ko);
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  line-height: 1;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 1.8rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: -0.05rem;
  color: var(--gold);
  font-size: 1.2rem;
}
details[open] summary::after { content: "−"; }
details > :not(summary) { margin: 0.6rem 0 0.2rem; }

mark.todo { background: var(--todo); color: var(--ink); padding: 0 0.25rem; border-radius: 4px; }

/* 첫 화면 */
.hero { text-align: center; padding: 1rem 0 0.5rem; }
.hero img {
  width: min(220px, 56vw);
  height: auto;
  border-radius: 28%;
  box-shadow: 0 18px 40px -18px rgba(20, 22, 26, 0.35), 0 0 0 1px var(--line);
}
.hero h1 { margin-top: 1.4rem; }
.links {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.8rem;
}
.links li { margin: 0; }
.links a {
  display: block;
  height: 100%;
  padding: 1rem 1.1rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.links a:hover { border-color: var(--gold-line); }
.links strong { display: block; font-family: var(--display-ko); font-weight: 600; margin-bottom: 0.2rem; }
article[lang="en"] .links strong { font-family: var(--display-en); font-size: 1.15rem; }
.links span { color: var(--muted); font-size: 0.92rem; }

/* 꼬리 */
.foot { border-top: 1px solid var(--line); }
.foot-in { padding-top: 1.4rem; padding-bottom: 2.4rem; }
.pages { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; font-size: 0.92rem; }
.pages a { text-decoration: none; color: var(--ink-soft); }
.pages a[aria-current] { color: var(--seal); }
.mark { color: var(--muted); font-size: 0.85rem; margin: 0.8rem 0 0; }

@media print {
  .top, .foot, .lang { display: none; }
  body { background: #fff; }
}
