:root {
  --bg: #f7f3ee;
  --ink: #1b1b1b;
  --muted: #6d655c;
  --accent: #d58f4a;
  --accent-dark: #b56b2e;
  --panel: rgba(255, 255, 255, 0.78);
  --border: rgba(27, 27, 27, 0.12);
  --shadow: 0 24px 50px rgba(17, 15, 12, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Gothic A1", "Nanum Myeongjo", serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #f2e9df, transparent 55%),
    radial-gradient(circle at 20% 20%, #f7d9b7, transparent 45%),
    radial-gradient(circle at 80% 10%, #dfe7ff, transparent 40%),
    var(--bg);
  min-height: 100vh;
  padding: 48px clamp(20px, 4vw, 80px) 64px;
  overflow-x: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.35;
  z-index: 0;
}

.orb-a {
  width: 360px;
  height: 360px;
  background: #f4c58a;
  top: -120px;
  right: -80px;
}

.orb-b {
  width: 280px;
  height: 280px;
  background: #b9c4ff;
  bottom: -120px;
  left: -80px;
}

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  animation: fadeIn 0.8s ease-out;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  gap: 20px;
  align-items: center;
}

.brand-mark {
  font-family: "Nanum Myeongjo", serif;
  font-size: 28px;
  font-weight: 700;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.site-header h1 {
  margin: 0 0 6px;
  font-family: "Nanum Myeongjo", serif;
  font-size: clamp(24px, 3vw, 34px);
}

.site-header p {
  margin: 0;
  color: var(--muted);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.top-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

.top-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}

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

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
  animation: slideUp 0.8s ease-out 0.1s both;
}

.content-section {
  position: relative;
  z-index: 1;
  margin: 48px 0;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.content-section.alt {
  background: rgba(255, 249, 238, 0.8);
}

.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0 0 8px;
}

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

.info-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(27, 27, 27, 0.08);
  border-radius: 18px;
  padding: 18px;
}

.info-card h3 {
  margin-top: 0;
}

.card-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}

.steps {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.faq details {
  border: 1px solid rgba(27, 27, 27, 0.12);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.8);
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

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

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(27, 27, 27, 0.15);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

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

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.suggestion {
  border: 1px solid rgba(27, 27, 27, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
}

.suggestion:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.site-footer.compact {
  margin: 40px clamp(20px, 4vw, 80px);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
}

.page {
  padding: 32px clamp(20px, 4vw, 80px) 64px;
}

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

.page-content {
  position: relative;
  z-index: 1;
}

.article {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.article h1 {
  margin-top: 0;
}

.button-link {
  display: inline-block;
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.contact-form label {
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
}

.paper {
  margin-top: 18px;
  background: #fffdfa;
  border-radius: 20px;
  border: 1px dashed rgba(27, 27, 27, 0.25);
  padding: 24px;
  min-height: 420px;
  font-family: "Nanum Myeongjo", serif;
  white-space: pre-wrap;
  line-height: 1.7;
}

.placeholder {
  color: var(--muted);
}

button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 22px rgba(213, 143, 74, 0.3);
}

.secondary {
  background: #1f1c19;
  color: #fff;
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
}

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

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

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

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

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
