:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --line: #d5e1f7;
  --text: #111111;
  --muted: #5f6368;
  --accent: #111111;
  --logo: #1f6fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nanum Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.container {
  width: min(1320px, 94%);
  margin: 0 auto;
}

.utility-bar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 0.84rem;
  color: var(--muted);
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.utility-links {
  display: flex;
  gap: 0.85rem;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.masthead {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
}

.logo {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-weight: 800;
  font-size: clamp(2.05rem, 5vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: inline-block;
  background: linear-gradient(
    120deg,
    #0c4fa3 0%,
    #1f6fff 34%,
    #4b8cd8 56%,
    #94a7c6 72%,
    #1a5cad 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.logo a {
  color: inherit;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  padding: 0.9rem 0;
  white-space: nowrap;
  overflow: auto;
  font-size: 1.12rem;
  font-weight: 800;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a.active {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.main-home {
  margin: 1rem auto 2.4rem;
}

.promo-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(102deg, #0f326f, #2f4c82 48%, #997741);
  color: #fff;
  padding: 1rem 1.2rem;
  font-weight: 700;
}

.promo-banner strong {
  font-size: 1.45rem;
}

.breaking-news {
  margin: 0.95rem 0 1.15rem;
  padding: 0.7rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.breaking-news strong {
  color: var(--accent);
  flex: 0 0 auto;
}

.breaking-news p {
  margin: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.headline-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 1rem;
}

.left-rail,
.center-hero,
.right-rail,
.major-section {
  min-width: 0;
}

.left-rail {
  padding: 0.8rem;
  display: grid;
  gap: 0.8rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.left-rail .rail-story {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #dfe8f8;
}

.left-rail .rail-story:last-child {
  border-bottom: 0;
  padding-bottom: 0.1rem;
}

.rail-story h3 {
  margin: 0.55rem 0 0.45rem;
  font-family: "Noto Serif KR", serif;
  font-size: 1.4rem;
  line-height: 1.3;
}

.rail-story p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.center-hero {
  padding: 0.8rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-link:hover h2,
.rail-story:hover h3,
.right-item:hover h4,
.major-card:hover h3,
.category-list-item:hover h4,
.category-top-card:hover h3,
.popular-item:hover span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.hero-image {
  max-height: 470px;
  object-fit: cover;
}

.hero-meta {
  padding: 0.8rem 0.25rem 0.2rem;
  text-align: center;
}

.category {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.86rem;
}

.hero-meta h2 {
  margin: 0.45rem 0;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(1.8rem, 2.7vw, 3rem);
  line-height: 1.25;
}

.hero-meta p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.6;
}

.meta-line {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.right-rail {
  padding: 0.35rem 0.8rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.right-item {
  display: grid;
  grid-template-columns: 1fr 94px;
  gap: 0.7rem;
  align-items: center;
  padding: 0.62rem 0;
  border-bottom: 1px solid #ededed;
}

.right-item:last-child {
  border-bottom: 0;
}

.right-item h4 {
  margin: 0.25rem 0 0;
  line-height: 1.4;
  font-size: 1.23rem;
}

.right-item img {
  height: 72px;
  object-fit: cover;
}

.major-section {
  margin-top: 1.15rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.95rem;
}

.section-head {
  border-top: 5px solid var(--accent);
  margin-bottom: 0.9rem;
}

.section-head h2 {
  margin: 0.7rem 0 0;
  font-family: "Noto Serif KR", serif;
  font-size: 2rem;
}

.major-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.major-card {
  padding: 0.65rem 0.35rem 0.95rem;
  border-bottom: 1px solid #dfe8f8;
}

.major-card:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.major-card img {
  height: 190px;
  object-fit: cover;
}

.major-card h3 {
  margin: 0.45rem 0;
  font-family: "Noto Serif KR", serif;
  font-size: 1.2rem;
  line-height: 1.4;
}

.major-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.category-main {
  margin: 1rem auto 2rem;
}

.category-headline {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1rem 0.8rem;
}

.category-headline h2 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 3rem;
}

.subcategory-tabs {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.sub-tab {
  border: 1px solid #d4dae4;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  color: #445062;
}

.sub-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 800;
}

.category-top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem;
}

.category-top-card {
  display: grid;
  grid-template-columns: 1fr 510px;
  gap: 1rem;
  border-top: 5px solid var(--accent);
  padding-top: 0.9rem;
}

.category-top-card h3 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 3rem;
  line-height: 1.25;
}

.category-top-card p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.65;
}

.category-top-card img {
  height: 320px;
  object-fit: cover;
}

.category-content-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 1rem;
}

.red-line-title {
  margin: 0;
  padding: 0.75rem 0;
  border-top: 5px solid var(--accent);
  color: var(--accent);
  font-family: "Noto Serif KR", serif;
  font-size: 2rem;
}

.category-list {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-list-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #ececec;
}

.category-list-item:last-child {
  border-bottom: 0;
}

.category-list-item img {
  height: 145px;
  object-fit: cover;
}

.category-list-item h4 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 2rem;
  line-height: 1.35;
}

.category-list-item p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.popular-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.popular-list li {
  border-bottom: 1px solid #ececec;
}

.popular-list li:last-child {
  border-bottom: 0;
}

.popular-item {
  display: grid;
  grid-template-columns: 28px 1fr 86px;
  gap: 0.6rem;
  padding: 0.8rem;
  align-items: center;
}

.popular-item strong {
  color: var(--accent);
  font-size: 2rem;
  font-family: "Noto Serif KR", serif;
}

.popular-item span {
  font-size: 1.12rem;
  line-height: 1.45;
}

.popular-item img {
  height: 64px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1.2rem;
  margin: 1rem auto 2rem;
}

.left-floating-tools {
  position: sticky;
  top: 110px;
  height: max-content;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 0.8rem 0.55rem;
  display: grid;
  gap: 0.55rem;
}

.left-floating-tools button {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 22px;
  padding: 0.48rem 0.35rem;
  font-weight: 700;
  color: #555;
}

.article-body {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 1.4rem;
}

.article-breadcrumb {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.article-title {
  margin: 0.55rem 0;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.27;
}

.article-meta {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #ebebeb;
}

.article-byline {
  margin: 0;
  padding: 0.75rem 0 0.85rem;
  border-bottom: 4px solid var(--accent);
  font-weight: 800;
  font-size: 1.24rem;
}

.article-image {
  margin: 1.1rem 0;
  max-height: 540px;
  object-fit: cover;
}

.article-summary {
  margin: 0;
  padding: 1rem;
  border-top: 4px solid var(--accent);
  background: #fbfbfb;
  font-size: 1.3rem;
  line-height: 1.8;
}

.article-content {
  margin-top: 1rem;
}

.article-content p {
  margin: 0 0 1rem;
  font-size: 1.33rem;
  line-height: 2;
}

.article-content h2 {
  margin: 1.2rem 0 0.75rem;
  font-family: "Noto Serif KR", serif;
  font-size: 2rem;
}

.article-content blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--accent);
  background: #faf8f4;
  color: #3e3a30;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: #777;
  font-size: 0.85rem;
  padding: 1.2rem 0;
}

@media (max-width: 1180px) {
  .masthead {
    grid-template-columns: 1fr;
  }

  .headline-layout {
    grid-template-columns: 1fr;
  }

  .major-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-top-card {
    grid-template-columns: 1fr;
  }

  .category-content-grid {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .left-floating-tools {
    position: static;
    border-radius: 14px;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .promo-banner {
    gap: 0.5rem;
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-banner strong {
    font-size: 1.1rem;
  }

  .major-grid {
    grid-template-columns: 1fr;
  }

  .right-item h4 {
    font-size: 1rem;
  }

  .category-headline h2 {
    font-size: 2.1rem;
  }

  .category-top-card h3 {
    font-size: 1.65rem;
  }

  .category-top-card p {
    font-size: 1rem;
  }

  .category-list-item {
    grid-template-columns: 1fr;
  }

  .major-card {
    border-bottom: 1px solid #dfe8f8;
  }

  .major-card:last-child {
    border-bottom: 0;
  }

  .category-list-item h4 {
    font-size: 1.25rem;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-content p {
    font-size: 1.08rem;
    line-height: 1.8;
  }
}
