:root {
  --bg: #f6f0e8;
  --bg-soft: #fbf5ee;
  --surface: rgba(255, 250, 245, 0.78);
  --surface-strong: rgba(255, 250, 245, 0.92);
  --text: #1f1c1a;
  --muted: #6a625d;
  --line: rgba(31, 28, 26, 0.12);
  --line-strong: rgba(31, 28, 26, 0.2);
  --accent: #d8583f;
  --accent-deep: #b7432c;
  --accent-soft: rgba(216, 88, 63, 0.1);
  --shadow-lg: 0 30px 70px rgba(54, 32, 18, 0.12);
  --shadow-md: 0 20px 48px rgba(70, 35, 17, 0.1);
  --radius-xl: 40px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  line-break: strict;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(232, 162, 144, 0.34), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(242, 205, 161, 0.42), transparent 24%),
    linear-gradient(180deg, #fbf5ee 0%, var(--bg) 100%);
  font-family: "IBM Plex Sans KR", sans-serif;
}

:is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, figcaption, blockquote) {
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

:is(a, button, span, strong, em, label, summary) {
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

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

.section-block,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.category-switchbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(251, 245, 238, 0.9);
  border-bottom: 1px solid rgba(31, 28, 26, 0.08);
  box-shadow: 0 12px 28px rgba(31, 28, 26, 0.04);
}

.category-switchbar-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  row-gap: 8px;
  padding: 14px 0 16px;
}

.switch-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 28, 26, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 22px rgba(31, 28, 26, 0.04);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
}

.switch-pill[aria-current="page"] {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(216, 88, 63, 0.2);
}

.section-block {
  padding-top: 52px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.section-intro {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.section-intro h2 {
  margin: 0;
  font-family: "Song Myung", serif;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.section-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.82;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  border-radius: 999px;
  padding: 0 34px;
  border: 1px solid transparent;
  font-size: 1.12rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #fff7f4;
  box-shadow: 0 14px 26px rgba(216, 88, 63, 0.22);
}

.button-primary:hover {
  background: var(--accent-deep);
}

.button-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.54);
}

.button-secondary:hover {
  border-color: rgba(31, 28, 26, 0.26);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.site-footer {
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.footer-brand,
.footer-note,
.footer-legal {
  margin: 0;
}

.footer-brand {
  font-family: "Song Myung", serif;
  font-size: 1.2rem;
}

.footer-note {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

.footer-legal {
  color: rgba(106, 98, 93, 0.92);
  line-height: 1.82;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .category-switchbar-inner {
    justify-content: flex-start;
    padding: 12px 0 14px;
    gap: 8px;
  }

  .switch-pill {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .section-block {
    padding-top: 42px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }
}
