/* Tny Note theme B: white paper + three-color ballpoint (04_tny-note/DESIGN.md) */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --surface: #F6F7F9;
  --surface2: #ECEEF2;
  --border: #DCDFE5;
  --text: #15171C;
  --text2: #4C525C;
  --ink: #1C2030;
  --accent: #1D4ED8;
  --red: #C81E2A;
  --hl: #DCE7FF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121419;
    --surface: #191C22;
    --surface2: #232730;
    --border: #313641;
    --text: #ECEEF3;
    --text2: #ADB3BE;
    --ink: #E4E7EE;
    --accent: #82A8FF;
    --red: #FF6E73;
    --hl: #26396A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Noto Sans KR", Roboto, sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; }
.brand img { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); }
.lang { font-size: 14px; color: var(--text2); }

main { padding: 48px 0 64px; }

.hero { text-align: left; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; border: 1px solid var(--border); display: block; }
.hero h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.2; margin: 24px 0 12px; letter-spacing: -0.01em; }
.hero p.lede { font-size: 19px; color: var(--text2); margin: 0 0 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  background: var(--hl); border-radius: 999px; padding: 4px 12px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.platforms { color: var(--text2); font-size: 15px; margin-top: 14px; }

.features { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 18px 16px; }
.features h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.features h3::before { content: "\2713"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.features p { margin: 0; font-size: 15px; color: var(--text2); }

/* legal pages */
.doc h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
.doc .meta { color: var(--text2); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 20px; margin: 40px 0 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.doc h3 { font-size: 16px; margin: 24px 0 6px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px 14px 38px; font-size: 15px; }
.table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); font-weight: 600; }
.doc td:first-child, .doc th:first-child { min-width: 6em; }
.doc code { overflow-wrap: anywhere; }

footer.site { border-top: 1px solid var(--border); padding: 24px 0 40px; font-size: 14px; color: var(--text2); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer.site a { color: var(--text2); }
footer.site a:hover { color: var(--accent); }
