/*
Theme Name: OM-01 Editorial
Theme URI: https://www.incomepipeline365.com/
Author: OM-01
Description: A fast Korean editorial theme with a newsroom homepage and two-column article pages.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: om01-editorial
*/

:root {
  --ink: #16191d;
  --muted: #697078;
  --paper: #fff;
  --canvas: #f4f3ef;
  --line: #d9d8d2;
  --signal: #d9252a;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { display: block; height: auto; max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.site-shell { margin: 0 auto; max-width: var(--max); padding: 0 24px; }

.topline { background: #121417; color: #cfd3d7; font-size: 12px; letter-spacing: .02em; }
.topline-inner { align-items: center; display: flex; justify-content: space-between; min-height: 36px; }
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner { align-items: center; display: grid; grid-template-columns: 1fr auto 1fr; min-height: 112px; }
.site-brand { grid-column: 2; text-align: center; }
.site-brand .custom-logo { margin: auto; max-height: 64px; width: auto; }
.site-title { font-family: Georgia, "Times New Roman", "Noto Serif KR", serif; font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.site-tagline { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.masthead-mark { color: var(--signal); font-size: 12px; font-weight: 800; justify-self: end; letter-spacing: .1em; }
.nav-bar { background: var(--paper); border-bottom: 3px solid var(--ink); border-top: 1px solid var(--line); }
.nav-bar ul { display: flex; gap: 0; list-style: none; margin: 0; overflow-x: auto; padding: 0; }
.nav-bar a { display: block; font-size: 14px; font-weight: 750; padding: 15px 19px 13px; white-space: nowrap; }
.nav-bar a:hover, .nav-bar .current-menu-item > a { color: var(--signal); }

.breaking-strip { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 16px; padding: 14px 0; }
.breaking-label { background: var(--signal); color: white; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 4px 9px; }
.breaking-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newsroom { background: var(--paper); margin-top: 28px; padding: 28px; }
.section-kicker { align-items: center; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; margin: 0 0 20px; padding-bottom: 10px; }
.section-kicker h2 { font-family: Georgia, "Noto Serif KR", serif; font-size: 23px; letter-spacing: -.035em; margin: 0; }
.section-kicker span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.lead-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); }
.lead-story { border-right: 1px solid var(--line); padding-right: 28px; }
.story-image { aspect-ratio: 16/9; background: linear-gradient(135deg, #222 0%, #555 100%); margin-bottom: 18px; overflow: hidden; }
.story-image:empty { align-items: center; background: radial-gradient(circle at 72% 28%, #565c63 0, #292d32 36%, #15171a 100%); display: flex; justify-content: center; }
.story-image:empty::after { border-bottom: 1px solid rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.6); color: white; content: "EDITORIAL STORY"; font-family: Georgia, serif; font-size: 13px; font-weight: 700; letter-spacing: .22em; padding: 12px 18px; }
.story-image img { height: 100%; object-fit: cover; width: 100%; }
.story-category { color: var(--signal); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.lead-story h1 { font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.05em; line-height: 1.2; margin: 8px 0 12px; }
.story-summary { color: #4f555b; font-size: 15px; line-height: 1.7; margin: 0; }
.story-meta { color: var(--muted); font-size: 12px; margin-top: 15px; }
.side-headlines { display: grid; gap: 0; }
.side-story { border-bottom: 1px solid var(--line); padding: 0 0 18px; }
.side-story + .side-story { padding-top: 18px; }
.side-story h2 { font-family: Georgia, "Noto Serif KR", serif; font-size: 20px; letter-spacing: -.035em; line-height: 1.35; margin: 5px 0 8px; }
.side-story p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.article-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.article-card { border-top: 1px solid var(--line); padding-top: 14px; }
.article-card .story-image { margin-bottom: 12px; }
.article-card h3 { font-family: Georgia, "Noto Serif KR", serif; font-size: 20px; letter-spacing: -.035em; line-height: 1.4; margin: 6px 0 8px; }
.article-card p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.empty-newsroom { color: var(--muted); padding: 60px 0; text-align: center; }

.page-frame { margin-bottom: 48px; margin-top: 32px; }
.content-with-sidebar { align-items: start; display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr) 320px; }
.main-column, .sidebar-card { background: var(--paper); border: 1px solid var(--line); }
.main-column { padding: clamp(24px, 4vw, 54px); }
.article-header { border-bottom: 1px solid var(--line); margin-bottom: 28px; padding-bottom: 24px; }
.article-header h1 { font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(32px, 5vw, 50px); letter-spacing: -.055em; line-height: 1.2; margin: 9px 0 14px; }
.article-content h2 { border-left: 4px solid var(--signal); font-size: 25px; line-height: 1.4; margin: 44px 0 16px; padding-left: 14px; }
.article-content h3 { font-size: 21px; margin-top: 34px; }
.article-content p { margin: 0 0 1.25em; }
.article-content a { color: #1457a6; text-decoration: underline; text-underline-offset: 3px; }
.article-content ul, .article-content ol { padding-left: 1.35em; }
.article-content blockquote { border-left: 4px solid var(--line); color: #50565c; margin: 28px 0; padding: 2px 0 2px 22px; }
.article-content .wp-block-image { margin: 30px 0; }
.sidebar { display: grid; gap: 18px; }
.sidebar-card { padding: 22px; }
.sidebar-card h2, .widget-title { border-bottom: 2px solid var(--ink); font-size: 15px; margin: 0 0 14px; padding-bottom: 10px; }
.sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.sidebar-card li { border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; padding: 11px 0; }
.archive-title { border-bottom: 2px solid var(--ink); font-family: Georgia, "Noto Serif KR", serif; font-size: 32px; margin: 0 0 24px; padding-bottom: 15px; }
.archive-row { border-bottom: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 190px 1fr; padding: 20px 0; }
.archive-row .story-image { margin: 0; }
.archive-row h2 { font-family: Georgia, "Noto Serif KR", serif; font-size: 23px; line-height: 1.35; margin: 4px 0 8px; }
.pagination { margin-top: 28px; }

.site-footer { background: #17191c; color: #b8bdc2; margin-top: 60px; padding: 44px 0; }
.footer-inner { display: flex; gap: 24px; justify-content: space-between; }
.footer-title { color: white; font-family: Georgia, "Noto Serif KR", serif; font-size: 24px; font-weight: 800; }
.footer-copy { font-size: 12px; margin: 8px 0 0; }

@media (max-width: 900px) {
  .masthead-inner { grid-template-columns: 1fr auto; }
  .site-brand { grid-column: 1; text-align: left; }
  .masthead-mark { grid-column: 2; }
  .lead-grid, .content-with-sidebar { grid-template-columns: 1fr; }
  .lead-story { border-bottom: 2px solid var(--ink); border-right: 0; padding: 0 0 25px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-shell { padding: 0 16px; }
  .topline-inner span:last-child, .site-tagline, .masthead-mark { display: none; }
  .masthead-inner { display: flex; min-height: 82px; }
  .site-title { font-size: 32px; }
  .newsroom { margin-top: 16px; padding: 18px; }
  .article-grid, .sidebar { grid-template-columns: 1fr; }
  .archive-row { grid-template-columns: 110px 1fr; }
  .archive-row h2 { font-size: 18px; }
  .main-column { padding: 24px 20px; }
  .footer-inner { display: block; }
}
