:root {
  color-scheme: light;
  --ink: #2f2940;
  --muted: #81788f;
  --line: #e9e1ef;
  --surface: rgba(255, 255, 255, 0.88);
  --lavender: #8b63bd;
  --lavender-dark: #65448e;
  --page: #fbf9fd;
  font-family: "Noto Sans KR", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(197, 164, 226, 0.2), transparent 28rem),
    radial-gradient(circle at 92% 14%, rgba(247, 193, 215, 0.22), transparent 30rem),
    var(--page);
}
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(233, 225, 239, 0.8);
  background: rgba(251, 249, 253, 0.82);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 13px; box-shadow: 0 8px 20px rgba(80, 55, 111, 0.2); }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 17px; letter-spacing: -0.02em; }
.brand-copy small { margin-top: 5px; color: var(--lavender); font-size: 10px; font-weight: 800; letter-spacing: 0.22em; }
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 100px; }
.hero { max-width: 760px; margin: 0 auto; padding: clamp(72px, 11vw, 128px) 0 48px; text-align: center; }
.eyebrow { margin: 0 0 18px; color: var(--lavender); font-size: 12px; font-weight: 900; letter-spacing: 0.2em; }
.hero h1 { margin: 0; font-size: clamp(34px, 6vw, 62px); line-height: 1.12; letter-spacing: -0.055em; }
.hero > p:last-child { max-width: 650px; margin: 24px auto 0; color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); line-height: 1.8; word-break: keep-all; }
.filters {
  position: sticky;
  z-index: 10;
  top: 78px;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 14px 8px;
  overflow-x: auto;
  background: linear-gradient(var(--page) 72%, transparent);
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; color: #665e73; background: rgba(255, 255, 255, 0.82); cursor: pointer; transition: 160ms ease; }
.filter:hover { border-color: #cbb5dc; color: var(--lavender-dark); }
.filter:focus-visible { outline: 3px solid rgba(139, 99, 189, 0.28); outline-offset: 2px; }
.filter.is-active { border-color: var(--lavender); color: white; background: var(--lavender); box-shadow: 0 9px 22px rgba(109, 70, 150, 0.22); }
.showcase-feed { display: grid; gap: clamp(48px, 8vw, 92px); padding-top: 38px; }
.showcase-post { padding: clamp(20px, 4vw, 40px); border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: 0 24px 65px rgba(70, 52, 89, 0.09); backdrop-filter: blur(16px); }
.post-header { display: flex; gap: 20px; align-items: start; justify-content: space-between; margin-bottom: 12px; }
.post-category { display: inline-block; margin-bottom: 8px; color: var(--lavender); font-size: 12px; font-weight: 800; }
.post-title { margin: 0; font-size: clamp(21px, 3vw, 29px); letter-spacing: -0.04em; }
.post-date { flex: 0 0 auto; padding-top: 5px; color: #aaa0b5; font-size: 12px; }
.post-description { margin: 0 0 28px; color: var(--muted); line-height: 1.75; white-space: pre-line; }
.post-description:empty { display: none; }
.frame-stage {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(circle at 14% 15%, rgba(255, 255, 255, 0.9), transparent 24rem), linear-gradient(145deg, #f4eef8, #fbf4f6);
}
.frame-embed-wrap { width: 100%; overflow: hidden; isolation: isolate; }
.frame-embed { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.loading-state, .empty-state, .error-state { display: grid; min-height: 300px; place-items: center; align-content: center; padding: 40px; border: 1px dashed #d9cbe4; border-radius: 26px; color: var(--muted); text-align: center; background: rgba(255, 255, 255, 0.55); }
.loading-orb { width: 30px; height: 30px; border: 3px solid #e7dbef; border-top-color: var(--lavender); border-radius: 50%; animation: spin 0.8s linear infinite; }
.scroll-top { position: fixed; z-index: 20; right: 22px; bottom: 22px; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--lavender-dark); background: rgba(255, 255, 255, 0.9); box-shadow: 0 10px 28px rgba(57, 42, 71, 0.16); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: 160ms ease; }
.scroll-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .site-header { min-height: 68px; padding: 10px 16px; }
  .brand img { width: 42px; height: 42px; }
  .filters { top: 68px; justify-content: start; margin-inline: -16px; padding-inline: 16px; }
  .showcase-post { border-radius: 22px; }
  .post-header { display: block; }
  .post-date { display: block; margin-top: 9px; }
  .frame-stage { margin-inline: -8px; border-radius: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
