/* 오름 소개 사이트 — 해질녘 보라 하늘 + 억새 금빛 + 오름 초록 */
:root {
  --bg: #fbf8f1;
  --paper: #ffffff;
  --ink: #26213a;
  --muted: #6b6785;
  --violet: #4c1d95;
  --violet-2: #a855f7;
  --gold: #eab308;
  --green: #2f7d57;
  --line: #e9e3f5;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(76, 29, 149, .12);
  --tone0: #a855f7; --tone1: #ef4444; --tone2: #14b8a6; --tone3: #eab308; --tone4: #0ea5e9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- 상단바 ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  color: #fff;
  transition: background .3s, box-shadow .3s, color .3s;
}
.topbar.scrolled { background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 2px 16px rgba(0, 0, 0, .08); backdrop-filter: blur(8px); }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  white-space: nowrap; text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 999px;
  transition: background .2s;
}
.nav a:hover { background: rgba(168, 85, 247, .18); }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(234, 179, 8, .28), transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(47, 125, 87, .35), transparent 42%),
    linear-gradient(160deg, #2a1360 0%, #4c1d95 55%, #7c3aed 100%);
}
.hero-inner {
  width: min(1180px, 100% - 40px); margin-inline: auto; padding: 110px 0 60px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 5vw, 64px); align-items: center;
}
.hero-fig { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); border: 3px solid rgba(255, 255, 255, .25); transform: rotate(1.5deg); }
.hero-img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; animation: zoom 14s ease-out both; }
.hero-text { color: #fff; }
.eyebrow { margin: 0 0 8px; font-size: 15px; letter-spacing: .3em; color: #fde68a; }
.hero h1 { margin: 0; font-size: clamp(56px, 14vw, 128px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.subtitle { margin: 12px 0 28px; font-size: clamp(18px, 3.2vw, 26px); opacity: .92; }
.cta {
  display: inline-block; padding: 12px 26px; border-radius: 999px; text-decoration: none; font-weight: 700;
  background: var(--gold); color: #3b2a00; box-shadow: 0 8px 24px rgba(234, 179, 8, .35); transition: transform .2s;
}
.cta:hover { transform: translateY(-3px); }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

/* ---------- 소개 ---------- */
.intro { padding: clamp(56px, 10vw, 110px) 0 24px; text-align: center; }
.section-title { margin: 0 0 18px; font-size: clamp(28px, 5vw, 40px); position: relative; display: inline-block; }
.section-title::after { content: ""; display: block; height: 8px; margin-top: -10px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 4px; position: relative; z-index: -1; }
.summary { max-width: 760px; margin: 0 auto 28px; font-size: clamp(17px, 2.6vw, 21px); color: var(--muted); }
.keywords { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 16px;
  background: #f3e8ff; color: var(--violet); border: 1px solid #e0c8ff; transition: transform .2s, background .2s;
}
.chip:nth-child(2) { background: #fef9c3; color: #713f12; border-color: #fde68a; }
.chip:nth-child(3) { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }
.chip:nth-child(4) { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.chip:hover { transform: translateY(-3px) rotate(-2deg); }

/* ---------- 섹션 카드 ---------- */
.sections { padding: clamp(32px, 6vw, 64px) 0 clamp(56px, 9vw, 110px); }
.story {
  --tone: var(--tone0);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  background: var(--paper); border-radius: var(--radius); padding: clamp(14px, 2.4vw, 24px);
  box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: clamp(28px, 5vw, 56px);
}
.story[data-tone="1"] { --tone: var(--tone1); }
.story[data-tone="2"] { --tone: var(--tone2); }
.story[data-tone="3"] { --tone: var(--tone3); }
.story[data-tone="4"] { --tone: var(--tone4); }
.story:nth-child(even) .story-img { order: 2; }
.story-img { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 8 / 5; background: var(--tone); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.story:hover .story-img img { transform: scale(1.05); }
.story-body { padding: 4px clamp(4px, 2vw, 20px); }
.story-no { display: inline-block; font-size: 15px; font-weight: 800; color: #fff; background: var(--tone); padding: 2px 14px; border-radius: 999px; margin-bottom: 10px; }
.story-title { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); line-height: 1.25; }
.story-text { margin: 0; font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); border-left: 4px solid var(--tone); padding-left: 14px; }

/* 스크롤 등장 효과 (JS가 .in 을 붙인다. JS 없이도 보이도록 기본값은 보임) */
.js-ok .reveal, .reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- 푸터 ---------- */
.footer { background: linear-gradient(180deg, #2a1360, #170a36); color: #e9defc; text-align: center; padding: 48px 0 40px; }
.footer-title { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #fff; }
.footer-meta { margin: 0 0 6px; color: #fde68a; }
.footer-note { margin: 0 0 18px; font-size: 14px; opacity: .75; }
.to-top { display: inline-block; text-decoration: none; padding: 8px 20px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; font-size: 14px; }
.to-top:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 반응형 ---------- */
@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .story:nth-child(even) .story-img { order: 0; }
  .topbar { padding: 10px 14px; }
  .brand { font-size: 18px; }
  .nav a { font-size: 13px; padding: 5px 10px; }
  .hero-inner { grid-template-columns: 1fr; padding: 92px 0 48px; }
  .hero-fig { transform: none; order: -1; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 28px); }
  .nav { display: none; } /* 아주 좁은 화면에서는 상단 메뉴를 숨겨 겹침을 막는다 */
}
