/* DESIGN.md (Notion) 토큰 */
:root {
  --primary: #5645d4;
  --primary-pressed: #4534b3;
  --on-primary: #ffffff;
  --brand-navy: #0a1530;
  --brand-navy-deep: #070f24;
  --brand-navy-mid: #1a2a52;
  --brand-orange: #dd5b00;
  --brand-pink: #ff64c8;
  --brand-purple: #7b3ff2;
  --brand-purple-800: #391c57;
  --brand-teal: #2a9d99;
  --brand-green: #1aae39;
  --brand-yellow: #f5d75e;
  --brand-brown: #523410;
  --link-blue: #0075de;

  --tint-peach: #ffe8d4;
  --tint-rose: #fde0ec;
  --tint-mint: #d9f3e1;
  --tint-lavender: #e6e0f5;
  --tint-sky: #dcecfa;
  --tint-yellow: #fef7d6;
  --tint-cream: #f8f5e8;
  --tint-gray: #f0eeec;

  --canvas: #ffffff;
  --surface: #f6f5f4;
  --hairline: #e5e3df;
  --hairline-strong: #c8c4be;
  --ink-deep: #000000;
  --ink: #1a1a1a;
  --charcoal: #37352f;
  --slate: #5d5b54;
  --steel: #787671;
  --stone: #a4a097;
  --on-dark: #ffffff;
  --on-dark-muted: #a4a097;
  --success: #1aae39;
  --warning: #dd5b00;
  --error: #e03131;

  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 20px;
  --s-xl: 24px;
  --s-xxl: 32px;
  --s-xxxl: 40px;
  --s-section-sm: 48px;
  --s-section: 64px;
  --s-section-lg: 96px;
  --shadow-1: rgba(15, 15, 15, 0.04) 0px 1px 2px;
  --shadow-2: rgba(15, 15, 15, 0.08) 0px 4px 12px;
  --shadow-3: rgba(15, 15, 15, 0.20) 0px 24px 48px -8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ── Hero band ─────────────────────────────── */
.hero {
  position: relative;
  background: var(--brand-navy);
  color: var(--on-dark);
  padding: var(--s-section-lg) var(--s-md) 0;
}
.hero-deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.wire { fill: none; stroke: var(--brand-navy-mid); stroke-width: 2; }
.dot.d-yellow { fill: var(--brand-yellow); }
.dot.d-pink { fill: var(--brand-pink); }
.dot.d-teal { fill: var(--brand-teal); }
.dot.d-orange { fill: var(--brand-orange); }
.dot.d-purple { fill: var(--brand-purple); }
.dot.d-green { fill: var(--brand-green); }

.hero-inner { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.2px;
  color: var(--brand-yellow);
  border: 1px solid var(--brand-navy-mid);
  border-radius: var(--r-full);
  padding: var(--s-xxs) var(--s-sm);
}
.hero h1 {
  margin: var(--s-lg) 0 0;
  font-size: 56px; font-weight: 600; line-height: 1.1; letter-spacing: -1px;
}
.hero-sub {
  max-width: 560px; margin: var(--s-md) auto 0;
  font-size: 18px; line-height: 1.5; color: var(--on-dark-muted);
}
.hero-actions { display: flex; justify-content: center; gap: var(--s-sm); margin-top: var(--s-xl); flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1.3;
  border-radius: var(--r-md); padding: 10px 18px; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-pressed); }
.btn-primary:disabled { background: var(--brand-navy-mid); color: var(--on-dark-muted); cursor: default; }
.btn-on-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark-muted); }
.btn-on-dark:hover { border-color: var(--on-dark); }
.btn-secondary { background: var(--canvas); color: var(--ink); border-color: var(--hairline-strong); }
.btn-secondary:hover { border-color: var(--ink); }

/* 히어로 아래로 걸쳐 떠 있는 상태 카드 (DESIGN.md의 workspace mockup 자리) */
.status-card {
  position: relative;
  margin: var(--s-section-sm) auto 0;
  transform: translateY(var(--s-section-sm));
  background: var(--canvas); color: var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  display: grid; grid-template-columns: 1.1fr 2fr;
  text-align: left; overflow: hidden;
}
.status-main { background: var(--tint-lavender); padding: var(--s-xl); display: flex; flex-direction: column; justify-content: center; }
.status-main .label { font-size: 13px; font-weight: 600; color: var(--brand-purple-800); }
.status-main .big { font-size: 48px; font-weight: 600; line-height: 1.15; letter-spacing: -0.5px; color: var(--ink); }
.status-main .big small { font-size: 18px; font-weight: 500; margin-left: 2px; }
.status-main .hint { font-size: 13px; color: var(--slate); }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-md) var(--s-xl); padding: var(--s-xl); align-content: center; }
.stat-label { font-size: 12px; font-weight: 500; color: var(--steel); }
.stat-value { font-size: 14px; font-weight: 500; color: var(--charcoal); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-grid > div { min-width: 0; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: var(--r-full); margin-right: 6px; vertical-align: 1px; background: var(--success); }
.pulse.warn { background: var(--warning); }
.pulse.err { background: var(--error); }

/* ── Main ─────────────────────────────── */
.wrap { max-width: 880px; margin: 0 auto; padding: calc(var(--s-section-sm) + var(--s-section)) var(--s-md) var(--s-section); }

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-md); }
.type-card {
  font: inherit; text-align: left; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--r-lg);
  padding: var(--s-xl); color: var(--charcoal);
  display: flex; flex-direction: column; gap: var(--s-xs);
  transition: transform .15s ease, border-color .15s ease;
}
.type-card:hover { transform: translateY(-2px); }
.type-card.active { border-color: var(--ink); }
.type-card.peach { background: var(--tint-peach); }
.type-card.lavender { background: var(--tint-lavender); }
.type-card.sky { background: var(--tint-sky); }
.type-card svg { width: 40px; height: 40px; flex: none; }
.type-card .t-org { font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.type-card .t-name { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.type-card .t-count { font-size: 14px; color: var(--slate); }
.type-card .t-count b { font-size: 22px; color: var(--ink); font-weight: 600; margin-right: 2px; }

.board { margin-top: var(--s-section-sm); }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-md); border-bottom: 1px solid var(--hairline); margin-bottom: var(--s-lg); }
.board-head h2 { margin: 0 0 var(--s-sm); font-size: 28px; font-weight: 600; line-height: 1.25; }
.seg { display: flex; }
.seg-tab {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--steel);
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  padding: var(--s-sm) var(--s-md); cursor: pointer; margin-bottom: -1px;
}
.seg-tab:hover { color: var(--ink); }
.seg-tab.active { color: var(--ink); border-bottom-color: var(--ink); }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-sm); }
.notice {
  display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: var(--s-lg);
  text-decoration: none; color: inherit;
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: var(--s-lg) var(--s-xl);
  box-shadow: var(--shadow-1);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.notice:hover { box-shadow: var(--shadow-2); border-color: var(--hairline-strong); }
.dday {
  border-radius: var(--r-md); text-align: center; padding: var(--s-sm) var(--s-xs);
  background: var(--tint-mint); color: var(--charcoal);
}
.dday.soon { background: var(--tint-rose); }
.dday.none { background: var(--tint-gray); }
.dday .d { font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.dday .dl { font-size: 11px; font-weight: 500; color: var(--slate); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-xs); }
.tag { font-size: 12px; font-weight: 500; line-height: 1.4; padding: 2px var(--s-xs); border-radius: var(--r-sm); color: var(--charcoal); background: var(--tint-gray); }
.tag.lh { background: var(--tint-sky); }
.tag.sh { background: var(--tint-lavender); }
.tag.jeonse { background: var(--tint-peach); }
.notice .title { margin: var(--s-xs) 0 var(--s-xxs); font-size: 18px; font-weight: 600; line-height: 1.4; }
.notice .meta { font-size: 13px; color: var(--steel); line-height: 1.4; }
.notice .go { font-size: 14px; font-weight: 500; color: var(--primary); white-space: nowrap; }

/* 빈 상태 */
.empty {
  background: var(--tint-cream); border-radius: var(--r-lg);
  padding: var(--s-section-sm) var(--s-xl); text-align: center;
}
.empty svg { width: 120px; height: 104px; }
.empty-title { margin-top: var(--s-md); font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.empty-sub { margin: var(--s-xs) auto 0; max-width: 420px; font-size: 14px; color: var(--slate); }
.empty-links { display: flex; justify-content: center; gap: var(--s-xs); flex-wrap: wrap; margin-top: var(--s-lg); }

.tip {
  margin-top: var(--s-section-sm);
  background: var(--tint-yellow); border-radius: var(--r-lg);
  padding: var(--s-xl);
}
.tip-title { font-size: 18px; font-weight: 600; color: var(--brand-brown); }
.tip ul { margin: var(--s-sm) 0 0; padding-left: var(--s-lg); color: var(--charcoal); font-size: 14px; display: grid; gap: var(--s-xxs); }
.tip b { font-weight: 600; color: var(--ink); }

.foot { text-align: center; font-size: 13px; color: var(--steel); padding: 0 var(--s-md) var(--s-section-sm); }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 767px) {
  .hero { padding-top: var(--s-section); }
  .hero h1 { font-size: 36px; letter-spacing: -0.5px; }
  .hero-sub { font-size: 16px; }
  .status-card { grid-template-columns: 1fr; }
  .status-grid { padding: var(--s-lg); }
  .status-main { padding: var(--s-lg); }
  .status-main .big { font-size: 36px; }
  .types { grid-template-columns: 1fr; gap: var(--s-sm); }
  .type-card { flex-direction: row; align-items: center; padding: var(--s-md); gap: var(--s-md); }
  .type-card .t-text { flex: 1; }
  .board-head { flex-direction: column; align-items: flex-start; gap: 0; }
  .board-head h2 { font-size: 22px; }
  .notice { grid-template-columns: 64px 1fr; padding: var(--s-md); gap: var(--s-md); }
  .notice .go { display: none; }
  .dday .d { font-size: 18px; }
  .notice .title { font-size: 16px; }
}
