* { box-sizing: border-box; }
:root { --ink: #191f28; --sub: #505b68; --muted: #647181; --accent: #176de7; --line: #e8ebef; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: white; color: var(--ink); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #3182f6; outline-offset: 4px; border-radius: 2px; }
[hidden] { display: none !important; }
.wrap { width: min(100%, 984px); margin-inline: auto; padding-inline: 42px; }
.mast-in, .footer, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mast-in { height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 5px; font-size: 30px; font-weight: 700; letter-spacing: -.055em; line-height: 1; white-space: nowrap; }
.brand img { display: block; width: 28px; height: 28px; }
.date, .stamp, .meta, .footer, figcaption { color: var(--muted); font-size: 13px; }
h1, h2, p, ul, figure { margin: 0; }
main { min-height: 65vh; }
h1 { font-size: clamp(34px,4.2vw,46px); line-height: 1.27; letter-spacing: -.066em; font-weight: 600; }
.home-title { padding: 54px 0 21px; }
.toolbar { border-bottom: 1px solid #dce1e7; }
.tabs { display: flex; gap: 26px; }
.tabs a { font-size: 19px; font-weight: 690; padding: 8px 1px 12px; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs [aria-current] { color: var(--accent); border-color: var(--accent); }
.row { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 18px; padding-block: 26px; border-bottom: 1px solid var(--line); align-items: center; }
.row.has-photo { grid-template-columns: 34px minmax(0,1fr) 184px; }
.rank, .row-time { align-self: start; font-variant-numeric: tabular-nums; color: var(--muted); padding-top: 2px; font-size: 18px; font-weight: 620; letter-spacing: -.04em; }
.rank.first { color: var(--accent); }
.row-time { font-size: 12px; font-weight: 550; }
.topic { display: inline-block; color: #4a6179; background: #f0f4f7; padding: 2px 8px; border-radius: 5px; font-size: 12px; font-weight: 650; line-height: 1.55; }
.row h2 { margin: 6px 0 4px; font-size: 24px; line-height: 1.43; letter-spacing: -.048em; font-weight: 500; }
.row p { color: var(--sub); letter-spacing: -.022em; }
.row:hover h2, .back:hover { color: var(--accent); }
.thumb, .hero { width: 100%; object-fit: cover; border-radius: 10px; }
.thumb { aspect-ratio: 1.75; background: #f3f5f7; }
.announce { text-align: center; }
.announce a, #more { display: inline-block; background: #edf4ff; color: #145fbf; padding: 7px 15px; border-radius: 18px; font-size: 14px; font-weight: 650; }
.announce a { margin-top: 16px; }
.paging { text-align: center; }
#more, #feed-message:not(:empty) { margin: 20px 0; }
#feed-message { display: block; color: var(--muted); font-size: 14px; }
.empty { padding: 62px 0; }
.empty h2 { font-size: 21px; }
.empty p { margin-top: 8px; color: var(--muted); }
.empty a { color: var(--accent); }
.story { max-width: 700px; margin: auto; }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 28px 0 35px; color: var(--sub); font-size: 14px; }
.story h1 { margin: 12px 0 14px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.story-summary { margin: 32px 0; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.summary-label { color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.55; letter-spacing: -.015em; }
.lead { margin-top: 10px; color: #384453; font-size: 20px; line-height: 1.75; letter-spacing: -.028em; }
.story > figure { margin-top: 28px; }
.hero { display: block; height: auto; max-height: 520px; object-fit: contain; }
figcaption { margin-top: 4px; }
.photo-caption { display: block; margin-top: 6px; }
.photo-source { display: inline-block; margin-top: 3px; text-decoration: underline; text-underline-offset: 3px; }
.photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 30px 0; }
.supporting-image { display: block; width: 100%; height: auto; max-height: 320px; object-fit: contain; border-radius: 10px; }
.changes { margin: 24px 0; padding: 15px 18px; background: #f0f6ff; border-radius: 8px; }
.changes time { color: #286ab8; font-weight: 650; margin-right: 12px; white-space: nowrap; }
.changes p + p { margin-top: 7px; }
.related-section h2 { font-size: 22px; letter-spacing: -.045em; }
.article-body { margin: 30px 0; color: var(--sub); font-size: 18px; line-height: 1.85; }
.article-body h2, .article-body h3 { color: var(--ink); line-height: 1.45; letter-spacing: -.035em; }
.article-body h2 { margin: 34px 0 12px; font-size: 24px; }
.article-body h3 { margin: 25px 0 10px; font-size: 21px; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 14px 0; }
.article-body ul, .article-body ol { margin: 14px 0; padding-left: 1.4em; }
.article-body li + li { margin-top: 6px; }
.related-section { margin-block: 30px; }
.related-list, .related-empty { margin: 10px 0 0; padding: 0 18px; border-radius: 14px; background: #f5f6f8; }
.related-list { list-style: none; }
.related-list li + li { border-top: 1px solid #dce0e6; }
.related-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; }
.related-title { font-size: 16px; font-weight: 550; line-height: 1.5; }
.related-list a:hover .related-title, .related-list a:focus-visible .related-title { text-decoration: underline; }
.related-publisher, .related-empty { color: #5d6977; font-size: 13px; }
.related-publisher { flex-shrink: 0; max-width: 40%; text-align: right; }
.related-empty { padding-block: 13px; }
@media (max-width: 540px) {
  .related-list a { flex-direction: column; gap: 3px; }
  .related-publisher { max-width: 100%; text-align: left; }
}
.footer { margin-top: 35px; padding-block: 24px; border-top: 1px solid var(--line); }
.footer strong { color: #4d5966; }
.skip { position: absolute; top: -100px; background: white; padding: 8px; z-index: 1; }
.skip:focus { top: 3px; }
@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  .mast-in { height: 62px; }
  .brand { font-size: 26px; }
  .brand img { width: 24.64px; height: 24.64px; }
  .date, .stamp, .meta, .footer { font-size: 12px; }
  .home-title { padding: 30px 0 15px; }
  .tabs { gap: 23px; }
  .tabs a { font-size: 18px; }
  .row, .row.has-photo { grid-template-columns: 22px minmax(0,1fr); gap: 9px; padding-block: 20px; }
  .row.has-photo { grid-template-columns: 22px minmax(0,1fr) 76px; }
  .row:has(.row-time) { grid-template-columns: 32px minmax(0,1fr); }
  .row.has-photo:has(.row-time) { grid-template-columns: 32px minmax(0,1fr) 76px; }
  .row h2 { font-size: 19px; margin: 5px 0; }
  .row p { font-size: 15px; line-height: 1.56; }
  .rank { font-size: 15px; } .row-time { font-size: 11px; }
  .thumb { aspect-ratio: 1; }
  .story h1 { font-size: 33px; }
  .photo-gallery { grid-template-columns: 1fr; }
  .back { margin: 23px 0; }
  .story-summary { margin: 28px 0; padding-bottom: 28px; }
  .lead { font-size: 18px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 19px; }
  .changes { font-size: 14px; }
}
.login { max-width: 400px; margin: 50px auto; }
.login form { margin-top: 24px; }
.login p { margin-bottom: 12px; }
.login label { display: block; }
.login input, .login button { width: 100%; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; }
.login button { margin-top: 12px; background: var(--accent); color: white; }
