/* lovecomet.net — 원본(Grok/Tailwind) 디자인을 순수 CSS로 옮긴 버전 */
:root {
  --night: #06080d;
  --navy: #0c1424;
  --paper: #e4ebf4;
  --quiet: #8b97a8;
  --dim: #5c6778;
  --sky: #9ec9e0;
  --lilac: #c5b8de;
  --glass: #0e16246b;
  --line: #bad2e624;
  --radius-card: 1.25rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --serif: "Noto Serif KR", "Apple Myungjo", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--night);
  color: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100dvh;
  font-family: var(--sans);
  line-height: 1.5;
  background-color: var(--night);
  background-image: radial-gradient(ellipse 90% 55% at 50% -20%, #0e1627, transparent 72%);
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
h1, h2 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: #9ec9e047; color: var(--paper); }

.wrap { max-width: 64rem; margin-inline: auto; padding-inline: 1.5rem; }

/* 배경 별 */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky svg { width: 100%; height: 100%; display: block; }
.s-paper { fill: var(--paper); }
.s-sky { fill: var(--sky); }
.s-lilac { fill: var(--lilac); }
.tw, .tw-slow { transform-box: fill-box; transform-origin: 50%; }
.tw { animation: twinkle 5.4s ease-in-out infinite; }
.tw-slow { animation: twinkle 7.8s ease-in-out -2.4s infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  padding-top: max(1.25rem, env(safe-area-inset-top));
  padding-bottom: 1.25rem;
  background: #06080dc7;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; font-size: .875rem; letter-spacing: .025em; }
.brand svg { width: .875rem; height: .875rem; color: var(--sky); }
.nav { display: flex; align-items: center; gap: .25rem; font-size: .875rem; color: var(--quiet); }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .75rem; transition: color .15s; }
.nav a:hover { color: var(--paper); }

/* 히어로 */
.hero { padding-top: 4rem; padding-bottom: 7rem; }
.hero h1 {
  font-family: var(--serif);
  font-size: 2.25rem; line-height: 1.25; letter-spacing: -.025em;
}
.hero p { margin-top: 2rem; max-width: 36rem; font-size: 1rem; line-height: 1.625; color: var(--quiet); }

.enter { opacity: 0; transform: translateY(12px); animation: rise .7s var(--ease) forwards; }
.enter-2 { animation-delay: 90ms; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* 섹션 */
.block { padding-block: 5rem; scroll-margin-top: 6rem; }
.kicker { font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.c-sky { color: var(--sky); }
.c-lilac { color: var(--lilac); }

.about { margin-top: 2rem; max-width: 36rem; font-size: 1rem; line-height: 1.625; color: #e4ebf4e6; }
.about p + p { margin-top: 1.5rem; }
.about .quiet { color: var(--quiet); }

/* 카드 */
.cards { margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card {
  display: flex; flex-direction: column; min-height: 11rem; padding: 1.5rem;
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--line);
  border-radius: var(--radius-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow .15s var(--ease), background-color .15s var(--ease), scale .15s var(--ease);
}
a.card:hover { box-shadow: 0 0 0 1px #bad2e652; background: #121c2e8c; }
a.card:active { scale: .98; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.arrow { color: var(--dim); transition: color .15s; }
a.card:hover .arrow { color: var(--sky); }
a.card.lilac:hover .arrow { color: var(--lilac); }
.card h2 { margin-top: 1.25rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; letter-spacing: -.025em; }
.card p { margin-top: .75rem; font-size: .875rem; line-height: 1.625; color: var(--quiet); }

/* 푸터 */
.site-footer { padding-top: 2rem; padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
.footer-inner { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: .875rem; color: var(--dim); }
.footer-inner > p:first-child { letter-spacing: .025em; }
.footer-links { margin-top: .75rem; display: flex; flex-wrap: wrap; align-items: center; column-gap: 1rem; row-gap: .25rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; transition: color .15s; }
.footer-links a:hover { color: var(--paper); }

/* 반응형 (Tailwind sm/md/lg 그대로) */
@media (min-width: 40rem) {
  .hero { padding-top: 6rem; }
  .hero h1 { font-size: 3rem; line-height: 1; }
  .hero p, .about { font-size: 1.125rem; }
}
@media (min-width: 48rem) {
  .hero { padding-top: 8rem; padding-bottom: 9rem; }
  .hero h1 { font-size: 3.75rem; }
  .block { padding-block: 7rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
@media (min-width: 64rem) {
  .hero h1 { font-size: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tw, .tw-slow, .enter { opacity: 1; animation: none; transform: none; }
  a.card:active { scale: 1; }
}
