/* Hallyu60 — mobile-first, text-graphic style, no people images */
:root {
  --ink: #111; --paper: #fafaf7; --muted: #666; --line: #e3e1da;
  --accent: #ff3d6e; --accent-2: #2b50ff; --card: #fff;
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-zh: "Noto Sans TC", "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-en); font-size: 17px; line-height: 1.65; }
body.lang-zh-tw, [lang="zh-Hant-TW"] { font-family: var(--font-zh); line-height: 1.85; letter-spacing: .02em; }
/* CJK 줄바꿈: 문장부호가 줄 첫머리에 오지 않게(strict), 라틴 단어는 중간에서 끊지 않음, 긴 URL만 강제 줄바꿈 */
body.lang-zh-tw { line-break: strict; word-break: normal; overflow-wrap: break-word; text-autospace: normal; }
body.lang-zh-tw .hero-title { letter-spacing: .04em; }
body.lang-zh-tw .story-head .story-cat, body.lang-zh-tw .section-title, body.lang-zh-tw .story h3, body.lang-zh-tw .hero-kicker, body.lang-zh-tw .info-block dt { letter-spacing: .06em; text-transform: none; }
body.lang-zh-tw [lang="en"] { font-family: var(--font-en); }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
img { max-width: 100%; height: auto; }

.example-banner { background: #ffe14d; color: #111; text-align: center; font-weight: 700; font-size: .85rem; padding: .4rem 1rem; }

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .8rem 1rem; border-bottom: 2px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 900; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.nav { display: flex; gap: .9rem; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--accent); }
.lang-switch { border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 .6rem; }

.main { max-width: 760px; margin: 0 auto; padding: 1rem; }

/* text-graphic hero */
.hero { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.2rem 1.4rem; margin: .5rem 0 1.5rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--accent); opacity: .9; }
.hero > * { position: relative; z-index: 1; }
.hero-kicker { margin: 0 0 .4rem; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffd0dc; }
.hero-title { font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 900; letter-spacing: -.02em; margin: 0; }
.hero-sub { margin: .6rem 0 0; color: #ddd; max-width: 34em; }

.section-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-top: 2rem; }
.cta { margin: 0 0 1.5rem; }
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; padding: .65rem 1.1rem; border-radius: 999px; text-decoration: none; }
.btn:hover { color: #fff; background: #e02a5a; }

/* stories */
.story { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.2rem; scroll-margin-top: 4.5rem; }
.story-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.story-num { font-size: 2.2rem; font-weight: 900; line-height: 1; color: var(--accent); }
.story-cat { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: #f0eefe; color: var(--accent-2); border-radius: 6px; padding: .1rem .45rem; }
.story-summary p { font-size: 1.08rem; margin: 0 0 .6rem; }
.story-work { font-size: .92rem; color: var(--muted); }
.story h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1rem 0 .3rem; }
.story-bg p { margin: 0 0 .5rem; }
.story-comment { border-left: 4px solid var(--accent); background: #fff5f8; padding: .3rem .9rem .5rem; border-radius: 0 8px 8px 0; margin-top: 1rem; }
.story-comment p { margin: .2rem 0; font-style: italic; }
.story-sources ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; }
.muted { color: var(--muted); font-size: .85rem; font-style: normal !important; }

.short { margin: 1rem 0 0; }
.short-frame { position: relative; width: 100%; max-width: 340px; aspect-ratio: 9 / 16; margin: 0 auto; background: #000; border-radius: 12px; overflow: hidden; }
.short-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.short figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: .4rem; }

.pager { display: flex; justify-content: space-between; margin: 1.5rem 0; font-weight: 700; }

/* index */
.day-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.day-card.is-latest { border: 2px solid var(--ink); }
.day-card h2 { font-size: 1.2rem; }
.day-card h2 a { color: var(--ink); text-decoration: none; }
.day-card ol { margin: 0; padding-left: 1.2rem; }
.day-card li { margin-bottom: .35rem; }
.day-card li a { color: var(--ink); text-decoration: none; }
.day-card li a:hover { color: var(--accent); }
.badge { background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 4px; padding: .1rem .4rem; vertical-align: middle; text-transform: uppercase; }
.work-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.work-list a { display: inline-block; border: 1.5px solid var(--ink); border-radius: 999px; padding: .25rem .8rem; color: var(--ink); text-decoration: none; font-weight: 600; }

/* work page */
.info-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.info-block dl { margin: 0; }
.info-block dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .6rem; }
.info-block dd { margin: .1rem 0 0; }
.info-block ul { margin: 0; padding-left: 1.1rem; }
.tbd { color: var(--muted); font-style: italic; }
.news-list { padding-left: 1.2rem; }
.news-list li { margin-bottom: .6rem; }
.news-list time { font-weight: 700; color: var(--ink); margin-right: .3rem; }

.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.prose h2 { font-size: 1.15rem; margin-top: 1.4rem; }

.ad-slot { margin: 1.2rem 0; }
.ad-slot:empty { display: none; }

.site-footer { border-top: 2px solid var(--ink); margin-top: 2.5rem; padding: 1.5rem 1rem 2.5rem; text-align: center; font-size: .88rem; color: var(--muted); }
.footer-name { font-weight: 900; color: var(--ink); margin: 0 0 .5rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; margin-bottom: .6rem; }
.footer-links a { color: var(--ink); }
.footer-note { max-width: 36em; margin: 0 auto .4rem; }
.footer-copy { margin: 0; }

@media (min-width: 720px) {
  .main { padding: 1.5rem; }
  .hero { padding: 2.4rem 2rem 2rem; }
  .story { padding: 1.6rem; }
}

/* official image (only when credit is present) */
.official-image { margin: 0 0 .9rem; }
.official-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #eee; }
.image-credit { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.schedule { list-style: none; padding: 0 !important; margin: 0; }
.schedule .k { display: inline-block; min-width: 6.5em; color: var(--muted); font-size: .85rem; }

/* social links */
.footer-social, .about-social { list-style: none; padding: 0; margin: 0 0 .7rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .6rem; }
.about-social { justify-content: flex-start; }
.footer-social a, .about-social a { display: inline-block; border: 1.5px solid var(--ink); border-radius: 999px; padding: .15rem .7rem; color: var(--ink); text-decoration: none; font-size: .85rem; }
.sns-platform { font-weight: 800; }

/* draft preview only */
.draft-banner { position: sticky; top: 0; z-index: 50; background: #d0021b; color: #fff; text-align: center; font-weight: 900; font-size: 1.25rem; letter-spacing: .02em; padding: .7rem 1rem; border-bottom: 4px solid #7a0010; }
.draft-banner small { display: block; font-size: .75rem; font-weight: 600; opacity: .9; }
.draft-banner ~ .site-header { top: 3.6rem; }
.draft-status { margin-left: auto; font-size: .75rem; font-weight: 800; background: #ffe0e3; color: #b00016; border: 1.5px solid #d0021b; border-radius: 6px; padding: .1rem .45rem; }
.draft-status.is-approved { background: #e3f7e8; color: #0a6b2c; border-color: #0a6b2c; }
.outlets { font-size: .92rem; margin: 0 0 .3rem; }

/* 하루 쇼츠 영상 (9:16) — 모바일 전체 폭, 데스크톱 최대 360px 가운데 */
.day-video { margin: 0 auto 1.5rem; max-width: 360px; width: 100%; }
.day-video-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; }
.day-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.day-video figcaption { text-align: center; margin-top: .5rem; font-size: .9rem; }
@supports not (aspect-ratio: 9 / 16) { .day-video-frame { height: 0; padding-top: 177.78%; } }
