@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@300;400;600&family=Noto+Serif+KR:wght@500;700&display=swap');

:root {
  --bg: #f4f1ea;
  --ink: #1f2933;
  --muted: #6b7280;
  --accent: #0f766e;
  --accent-2: #f59e0b;
  --card: #fffdf7;
  --border: #e6dfd5;
  --shadow: rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(15, 118, 110, 0.18), transparent 60%),
    radial-gradient(800px 360px at 90% 0%, rgba(245, 158, 11, 0.2), transparent 55%),
    var(--bg);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 60px;
  opacity: 0.12;
}

body::before {
  top: 15%;
  left: -90px;
  background: #0f766e;
  transform: rotate(16deg);
}

body::after {
  bottom: 12%;
  right: -80px;
  background: #f59e0b;
  transform: rotate(-12deg);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 20px 0 60px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Noto Serif KR", serif;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  margin-top: 18px;
  padding: 26px 24px;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(15, 118, 110, 0.16), rgba(245, 158, 11, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.hero h1 {
  margin: 0 0 10px;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  margin-top: 28px;
}

.section h2 {
  font-family: "Noto Serif KR", serif;
  margin: 0 0 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 22px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: rise 0.6s ease both;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.card h3 {
  margin: 0 0 8px;
  font-family: "Noto Serif KR", serif;
  font-size: 1.1rem;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

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

.content {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
}

.prose {
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  line-height: 1.75;
}

.prose h2 {
  font-family: "Noto Serif KR", serif;
  margin: 20px 0 10px;
}

.prose ul {
  padding-left: 20px;
}

.ad-slot {
  margin: 22px 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 118, 110, 0.5);
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.faq {
  margin-top: 24px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.08);
}

.faq h2 {
  margin-top: 0;
}

.faq-item {
  padding: 12px 0;
  border-top: 1px solid rgba(15, 118, 110, 0.2);
}

.faq-item:first-of-type {
  border-top: none;
}

.faq dt {
  font-weight: 600;
}

.faq dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.fade-in {
  animation: fade 0.7s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .prose {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
