:root {
  --bg: #f6f3f8;
  --surface: #ffffff;
  --surface-soft: #fbf8ff;
  --primary: #7b1b55;
  --primary-dark: #52113a;
  --accent: #9a2d6c;
  --text: #211926;
  --muted: #756a7c;
  --line: #e7ddea;
  --danger: #c62828;
  --warning: #b06900;
  --ok: #176b43;
  --shadow: 0 12px 30px rgba(41, 18, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 100% -20%, #faf2ff 0%, transparent 50%),
    radial-gradient(900px 600px at 0% 0%, #fff5dd 0%, transparent 50%),
    var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
}

.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 34px 18px 28px;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: 880px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  opacity: 0.8;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 8vw, 3.6rem);
  line-height: 1.08;
  word-break: keep-all;
}

.hero p {
  word-break: keep-all;
}

.updated {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero__hint {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
}

.site-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.site-switch__select {
  min-width: 140px;
  border: 0;
  border-radius: 999px;
  height: 32px;
  padding: 4px 12px;
  font-size: 0.9rem;
}

.container {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 18px;
  padding-top: 22px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: -22px;
  margin-bottom: 24px;
}

.quick-actions--extra {
  margin-top: 0;
  margin-bottom: 0;
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action:hover,
.action:focus-visible {
  transform: translateY(-1px);
  background: #fffbfe;
}

.action:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.action--primary {
  grid-column: 1 / -1;
  background: #ffef7a;
  color: #42102f;
  font-size: 1.08rem;
}

.action__icon {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.9;
}

.section {
  margin: 24px 0;
}

.section__title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section__title h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--primary-dark);
}

.section__title span {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.card-list {
  display: grid;
  gap: 10px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  box-shadow: var(--shadow);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(32, 17, 54, 0.12);
}

.card__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
}

.card__title {
  margin: 0;
  font-size: 1.08rem;
  word-break: keep-all;
}

.card__date {
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.card__body {
  margin: 8px 0 0;
  color: #3a303f;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: #f1e4f5;
  color: var(--primary-dark);
  white-space: nowrap;
  margin-bottom: 8px;
}

.badge--danger {
  background: #ffe3e3;
  color: var(--danger);
}

.badge--warning {
  background: #fff0ce;
  color: var(--warning);
}

.badge--ok {
  background: #daf4e8;
  color: var(--ok);
}

.empty {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px dashed var(--line);
}

.empty + .empty {
  margin-top: 10px;
}

.footer {
  padding: 22px 18px 40px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #f0e5f0;
  margin-top: 10px;
}

.footer p {
  margin: 4px 0;
}

@media (min-width: 720px) {
  .quick-actions {
    grid-template-columns: repeat(4, 1fr);
  }

  .action--primary {
    grid-column: auto;
  }

  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 359px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero__hint {
    font-size: 0.84rem;
  }
}
