* { box-sizing:border-box; }
body { margin:0; background:#fff; color:#182636; font:1rem/1.75 -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif; word-break:keep-all; }
header { padding:16px max(6vw,22px); border-bottom:1px solid #e1e8ed; }
header img { display:block; width:154px; }
article { max-width:720px; margin:0 auto; padding:clamp(44px,8vw,90px) 22px 70px; }
h1,h2 { color:#122b40; line-height:1.28; letter-spacing:-.045em; }
h1 { margin:8px 0 24px; font-size:clamp(2rem,5vw,3.2rem); }
h2 { margin:42px 0 10px; font-size:clamp(1.3rem,3vw,1.65rem); }
p { margin:0 0 1em; }
.topic { color:#1768aa; font-weight:700; margin:0 0 8px; }
.intro { font-size:1.12rem; }
figure { margin:30px 0; }
figure img { display:block; width:100%; height:auto; border-radius:18px; }
aside { background:#edf5fc; border-radius:16px; padding:20px 24px; margin:36px 0 24px; }
aside p { margin:6px 0 0; }
footer { border-top:1px solid #dce5eb; padding-top:18px; font-size:.92rem; color:#465e71; }
a { color:#075c9c; }
dialog { color:inherit; width:min(420px,calc(100% - 32px)); max-height:90dvh; overflow:auto; padding:30px; border:1px solid #d4e1ed; border-radius:24px; box-shadow:0 20px 84px #142d5140; }
dialog::backdrop { background:#172b43a8; backdrop-filter:blur(5px); }
.map-icon { display:block; background:#eef6ff; padding:9px; box-sizing:content-box; border-radius:17px; margin:0 0 18px; }
dialog h2 { margin:6px 0 14px; font-size:1.65rem; } dialog p { color:#3c5060; }
dialog button { border:0; border-radius:10px; padding:14px; width:100%; background:#1769a9; color:white; font:inherit; font-weight:700; cursor:pointer; }
:focus-visible { outline:3px solid #349bf0; outline-offset:3px; }
header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
header a { color:#193750; font-weight:650; text-decoration:none; }
.byline { color:#516575; font-size:.91rem; margin-bottom:1.25rem; }
article footer h2 { font-size:1.15rem; margin:24px 0 8px; }
article footer ul { padding-left:1.2rem; }
.library { max-width:1040px; margin:auto; padding:clamp(44px,7vw,80px) 22px; }
.library>.intro { color:#495f73; }
.library-tools { margin:25px 0 18px; display:flex; align-items:end; flex-wrap:wrap; gap:12px 24px; }
.library-tools label { display:grid; gap:4px; font-weight:650; }
.library-tools input { border:1px solid #b5c6d5; border-radius:9px; padding:9px 12px; font:inherit; min-width:0; max-width:100%; }
.filters { display:flex; gap:5px; flex-wrap:wrap; }
.filters button { font:inherit; font-size:.88rem; border:1px solid #d0dce7; background:white; color:#244761; border-radius:30px; padding:8px 13px; cursor:pointer; }
.filters button[aria-pressed=true] { background:#183c59; color:white; border-color:#183c59; }
.shelf { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.story { display:block; position:relative; padding:24px; border:1px solid #d7e2ec; border-radius:16px; color:inherit; text-decoration:none; overflow:hidden; }
.story:hover { border-color:#779ebd; background:#f5f9fd; }
.story .topic { font-size:.86rem; }
.story h2 { margin:.45rem 0; font-size:clamp(1.2rem,2.1vw,1.55rem); }
.story p { color:#425a70; margin:0; line-height:1.6; font-size:.97rem; }
.story:has(.cover) { grid-column:1/-1; padding-right:calc(38% + 22px); min-height:190px; align-content:center; }
.cover { position:absolute; right:0; top:0; width:38%; height:100%; object-fit:cover; }
[hidden] { display:none!important; }
@media(max-width:640px) {
  .shelf { grid-template-columns:1fr; }
  .story:has(.cover) { padding:20px; }
  .cover { position:static; width:calc(100% + 40px); max-width:none; height:155px; margin:-20px -20px 12px; display:block; }
  .story { padding:20px; }
}
