@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@400;500;600;700&family=Literata:opsz,wght@7..72,500;7..72,700&display=swap');

:root {
  --bg: #f4efe7;
  --bg-soft: #efe5d9;
  --surface: #fffdf9;
  --ink: #1d1a16;
  --ink-muted: #5f564c;
  --line: #d8ccbd;
  --accent: #bd4e2a;
  --accent-deep: #88371e;
  --highlight: #e7b25c;
  --shadow: 0 16px 34px rgba(68, 49, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'IBM Plex Sans KR', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 8%, #f9f4eb 0 220px, transparent 220px),
    radial-gradient(circle at 88% 12%, #ead9c3 0 180px, transparent 180px),
    linear-gradient(180deg, var(--bg) 0%, #f7f2ea 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(1080px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(7px);
  background: rgba(247, 242, 234, 0.88);
  border-bottom: 1px solid rgba(136, 55, 30, 0.12);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
}

.brand {
  font-family: 'Literata', serif;
  font-size: 1.16rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

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

.hero {
  padding: 4.1rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.3rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.77rem;
}

h1,
h2,
h3 {
  font-family: 'Literata', serif;
  line-height: 1.25;
  margin: 0;
}

h1 {
  font-size: clamp(1.95rem, 4vw, 2.95rem);
  margin-bottom: 0.95rem;
}

h2 {
  font-size: clamp(1.34rem, 2.4vw, 1.9rem);
  margin-bottom: 0.7rem;
}

.hero-copy,
.section-desc {
  margin: 0;
  color: var(--ink-muted);
}

.hero-note {
  background: linear-gradient(180deg, #fff7ee, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  align-self: start;
}

.hero-note h2 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.hero-note ul {
  margin: 0;
  padding-left: 1.1rem;
}

.tool-section,
.guide-section,
.faq-section,
.partner-section,
.comments-section {
  padding: 1.8rem 0;
}

.tool-panel {
  margin-top: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

#generator-btn,
.secondary-btn,
#partner-submit-btn {
  border: 0;
  border-radius: 11px;
  padding: 0.78rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#generator-btn,
#partner-submit-btn {
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
}

#generator-btn {
  min-width: 178px;
}

.secondary-btn {
  background: #efe3d4;
  color: #4b4239;
  border: 1px solid #d2c2b0;
}

.numbers-container {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.number {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 16px rgba(30, 21, 11, 0.18);
  transform: scale(0.92);
  animation: pop-in 0.32s ease-out forwards;
}

@keyframes pop-in {
  to {
    transform: scale(1);
  }
}

.insight-grid,
.guide-grid,
.footer-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.insight-grid {
  grid-template-columns: 1fr 1fr;
}

.card,
.guide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.history-list,
.stats-list {
  margin: 0.65rem 0 0.8rem;
  padding-left: 1.2rem;
  color: #453e36;
}

.history-list li,
.stats-list li {
  margin-bottom: 0.35rem;
}

.empty-state {
  color: #8b7f70;
}

.fine-print {
  margin: 0;
  color: #847867;
  font-size: 0.9rem;
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card h3 {
  margin-bottom: 0.4rem;
}

.guide-card p {
  margin: 0;
  color: var(--ink-muted);
}

.faq-section details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-section p {
  margin: 0.6rem 0 0;
  color: var(--ink-muted);
}

.partner-desc {
  margin: 0;
  color: var(--ink-muted);
}

.partner-form {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.7rem;
  max-width: 680px;
}

.partner-form input,
.partner-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ccbca9;
  padding: 0.72rem 0.8rem;
  font: inherit;
  background: #fffdf9;
}

.partner-form input:focus,
.partner-form textarea:focus {
  outline: 2px solid rgba(189, 78, 42, 0.2);
  border-color: var(--accent);
}

#partner-submit-btn:disabled {
  opacity: 0.74;
  cursor: wait;
}

.partner-status {
  margin: 0;
  min-height: 1.5rem;
}

.partner-status.success {
  color: #136f3f;
}

.partner-status.error {
  color: #ad2e2e;
}

.comments-section {
  border-top: 1px solid rgba(136, 55, 30, 0.12);
}

.site-footer {
  border-top: 1px solid rgba(136, 55, 30, 0.16);
  margin-top: 1rem;
  padding: 1rem 0 1.6rem;
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.footer-grid p {
  margin: 0;
  color: #6e6459;
  font-size: 0.92rem;
}

.footer-grid nav {
  display: flex;
  gap: 1rem;
}

.footer-grid a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.policy-page {
  min-height: 100vh;
}

.policy-hero {
  padding: 3rem 0 1rem;
}

.policy-content {
  padding-bottom: 2rem;
}

.policy-content section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.policy-content h2 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.policy-content p,
.policy-content li {
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .insight-grid,
  .guide-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
  }

  .site-header .shell {
    min-height: 58px;
    padding: 0.3rem 0;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(1080px, calc(100% - 1.2rem));
  }

  .main-nav {
    gap: 0.65rem;
  }

  .main-nav a {
    font-size: 0.88rem;
  }

  .number {
    width: 48px;
    height: 48px;
  }
}
