:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --ink: #171717;
  --muted: #656b76;
  --line: #dfe3e8;
  --accent: #0f766e;
  --accent-soft: #d9f2ee;
  --warm: #b45309;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(26, 31, 44, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    system-ui,
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(247, 248, 250, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
}

.nav a:hover {
  background: var(--panel);
  color: var(--ink);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 60px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 28px;
  align-items: stretch;
  padding: clamp(26px, 5vw, 54px) 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.sponsor-box {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(180, 83, 9, 0.11)),
    var(--panel);
  box-shadow: var(--shadow);
}

.sponsor-box span {
  color: var(--muted);
  font-size: 13px;
}

.sponsor-box strong {
  max-width: 220px;
  font-size: 24px;
  line-height: 1.2;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #0b4f4a;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.summary-grid div {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.summary-grid span,
.summary-grid small {
  display: block;
}

.summary-grid span {
  margin-bottom: 4px;
  font-size: 30px;
  font-weight: 850;
}

.summary-grid small {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.section-heading p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(26, 31, 44, 0.04);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.tag.money {
  background: #fff7ed;
  color: var(--warm);
}

.tag.life {
  background: #ecfdf5;
  color: #047857;
}

.tag.tech {
  background: #eff6ff;
  color: var(--blue);
}

.news-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.32;
}

.news-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
}

.card-actions a.secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.conversion-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.conversion-panel h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.conversion-panel p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.conversion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.conversion-actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.conversion-actions a.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 750;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.policy-page {
  max-width: 820px;
}

.policy-page h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.policy-section {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.policy-section h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.policy-section p,
.policy-section li {
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .toolbar,
  .conversion-panel {
    grid-template-columns: 1fr;
  }

  .conversion-actions {
    justify-content: flex-start;
  }

  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .nav {
    width: 100%;
    overflow-x: auto;
  }

  main {
    width: min(100% - 24px, 1120px);
    padding-top: 18px;
  }

  .hero {
    padding-top: 22px;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .summary-grid,
  .card-list {
    grid-template-columns: 1fr;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-button {
    width: 100%;
  }
}
