:root {
  --color-primary: #F5F0E8;
  --color-primary-dark: #0d2340;
  --color-on-primary: #1d2b36;
  --color-primary-readable: #878480;
  --color-primary-strong: #6d6a67;
  --color-accent: #C9A96E;
  --color-kakao: #FEE500;
  --color-kakao-text: #191919;
  --color-surface: #f7f8fa;
  --color-text: #171d24;
  --color-muted: #667085;
  --color-border: #e9ecf1;
  --color-white: #ffffff;
  --shadow-soft: 0 8px 24px rgba(23, 29, 36, 0.06);
  --shadow-lift: 0 20px 48px rgba(23, 29, 36, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--color-text);
  background: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Nav ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.brand {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-strong);
  letter-spacing: -0.01em;
}
.menu {
  display: flex;
  gap: 32px;
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.menu a { position: relative; transition: color 0.2s ease; }
.menu a:hover { color: var(--color-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.95rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-primary-readable);
}
.btn-secondary:hover { border-color: var(--color-primary-readable); background: var(--color-surface); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background: var(--color-surface);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 85% 10%, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent 70%),
    radial-gradient(50% 55% at 5% 95%, color-mix(in srgb, var(--color-primary) 25%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-readable);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}
h1, h2, h3, h4 { margin: 0 0 16px; line-height: 1.3; font-family: 'Noto Serif KR', serif; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 4.4vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 700; }
h3 { font-family: 'Noto Sans KR', sans-serif; }
.lead { font-size: 1.15rem; color: var(--color-muted); max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.6rem; font-family: 'Noto Serif KR', serif; color: var(--color-primary-readable); }
.hero-stat span { font-size: 0.85rem; color: var(--color-muted); }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 0 12px; }
.hero-visual::before {
  content: "";
  position: absolute;
  top: -28px; right: 8%;
  width: 78%; aspect-ratio: 1;
  background: color-mix(in srgb, var(--color-accent) 55%, var(--color-primary-dark));
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  opacity: 0.22;
  z-index: 0;
}
.hero-visual-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 6px solid var(--color-white);
}
.hero-visual-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: 999px;
  padding: 14px 28px;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
}
.hero-badge strong { font-family: 'Noto Serif KR', serif; font-size: 1.05rem; }
.hero-badge span { font-size: 0.78rem; color: var(--color-muted); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.muted-section { background: var(--color-surface); }
.section-head { text-align: center; margin: 0 auto 48px; max-width: 640px; }
.card-grid, .post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.info-card, .post-card, .form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.info-card:hover, .post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--color-primary) 12%, white);
  color: var(--color-primary-readable); font-weight: 800; margin-bottom: 20px; font-size: 1.1rem;
}
.tag {
  display: inline-block; font-size: 0.75rem; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent) 16%, white);
  color: var(--color-primary-readable); font-weight: 700; margin-bottom: 14px;
}
.story-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.story-text p { margin: 0 0 20px; color: var(--color-text); font-size: 1.05rem; }
.story-text p:first-of-type {
  font-family: 'Noto Serif KR', serif; font-size: 1.3rem; font-weight: 500;
  color: var(--color-primary-strong); line-height: 1.6;
}
.story-points { display: flex; flex-direction: column; gap: 20px; }
.story-point {
  display: flex; gap: 16px; padding: 24px; background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft);
}
.story-point .icon { margin-bottom: 0; flex-shrink: 0; }
.story-point h4 { margin: 0 0 6px; font-size: 1.02rem; }
.story-point p { margin: 0; color: var(--color-muted); font-size: 0.92rem; }

.kakao-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: linear-gradient(135deg, #FFE812, var(--color-kakao));
  color: var(--color-kakao-text); border-radius: var(--radius-lg); padding: 48px 44px;
  position: relative; overflow: hidden;
}
.kakao-banner > * { position: relative; }
.kakao-banner .eyebrow, .kakao-banner h2 { color: var(--color-kakao-text); }
.kakao-banner .eyebrow::before { background: var(--color-kakao-text); }
.kakao-banner .btn-primary { background: var(--color-kakao-text); color: var(--color-kakao); box-shadow: none; }
.kakao-banner .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(25,25,25,0.25); }

/* ---------- Footer ---------- */
.footer { background: #0c1118; color: rgba(255,255,255,0.65); padding: 56px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.footer-inner h4 { color: white; font-family: 'Noto Serif KR', serif; }
.footer-inner nav { display: flex; flex-direction: column; gap: 10px; }
.footer-inner a { transition: color 0.2s ease; }
.footer-inner a:hover { color: white; }
.footer-profile { display: flex; align-items: center; gap: 14px; max-width: 420px; }
.footer-profile-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.15); flex-shrink: 0; }

/* ---------- Forms / auth ---------- */
.page-shell { padding: 80px 0; }
.form-wrap { max-width: 760px; }
.form-card { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: flex; flex-direction: column; gap: 8px; font-weight: 500; color: var(--color-text); font-size: 0.92rem; }
input, textarea {
  border: 1px solid var(--color-border); border-radius: 12px; padding: 14px 16px; background: #fff;
  color: var(--color-text); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--color-primary-readable);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}
textarea { resize: vertical; min-height: 140px; }
.auth-wrap { min-height: 60vh; display:flex; align-items:center; }
.auth-link { text-align: center; color: var(--color-muted); }

@media (max-width: 768px) {
  .menu { display: none; }
  .hero-inner, .card-grid, .post-grid, .form-row, .footer-inner, .story-grid { grid-template-columns: 1fr; display: grid; }
  .hero { padding: 88px 0 64px; }
  .kakao-banner { text-align: center; flex-direction: column; padding: 40px 28px; }
  .footer-inner { justify-content: flex-start; gap: 32px; }
}
