:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --surface: #fbfaf7;
  --surface-strong: #f5f2eb;
  --line: rgba(47, 38, 24, 0.13);
  --text: #2f2618;
  --muted: #6c624f;
  --accent: #496b39;
  --accent-dark: #2f4a23;
  --shadow: 0 18px 44px rgba(47, 38, 24, 0.08);
  --soft-shadow: 0 10px 26px rgba(47, 38, 24, 0.06);
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; }

.hero {
  position: relative;
  z-index: 20;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--soft-shadow);
}

.hero__inner {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.hero__brand-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.desk-menu {
  min-width: 0;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.desk-menu::-webkit-scrollbar {
  display: none;
}

.desk-menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--accent-dark);
  cursor: pointer;
  box-shadow: var(--soft-shadow);
}

.desk-menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.desk-menu-toggle__bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

body.is-desk-menu-collapsed .desk-menu-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  transform: translateY(-50%);
}

body.is-desk-menu-collapsed .hero__brand-row {
  padding: 0 54px;
}

body.is-desk-menu-collapsed .desk-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  transform: none;
  width: min(320px, calc(100vw - 48px));
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  overflow: visible;
  flex-wrap: wrap;
  justify-content: flex-start;
  box-shadow: var(--shadow);
}

body.is-desk-menu-collapsed .desk-menu.desk-menu--open {
  display: flex;
}

.desk-menu__link,
.more-link {
  text-decoration: none;
  color: var(--accent-dark);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 7px 11px;
}

.more-link {
  flex: 0 0 auto;
  font-size: 0.82rem;
}

.brand {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.7vw, 2.25rem);
  line-height: 1;
  letter-spacing: clamp(0.035em, 0.45vw, 0.08em);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 6px;
}

.search-field {
  display: block;
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  margin: 0 auto;
}

.search-field input {
  width: 100%;
  border: 1px solid rgba(70, 55, 32, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.search-bar {
  width: 100%;
}

.layout {
  width: min(1440px, calc(100% - 32px));
  margin: 12px auto 48px;
  display: grid;
  gap: 12px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 10px; font-size: 1.5rem; }

.article-meta {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: right;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.home-sections {
  display: grid;
  gap: 28px;
}

.trending-section {
  min-width: 0;
}

.trending-window {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 2px 0 10px;
}

.trending-track {
  --slide-distance: 25%;
  --slide-duration: 58s;
  display: flex;
  gap: 16px;
  width: max-content;
  animation: seamless-slide var(--slide-duration) linear infinite;
  will-change: transform;
}

.trending-track:not([data-slider-ready="true"]) {
  animation: none;
}

.trending-track:hover {
  animation-play-state: paused;
}

.desk-sections {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.desk-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.section-head--compact {
  margin-bottom: 12px;
}

.desk-detail-summary {
  color: var(--muted);
  line-height: 1.7;
}

.section-head--compact h3 {
  margin: 0;
  font-size: 1.25rem;
}

.card-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.page-card--rail {
  flex: 0 0 clamp(280px, 26vw, 390px);
}

.section-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pagination-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  min-width: 28px;
  padding: 6px 9px;
}

.pagination-button--active {
  background: var(--accent);
  color: white;
}

.pagination-button--step {
  min-width: 34px;
}

.page-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.page-card__media {
  display: block;
  margin: -16px -16px 13px;
  overflow: hidden;
  width: calc(100% + 32px);
  aspect-ratio: 2 / 1;
  border-radius: 18px 18px 13px 13px;
  background: linear-gradient(135deg, rgba(73, 107, 57, 0.12), var(--surface-strong));
}

.page-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.page-card:hover,
.page-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(73, 107, 57, 0.32);
  box-shadow: 0 14px 30px rgba(47, 38, 24, 0.09);
  outline: none;
}

.page-card--button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.page-card h3 { margin: 0; line-height: 1.35; }
.page-card p, .empty-state { color: var(--muted); }

.article-view {
  width: min(980px, 100%);
  margin-inline: auto;
}

.article-main {
  min-width: 0;
}

.newsletter-panel {
  display: grid;
  gap: 8px;
}

.article-newsletter--top {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 6px 12px;
}

.article-newsletter--top .section-head {
  margin-bottom: 0;
}

.article-newsletter--top h2 {
  margin: 0;
  font-size: 1rem;
}

.newsletter-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.newsletter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.newsletter-form input {
  flex: 1 1 280px;
  border: 1px solid rgba(70, 55, 32, 0.18);
  border-radius: 16px;
  padding: 10px 12px;
  font: inherit;
  background: #ffffff;
}

#newsletter-message {
  margin: 0;
}

#newsletter-message:empty {
  display: none;
}

.primary-button,
.secondary-button {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, #7da063 100%);
  color: white;
}

.secondary-button {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--line);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.article-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.article-media {
  margin: 2px 0 20px;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(73, 107, 57, 0.12), var(--surface-strong));
  box-shadow: 0 18px 42px rgba(47, 38, 24, 0.08);
}

.article-media__frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 1;
}

.article-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.article-media figcaption {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.article-media figcaption a {
  color: var(--accent-dark);
  overflow-wrap: anywhere;
}

.article-tools__voice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.article-toc {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.article-toc__title {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.article-toc__list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc__link {
  display: block;
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.article-toc__link:hover,
.article-toc__link:focus-visible,
.article-toc__link--active {
  border-left-color: var(--accent);
  background: rgba(73, 107, 57, 0.1);
  color: var(--accent-dark);
}

.article-body {
  display: grid;
  gap: 18px;
}

.article-slider-section {
  min-width: 0;
  margin: 10px 0;
  border-block: 1px solid var(--line);
  padding: 18px 0;
}

.article-slider-section h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.article-subheading {
  scroll-margin-top: 150px;
  margin: 10px 0 -4px;
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--text);
}

.article-body p {
  margin: 0;
  line-height: 1.95;
  color: var(--text);
  white-space: pre-wrap;
}

.article-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.article-table table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.96rem;
  line-height: 1.65;
}

.article-table th,
.article-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: #f6f8f1;
  color: var(--accent-dark);
  font-weight: 800;
}

.article-table tbody tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer__inner {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 30px;
  display: grid;
  gap: 10px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.site-footer__links a {
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  text-decoration: underline;
}

.site-footer__notice {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.legal-layout {
  max-width: 980px;
}

.legal-page {
  display: grid;
  gap: 20px;
}

.legal-page h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.25;
}

.legal-page h3 {
  margin: 8px 0 0;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--accent-dark);
}

.legal-page p,
.legal-page li {
  margin: 0;
  color: var(--text);
  line-height: 1.9;
}

.legal-page ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.legal-note {
  border: 1px solid rgba(73, 107, 57, 0.2);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(73, 107, 57, 0.08);
  color: var(--accent-dark);
  font-weight: 700;
}

@keyframes seamless-slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--slide-distance)), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .trending-track {
    animation: none;
  }
}

@media (max-width: 640px) {
  .hero__inner {
    align-items: center;
  }

  .hero__brand-row {
    min-height: 44px;
  }

  .search-field {
    width: 100%;
    max-width: none;
  }

}
