/* PulzNews 홈페이지 — 방향: 통신사 편집국. 잉크 무채색 지면에 색은 뉴스 장면 사진만.
   시그니처는 로고의 맥박 선(날짜 줄·섹션 제목에만).
   간격·글자·모서리·움직임 값은 unslop(Damir Sokolovsky, @heydamir, CC BY 4.0) tokens를 따른다 */

:root {
  --bg: #f6f5f2;          /* 지면 */
  --card: #ffffff;
  --raised: #edebe6;
  --line: rgba(20, 19, 17, .08);
  --line2: rgba(20, 19, 17, .16);
  --t1: #141311;          /* 잉크 */
  --t2: #524f49;
  --t3: #6e6a63;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Pretendard Variable", Pretendard, -apple-system, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --wrap: 1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--t1);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  word-break: keep-all; overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--t1); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h3 { text-wrap: balance; }
.t3 { color: var(--t3); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }


/* 머리 */
.top { background: var(--bg); }
.top-in { height: 64px; display: flex; align-items: center; gap: 12px; }
.logo img { height: 28px; width: auto; }
.edition { font-size: 14px; color: var(--t2); padding-left: 12px; border-left: 1px solid var(--line2); line-height: 20px; }
.nav { display: flex; gap: 24px; margin-left: 40px; font-size: 15px; color: var(--t2); }
.nav a, .switch, .foot-nav a { transition: color 150ms var(--ease); }
.nav a:hover, .switch:hover, .foot-nav a:hover { color: var(--t1); }
.switch { font-size: 14px; color: var(--t2); }
.search { position: relative; display: flex; align-items: center; }
.top .search { margin-left: auto; margin-right: 16px; }
.search .ic { position: absolute; left: 12px; width: 16px; height: 16px; fill: none; stroke: var(--t3); stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 240px; height: 36px; padding: 0 12px 0 36px; border: 1px solid var(--line2); border-radius: 8px;
  background: var(--card); color: var(--t1); font: 400 14px/20px var(--sans); transition: border-color 150ms var(--ease);
}
.search input::placeholder { color: var(--t3); }
.search input:focus { outline: none; border-color: var(--t1); }
.search-sm { display: none; margin-left: auto; margin-right: 16px; }
.search-sm .ic { width: 18px; height: 18px; fill: none; stroke: var(--t1); stroke-width: 1.5; stroke-linecap: round; display: block; }

/* 검색 페이지 */
.search-page { padding-top: 48px; }
.search-page h1 { font-size: 28px; line-height: 36px; font-weight: 600; }
.search-big { margin-top: 20px; gap: 8px; }
.search-big input { flex: 1; width: auto; height: 44px; font-size: 16px; }
.search-big button { height: 44px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--t1); color: #fff; font: 500 15px/20px var(--sans); cursor: pointer; transition: transform 120ms var(--ease); }
.search-big button:active { transform: scale(.98); }
.result-line { margin-top: 24px; padding-bottom: 8px; border-bottom: 1px solid var(--t1); font-size: 14px; line-height: 20px; }

/* 날짜 줄 */
.dateline { border-top: 1px solid var(--t1); border-bottom: 1px solid var(--line2); }
.dateline-in { height: 40px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.dateline-date { display: inline-flex; align-items: center; gap: 8px; color: var(--t2); }
.pulse { width: 20px; height: 14px; flex: none; color: var(--t1); }

/* 사진 틀 */
.media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--raised); }
.media img, .media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.media.tall { aspect-ratio: 4 / 5; }
.media.tall.yt { aspect-ratio: 9 / 16; }
.dur {
  position: absolute; right: 8px; bottom: 8px; padding: 4px 6px; border-radius: 4px;
  background: rgba(14, 13, 12, .78); color: #fff; font: 500 12px/16px var(--mono);
}
.credit { font-size: 12px; line-height: 16px; color: var(--t3); }
.kicker { font-size: 13px; line-height: 20px; color: var(--t3); }

/* 톱 소식 */
.lead { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.lead-figure .credit { margin-top: 8px; }
.lead-text .kicker { margin-bottom: 12px; }
.lead h1 { font-size: 38px; line-height: 1.26; font-weight: 600; letter-spacing: -.02em; }
.lead-sum { margin-top: 20px; font-size: 17px; line-height: 28px; color: var(--t2); max-width: 36rem; }
.lead h1 a, .row h3 a, .short h3 a { transition: color 150ms var(--ease); }
.lead h1 a:hover, .row h3 a:hover, .short h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* 섹션 제목 */
.sec { display: flex; align-items: center; gap: 8px; padding: 16px 0 4px; border-top: 1px solid var(--t1); font-size: 16px; line-height: 24px; font-weight: 600; }
.sec-count { margin-left: 4px; font-weight: 400; font-size: 14px; }

/* 최신 소식 + 옆 칸 */
.cols { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.rows { list-style: none; padding: 0; }
.row { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .media { border-radius: 8px; }
.row h3 { margin-top: 4px; font-size: 19px; line-height: 28px; font-weight: 500; letter-spacing: -.01em; }
.row .sum {
  margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--t2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row .credit { margin-top: 8px; }

.side { position: sticky; top: 24px; }
.regions { list-style: none; padding: 8px 0 0; }
.regions a { display: flex; justify-content: space-between; align-items: center; height: 44px; border-bottom: 1px solid var(--line); font-size: 15px; transition: color 150ms var(--ease); }
.regions a:hover span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* 쇼츠 줄 */
.shorts-sec { margin-top: 64px; }
.shorts {
  list-style: none; padding: 16px 0 16px; display: grid; grid-auto-flow: column; grid-auto-columns: 184px; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line2) transparent;
}
.short { scroll-snap-align: start; }
.short h3 {
  margin-top: 12px; font-size: 14px; line-height: 20px; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.short .credit { margin-top: 4px; }

/* 소식 한 편 */
.article { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 0; }
.article h1 { margin-top: 8px; font-size: 34px; line-height: 1.32; font-weight: 600; letter-spacing: -.02em; }
.player { margin-top: 32px; }
.player .credit { margin-top: 8px; }
.is-short .player .media { max-width: 400px; }
.body { margin-top: 32px; }
.body p { font-size: 17px; line-height: 30px; margin-top: 20px; }
.body p:first-child { margin-top: 0; }
.body h2 { margin-top: 40px; font-size: 20px; line-height: 28px; font-weight: 600; }
.body ul { margin-top: 16px; padding-left: 20px; }
.body li { font-size: 17px; line-height: 28px; margin-top: 8px; }
.parent { margin-top: 32px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; line-height: 24px; }
.body a.mail, .parent a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sources { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line2); }
.sources h2 { font-size: 14px; line-height: 20px; font-weight: 600; }
.sources ul { list-style: none; padding: 0; margin-top: 8px; }
.sources li { font-size: 13px; line-height: 20px; color: var(--t2); margin-top: 8px; }

/* 바닥 */
.foot { margin-top: 96px; border-top: 1px solid var(--line2); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 16px 48px; padding-top: 32px; padding-bottom: 40px; font-size: 13px; line-height: 20px; color: var(--t2); }
.foot-brand img { height: 20px; width: auto; margin-bottom: 12px; }
.foot-brand p + p { margin-top: 4px; }
.foot-nav { display: flex; gap: 24px; }

/* 바이라인·오피니언 */
.byline { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--t2); }
.byline-end { margin-top: 32px; font-size: 14px; line-height: 20px; color: var(--t2); }
.byline-end a { color: var(--t3); }
.opinion-sec { margin-top: 64px; }
.ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 8px; }
.op-card { padding: 20px 0 0; border-top: 1px solid var(--line2); }
.op-card h3 { margin-top: 4px; font-size: 20px; line-height: 28px; font-weight: 500; }
.op-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.op-card .sum { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--t2); }
.more-ops { margin-top: 56px; }
.more-ops .op-card h3 { font-size: 17px; line-height: 26px; }
.counter { margin-top: 48px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.counter h2 { margin-top: 4px; font-size: 20px; line-height: 28px; font-weight: 500; }
.counter h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.counter .sum { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--t2); }
.row.no-media { grid-template-columns: 1fr; }
@media (max-width: 860px) { .ops { grid-template-columns: 1fr; gap: 0; } }

/* 목록(GeekNews식) */
.feed-wrap { max-width: 920px; padding-top: 32px; }
.feed-h { font-size: 26px; line-height: 34px; font-weight: 600; }
.feed-sub { margin-top: 4px; margin-bottom: 8px; font-size: 14px; line-height: 20px; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed-n { color: var(--t3); font-size: 14px; line-height: 24px; text-align: right; padding-right: 8px; }
.feed-title { font-size: 17px; line-height: 24px; font-weight: 500; }
.feed-play { display: inline-block; margin-right: 6px; font-size: 11px; color: var(--t2); vertical-align: 1px; }
.feed-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.feed-dom { margin-left: 6px; font-size: 13px; color: var(--t3); }
.feed-meta { margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--t3); }
.feed-empty { padding: 32px 0; }
.body.gn ul { margin-top: 12px; padding-left: 20px; }
.body.gn li { font-size: 16px; line-height: 27px; margin-top: 8px; }
.body.gn li ul { margin-top: 4px; }
.body.gn li li { font-size: 15px; line-height: 25px; color: var(--t2); }
.body.gn h2 { margin-top: 36px; }
.body.gn h2 + p { margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--t3); }

/* 뉴스(이슈 해설) 페이지 */
.news-lead h1 { font-size: 34px; line-height: 1.3; }
.news-core { list-style: none; padding: 0; margin: 16px 0 0; }
.news-core li { position: relative; padding-left: 14px; margin-top: 8px; font-size: 16px; line-height: 26px; color: var(--t2); }
.news-core li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--t1); }
.news-src { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--t3); }
.news-list { margin-bottom: 16px; }
.news-list .rows { max-width: 920px; }
.item .player { margin-top: 24px; }

/* 해외 반응: 출처 */
.rsrc { font-size: 12px; color: var(--t3); white-space: nowrap; }

/* 처음 한 번만: 본문이 살짝 떠오름 */
@media (prefers-reduced-motion: no-preference) {
  main { animation: rise 400ms var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}

/* 태블릿 */
@media (max-width: 1024px) {
  .lead { grid-template-columns: 1fr 1fr; gap: 32px; }
  .lead h1 { font-size: 30px; }
  .search input { width: 180px; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .side { position: static; padding-top: 32px; }
}

/* 휴대폰 */
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .top-in { height: 56px; }
  .logo img { height: 22px; }
  .nav { margin-left: auto; gap: 16px; }
  .search-page { padding-top: 24px; }
  .hide-sm { display: none; }
  .top .search { display: none; }
  .search-sm { display: block; margin-left: 16px; margin-right: 0; }
  .switch { margin-left: 16px; }
  .search-page .search { display: flex; }
  .lead { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; padding-bottom: 40px; }
  .lead h1 { font-size: 26px; line-height: 1.32; }
  .lead-sum { font-size: 16px; line-height: 26px; margin-top: 12px; }
  .row { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 16px 0; }
  .row h3 { font-size: 16px; line-height: 24px; }
  .row .sum { display: none; }
  .feed-row { grid-template-columns: 24px minmax(0, 1fr); }
  .feed-title { font-size: 16px; }
  .row .dur { right: 4px; bottom: 4px; }
  .shorts { grid-auto-columns: 148px; gap: 12px; }
  .article { padding-top: 24px; }
  .article h1 { font-size: 26px; }
  .body p, .body li { font-size: 16px; line-height: 28px; }
  .foot-in { grid-template-columns: 1fr; }
}
