:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: #fbfaf7; color: #102a43; font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
header { height: 68px; display: flex; align-items: center; border-bottom: 1px solid #e7ebef; background: #fff; }
header a, main { width: min(720px, calc(100% - 36px)); margin: auto; }
header img { display: block; width: 150px; height: auto; }
main { padding: 36px 0 80px; }
.back { color: #486581; text-decoration: none; font-weight: 700; }
.story-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.language-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.language-nav a { padding: 6px 9px; border-radius: 999px; color: #486581; font-size: 13px; font-weight: 700; text-decoration: none; }
.language-nav a:hover { background: #edf4fb; color: #075985; }
.language-nav a[aria-current="page"] { background: #102a43; color: #fff; }
.kicker { margin: 32px 0 8px; color: #f15a4a; font-weight: 800; }
h1 { margin: 0; font-size: clamp(32px, 7vw, 52px); line-height: 1.16; letter-spacing: -.04em; }
.episode { font-weight: 800; }
.lead { margin: 22px 0; padding: 18px 20px; background: #fff3ef; border-left: 4px solid #f15a4a; font-size: 19px; line-height: 1.7; }
article { font-size: 18px; line-height: 1.85; }
article h2, article h3, article h4 { margin: 32px 0 10px; font-size: 1.08em; }
article a { color: #075985; }
.mag-fact { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #e5f5ee; font-size: .78em; font-weight: 800; }
.app-link { margin-top: 46px; }
.app-link a { display: block; padding: 16px 20px; border-radius: 14px; background: #102a43; color: #fff; text-align: center; text-decoration: none; font-weight: 800; }
.story-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.story-nav a { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px; border: 1px solid #d9e2ec; border-radius: 14px; background: #fff; color: #102a43; text-decoration: none; }
.story-nav .next { text-align: right; }
.story-nav small { color: #486581; font-weight: 700; }
.story-nav strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive { width: min(1040px, calc(100% - 36px)); }
.archive h1 { margin-top: 30px; }
.archive-intro { max-width: 680px; color: #486581; font-size: 18px; line-height: 1.7; }
.story-search { display: flex; gap: 10px; max-width: 680px; margin: 24px 0 12px; }
.story-search input { min-width: 0; flex: 1; border: 1px solid #d9e2ec; border-radius: 14px; background: #fff; color: #102a43; font: inherit; padding: 13px 16px; }
.story-search input:focus { outline: 3px solid rgba(20, 115, 230, .18); border-color: #1473e6; }
.story-search button { border: 0; border-radius: 14px; background: #1473e6; color: #fff; font: inherit; font-weight: 800; padding: 0 22px; cursor: pointer; }
.search-result { color: #486581; margin: 0 0 22px; }
.search-result a { color: #075985; font-weight: 700; margin-left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 30px 0; padding: 0; list-style: none; }
.story-grid a { display: grid; grid-template-columns: 36px 1fr; gap: 3px 10px; height: 100%; padding: 18px; border: 1px solid #e1e7ec; border-radius: 14px; background: #fff; color: #102a43; text-decoration: none; }
.story-grid a:hover { border-color: #1473e6; }
.story-grid span { grid-row: 1 / 3; font-size: 24px; }
.story-grid small { color: #627d98; }
.story-grid strong { line-height: 1.45; }
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.pagination a { color: #075985; text-decoration: none; font-weight: 800; }
@media (max-width: 600px) {
  main { padding-top: 26px; }
  article { font-size: 17px; }
  .story-toolbar { align-items: flex-start; flex-direction: column; }
  .language-nav { justify-content: flex-start; }
  .story-search button { padding: 0 18px; }
  .story-nav { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
}
