/* 색과 글꼴은 편집기 화면(packages/editor/src/style.css, apps/client/src/style.css)의 값을 그대로 쓴다. */
:root {
  --wb-ui:
    "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  --wb-border: #ddd;
  --wb-ink: #1e1e1e;
  --wb-accent: #4f46e5;
  --wb-paper: #fff;
  --muted: #626267;
  --panel: #f7f7f8;
  --action: #3858e9;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--wb-ui);
  font-size: 16px;
  line-height: 1.7;
  color: var(--wb-ink);
  background: var(--wb-paper);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
a {
  color: var(--action);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: 2px;
}
.top {
  border-bottom: 1px solid var(--wb-border);
}
.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.beta {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--wb-border);
  border-radius: 4px;
  padding: 0 6px;
}
.top nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
}
.top nav a {
  color: var(--wb-ink);
  text-decoration: none;
  padding: 6px 0;
}
.top nav a:hover {
  text-decoration: underline;
}
/* .wrap의 좌우 여백 선언이 위아래 여백을 0으로 덮지 않도록 .wrap인 구역도 함께 적는다. */
main > section,
main > section.wrap {
  padding-top: 56px;
  padding-bottom: 56px;
}
.band {
  background: var(--panel);
  border-top: 1px solid var(--wb-border);
  border-bottom: 1px solid var(--wb-border);
}
h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 0 0 20px;
  max-width: 18em;
}
h2 {
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}
h3 {
  font-size: 17px;
  margin: 0 0 6px;
}
p,
ul,
ol {
  margin: 0 0 16px;
}
.lead {
  font-size: 18px;
  color: #3a3a3f;
  max-width: 40em;
}
.facts {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
}
.facts li {
  padding: 10px 0;
  border-top: 1px solid var(--wb-border);
  max-width: 40em;
}
.facts li:last-child {
  border-bottom: 1px solid var(--wb-border);
}
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px 48px;
}
.columns ul {
  padding-left: 20px;
}
.note {
  color: var(--muted);
  font-size: 14px;
}
.notice {
  border: 1px solid var(--wb-border);
  border-left: 3px solid var(--wb-ink);
  border-radius: 4px;
  background: var(--wb-paper);
  padding: 14px 16px;
  margin-top: 24px;
  max-width: 46em;
}
.steps {
  padding-left: 22px;
  max-width: 44em;
}
.steps li {
  margin-bottom: 8px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 8px;
}
.button {
  display: inline-block;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--action);
  border-radius: 6px;
  background: var(--action);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  filter: brightness(0.96);
}
.button.secondary {
  background: var(--wb-paper);
  color: var(--wb-ink);
  border-color: #b8b8b8;
  font-weight: 400;
}
.status {
  min-height: 1.7em;
  font-size: 14px;
  color: var(--muted);
}
details {
  margin: 8px 0 20px;
}
summary {
  cursor: pointer;
  padding: 6px 0;
}
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #c9c9ce;
  border-radius: 6px;
  background: var(--wb-paper);
  color: var(--wb-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}
.foot {
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}
.foot p {
  margin-bottom: 6px;
}
/* 개인정보·저장 안내(privacy.html)의 긴 글 */
a.name {
  color: inherit;
  text-decoration: none;
}
.prose > p,
.prose > ul {
  max-width: 46em;
}
.prose ul {
  padding-left: 20px;
}
.prose li {
  margin-bottom: 6px;
}
.prose h2 {
  margin-top: 40px;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 20px;
}
/* 설치 마법사(install.html) */
.wizard {
  padding-top: 40px;
  padding-bottom: 40px;
}
.wizard > .lead,
.wizard > p,
.wstep > p,
.wstep > ol {
  max-width: 44em;
}
.wprogress {
  font-weight: 600;
  min-height: 1.7em;
}
.wstep {
  border-top: 1px solid var(--wb-border);
  padding: 28px 0 8px;
}
.wstep h2:focus {
  outline: none;
}
.wstep h2:focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: 4px;
}
.wstep figure {
  margin: 0 0 20px;
}
.wstep img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--wb-border);
  border-radius: 6px;
}
.wstep figcaption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 0 24px;
  align-items: start;
}
.wcheck {
  background: var(--panel);
  border: 1px solid var(--wb-border);
  border-radius: 6px;
  padding: 16px;
  margin: 8px 0 16px;
  max-width: 44em;
}
.wq {
  font-weight: 600;
  margin-bottom: 0;
}
.wcheck .actions {
  display: none;
  margin: 12px 0 0;
}
.js .wcheck .actions {
  display: flex;
}
.whelp {
  max-width: 44em;
}
.whelp ul,
.whelp ol {
  padding-left: 20px;
}
.whelp li {
  margin-bottom: 10px;
}
.whelp figure {
  margin-top: 10px;
}
.wfoot {
  font-size: 14px;
}
.linklike {
  border: 0;
  padding: 0;
  background: none;
  color: var(--action);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
button.linklike:focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: 2px;
}
.wstep code {
  font-size: 0.9em;
  background: var(--panel);
  padding: 0 4px;
  border-radius: 3px;
}
