/*
Theme Name: Primerank
Theme URI: https://example.com/primerank
Author: AIM
Description: 초경량 랜딩페이지형 워드프레스 테마. 상단 최신글 캐러셀, 고정 SEO 메타태그, body.html 본문 수정 구조를 제공합니다.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: primerank
*/

:root {
  --lp-bg: #ffffff;
  --lp-text: #1d1f24;
  --lp-muted: #626a76;
  --lp-soft: #f6f7f9;
  --lp-line: #e8eaee;
  --lp-dark: #111827;
  --lp-point: #c79b45;
  --lp-radius: 20px;
  --lp-wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", "Segoe UI", Arial, sans-serif;
  color: var(--lp-text);
  background: var(--lp-bg);
  line-height: 1.65;
  word-break: keep-all;
  overflow-x: hidden;
}

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

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

main {
  width: 100%;
}

/* 상단 최신글 캐러셀 */
.lp-carousel {
  width: 100%;
  max-width: var(--lp-wrap);
  margin: 0 auto;
  padding: 24px 16px;
}

.lp-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.lp-carousel-track::-webkit-scrollbar {
  height: 8px;
}

.lp-carousel-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d8dce3;
}

.lp-carousel-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.lp-carousel-item a {
  display: block;
  height: 100%;
}

.lp-carousel-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--lp-soft);
}

.lp-carousel-title {
  margin: 0;
  padding: 14px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--lp-text);
}

/* body.html 기본 섹션 */
.lp-section {
  max-width: var(--lp-wrap);
  margin: 0 auto;
  padding: 76px 16px;
}

.lp-hero {
  max-width: var(--lp-wrap);
  margin: 16px auto 0;
  padding: 86px 32px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #111827 0%, #273142 100%);
}

.lp-label {
  display: inline-block;
  margin-bottom: 16px;
  color: #e7c77f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.lp-hero h1,
.lp-section-title {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -.04em;
}

.lp-hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 6vw, 64px);
}

.lp-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #e1e5ec;
  font-size: 18px;
  line-height: 1.82;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}

.lp-btn-primary {
  background: #e7c77f;
  color: #111827;
}

.lp-btn-line {
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff;
}

.lp-section-head {
  margin-bottom: 30px;
}

.lp-section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--lp-point);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
}

.lp-section-title {
  font-size: clamp(28px, 4vw, 42px);
}

.lp-section-desc {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--lp-muted);
  font-size: 16px;
}

.lp-grid {
  display: grid;
  gap: 18px;
}

.lp-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.lp-card {
  padding: 30px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  background: #fff;
}

.lp-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.35;
}

.lp-card p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 15px;
}

.lp-band {
  background: var(--lp-soft);
}

.lp-cta {
  max-width: var(--lp-wrap);
  margin: 0 auto 60px;
  padding: 52px 24px;
  border-radius: 28px;
  text-align: center;
  background: var(--lp-dark);
  color: #fff;
}

.lp-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
}

.lp-cta p {
  margin: 0 0 28px;
  color: #d7dce5;
}

.lp-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #e7c77f;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

/* 글/페이지 기본 출력 */
.lp-entry {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 16px;
}

.lp-entry h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.2;
}

.lp-entry-content {
  font-size: 16px;
  line-height: 1.82;
}

.lp-entry-content img {
  border-radius: 16px;
}

.lp-post-list {
  max-width: var(--lp-wrap);
  margin: 0 auto;
  padding: 64px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.lp-post-card {
  overflow: hidden;
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  background: #fff;
}

.lp-post-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--lp-soft);
  overflow: hidden;
}

.lp-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-post-card h2,
.lp-post-card h3 {
  margin: 0;
  padding: 16px;
  font-size: 17px;
  line-height: 1.45;
}

/* footer */
.footer {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: #777;
  border-top: 1px solid var(--lp-line);
  background: #fff;
}

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

.f_info_area {
  margin-bottom: 12px;
}

.f_logo {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--lp-text);
}

.sub_desc {
  margin: 0;
  font-size: 13px;
}

.copyright {
  display: block;
  font-size: 12px;
  color: #888;
}

@media (max-width: 900px) {
  .lp-grid-3,
  .lp-grid-2,
  .lp-post-list {
    grid-template-columns: 1fr;
  }

  .lp-hero {
    padding: 64px 24px;
    border-radius: 22px;
  }
}

@media (max-width: 520px) {
  .lp-carousel {
    padding: 18px 14px;
  }

  .lp-carousel-item {
    flex-basis: 220px;
  }

  .lp-section {
    padding: 56px 16px;
  }

  .lp-hero {
    margin-top: 10px;
    padding: 48px 20px;
  }

  .lp-hero p {
    font-size: 16px;
  }

  .lp-card {
    padding: 24px;
  }
}
