/* ============================================================
   blog-home.css — Aurora-style Home (index.html only)
   Airy, content-first, cinematic hero + emerald aurora glow.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

:root {
  --bg:          #060606;
  --bg-elev:     #0e0e0e;
  --bg-hover:    #161616;
  --text:        #f4f4f5;
  --text-muted:  #a1a1aa;
  --text-faint:  #8b93a1;
  --accent:      #34d399;
  --accent-soft: rgba(52, 211, 153, 0.14);
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --max:         1120px;
}

[data-theme="light"] {
  --bg:          #ffffff;
  --bg-elev:     #f7f8f9;
  --bg-hover:    #eef0f2;
  --text:        #0b0b0c;
  --text-muted:  #52525b;
  --text-faint:  #667085;
  --accent:      #059669;
  --accent-soft: rgba(5, 150, 105, 0.10);
  --line:        rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.16);
}

body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* small uppercase section label */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}

.see-all {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.see-all:hover { color: var(--accent); }

.hairline { height: 1px; background: var(--line); border: 0; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px;
}
.nav-brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-brand .accent { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg) !important;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s var(--ease);
}
.nav-cta:hover { opacity: 0.85; }

/* ── Hero (cinematic + aurora glow) ──────────────────────── */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 120px;
  overflow: hidden;
  background: var(--bg);
}
/* deep space radial */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(52,211,153,0.06) 0%, transparent 55%);
  pointer-events: none;
}
/* aurora horizon glow arc — sits low in the hero, arcs upward */
.hero-glow {
  position: absolute;
  left: 50%;
  bottom: -800px;
  transform: translateX(-50%);
  width: 1200px;
  height: 1200px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(52, 211, 153, 0.75) 0%,
      rgba(52, 211, 153, 0.30) 18%,
      rgba(16, 185, 129, 0.10) 33%,
      transparent 52%);
  filter: blur(44px);
  pointer-events: none;
}
/* thin crisp horizon line of light along the arc's top edge */
.hero-glow::after {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 620px;
  max-width: 70vw;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(50% 100% at 50% 50%, rgba(190,255,230,0.95), transparent 72%);
  filter: blur(1.5px);
}
[data-theme="light"] .hero-glow {
  bottom: -900px;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(5, 150, 105, 0.34) 0%,
      rgba(5, 150, 105, 0.12) 22%,
      transparent 46%);
}
[data-theme="light"] .hero-glow::after {
  background: radial-gradient(50% 100% at 50% 50%, rgba(5,150,105,0.6), transparent 72%);
}
[data-theme="light"] .hero { background: var(--bg-elev); }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.7;
  min-height: 1.7em;
}
.hero-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -0.12em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-techs {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.hero-tech {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.hero-tech:hover { color: var(--text); border-color: var(--line-strong); }

/* ── Section shell ───────────────────────────────────────── */
section { position: relative; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── Featured ────────────────────────────────────────────── */
.featured {
  padding: 40px 0 70px;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.featured-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b3a30 0%, #0d2622 40%, #10201d 100%);
  border: 1px solid var(--line);
}
.featured-cover-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 0 20px;
  letter-spacing: -0.02em;
}
.featured-cover img { width: 100%; height: 100%; object-fit: cover; }
.featured-meta .eyebrow { margin-bottom: 16px; display: block; }
.featured-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  transition: color 0.2s var(--ease);
}
.featured:hover .featured-title { color: var(--accent); }
.featured-excerpt {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.96rem;
  margin-bottom: 20px;
}
.featured-date { font-size: 13px; color: var(--text-faint); }

/* ── Two-column feed row ─────────────────────────────────── */
.feed {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.feed .wrap { max-width: 820px; }

/* Popular — ranked list */
.rank-list { list-style: none; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s var(--ease);
}
.rank-item:last-child { border-bottom: 0; }
.rank-item:hover { opacity: 0.65; }
.rank-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-faint);
  width: 18px;
  flex-shrink: 0;
}
.rank-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Recent — thumbnail feed */
.recent-list { display: flex; flex-direction: column; }
.recent-item {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s var(--ease);
}
.recent-item:first-child { padding-top: 0; }
.recent-item:last-child { border-bottom: 0; }
.recent-item:hover .recent-title { color: var(--accent); }
.recent-cat {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.recent-title {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.2s var(--ease);
}
.recent-date { font-size: 12px; color: var(--text-faint); }
.recent-thumb {
  width: 150px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1b3a30 0%, #10201d 100%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.recent-thumb span {
  font-size: 22px;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Side Projects (aurora "추천 레퍼런스" slot) ─────────── */
.sideprojects {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}
.sp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sp-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.sp-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev);
  transform: translateY(-2px);
}
.sp-mono {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--line);
}
.sp-body { min-width: 0; flex: 1; }
.sp-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.sp-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sp-year {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.sp-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sp-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sp-tag {
  font-size: 11px;
  color: var(--text-faint);
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  margin-top: 60px;
  background: var(--bg-elev);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-name {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 10px;
}
.footer-brand-name .accent { color: var(--accent); }
.footer-blurb {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}
.footer-col-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 22px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ── Theme toggle ────────────────────────────────────────── */
.theme-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); transform: scale(1.06); }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

/* ── Reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-cursor { animation: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .featured-grid { grid-template-columns: 1fr; gap: 28px; }
  .feed-grid { grid-template-columns: 1fr; gap: 48px; }
  .sp-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links .nav-hide { display: none; }
  .hero { min-height: 460px; padding: 130px 20px 90px; }
  .recent-item { grid-template-columns: 1fr 110px; gap: 16px; }
  .recent-thumb { width: 110px; height: 74px; }
}
