:root {
  --bg: #f5f1e8;
  --surface: #fffdf9;
  --surface-strong: #f1ebe1;
  --text: #1f1c18;
  --muted: #5e564c;
  --line: #d9cfbf;
  --accent: #b2452d;
  --accent-dark: #7f2d1a;
  --accent-soft: #f0d8cf;
  --shadow: 0 18px 40px rgba(31, 28, 24, 0.08);
  --radius: 20px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans KR", "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(178, 69, 45, 0.12), transparent 32%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
  line-height: 1.7;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(251, 248, 242, 0.9);
  border-bottom: 1px solid rgba(94, 86, 76, 0.12);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, #db8a4d 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 20px rgba(178, 69, 45, 0.25);
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

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

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent-dark);
}

.hero,
.page-hero {
  padding: 4.75rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.35fr 0.95fr;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
}

h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 64ch;
}

.hero-panel,
.card,
.note,
.highlight {
  background: var(--surface);
  border: 1px solid rgba(94, 86, 76, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.5rem;
}

.hero-panel ul,
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(178, 69, 45, 0.2);
}

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
  border-color: rgba(178, 69, 45, 0.25);
  box-shadow: none;
}

.section {
  padding: 1rem 0 3.8rem;
}

.section-header {
  margin-bottom: 1.4rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  padding: 1.35rem;
}

.card p:last-child,
.note p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.78rem;
}

.page-title {
  max-width: 72ch;
}

.article-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
}

.prose {
  background: var(--surface);
  border: 1px solid rgba(94, 86, 76, 0.12);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
}

.prose h2 {
  margin-top: 2rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.aside-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.note,
.highlight {
  padding: 1.25rem;
}

.site-footer {
  padding: 2.2rem 0 3rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(94, 86, 76, 0.22);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(178, 69, 45, 0.18);
  border-color: rgba(178, 69, 45, 0.45);
}

.field small,
.legal {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

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

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-dark);
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

.divider {
  height: 1px;
  background: rgba(94, 86, 76, 0.12);
  margin: 2rem 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .article-layout,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .hero,
  .page-hero {
    padding-top: 3.4rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--max));
  }

  .hero-panel,
  .card,
  .prose,
  .note,
  .highlight {
    padding: 1.1rem;
  }

  .button {
    width: 100%;
  }
}
