/*
Theme Name: Yerin0n Editorial
Theme URI: https://yerin0n.com
Author: Yerin0n
Description: 예린의 AI·콘텐츠 기록을 위한 전문 에디토리얼 워드프레스 테마입니다.
Version: 2.4.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: yerinon-naver-blog
*/

:root {
  --yn-bg: #fff2bd;
  --yn-surface: #ffffff;
  --yn-ink: #18202a;
  --yn-muted: #68717b;
  --yn-line: #dde1e5;
  --yn-accent: #9a6f22;
  --yn-accent-soft: #f6f0e2;
  --yn-yellow: #fff2bd;
  --yn-radius: 0;
  --yn-shadow: none;
  --yn-content: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
  margin: 0;
  background: var(--yn-bg);
  color: var(--yn-ink);
  font-family: Pretendard, SUIT, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
}
.site-shell,
.site-main,
.content-layout,
.blog-sidebar,
.site-footer { background-color: var(--yn-bg); }
.content-panel { background-color: #ffffff; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--yn-accent); }
button, input, textarea, select { font: inherit; }

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

.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  padding: 12px 18px;
  margin: 10px;
  background: #111;
  color: #fff;
  z-index: 9999;
}

.site-shell { min-height: 100vh; }
.site-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--yn-line);
}
.header-inner {
  max-width: var(--yn-content);
  min-height: 58px;
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-branding { margin-right: auto; }
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-title::before { display: none; }
.primary-menu, .primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}
.primary-menu a {
  display: block;
  padding: 19px 0 17px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 700;
  color: #424b55;
  letter-spacing: -0.015em;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
  color: var(--yn-accent);
  background: transparent;
  border-bottom-color: var(--yn-accent);
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--yn-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--yn-ink);
}

.site-main {
  max-width: var(--yn-content);
  margin: 0 auto;
  padding: 24px 8px 56px;
  background: var(--yn-bg);
}
.hero-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 0;
  background: var(--yn-yellow);
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
}
.hero-banner picture { display: block; border: 0 !important; outline: 0 !important; }
.hero-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 2048 / 491;
  object-fit: cover;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.content-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 40px;
  background: var(--yn-bg);
}
.blog-sidebar {
  position: static;
  display: grid;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  padding-right: 28px;
  border-right: 1px solid var(--yn-line);
}
.sidebar-card {
  padding: 0 0 20px;
  margin-bottom: 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--yn-line);
  border-radius: 0;
  box-shadow: none;
}
.sidebar-card h2,
.sidebar-card h3,
.widget-title {
  margin: 0 0 13px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sidebar-intro p {
  margin: 0;
  color: var(--yn-muted);
  font-size: 13px;
  line-height: 1.75;
}
.visitor-chart {
  padding: 10px 0 2px;
  border-top: 1px solid var(--yn-line);
  border-bottom: 1px solid var(--yn-line);
}
.visitor-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.visitor-grid-line {
  stroke: #eceff1;
  stroke-width: 1;
}
.visitor-line {
  fill: none;
  stroke: var(--yn-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.visitor-dot {
  fill: #ffffff;
  stroke: var(--yn-accent);
  stroke-width: 2;
}
.visitor-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  color: var(--yn-muted);
  font-size: 10px;
  text-align: center;
}
.visitor-caption {
  margin: 7px 0 0;
  color: var(--yn-muted);
  font-size: 10px;
  text-align: right;
}
.category-list,
.recent-list,
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.category-list > li,
.recent-list li,
.widget li {
  border-top: 1px solid #f0ede9;
}
.category-list > li:first-child,
.recent-list li:first-child,
.widget li:first-child { border-top: 0; }
.category-list a,
.recent-list a,
.widget li a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  font-size: 12px;
  color: #4d5660;
}
.category-list li {
  position: relative;
  font-size: 12px;
}
.category-list > li > a { display: flex; max-width: 100%; }
.category-list .post-count { margin-left: auto; padding-left: 8px; }
.category-list .children {
  list-style: none;
  margin: -3px 0 8px;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--yn-accent-soft);
}
.category-list .children a { padding: 6px 0; color: var(--yn-muted); }
.post-count { color: #aaa09a; font-size: 12px; }

.search-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  width: 100%;
}
.search-field {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--yn-line);
  border-radius: 0;
  background: #fff;
  color: var(--yn-ink);
  font-size: 12px;
}
.search-submit {
  flex: 0 0 auto;
  width: 48px;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: #1f2933;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.content-panel {
  min-width: 0;
  padding: 26px 28px 32px;
  background: var(--yn-surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #ffffff;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--yn-line);
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.045em;
}
.section-heading p {
  margin: 5px 0 0;
  color: var(--yn-muted);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
}
.post-card { min-width: 0; }
.post-card-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  border-radius: 0;
  background: #f0f1f2;
  border: 1px solid #e1e4e7;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.035); }
.post-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(145deg, #f5f1e6, #e9ddbb);
  color: var(--yn-ink);
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.post-category {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--yn-accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
}
.post-card-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: -0.025em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #8a929a;
  font-size: 11px;
}
.post-card-excerpt { display: none; }

.pagination {
  margin-top: 34px;
  text-align: center;
}
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  margin: 3px;
  padding: 0 10px;
  border: 1px solid var(--yn-line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}
.pagination .current {
  border-color: var(--yn-ink);
  background: var(--yn-ink);
  color: #fff;
}

.article-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 72px);
  background: var(--yn-surface);
  border: 1px solid var(--yn-line);
  border-radius: 0;
  box-shadow: none;
}
.breadcrumb {
  margin-bottom: 24px;
  color: var(--yn-muted);
  font-size: 13px;
}
.entry-header { margin-bottom: 34px; }
.entry-category {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--yn-accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
}
.entry-title {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.22;
  letter-spacing: -0.055em;
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  color: var(--yn-muted);
  font-size: 13px;
}
.entry-thumbnail {
  overflow: hidden;
  margin: 0 0 38px;
  border-radius: 15px;
}
.entry-thumbnail img { display: block; width: 100%; }
.entry-content {
  color: #302c29;
  font-size: 17px;
  line-height: 1.95;
}
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 930px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2,
.entry-content h3 {
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  line-height: 1.4;
  letter-spacing: -0.04em;
}
.entry-content p { margin-top: 0; margin-bottom: 1.45em; }
.entry-content a { color: #df5517; text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--yn-accent);
  background: #fff8f3;
  border-radius: 0 12px 12px 0;
}
.entry-content figure { margin-top: 32px; margin-bottom: 32px; }
.entry-content figcaption { color: var(--yn-muted); font-size: 13px; text-align: center; }
.entry-footer {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--yn-line);
  color: var(--yn-muted);
  font-size: 13px;
}

.comments-area {
  max-width: 980px;
  margin: 24px auto 0;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--yn-line);
  border-radius: var(--yn-radius);
}
.comments-title { margin-top: 0; font-size: 22px; }
.comment-list { padding-left: 24px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--yn-line); }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 750; }
.comment-form input:not([type="checkbox"]),
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--yn-line);
  border-radius: 10px;
}
.form-submit .submit {
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--yn-ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--yn-muted);
}
.empty-state h1,
.empty-state h2 { color: var(--yn-ink); }

.site-footer {
  max-width: var(--yn-content);
  margin: 0 auto;
  padding: 34px 28px 48px;
  color: var(--yn-muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #ddd8d2;
}
.footer-brand { color: var(--yn-ink); font-weight: 850; }

@media (max-width: 1180px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .primary-menu a { padding-left: 9px; padding-right: 9px; }
}

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .main-navigation {
    display: none;
    position: absolute;
    top: 68px;
    left: 18px;
    right: 18px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--yn-line);
    border-radius: 14px;
    box-shadow: var(--yn-shadow);
  }
  .main-navigation.is-open { display: block; }
  .primary-menu { display: grid; }
  .primary-menu a { padding: 11px 12px; }
  .content-layout { grid-template-columns: 1fr; }
  .blog-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-right: 0;
    border-right: 0;
  }
  .sidebar-card:first-child { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { background: var(--yn-bg); }
  .header-inner { min-height: 60px; padding: 0 17px; }
  .main-navigation { top: 60px; }
  .site-main { padding: 14px; }
  .hero-banner { margin-bottom: 14px; border-radius: 0; }
  .hero-banner img {
    width: 100%;
    aspect-ratio: 1283 / 491;
    object-fit: cover;
    object-position: center;
  }
  .content-layout { gap: 14px; }
  .blog-sidebar { display: none; }
  .content-panel { padding: 18px 14px; border: 0; box-shadow: none; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .post-card-title { font-size: 14px; }
  .article-shell { padding: 30px 20px; border: 0; box-shadow: none; }
  .entry-title { font-size: 32px; }
  .entry-content { font-size: 16px; line-height: 1.9; }
  .comments-area { margin-top: 14px; border-left: 0; border-right: 0; border-radius: 0; }
  .footer-inner { display: block; }
}

@media (max-width: 390px) {
  .post-grid { grid-template-columns: 1fr 1fr; gap: 22px 10px; }
  .post-card-meta { font-size: 10px; }
}
