@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;800&family=Cormorant+Garamond:wght@600&display=swap");

:root {
  --bg: #f7f2e9;
  --bg-2: #efe6d8;
  --card: rgba(255, 252, 246, 0.9);
  --text: #2d251e;
  --muted: #6b5a4c;
  --line: rgba(87, 68, 53, 0.16);
  --oak: #8f6d4f;
  --oak-deep: #6c4f37;
  --shadow: 0 24px 60px rgba(75, 56, 40, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(232, 216, 194, 0.7), transparent 30%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 42%, #f1e8da 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(104, 82, 61, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 82, 61, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
  z-index: -1;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

code {
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(108, 79, 55, 0.08);
  color: var(--oak-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.page {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.96), rgba(245, 234, 219, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 127, 94, 0.22), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(143, 109, 79, 0.09);
  color: var(--oak-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  margin: 18px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 780px;
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.button.primary {
  background: var(--oak-deep);
  color: #fff8f0;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--line);
  color: var(--oak-deep);
}

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

.stat {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(126, 96, 70, 0.12);
}

.stat .label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat .value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.nav {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 26px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(251, 247, 240, 0.86);
  backdrop-filter: blur(12px);
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.nav a:hover {
  background: rgba(143, 109, 79, 0.08);
  color: var(--oak-deep);
}

section {
  margin-top: 22px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.section-intro {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.panel {
  height: 100%;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(108, 79, 55, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 244, 235, 0.94));
}

.panel ul,
.comparison ul {
  margin: 0;
  padding-left: 18px;
}

.panel p,
.panel li,
.comparison li {
  line-height: 1.75;
  color: var(--muted);
}

.panel strong,
.comparison strong {
  color: var(--text);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(143, 109, 79, 0.11);
  color: var(--oak-deep);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

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

.thumb-card,
.evidence-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(108, 79, 55, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 239, 229, 0.95));
  box-shadow: 0 18px 40px rgba(79, 59, 42, 0.08);
}

.thumb-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.thumb-button:focus-visible {
  outline: 3px solid rgba(108, 79, 55, 0.4);
  outline-offset: -3px;
}

.thumb-button img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.thumb-button:hover img {
  transform: scale(1.02);
}

.thumb-copy {
  padding: 18px 18px 20px;
}

.thumb-copy h3 {
  font-size: 18px;
}

.thumb-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--oak-deep);
  font-size: 13px;
  font-weight: 700;
}

.meta-line a,
.video-link {
  text-decoration: none;
  color: var(--oak-deep);
  font-weight: 800;
}

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

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

.evidence-card .copy {
  padding: 20px 22px 22px;
}

.dense-overview {
  margin-bottom: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(143, 109, 79, 0.11);
  color: var(--oak-deep);
  font-size: 12px;
  font-weight: 800;
}

.evidence-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}

.thumb-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(152px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 0 22px 22px;
}

.thumb-strip::-webkit-scrollbar {
  height: 8px;
}

.thumb-strip::-webkit-scrollbar-thumb {
  background: rgba(108, 79, 55, 0.18);
  border-radius: 999px;
}

.thumb-strip .thumb-button {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(108, 79, 55, 0.1);
}

.thumb-strip .thumb-button img {
  aspect-ratio: 16 / 10;
}

.pilot-meta {
  margin-bottom: 12px;
  color: var(--oak-deep);
  font-size: 13px;
  font-weight: 800;
}

.pilot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ranked-list {
  display: grid;
  gap: 12px;
}

.ranked-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(108, 79, 55, 0.08);
}

.ranked-item h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.ranked-item p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.ranked-item a {
  text-decoration: none;
  color: var(--oak-deep);
  font-weight: 800;
  font-size: 14px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(108, 79, 55, 0.1);
  line-height: 1.7;
}

.comparison-table th {
  color: var(--oak-deep);
  font-size: 14px;
  background: rgba(143, 109, 79, 0.08);
}

.comparison-table td {
  color: var(--muted);
  font-size: 15px;
}

.comparison-panels {
  margin-top: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.footer-links a {
  text-decoration: none;
  font-weight: 800;
  color: var(--oak-deep);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 18, 13, 0.84);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.lightbox.open {
  display: flex;
}

.lightbox-shell {
  position: relative;
  width: min(1320px, 96vw);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.lightbox-stage {
  min-width: 0;
}

.lightbox-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255, 247, 236, 0.9);
}

.lightbox-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lightbox-counter {
  font-size: 14px;
  font-weight: 700;
}

.lightbox-figure {
  margin: 0;
}

.lightbox-figure img {
  width: 100%;
  max-height: 72vh;
  display: block;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.lightbox-caption {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: rgba(255, 247, 236, 0.88);
  line-height: 1.75;
}

.lightbox-caption strong {
  font-size: 20px;
}

.lightbox-meta {
  color: rgba(255, 247, 236, 0.72);
  font-size: 14px;
}

.lightbox-link {
  display: inline-flex;
  margin-top: 14px;
  text-decoration: none;
  font-weight: 800;
  color: #fff0df;
}

.lightbox-link.hidden {
  display: none;
}

.lightbox-nav,
.lightbox-close {
  border: 0;
  color: #fff8f0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.lightbox-nav {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.14);
  font-size: 28px;
  line-height: 1;
}

.lightbox-close {
  position: absolute;
  top: -6px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.16);
  font-size: 22px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  transform: scale(1.03);
  background: rgba(255, 248, 236, 0.24);
}

.lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 1100px) {
  .thumbnail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .stats,
  .grid.three,
  .evidence-grid,
  .pilot-grid,
  .grid.two,
  .thumbnail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 34px 24px;
  }

  section {
    padding: 24px 20px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .lightbox-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lightbox-nav.prev,
  .lightbox-nav.next {
    position: static;
    justify-self: center;
  }

  .lightbox-close {
    top: -10px;
    right: -2px;
  }

  .thumb-strip {
    grid-auto-columns: 74vw;
  }
}
