:root {
  color-scheme: light;
  --paper: #f4f0e7;
  --paper-2: #fbfaf6;
  --ink: #1f261f;
  --muted: #697168;
  --green: #284f3a;
  --green-2: #3f7053;
  --green-soft: #dfe8df;
  --line: #d8d4c8;
  --white: #ffffff;
  --warning: #8a5b2c;
  --radius: 16px;
  --shadow: 0 18px 50px rgb(35 50 39 / 8%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper-2);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, sans-serif;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
button, input { font: inherit; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(216 212 200 / 88%);
  background: rgb(251 250 246 / 94%);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(1240px, calc(100% - 40px));
  min-height: 78px;
  margin: auto;
}
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 12px; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.02rem; letter-spacing: -0.04em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: .58rem; letter-spacing: .16em; }
.primary-nav { display: flex; gap: 8px; justify-content: center; }
.primary-nav a, .lang-switch {
  padding: 9px 12px;
  border-radius: 999px;
  color: #435047;
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
}
.primary-nav a:hover, .lang-switch:hover { color: var(--green); background: var(--green-soft); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-search input {
  width: 190px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
}
.lang-switch { border: 1px solid var(--line); background: var(--white); }

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 90px;
}
.content-column { min-width: 0; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(360px, 1.2fr);
  gap: 32px;
  align-items: end;
  padding: 16px 0 44px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.home-hero h1, .listing-header h1, .article-header h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif KR", serif;
  font-weight: 600;
  letter-spacing: -.055em;
}
.home-hero h1 { font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1.06; }
.home-hero > div > p:last-child { max-width: 550px; margin: 24px 0 0; color: var(--muted); font-size: 1.02rem; }
.hero-feature {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--green);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.hero-feature::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 34%, rgb(11 18 13 / 78%)); }
.hero-feature img { width: 100%; height: 100%; min-height: 350px; object-fit: cover; }
.hero-feature span, .hero-feature strong { position: absolute; z-index: 1; left: 24px; right: 24px; }
.hero-feature span { bottom: 84px; font-size: .73rem; font-weight: 800; letter-spacing: .08em; }
.hero-feature strong { bottom: 24px; font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.35; }

.section-block { padding-top: 56px; }
.section-heading { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 1.85rem; letter-spacing: -.045em; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); font-size: .9rem; text-align: right; }
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 30px rgb(35 50 39 / 4%); }
.post-card-image { display: block; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--green-soft); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.post-card:hover .post-card-image img { transform: scale(1.015); }
.post-card-body { padding: 21px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: .75rem; }
.meta-row a { color: var(--green); font-weight: 750; text-decoration: none; }
.post-card h2 { margin: 12px 0 9px; font-size: 1.2rem; line-height: 1.38; letter-spacing: -.035em; }
.post-card h2 a { text-decoration: none; }
.post-card-body > p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.68; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag-row span { padding: 5px 8px; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: .68rem; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.category-card { display: flex; justify-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 700; text-decoration: none; }
.category-card b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: var(--green); font-size: .75rem; }

.sidebar { position: static; align-self: start; display: grid; gap: 18px; }
.side-block, .ad-slot { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.side-block h2 { margin: 0 0 14px; font-size: .95rem; letter-spacing: -.025em; }
.side-label { margin: 0 0 12px; color: var(--green); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.side-heading { display: flex; align-items: center; justify-content: space-between; }
.side-heading span { color: var(--muted); font-size: .65rem; }
.search-block form { display: flex; }
.search-block input, .search-page-form input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--paper-2);
}
.search-block button, .search-page-form button {
  padding: 0 14px;
  border: 0;
  border-radius: 0 8px 8px 0;
  color: white;
  background: var(--green);
  cursor: pointer;
}
.compact-list, .category-list { padding: 0; margin: 0; list-style: none; }
.compact-list { display: grid; gap: 12px; }
.compact-list li { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid #ece9e0; }
.compact-list li:first-child { padding-top: 0; border-top: 0; }
.compact-list a { display: block; font-size: .78rem; font-weight: 650; line-height: 1.45; text-decoration: none; }
.compact-list small { display: block; margin-top: 4px; color: var(--muted); font-size: .63rem; }
.rank { flex: 0 0 26px; color: var(--green); font-family: Georgia, serif; font-size: .86rem; }
.category-list { display: grid; gap: 6px; }
.category-list a { display: flex; justify-content: space-between; padding: 8px 0; font-size: .8rem; text-decoration: none; }
.category-list b { color: var(--muted); }
.ad-slot { min-height: 210px; display: grid; place-content: center; color: #899087; background: repeating-linear-gradient(135deg, #f9f8f3 0, #f9f8f3 12px, #f4f2ea 12px, #f4f2ea 24px); text-align: center; }
.ad-slot span { font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ad-slot p { margin: 8px 0 0; font-size: .75rem; }

.article-shell { align-items: start; }
.article { min-width: 0; }
.breadcrumbs { display: flex; gap: 9px; margin: 6px 0 30px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { text-decoration: none; }
.article-header { max-width: 900px; }
.article-header h1 { max-width: 880px; margin-top: 16px; font-size: clamp(2.45rem, 5vw, 4.8rem); line-height: 1.12; }
.article-header > p { max-width: 780px; margin: 23px 0 0; color: var(--muted); font-size: 1.05rem; }
.article-cover { margin: 36px 0 42px; overflow: hidden; border-radius: var(--radius); background: var(--green-soft); box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: contain; }
.article-body { max-width: 820px; font-size: 1rem; line-height: 1.85; }
.article-body > p { margin: 0 0 1.3em; }
.article-body h2 { margin: 2.4em 0 .8em; padding-top: .25em; font-size: 1.85rem; line-height: 1.35; letter-spacing: -.045em; }
.article-body h3 { margin: 1.9em 0 .65em; font-size: 1.28rem; line-height: 1.4; letter-spacing: -.035em; }
.article-body blockquote { margin: 0 0 2em; padding: 20px 23px; border-left: 4px solid var(--green); border-radius: 0 10px 10px 0; color: #304238; background: var(--green-soft); }
.article-body blockquote p { margin: 0; }
.article-body ul, .article-body ol { margin: 0 0 1.5em; padding-left: 1.35em; }
.article-body li { margin: .35em 0; }
.article-body a { color: var(--green); font-weight: 650; }
.article-body table { display: block; width: 100%; max-width: 100%; margin: 1.25em 0 2em; overflow-x: auto; border-collapse: collapse; border-spacing: 0; font-size: .88rem; }
.article-body th, .article-body td { min-width: 120px; padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { color: var(--green); background: var(--paper); font-weight: 750; }
.article-body .solar-compare-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.article-body .solar-compare-scroll table { display: table; width: 660px; min-width: 100%; max-width: none; overflow: visible; table-layout: fixed; }
.article-body .solar-compare-scroll th, .article-body .solar-compare-scroll td { min-width: 0; }
.article-body .solar-compare-scroll th:first-child, .article-body .solar-compare-scroll td:first-child { width: 130px; }
.article-body .solar-compare-scroll th:nth-child(2), .article-body .solar-compare-scroll td:nth-child(2) { width: 190px; }
.article-body code { padding: 2px 5px; border-radius: 5px; background: #eeece4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.article-body h2:nth-last-of-type(2), .article-body h2:last-of-type { padding-top: 1em; border-top: 1px solid var(--line); }
.article-tags { max-width: 820px; padding-top: 30px; border-top: 1px solid var(--line); }
.related { margin-top: 70px; padding-top: 42px; border-top: 1px solid var(--line); }
.listing-header { padding: 24px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.listing-header h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.listing-header > p { color: var(--muted); }
.info-page-shell { grid-template-columns: minmax(0, 900px); justify-content: center; }
.info-page-body { max-width: 820px; }
.search-page-form { display: flex; max-width: 620px; margin-top: 28px; }
.search-page-form input { height: 50px; font-size: 1rem; }
.search-results { display: grid; gap: 14px; }
.search-result { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.search-result img { width: 180px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 8px; }
.search-result a { font-weight: 750; font-size: 1.05rem; text-decoration: none; }
.search-result p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }

.site-footer { display: flex; justify-content: space-between; gap: 30px; width: min(1240px, calc(100% - 40px)); margin: auto; padding: 38px 0 48px; border-top: 1px solid var(--line); }
.site-footer p { margin: 8px 0 0; color: var(--muted); font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: start; color: var(--muted); font-size: .72rem; }
.footer-links a { text-decoration: none; }
.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; }
.not-found img { width: 70px; }
.not-found h1 { margin: 18px 0 0; font-size: 5rem; }
.not-found a { color: var(--green); }

@media (max-width: 1020px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .primary-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; padding-bottom: 10px; overflow-x: auto; }
  .header-actions { justify-self: end; }
  .page-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .ad-slot { min-height: 170px; }
}

@media (max-width: 720px) {
  .site-header { position: static; background: var(--paper-2); backdrop-filter: none; }
  .header-inner, .page-shell, .site-footer { width: min(100% - 28px, 1240px); }
  .header-inner { gap: 12px; min-height: 68px; }
  .header-search { display: none; }
  .primary-nav a { flex: 0 0 auto; white-space: nowrap; }
  .primary-nav { flex-wrap: wrap; gap: 2px 4px; overflow-x: visible; }
  .primary-nav a { padding: 6px 5px; font-size: .82rem; }
  .home-hero { grid-template-columns: minmax(0, 1fr); padding-top: 4px; }
  .hero-feature, .hero-feature img { min-height: 230px; }
  .posts-grid, .category-grid, .sidebar { grid-template-columns: minmax(0, 1fr); }
  .page-shell { padding-top: 26px; gap: 48px; }
  .home-hero h1 { font-size: clamp(2rem, 9vw, 2.25rem); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; text-align: left; }
  .article-header h1 { font-size: clamp(2rem, 9vw, 2.25rem); }
  .article-cover { margin: 28px 0 34px; border-radius: 12px; }
  .article-body { font-size: .98rem; line-height: 1.8; }
  .article-body h2 { font-size: 1.55rem; }
  .article-body table { font-size: .8rem; }
  .search-result { grid-template-columns: 110px 1fr; }
  .search-result img { width: 110px; }
  .site-footer { display: grid; }
}

@media (max-width: 430px) {
  .brand small { display: none; }
  .primary-nav a { padding-left: 8px; padding-right: 8px; }
  .post-card-body { padding: 17px; }
  .search-result { grid-template-columns: 1fr; }
  .search-result img { width: 100%; }
}
