/* Layout: one narrow reading column, like a phone screen; step chips + numbered sections; yellow highlighter = the reel's caption accent */
:root {
  --bg: #F3F8FD;
  --paper: #FFFFFF;
  --ink: #15191F;
  --mute: #5E6774;
  --line: #E1E8F0;
  --sky: #2C7BE5;
  --sky-soft: #E6F0FC;
  --hl: #FFE14D;
  --warn: #B8520C;
  --warn-bg: #FFF4E6;
  --ok: #18A058;
  --ok-bg: #E8F7EF;
  --mark-bg: #FFE14D;
  --mark-ink: inherit;
  --ph-bg: #FFF1A8;
  --ph-ink: #5A4500;
  --ig: linear-gradient(45deg, #F9A825 0%, #E4405F 45%, #C13584 70%, #833AB4 100%);
  --display: "Black Han Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10151C; --paper: #18202A; --ink: #EEF2F6; --mute: #9AA6B4; --line: #2A3542;
    --sky: #6AA8F5; --sky-soft: #1C2E45; --hl: #E8C93A; --warn: #F2A35E; --warn-bg: #33240F;
    --ok: #4CC98A; --ok-bg: #133024; --mark-bg: transparent; --mark-ink: #FFD84D; --ph-bg: #3A3216; --ph-ink: #FFE07A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10151C; --paper: #18202A; --ink: #EEF2F6; --mute: #9AA6B4; --line: #2A3542;
  --sky: #6AA8F5; --sky-soft: #1C2E45; --hl: #E8C93A; --warn: #F2A35E; --warn-bg: #33240F;
  --ok: #4CC98A; --ok-bg: #133024; --mark-bg: transparent; --mark-ink: #FFD84D; --ph-bg: #3A3216; --ph-ink: #FFE07A; color-scheme: dark;
}
body { word-break: keep-all; overflow-wrap: anywhere; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.75; }
.wrap { max-width: 640px; margin: 0 auto; padding-block: 28px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 28px; }
.by { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 14px; }
.by img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--sky); }
.by b { color: var(--ink); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--sky-soft); color: var(--sky); letter-spacing: .02em; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 8vw, 42px); line-height: 1.25; margin: 6px 0 0; text-wrap: balance; }
h1 mark, .hlt { background: linear-gradient(transparent 50%, var(--mark-bg) 50%, var(--mark-bg) 90%, transparent 90%); color: var(--mark-ink); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hlt { font-weight: 700; }
.ph { display: inline-block; background: var(--ph-bg); color: var(--ph-ink); font-weight: 700; font-size: .92em; line-height: 1.5; padding: 0 .4em; border-radius: 6px; }
.lead { margin: 0; color: var(--ink); }
h2 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.35; margin: 0; display: flex; align-items: center; gap: 10px; text-wrap: balance; }
.num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: #fff; font-family: var(--body); font-weight: 900; font-size: 16px; display: grid; place-items: center; }
section { display: flex; flex-direction: column; gap: 12px; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px 12px; }
.chip { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-weight: 700; font-size: 14px; line-height: 1.3; min-width: 0; }
.chip svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--sky-soft); color: var(--sky); }
.arrow { color: var(--mute); font-weight: 900; }
.note { border-radius: 14px; padding: 14px 16px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.note b.t { font-size: 15px; }
.warn { background: var(--warn-bg); }
.warn b.t { color: var(--warn); }
.ok { background: var(--ok-bg); }
.ok b.t { color: var(--ok); }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.box h3 { margin: 0; font-size: 16px; }
.copy { position: relative; background: var(--paper); box-shadow: 0 1px 2px rgba(16,24,40,.04); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.copy .cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); font-weight: 700; }
.copy pre { margin: 0; white-space: pre-wrap; word-break: keep-all; font-family: var(--body); font-size: 15px; line-height: 1.7; color: var(--ink); }
button.cp { flex: none; font: 700 14px var(--body); color: #fff; background: var(--sky); border: 0; border-radius: 99px; min-height: 36px; padding: 0 16px; cursor: pointer; transition: transform .1s; }
button.cp:active { transform: scale(.96); }
button.cp:focus-visible, a.btn:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; }
a.btn { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; background: var(--sky); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 12px; }
.url { font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: var(--sky-soft); padding: 1px 6px; border-radius: 6px; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
details summary { font-weight: 700; cursor: pointer; }
details p { margin-top: 8px; color: var(--ink); }
.faq { display: flex; flex-direction: column; gap: 8px; }
.end { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--ink); }
.end .who { display: flex; gap: 14px; align-items: center; }
.end b { font-size: 17px; line-height: 1.45; }
.end .follow { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; background: var(--ig); color: #fff; font-weight: 900; font-size: 17px; text-decoration: none; }
.end .follow svg { width: 22px; height: 22px; }
.end .follow:active { transform: scale(.98); }
.end .follow:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; }
.end img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.end div { min-width: 0; }
.small { font-size: 13px; color: var(--mute); }
@media (max-width: 420px) { .chip { font-size: 12px; } .chip svg { width: 34px; height: 34px; padding: 6px; } }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a.back { color: var(--mute); font-size: 14px; text-decoration: none; font-weight: 700; }
a.back:hover { color: var(--sky); }
.list { display: flex; flex-direction: column; gap: 12px; }
a.item { display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
a.item:hover { border-color: var(--sky); }
a.item b { font-size: 17px; }
a.item span { font-size: 14px; color: var(--mute); }
a.item .go { color: var(--sky); font-weight: 700; font-size: 14px; }
