/* 캐치노티 앱과 같은 색을 쓴다. 라이트와 다크 모두 글자 대비 4.5:1 이상이다. */
:root {
  color-scheme: light dark;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --text: #14181d;
  --muted: #5b6672;
  --border: #dce4ee;
  --link: #0a6fbf;
  --button: #0a6fbf;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1318;
    --surface: #1a2027;
    --text: #e6ebf0;
    --muted: #9aa6b2;
    --border: #2d343c;
    --link: #5ab0f2;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI",
    Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
}

.top,
main,
.bottom {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.lang {
  font-size: 15px;
}

main {
  padding-bottom: 24px;
}

.intro {
  padding: 28px 0 4px;
  text-align: center;
}

.app-icon {
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 8px 18px rgba(10, 70, 140, 0.2));
}

h1 {
  margin: 0 0 4px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h2 {
  margin: 36px 0 8px;
  font-size: 21px;
  line-height: 1.35;
}

h3 {
  margin: 24px 0 6px;
  font-size: 18px;
  line-height: 1.4;
}

.subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
}

.meta,
.note,
.operator {
  color: var(--muted);
  font-size: 15px;
}

.lead {
  font-size: 18px;
}

.card {
  margin: 16px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.card h2 {
  margin-top: 0;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  background: var(--button);
  color: #ffffff;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

details + details {
  border-top: 1px solid var(--border);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0 0 14px;
}

ul {
  padding-left: 1.2em;
}

li + li {
  margin-top: 6px;
}

dl {
  margin: 8px 0 16px;
}

dt {
  margin-top: 14px;
  font-weight: 600;
}

dd {
  margin: 2px 0 0;
}

.doc h1 {
  margin-top: 24px;
}

.operator {
  margin-top: 36px;
}

.bottom {
  padding-top: 16px;
  padding-bottom: 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 8px;
}

.bottom p {
  margin: 4px 0;
}

@media (min-width: 640px) {
  h1 {
    font-size: 34px;
  }

  .card {
    padding: 24px 28px;
  }
}
