:root { color-scheme: light; --navy: #202a50; --orange: #ef7b24; --ink: #242936; --muted: #667085; --line: #e5e7eb; --background: #fafafb; --surface: #fff; --accent-background: #fff2e8; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); font: 16px/1.6 Pretendard, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body[data-view="article"] { background: var(--surface); }
:lang(en) { font-family: Pretendard, "Segoe UI", sans-serif; }
::selection { color: var(--navy); background: #ffe0c5; }
button, select, input { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button, input { caret-color: var(--navy); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 10; left: 20px; top: -100px; padding: 12px 20px; color: #fff; background: var(--navy); }
.skip-link:focus { top: 10px; }
.reader-shell { width: calc(100% - 80px); max-width: 1000px; margin: 0 auto; }
main { min-height: 360px; }
body[data-view="list"] main { padding-top: 24px; }
.story-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; list-style: none; margin: 0; padding: 0; }
.story-item { min-width: 0; }
.story-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.story-picture { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #eef0f4; }
.story-list .story-picture { aspect-ratio: 4 / 3; }
.story-picture img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease-out; }
.thumbnail-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: #667085; font-size: 13px; }
.thumbnail-fallback svg { width: 42px; height: 36px; }
.story-picture.has-image:not(.image-failed) .thumbnail-fallback { display: none; }
.story-picture.image-failed img { display: none; }
.story-content { display: flex; flex: 1; flex-direction: column; padding-top: 15px; }
.story-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; margin: 0; font-size: 20px; line-height: 1.5; font-weight: 600; letter-spacing: 0; text-wrap: pretty; word-break: normal; overflow-wrap: break-word; hyphens: none; }
.story-link:hover .story-title { color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.story-link:hover .story-picture img { transform: scale(1.025); }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 42px 0 48px; }
.page-gap { display: inline-flex; min-width: 20px; align-items: center; justify-content: center; color: var(--muted); }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 500; }
.page-link[aria-current="page"] { border-color: var(--orange); color: var(--navy); background: var(--accent-background); font-weight: 650; }
.page-link:hover:not([aria-current="page"]) { color: var(--navy); background: #f0f1f5; }
.back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--navy); font-size: 14px; text-decoration: none; }
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { text-decoration: underline; }
.reading-article { width: 100%; max-width: 1000px; margin: 24px auto 0; }
.article-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article-topbar > .back-link { flex: none; }
.article-header { margin-bottom: 28px; }
.article-title { margin: 0; color: var(--navy); font-size: 34px; line-height: 1.35; font-weight: 650; letter-spacing: 0; text-wrap: pretty; word-break: normal; overflow-wrap: break-word; hyphens: none; }
.article-hero { margin: 0 0 24px; }
.article-hero img { display: block; width: 100%; max-height: 480px; object-fit: contain; border-radius: 8px; background: #f4f5f7; }
.reading-tools { display: flex; min-width: 0; align-items: center; justify-content: flex-end; }
.reading-tools > div { display: flex; width: 100%; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.tool-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 1px solid #cdd1db; border-radius: 7px; color: var(--navy); background: var(--surface); font-size: 14px; white-space: nowrap; }
.tool-button svg { width: 18px; height: 18px; flex: none; }
.tool-button:hover:not(:disabled) { background: var(--accent-background); }
.tool-button[aria-expanded="true"] { border-color: var(--orange); background: var(--accent-background); }
.tool-button:disabled { color: var(--muted); background: #f4f5f7; cursor: default; }
.audio-panel { margin: -14px 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.audio-panel[hidden] { display: none; }
.audio-panel audio { display: block; width: 100%; height: 44px; }
.audio-status { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.audio-status:empty { display: none; }
.text-size { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 8px 12px; border: 1px solid #cdd1db; border-radius: 7px; background: var(--surface); color: var(--navy); font-size: 14px; }
.text-size svg { width: 18px; height: 18px; }
.text-size[aria-pressed="true"] { border-color: var(--orange); background: var(--accent-background); }
.article-body { max-width: 1000px; margin: 0 auto; color: var(--ink); font-size: 22px; line-height: 1.85; font-weight: 400; letter-spacing: 0; text-align: left; word-break: normal; overflow-wrap: break-word; hyphens: none; }
.article-body p { margin: 0 0 30px; }
.article-body.large-text { font-size: 25px; }
.article-body > figure { margin: 34px 0; }
.article-body > figure img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 8px; }
.translation { margin: 38px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.translation summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; color: var(--navy); font-size: 16px; font-weight: 600; }
.translation summary::-webkit-details-marker { display: none; }
.translation summary svg { width: 20px; height: 20px; transition: transform .2s ease-out; }
.translation[open] summary svg { transform: rotate(180deg); }
.translation-content { margin: 18px 0 0; color: var(--ink); font-size: 20px; line-height: 1.85; }
.translation-content h2 { margin: 0 0 18px; font-size: 19px; font-weight: 600; }
.translation-content p { margin: 0 0 22px; }
.article-bottom { display: flex; justify-content: center; padding: 28px 0 38px; border-top: 1px solid var(--line); }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 24px; border: 1px solid var(--navy); border-radius: 7px; color: var(--navy); background: var(--surface); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.button-link svg { width: 18px; height: 18px; flex: none; }
.button-link:hover { background: var(--accent-background); }
.page-state { padding: 90px 20px; text-align: center; color: var(--muted); }
.page-state h1 { margin: 0 0 12px; color: var(--navy); font-size: 26px; font-weight: 650; }
.page-state p { margin-bottom: 24px; }
@media (min-width: 768px) and (max-width: 1199px) {
  .reader-shell { width: calc(100% - 60px); }
  .story-list { gap: 30px 24px; }
  .story-title { font-size: 20px; }
  .article-title { font-size: 32px; }
  .article-body { font-size: 20px; }
  .article-body.large-text { font-size: 23px; }
  .translation-content { font-size: 18px; }
}
@media (max-width: 767px) {
  .reader-shell { width: calc(100% - 40px); }
  .story-list { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .story-content { padding-top: 14px; }
  .story-title { font-size: 20px; min-height: 0; -webkit-line-clamp: 3; }
  .pagination { margin: 32px 0 38px; }
  .back-link { font-size: 14px; }
  .reading-article { margin-top: 27px; }
  .article-topbar { flex-wrap: wrap; gap: 8px; margin-bottom: 24px; padding-bottom: 12px; }
  .article-topbar .reading-tools { flex-basis: 100%; }
  .article-title { font-size: 28px; line-height: 1.35; }
  .article-hero { margin-bottom: 24px; }
  .reading-tools > div { gap: 8px; }
  .text-size { font-size: 14px; }
  .text-size { padding: 8px 9px; }
  .article-body { font-size: 19px; }
  .article-body.large-text { font-size: 22px; }
  .article-body p { margin-bottom: 28px; }
  .translation-content { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@page { margin: 16mm 13mm; }
@media print {
  body { color: #000; background: #fff; }
  .skip-link, .article-topbar, .reading-tools, .audio-panel, .article-bottom { display: none !important; }
  .reader-shell { width: 100%; padding: 0; }
  .reading-article { width: 100%; max-width: none; margin: 0; }
  .article-header { margin-bottom: 16px; break-after: avoid; }
  .article-title { color: #000; font-size: 22pt; line-height: 1.35; }
  .article-hero, .article-body > figure { break-inside: avoid; margin: 16px 0; }
  .article-hero img, .article-body > figure img { max-height: 70mm; border-radius: 0; background: transparent; }
  .article-body, .article-body.large-text { color: #000; max-width: none; font-size: 12pt; line-height: 1.7; }
  .article-body p, .translation-content p { orphans: 3; widows: 3; }
  .translation { margin-top: 20px; }
  .translation:not([open]), .translation > summary { display: none; }
  .translation-content { color: #000; font-size: 11pt; line-height: 1.8; }
}
