:root {
  --bg: #f6f2e8;
  --panel: rgba(255, 252, 246, 0.82);
  --panel-border: rgba(48, 44, 34, 0.08);
  --text: #1f1b16;
  --muted: #6b6256;
  --accent: #cb5c33;
  --accent-deep: #8f3514;
  --accent-soft: #f4ddcf;
  --mint: #8fb8a6;
  --shadow: 0 18px 50px rgba(68, 49, 18, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-sans: "Pretendard Variable", "SUIT Variable", "Apple SD Gothic Neo",
    "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(203, 92, 51, 0.17), transparent 28%),
    radial-gradient(circle at bottom right, rgba(143, 184, 166, 0.28), transparent 26%),
    linear-gradient(180deg, #fffaf4 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-sans);
}

.background-glow {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.55;
}

.background-glow-a {
  top: 36px;
  right: 4vw;
  width: 260px;
  height: 260px;
  background: rgba(203, 92, 51, 0.12);
}

.background-glow-b {
  bottom: 20px;
  left: 5vw;
  width: 300px;
  height: 300px;
  background: rgba(143, 184, 166, 0.14);
}

.page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero,
.panel,
.summary-card {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 24px;
  align-items: end;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.panel h2 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
}

.hero-description {
  max-width: 58ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions {
  justify-self: end;
  width: min(100%, 320px);
}

.primary-button,
.ghost-button {
  appearance: none;
  width: 100%;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button {
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #b44822 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(203, 92, 51, 0.28);
}

.ghost-button {
  width: auto;
  padding: 11px 16px;
  background: rgba(32, 25, 14, 0.05);
  color: var(--text);
  font-weight: 600;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.helper-text,
.result-count {
  margin: 12px 4px 0;
  color: var(--muted);
  line-height: 1.5;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.summary-card {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.summary-card p {
  margin: 0;
}

.summary-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-value {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 800;
}

.summary-subtext {
  margin-top: 8px;
  color: var(--accent-deep);
  font-size: 0.9rem;
}

.panel {
  margin-top: 22px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(52, 44, 30, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(203, 92, 51, 0.18);
  border-color: rgba(203, 92, 51, 0.28);
}

.table-wrap {
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(48, 44, 34, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
}

thead {
  background: rgba(244, 221, 207, 0.56);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(48, 44, 34, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--accent-deep);
}

td {
  color: #2c271f;
}

.listing-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.listing-title a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.listing-title a:hover {
  color: var(--accent-deep);
}

.listing-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.source-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(143, 184, 166, 0.2);
  color: #365548;
  font-size: 0.84rem;
  font-weight: 700;
}

.empty-state {
  padding: 30px 16px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .hero,
  .filters-grid,
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100vw - 20px, 1180px);
    padding-top: 18px;
  }

  .hero,
  .filters-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .hero {
    padding: 20px;
    border-radius: 22px;
  }

  th,
  td {
    padding: 12px;
  }
}
