:root {
  color-scheme: light;
  --bg: #f8f8fb;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --border: #ececf1;
  --border-strong: #e0e1e8;
  --text: #1f2329;
  --text-sub: #495057;
  --text-dim: #9a9fa8;
  --accent: #4263eb;
  --accent-soft: #edf0fe;
  --positive: #2f9e44;
  --warn: #f08c00;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 35, 41, 0.04), 0 8px 24px rgba(31, 35, 41, 0.05);
  --shadow-hover: 0 2px 4px rgba(31, 35, 41, 0.05), 0 16px 40px rgba(66, 99, 235, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background:
    radial-gradient(1100px 520px at 12% -8%, #eef1fe 0%, rgba(238, 241, 254, 0) 60%),
    radial-gradient(900px 460px at 92% 0%, #fdf3e8 0%, rgba(253, 243, 232, 0) 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 28px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dot { color: var(--text-dim); margin: 0 6px; }

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand-logo {
  display: block;
  width: auto;
  height: 22px;
  margin: 0 0 12px;
}
.hero h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.date-line {
  margin: 12px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-sub);
  display: flex;
  align-items: baseline;
}
.clock {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
}

/* ===== Weather ===== */
.weather {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow);
  min-width: 260px;
}
.weather-icon { font-size: 34px; line-height: 1; }
.weather-temp {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.weather-temp .deg { font-weight: 500; color: var(--text-dim); }
.weather-desc { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.weather-meta { font-size: 11px; color: var(--text-dim); margin-top: 4px; display: flex; align-items: center; }
.weather-meta .dot { margin: 0 5px; }

/* ===== Quote ===== */
.quote-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 34px 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quote-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), #7c8ff5);
}
.quote-mark {
  position: absolute;
  right: 26px;
  top: 6px;
  font-size: 90px;
  line-height: 1;
  color: var(--accent-soft);
  font-family: Georgia, 'Times New Roman', serif;
  user-select: none;
  pointer-events: none;
}
.quote-card blockquote { margin: 0; position: relative; z-index: 1; }
.quote-card blockquote p {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.62;
  letter-spacing: -0.015em;
  word-break: keep-all;
  max-width: 78ch;
}
.quote-card cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* ===== Board ===== */
.board {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.group-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.group-en {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.group-rule {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 14px;
}
.card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}
.card:hover .card-go { color: var(--accent); transform: translateX(3px); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.card-icon svg { width: 22px; height: 22px; }
.icon-tech   { background: var(--accent-soft); color: var(--accent); }
.icon-biz    { background: #ebfbee; color: var(--positive); }
.icon-brandl { background: #fff4e6; color: var(--warn); }
.icon-brandx { background: #f3f0ff; color: #7048e8; }
.icon-hr     { background: var(--surface-2); color: var(--text-dim); }

.card-body { flex: 1; min-width: 0; }
.card-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.card-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0;
}

/* 아직 대시보드가 없는 자리 — 클릭 대상이 아니므로 <div> 로 두고 톤을 낮춘다. */
.card-empty {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
  box-shadow: none;
  cursor: default;
}
.card-empty:hover { transform: none; box-shadow: none; border-color: var(--border-strong); }
/* 자리 카드는 아이콘 색도 함께 죽인다. 나중에 card-empty 만 떼면 원래 색이 돌아온다. */
.card-empty .card-icon { background: var(--surface-2); color: var(--text-dim); }
.card-empty h3 { color: var(--text-dim); }
.card-empty .card-sub { color: var(--text-dim); }
.card-empty p { color: var(--text-dim); }
.card-body p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--text-sub);
  word-break: keep-all;
}
.card-go {
  flex-shrink: 0;
  font-size: 17px;
  color: var(--text-dim);
  transition: transform .16s ease, color .16s ease;
}

/* ===== Footer ===== */
.foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-dim);
}
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .shell { padding: 36px 18px 48px; gap: 22px; }
  .hero h1 { font-size: 24px; }
  .date-line { font-size: 16px; }
  .clock { font-size: 18px; }
  .weather { width: 100%; }
  .quote-card { padding: 24px 22px; }
  .quote-card blockquote p { font-size: 16px; }
  .quote-mark { font-size: 64px; right: 14px; }
  .board { gap: 24px; }
}
