/* Daybreak 디자인 토큰 — 듀오톤(코랄 + 딥틸), 라이트/다크 */
:root {
  /* 듀오톤 포인트 */
  --coral: #E8734A;
  --coral-soft: #F3A98B;
  --teal: #1F5F5B;
  --teal-soft: #4C8C87;

  /* 라이트 (기본) */
  --bg: #FBFAF6;
  --surface: #FFFFFF;
  --surface-2: #F4F1EA;
  --text: #1A1A1A;
  --text-muted: #6B6B66;
  --border: #E6E2D8;
  --accent: var(--coral);
  --accent-2: var(--teal);
  --shadow-sm: 0 1px 2px rgba(26,26,26,0.05);
  --shadow-md: 0 6px 24px rgba(26,26,26,0.08);
  --shadow-lg: 0 18px 48px rgba(26,26,26,0.10);

  /* 스페이싱 */
  --sp-1: 6px; --sp-2: 12px; --sp-3: 18px; --sp-4: 28px;
  --sp-5: 44px; --sp-6: 72px; --sp-7: 112px;

  /* radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  /* 타이포 */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-serif: "Newsreader", Georgia, "Nanum Myeongjo", serif;
  --font-body: var(--font-sans);
  --fs-hero: clamp(34px, 5vw, 58px);
  --fs-h2: clamp(24px, 3vw, 34px);
  --fs-h3: 19px;
  --fs-body: 16px;
  --fs-sm: 13.5px;
  --lh: 1.65;
  --maxw: 1120px;
}

:root[data-theme="dark"] {
  --bg: #0F1115;
  --surface: #1A1D24;
  --surface-2: #232730;
  --text: #E4E6EB;
  --text-muted: #9AA0AB;
  --border: #2C313B;
  --coral: #E28763;
  --coral-soft: #C97A58;
  --teal: #5FA39D;
  --teal-soft: #4C8C87;
  --accent: var(--coral);
  --accent-2: var(--teal);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.55);
}

:root[data-font="serif"] { --font-body: var(--font-serif); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-4); }
a { color: inherit; text-decoration: none; }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; padding-right: 168px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--teal)); }
.nav { display: flex; gap: var(--sp-4); font-size: var(--fs-sm); font-weight: 500; }
.nav a { color: var(--text-muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }

/* 우상단 고정 컨트롤 패널 */
.control-panel {
  position: fixed; top: 14px; right: 16px; z-index: 100;
  display: flex; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 5px 7px; box-shadow: var(--shadow-md);
}
.control-panel button {
  border: none; background: transparent; color: var(--text-muted);
  font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 6px 10px; border-radius: var(--r-pill);
  font-family: inherit; transition: all .2s;
}
.control-panel button:hover { color: var(--text); background: var(--surface-2); }
.control-panel button.on { background: var(--accent); color: #fff; }

/* 히어로 */
.hero { padding: var(--sp-7) 0 var(--sp-5); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--accent-2);
  text-transform: uppercase; letter-spacing: 0.08em; }
.hero h1 { font-size: var(--fs-hero); font-weight: 700; line-height: 1.1;
  letter-spacing: -0.025em; margin: var(--sp-3) 0; max-width: 20ch;
  word-break: keep-all; }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 52ch; }

/* 섹션 헤딩 */
.section { padding: var(--sp-5) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--sp-4); gap: var(--sp-3); flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.02em; }
.section-head .sub { color: var(--text-muted); font-size: var(--fs-sm); }

/* 제품 카드 */
.feed { display: flex; flex-direction: column; gap: var(--sp-3); }
.card {
  display: flex; gap: var(--sp-4); align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-4);
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--coral-soft); }
.logo-tile { flex: 0 0 62px; width: 62px; height: 62px; border-radius: var(--r-md);
  display: grid; place-items: center; font-weight: 800; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--teal)); }
.card-body { flex: 1; min-width: 0; }
.card-body h3 { font-size: var(--fs-h3); font-weight: 700; margin-bottom: 4px; }
.card-body p { color: var(--text-muted); font-size: var(--fs-sm); }
.badge { display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: var(--r-pill); margin-top: 8px;
  background: color-mix(in srgb, var(--teal) 15%, transparent); color: var(--accent-2); }
.vote { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  gap: 2px; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 8px 14px; font-weight: 700; color: var(--text); }
.vote .arw { color: var(--accent); font-size: 13px; }
.vote .n { font-size: 17px; }
.vote small { font-size: 10px; color: var(--text-muted); font-weight: 500; }

/* CTA / 뉴스레터 */
.cta { background: linear-gradient(135deg, color-mix(in srgb, var(--coral) 12%, var(--surface)), color-mix(in srgb, var(--teal) 12%, var(--surface)));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-5); text-align: center; margin-top: var(--sp-4); }
.cta h2 { font-size: var(--fs-h2); font-weight: 700; margin-bottom: var(--sp-2); }
.cta p { color: var(--text-muted); margin-bottom: var(--sp-4); }
.cta-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.cta-form input { flex: 1; padding: 13px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 14px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: var(--r-pill);
  border: none; cursor: pointer; font-weight: 700; font-size: 14px; font-family: inherit;
  background: var(--accent); color: #fff; transition: filter .2s, transform .15s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }

/* 필터 칩 */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.chip { padding: 7px 16px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); font-size: var(--fs-sm);
  font-weight: 600; cursor: pointer; transition: all .2s; }
.chip:hover, .chip.active { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }

/* 아카이브 그룹 */
.arch-group { margin-bottom: var(--sp-5); }
.arch-date { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-2);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-3);
  padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* 제품 상세 */
.hero-img { width: 100%; height: 320px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--coral-soft), var(--teal-soft));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px;
  margin-bottom: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.feat { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-4); }
.feat h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.feat p { color: var(--text-muted); font-size: var(--fs-sm); }
.shot { height: 160px; border-radius: var(--r-md); background: var(--surface-2);
  border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); font-size: 13px; }

/* about */
.prose { max-width: 62ch; }
.prose p { color: var(--text-muted); margin-bottom: var(--sp-3); }
.prose h2 { font-size: var(--fs-h2); font-weight: 700; margin: var(--sp-5) 0 var(--sp-3); letter-spacing: -0.02em; color: var(--text); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-3); }
.member { text-align: center; }
.avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto var(--sp-2);
  background: linear-gradient(135deg, var(--coral), var(--teal)); }
.member strong { display: block; font-size: 15px; }
.member span { color: var(--text-muted); font-size: var(--fs-sm); }

/* 푸터 */
.site-footer { border-top: 1px solid var(--border); margin-top: var(--sp-6);
  padding: var(--sp-5) 0; color: var(--text-muted); font-size: var(--fs-sm); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); }

/* 스크롤 reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 반응형 */
@media (max-width: 720px) {
  .nav { display: none; }
  .card { flex-wrap: wrap; gap: var(--sp-3); }
  .vote { order: 3; }
  .grid-3, .team { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .hero { padding: var(--sp-6) 0 var(--sp-4); }
  .control-panel { top: auto; bottom: 14px; right: 50%; transform: translateX(50%); }
}
