:root {
  color-scheme: light dark;
  --canvas: #F6F3EE;
  --surface: #EDE8E0;
  --text: #1C1A18;
  --text-secondary: #6B6660;
  --rule: #DAD3C8;
  --link: #9A7330;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #120E0B;
    --surface: #1E1915;
    --text: #F2EFE9;
    --text-secondary: #8F867B;
    --rule: #3A322B;
    --link: #D2A45A;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Hiragino Sans", "Noto Sans KR", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}
html:lang(ko) body { word-break: keep-all; }
html:lang(de) body { hyphens: auto; }
main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 32px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left));
}
nav.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 15px;
  margin-bottom: 32px;
}
nav.top ul { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; }
nav.top a[aria-current="page"] { color: var(--text); text-decoration: none; font-weight: 600; }
h1 { font-size: 28px; line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 20px; line-height: 1.4; margin: 40px 0 12px; }
h3 { font-size: 17px; margin: 24px 0 8px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 1.3em; }
li { margin-bottom: 6px; }
a { color: var(--link); }
.effective { color: var(--text-secondary); margin-bottom: 24px; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
tbody th { font-weight: 600; width: 30%; }
section.weather { background: var(--surface); border-radius: 12px; padding: 4px 16px 8px; margin: 16px 0; }
footer { margin-top: 48px; color: var(--text-secondary); font-size: 14px; }
