:root {
  --paper: #eaeef3;
  --card: #f7f9fb;
  --ink: #1d2840;
  --muted: #5c6880;
  --line: #cbd3df;
  --thread: #d6463a;
  --gold: #d99a1e;
  --todo-bg: #fff3b0;
  --todo-ink: #6b4b00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11161f;
    --card: #19202c;
    --ink: #ccd6e8;
    --muted: #8b97ad;
    --line: #2b3546;
    --thread: #ff6b5c;
    --gold: #f2c24e;
    --todo-bg: #4a3b00;
    --todo-ink: #ffe27a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

a { color: var(--thread); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.site { display: flex; gap: 16px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }

main { padding: 32px 0 56px; }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 40px 0 10px; padding-top: 8px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, li { margin: 0 0 10px; }
ul, ol { padding-left: 22px; }

.meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.toc {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin: 20px 0 8px;
}
.toc ol { margin: 0; }
.toc li { margin: 2px 0; }

.box {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin: 16px 0;
}
.box.accent { border-left: 4px solid var(--thread); }

.table-scroll { overflow-x: auto; margin: 12px 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--card); }

/* Unfilled information. Search the HTML for class="todo" before publishing. */
.todo {
  background: var(--todo-bg); color: var(--todo-ink);
  padding: 0 4px; border-radius: 4px; font-weight: 600;
}

/* Home */
.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.hero h1 { font-size: 36px; margin-top: 18px; }
.hero .tag { color: var(--muted); font-size: 18px; margin: 0 auto 22px; max-width: 520px; }
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 12px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 36px 0; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.feature b { display: block; margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: 15px; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 20px 0 32px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site a { color: var(--muted); }
