
:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --text: #102027;
  --muted: #4d636b;
  --line: #d7e4e2;
  --brand: #0a7a67;
  --brand-strong: #075749;
  --accent: #d97706;
  --radius: 14px;
  --shadow: 0 12px 28px rgba(16, 32, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% -10%, rgba(217, 119, 6, 0.14), transparent 38%),
    radial-gradient(circle at 0% 0%, rgba(10, 122, 103, 0.12), transparent 35%),
    var(--bg);
  line-height: 1.65;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 250, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.logo strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.2px;
}

.logo em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a.active,
.site-nav a:hover {
  background: #e8f3f1;
  color: var(--brand-strong);
}

.lang-switch {
  position: relative;
}

.lang-switch summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-weight: 600;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch[open] summary {
  color: var(--brand-strong);
  border-color: #b8d6cf;
  background: #e6f3f0;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: 170px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 4px;
}

.lang-menu a {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.lang-menu a:hover {
  text-decoration: none;
  background: #f1f7f5;
}

.hero {
  padding: 48px 0 20px;
}

.hero-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f4ef;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

h1, h2, h3 {
  line-height: 1.25;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  font-family: 'Space Grotesk', 'Pretendard', sans-serif;
}

.hero-desc {
  margin: 0;
  color: var(--muted);
  max-width: 66ch;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-color: transparent;
  color: white;
}

.hero-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.hero-panel ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.section {
  padding: 30px 0;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.search-wrap {
  display: block;
  margin: 20px 0 14px;
}

.search-wrap span {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 14px;
}

.search-wrap input,
.tool-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 16px;
  background: white;
}

.tool-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 16px;
  background: white;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chip {
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.chip.active {
  background: #e6f3f0;
  color: var(--brand-strong);
  border-color: #b8d6cf;
}

.post-grid,
.tool-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card,
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.post-card h3,
.tool-card h3,
.tool-card h2 {
  margin: 0 0 8px;
}

.post-card p,
.tool-card p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 700;
}

.ad-zone {
  margin: 18px auto;
  min-height: 90px;
}

.ad-placeholder {
  margin: 0;
  padding: 12px;
  border: 1px dashed #b8d6cf;
  border-radius: 10px;
  background: #f0f9f6;
  color: var(--muted);
  font-size: 14px;
}

.post-page,
.simple-page,
.tool-page {
  padding: 40px 0 48px;
}

.post-meta {
  color: var(--muted);
  margin: 0;
}

.breadcrumb {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.post-hero {
  margin-top: 10px;
  padding: 14px;
  border-left: 4px solid var(--accent);
  background: #fff7ed;
  border-radius: 8px;
}

.source-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef7ff;
  border: 1px solid #c8def2;
  color: #1f3f5b;
  font-size: 14px;
}

.english-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4fbf5;
  border: 1px solid #c7e3cb;
}

.english-note h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}

.tag {
  font-size: 13px;
  color: var(--brand-strong);
  background: #e8f3f1;
  padding: 4px 10px;
  border-radius: 999px;
}

.post-section,
.simple-section {
  margin-top: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.post-section h2,
.simple-section h2 {
  margin-top: 0;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.faq-list details:first-of-type {
  border-top: 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.related-posts ul {
  margin: 0;
  padding-left: 18px;
}

.tool-form {
  display: grid;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.tool-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}

.tool-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed #9bc6bb;
  border-radius: 12px;
  background: #f3faf8;
  min-height: 56px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #eff7f5;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  padding: 28px 0 14px;
}

.footer-grid h3 {
  margin: 0 0 10px;
}

.footer-grid p,
.footer-grid li {
  color: var(--muted);
  margin: 0;
}

.footer-grid ul {
  margin: 0;
  padding-left: 18px;
}

.copyright {
  padding: 0 0 20px;
}

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

@media (max-width: 680px) {
  .hero-grid,
  .footer-grid,
  .post-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    padding: 8px 10px;
  }

  .lang-switch {
    width: 100%;
  }

  .lang-menu {
    left: 0;
    right: auto;
    width: 100%;
  }
}
