/* yesang.org — pop art honeycomb prediction matrix */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #f0e8d0;
  --pop-red: #c84040;
  --pop-blue: #4060a0;
  --pop-yellow: #e8c830;
  --pop-green: #408060;
  --benday: #d8c8a0;
  --text: #2a2420;
  --grain: #8a7a60;
}

html, body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Nanum Gothic', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  overflow: hidden;
}

.benday {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--benday) 2px, transparent 3px);
  background-size: 16px 16px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(120px, 25vw, 360px);
  line-height: 0.95;
  color: var(--text);
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
}

.hero-en {
  font-family: 'Bangers', cursive;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.32em;
  color: var(--pop-red);
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.hex-frame {
  margin-top: 36px;
  width: clamp(260px, 34vw, 420px);
  height: clamp(120px, 16vw, 180px);
  border: 3px solid var(--pop-red);
  clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 16px 36px;
}
.hex-frame-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--text);
}

/* Honeycomb */
.grid-wrap {
  position: relative;
  max-width: 1080px;
  margin: 60px auto;
  padding: 40px 32px;
}

.comb {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 14px;
  margin-bottom: 80px;
}

.hex {
  aspect-ratio: 1 / 1.05;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18%;
  text-align: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.hex.in { opacity: 1; transform: scale(1); }

.hex.c1 { background: var(--pop-red);   color: #fff; }
.hex.c2 { background: var(--pop-blue);  color: #fff; }
.hex.c3 { background: var(--pop-yellow); color: var(--text); }
.hex.c4 { background: var(--pop-green); color: #fff; }

.hex::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,0,0,0.18) 1.5px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.25;
  pointer-events: none;
}
/* Grain */
.hex::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
  opacity: 0.10;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hex-inner {
  position: relative;
  z-index: 2;
}

.bang {
  font-family: 'Bangers', cursive;
  font-size: clamp(20px, 2.6vw, 32px);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.18);
}

.hex p {
  font-size: 12.5px;
  line-height: 1.4;
}

.starburst {
  display: block;
  font-size: 22px;
  margin-top: 8px;
  opacity: 0.85;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.14);
}

@media (max-width: 720px) {
  .comb { grid-template-columns: repeat(2, 1fr); }
}

/* Thought bubble */
.bubble {
  position: relative;
  background: #fff;
  border: 2px dashed var(--text);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  padding: 32px 40px;
  max-width: 540px;
  margin: 60px auto;
  text-align: center;
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 18%;
  width: 28px;
  height: 28px;
  background: #fff;
  border: 2px dashed var(--text);
  border-radius: 50%;
  transform: scale(0.6);
}
.bubble-1 { transform: rotate(-2deg); }
.bubble-2 { transform: rotate(2deg); }

.bubble-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--text);
}

/* Comic strip */
.comic-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 80px auto 60px;
  padding: 0 24px;
  border: 3px solid var(--text);
  background: var(--cream);
}
.panel {
  border-right: 3px solid var(--text);
  padding: 28px 22px;
  position: relative;
  min-height: 220px;
  background-image:
    radial-gradient(circle, var(--benday) 1.5px, transparent 2px);
  background-size: 12px 12px;
}
.panel:last-child { border-right: none; }

.panel-1 { background-color: rgba(232, 200, 48, 0.18); }
.panel-2 { background-color: rgba(64, 96, 160, 0.16); }
.panel-3 { background-color: rgba(64, 128, 96, 0.16); }
.panel-4 { background-color: rgba(200, 64, 64, 0.18); }

.panel-num {
  font-family: 'Bangers', cursive;
  font-size: 28px;
  color: var(--pop-red);
  margin-bottom: 12px;
}
.panel-h {
  font-family: 'Bangers', cursive;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--text);
}
.panel p {
  font-family: 'Nanum Gothic', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .comic-strip { grid-template-columns: repeat(2, 1fr); }
  .panel:nth-child(2) { border-right: none; }
  .panel:nth-child(1), .panel:nth-child(2) { border-bottom: 3px solid var(--text); }
}
@media (max-width: 460px) {
  .comic-strip { grid-template-columns: 1fr; }
  .panel { border-right: none !important; border-bottom: 3px solid var(--text); }
  .panel:last-child { border-bottom: none; }
}

/* Footer */
.foot {
  text-align: center;
  padding: 40px 24px 80px;
  font-family: 'Bangers', cursive;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--grain);
}
