@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  color-scheme: light;
  --bg: #fffaf8;
  --bg-soft: #fff4fb;
  --bg-alt: #f7f0ff;
  --paper: rgba(255, 255, 255, 0.92);
  --ink: #201523;
  --muted: #706173;
  --line: rgba(107, 62, 147, 0.12);
  --line-strong: rgba(120, 47, 181, 0.22);
  --accent: #7c39c6;
  --accent-2: #b54ea9;
  --accent-soft: #efe1ff;
  --plum: #5d2199;
  --shadow: 0 28px 58px rgba(129, 71, 179, 0.12);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
  --font: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display-font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(234, 215, 255, 0.7), transparent 24%),
    radial-gradient(circle at 12% 18%, rgba(255, 223, 242, 0.65), transparent 17%),
    linear-gradient(180deg, #fffaf7 0%, #fff7f9 100%);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
}

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

.page-shell {
  width: min(calc(100% - 36px), var(--container));
  margin: 18px auto 40px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 252, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  color: var(--plum);
  font-size: 1.12rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a {
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  color: #4f3c56;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.header-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(124, 57, 198, 0.22);
}

.secondary-link {
  color: var(--accent);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  align-items: center;
  gap: 42px;
  min-height: calc(100svh - 120px);
  padding: 62px 0 76px;
}

.hero-kicker,
.section-kicker,
.mini-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  font-size: clamp(3.1rem, 7vw, 5.35rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-title-line { display: block; width: fit-content; }

.hero-title-line--accent {
  color: var(--accent);
  font-style: italic;
}

.hero-summary {
  max-width: 670px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: #463750;
}

.visual-stage {
  position: relative;
  min-height: 540px;
}

.visual-panel {
  position: absolute;
  inset: 20px 8px auto auto;
  width: min(100%, 410px);
  aspect-ratio: 0.84;
  border-radius: 36px;
  background:
    radial-gradient(circle at 65% 25%, rgba(238, 174, 255, 0.48), transparent 17%),
    linear-gradient(180deg, #3a203e 0%, #29173a 100%);
  box-shadow: 0 42px 74px rgba(72, 21, 88, 0.2);
  transform: rotate(1deg);
}

.visual-image {
  position: absolute;
  right: 0;
  top: 28px;
  width: min(100%, 430px);
  aspect-ratio: 0.84;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 28%, rgba(255, 149, 213, 0.26), transparent 15%),
    linear-gradient(180deg, #36233d 0%, #27142e 100%);
  box-shadow: 0 36px 62px rgba(63, 22, 75, 0.22);
}

.visual-fabric {
  position: absolute;
  inset: 18% 16% 12% 16%;
  border-radius: 40% 56% 34% 52%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #b663c6 0%, #8a39c4 58%, #5e2eb0 100%);
  filter: saturate(120%);
  transform: rotate(-5deg);
}

.visual-fabric--secondary {
  inset: 12% 28% 28% 30%;
  border-radius: 48% 34% 56% 40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.24), transparent 18%),
    linear-gradient(135deg, #f6b5db 0%, #b76ad5 55%, #7f3fd0 100%);
  transform: rotate(18deg);
  mix-blend-mode: screen;
}

.visual-note {
  position: absolute;
  left: 6%;
  bottom: 10%;
  width: min(70%, 290px);
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 18px 34px rgba(91, 39, 131, 0.14);
}

.visual-note__label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.visual-note__title {
  margin: 0;
  font-weight: 700;
  font-size: 1.02rem;
}

.visual-note__text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

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

.overview-card {
  padding: 26px 28px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.overview-card h2 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 500;
  font-size: clamp(1.46rem, 2.45vw, 2.18rem);
  line-height: 1.56;
  letter-spacing: -0.02em;
  color: #5d5564;
}

.overview-card .quote-text {
  font-size: 0.84em;
}

.overview-card .quote-mark {
  font-family: "Palatino Linotype", "Book Antiqua", Garamond, serif;
  font-size: 1.22em;
  font-weight: 600;
  line-height: 1;
  vertical-align: top;
}

.overview-card--accent {
  background: linear-gradient(180deg, rgba(241, 227, 255, 0.92), rgba(255, 241, 248, 0.95));
}

.chapter {
  margin-top: 116px;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 26px;
}

.section-head > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(180deg, #ebd0ff 0%, #d8b3ff 100%);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.section-head h2 {
  margin: 0;
  max-width: 920px;
  font-family: var(--display-font);
  font-weight: 500;
  font-size: clamp(1.38rem, 1.95vw, 1.86rem);
  line-height: 1.52;
  letter-spacing: -0.02em;
}

.section-head .section-kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--display-font);
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.section-ribbon {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(245, 233, 255, 0.92));
  box-shadow: 0 10px 22px rgba(129, 71, 179, 0.08);
  margin-bottom: 22px;
}

.section-ribbon__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
}

.section-ribbon__title {
  color: #493b51;
  font-weight: 700;
}

.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
}

.chapter-grid--single {
  grid-template-columns: 1fr;
  width: 100%;
}

#reporting .chapter-grid--single,
#reporting .paper-card:first-child,
#reporting .stack-card {
  width: 100%;
  max-width: none;
}

#reporting .scroll-table {
  width: 100%;
}

#reporting .data-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

#reporting .data-table th:nth-child(1),
#reporting .data-table td:nth-child(1) {
  width: 22%;
}

#reporting .data-table th:nth-child(2),
#reporting .data-table td:nth-child(2) {
  width: 40%;
}

#reporting .data-table th:nth-child(3),
#reporting .data-table td:nth-child(3) {
  width: 38%;
}

#reporting .data-table th,
#reporting .data-table td {
  word-break: keep-all;
}

.chapter-grid--adjustment {
  align-items: start;
}

.paper-card,
.criterion-card,
.resource-card,
.disclaimer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.paper-card {
  padding: 28px 30px;
}

.paper-card--mint {
  background: linear-gradient(180deg, rgba(243, 251, 247, 0.95), rgba(255, 255, 255, 0.95));
}

.paper-card--plum {
  background: linear-gradient(180deg, rgba(252, 245, 255, 0.95), rgba(255, 255, 255, 0.96));
}

.paper-card--soft {
  background: linear-gradient(180deg, rgba(255, 247, 251, 0.95), rgba(255, 255, 255, 0.96));
}

.paper-card--gradient {
  background:
    radial-gradient(circle at top right, rgba(232, 212, 255, 0.52), transparent 30%),
    linear-gradient(180deg, rgba(255, 248, 252, 0.95), rgba(255, 255, 255, 0.95));
}

.lead-text {
  margin: 0;
  font-size: 1.08rem;
  color: #3e3342;
}

.soft-intro {
  margin: 0 0 16px;
  color: var(--muted);
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.rule-list__item,
.criterion-card,
.resource-card,
.disclaimer-card {
  padding: 20px 22px;
}

.rule-list__item {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.rule-list__item h3,
.highlight-panel h3,
.resource-column h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.rule-list__item p,
.criterion-card p,
.resource-card p,
.disclaimer-card p {
  margin: 0;
  color: var(--muted);
}

.check-list,
.number-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 12px;
  color: #3b303f;
}

.check-list--dense { gap: 10px; }

.criterion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.criterion-card {
  background: rgba(255, 255, 255, 0.82);
}

.criterion-card--note {
  background: linear-gradient(180deg, rgba(243, 235, 255, 0.88), rgba(255, 255, 255, 0.9));
}

.scroll-table {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: rgba(130, 57, 198, 0.08);
  color: #3f3050;
  font-weight: 800;
}

.data-table--center th,
.data-table--center td {
  text-align: center;
}

.table-note {
  margin: 16px 0 0;
  color: var(--muted);
}

.highlight-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 242, 255, 0.95));
  box-shadow: var(--shadow);
}

.highlight-panel__group {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.flow-diagram {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.flow-pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.flow-pill--accent {
  border-color: rgba(181, 78, 169, 0.24);
  background: rgba(255, 229, 243, 0.9);
  color: var(--accent);
}

.flow-arrow {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 700;
}

.mini-formula-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.mini-formula-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
}

.mini-formula-box p {
  margin: 0;
  color: #4e4252;
  word-break: keep-all;
}

.stack-card {
  margin-top: 22px;
}

.resources-block {
  display: grid;
  gap: 28px;
}

.resource-column h3 {
  margin-bottom: 14px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.resource-card:hover,
.resource-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(129, 71, 179, 0.16);
  outline: none;
}

.resource-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(124, 57, 198, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.resource-card strong {
  font-size: 1.15rem;
}

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

.disclaimer-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.site-footer {
  margin-top: 80px;
  padding: 28px 10px 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--plum);
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

@media (max-width: 1080px) {
  .hero,
  .chapter-grid,
  .highlight-panel,
  .criterion-grid,
  .resource-grid,
  .disclaimer-grid,
  .overview-grid,
  .rule-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .visual-stage {
    min-height: 460px;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    border-radius: 28px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
    margin-top: 10px;
  }

  .hero {
    gap: 28px;
    padding: 34px 0 42px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-head > div {
    padding-top: 0;
  }

  .section-number {
    width: 62px;
  }

  .section-head h2 {
    font-size: clamp(1.18rem, 4.9vw, 1.52rem);
  }

  .section-head .section-kicker {
    font-size: 1rem;
  }

  .paper-card,
  .criterion-card,
  .resource-card,
  .disclaimer-card,
  .highlight-panel__group {
    padding: 22px 20px;
  }

  .section-ribbon {
    border-radius: 24px;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
  }
}
