/* Easy2Paper 웹사이트 — 앱과 같은 색·글꼴. 모티프: 문단 옆 여백 막대 */
:root {
  color-scheme: light;
  --desk: #e6e9ee;
  --paper: #ffffff;
  --paper-2: #f4f6f9;
  --ink: #18202e;
  --ink-2: #4b5568;
  --ink-3: #6b7486;
  --night: #12151a;
  --night-2: #1b1f26;
  --night-ink: #e6e9ef;
  --night-ink-2: #b2b9c6;
  --accent: #1c6e62;
  --accent-hover: #155a50;
  --accent-ink: #ffffff;
  --accent-soft: #dcefe9;
  --claim: #3858c4;
  --method: #b0711a;
  --result: #1c8a6f;
  --limit: #b8433a;
  --muted: #8a93a5;
  --danger: #a8322a;
  --danger-soft: #fbeceb;
  --font-ui: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  --font-read: 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', Georgia, serif;
  --r: 3px;
  --m: clamp(16px, 4vw, 48px);
  --bar: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --desk: #12151a;
    --paper: #1b1f26;
    --paper-2: #222731;
    --ink: #e6e9ef;
    --ink-2: #b9c0cc;
    --ink-3: #959eb0;
    --night: #0c0e12;
    --night-2: #161a20;
    --accent: #5cc3ad;
    --accent-hover: #74d2bd;
    --accent-ink: #0d1916;
    --accent-soft: #1d3530;
    --claim: #7d98ef;
    --method: #e0a14a;
    --result: #57c7a7;
    --limit: #ef8077;
    --danger: #f08a80;
    --danger-soft: #3a2020;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: rgb(28 110 98 / 0.28); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }

/* ---------- 버튼: 여백 막대가 붙은 사각 버튼 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 26px;
  border: 0;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s;
}
.btn::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: var(--bar);
  border-radius: 3px;
  background: currentColor;
  opacity: 0.45;
  transition: opacity 0.18s, transform 0.18s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:hover::before { opacity: 0.9; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { background: var(--paper-2); }
.btn.small { min-height: 42px; font-size: 15px; padding: 0 16px 0 22px; }
.btn.small::before { top: 10px; bottom: 10px; left: 8px; width: 4px; }
.link { color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- 머리말 (하위 페이지) */
.bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px var(--m);
  background: var(--paper);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.bar nav { display: flex; gap: 24px; margin-left: auto; font-size: 16px; }
.bar nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }
.bar .account { font-weight: 800; color: var(--accent); text-decoration: none; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .bar nav a:not(.account) { display: none; } }

/* ---------- 등장 효과 */
.js [data-rv] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js [data-rv].in { opacity: 1; transform: none; }
.js [data-rv='2'] { transition-delay: 70ms; }
.js [data-rv='3'] { transition-delay: 140ms; }
.js [data-rv='4'] { transition-delay: 210ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rv] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- 하위 페이지 공통 시트 */
.page { padding: clamp(32px, 6vw, 88px) var(--m) 120px; }
.sheet {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 64px) clamp(28px, 5vw, 56px) clamp(34px, 6vw, 76px);
  background: var(--paper);
  border-radius: var(--r);
}
.sheet.narrow { max-width: 520px; }
.marked { position: relative; }
.marked::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(18px, 3.2vw, 40px));
  top: 0.12em;
  height: 1.05em;
  width: var(--bar);
  border-radius: 3px;
  background: var(--mark, var(--accent));
}
.page h1 { font-size: clamp(30px, 4.4vw, 46px); }
.lede { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.field { display: grid; gap: 8px; font-size: 15px; font-weight: 700; }
.field input {
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--paper-2);
  border-radius: var(--r);
  background: var(--paper-2);
  font-size: 17px;
  font-weight: 400;
}
.field input:focus { border-color: var(--accent); outline: none; }
.form { display: grid; gap: 16px; margin-top: 28px; }
.msg { font-size: 15px; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--accent); }
.seg {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  background: var(--paper-2);
  border-radius: var(--r);
}
.seg button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  background: none;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
}
.seg button[aria-selected='true'] { background: var(--paper); color: var(--ink); }
.notice { padding: 16px 18px; background: var(--paper-2); border-radius: var(--r); color: var(--ink-2); font-size: 16px; }
.footer-mini { padding: 32px var(--m) 48px; color: var(--ink-3); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-mini a { text-decoration: none; }

/* 휴대폰: 입력칸이 화면 폭을 넘지 않게 */
.form,
.field {
  min-width: 0;
}
.field input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 480px) {
  .page { padding: 20px 12px 80px; }
  .sheet { padding: 26px 18px 28px 30px; }
  .marked::before { left: -16px; }
  .page h1 { font-size: 30px; }
  .lede { font-size: 16px; }
  .field input { height: 48px; font-size: 16px; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; }
}
.footer-mini .biz { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; line-height: 1.7; }
