:root { color-scheme: light; font-family: system-ui, sans-serif; color: #16392c; background: #f5f8f2; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
header, main, footer { width: min(100% - 32px, 1000px); margin: auto; }
header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0; }
.brand { font-size: 28px; font-weight: 800; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
nav a { display: inline-flex; min-height: 48px; align-items: center; }
a { color: #126442; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid #198555; outline-offset: 4px; border-radius: 4px; }
main { padding: 24px 0; min-height: 60vh; }
h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.15; margin: 12px 0 24px; overflow-wrap: anywhere; }
h2 { line-height: 1.3; margin: 0 0 12px; overflow-wrap: anywhere; }
p { overflow-wrap: anywhere; }
.intro { font-size: 19px; max-width: 740px; }
.label { color: #456153; font-size: 14px; }
.word-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 24px 0; }
article { padding: 24px; background: white; border: 1px solid #dce7da; border-radius: 16px; min-width: 0; }
.word-detail { margin-top: 20px; }
.word-detail h2 { margin-top: 28px; font-size: 22px; }
.meaning { font-size: 22px; }
.transaction { display: inline-block; overflow-wrap: anywhere; max-width: 100%; }
.pagination { justify-content: center; gap: 24px; }
footer { border-top: 1px solid #dce7da; padding: 24px 0 40px; font-size: 14px; }
@media (max-width: 480px) { article { padding: 18px; } nav { gap: 8px 16px; } }
