/* ============================================
   p9.rs — Pop-Art Computing Zine
   Colors: #4A7C96, #C9A23D, #C4503A, #8B7D6B,
           #F5ECD7, #1A120B, #A67C52, #2C1E10
   ============================================ */

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

html {
  scroll-behavior: smooth;
  background: #1A120B;
}

body {
  font-family: 'Literata', Georgia, serif;
  color: #F5ECD7;
  background: #1A120B;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- Utility backgrounds ---- */
.dots-fine-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Ccircle cx='3' cy='3' r='1' fill='%23C4503A' opacity='0.3'/%3E%3C/svg%3E");
}
.dots-medium-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Ccircle cx='5' cy='5' r='2' fill='%234A7C96' opacity='0.25'/%3E%3C/svg%3E");
}
.dots-coarse-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='4' fill='%23C9A23D' opacity='0.2'/%3E%3C/svg%3E");
}

/* ---- Section Labels ---- */
.section-label {
  padding: 2rem 3rem 1rem;
}
.label-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8B7D6B;
}

/* ============================================
   MASTHEAD
   ============================================ */
#masthead {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #2C1E10;
  overflow: hidden;
}

#masthead .benday-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.masthead-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.masthead-title {
  font-family: 'Bungee Shade', cursive;
  font-size: clamp(8rem, 25vw, 20rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #C4503A;
  line-height: 1;
  text-shadow: 0.04em 0.04em 0 #C9A23D, 0.08em 0.08em 0 #1A120B;
}

.masthead-bubble {
  margin-top: 2rem;
}

/* ---- Speech Bubbles ---- */
.speech-bubble {
  display: inline-block;
  position: relative;
  background: #F5ECD7;
  color: #1A120B;
  border: 3px solid #1A120B;
  border-radius: 1.5rem;
  padding: 0.75rem 1.5rem;
}

.bubble-text {
  font-family: 'Dela Gothic One', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bubble-text.caveat {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.bubble-tail {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 14px solid #1A120B;
}
.bubble-tail::after {
  content: '';
  position: absolute;
  top: -17px;
  left: -9px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid #F5ECD7;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  z-index: 1;
  animation: bounce 2s ease infinite;
}
.scroll-arrow {
  color: #C9A23D;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ============================================
   HONEYCOMB GRID
   ============================================ */
#honeycomb-grid {
  padding: 2rem 0 4rem;
  background: #1A120B;
}

.honeycomb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hex-cell {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 0.4s ease;
}
.hex-cell:hover {
  transform: scale(1.05);
}

.hex-large {
  width: 320px;
  height: 360px;
}
.hex-medium {
  width: 240px;
  height: 270px;
}
.hex-small {
  width: 160px;
  height: 180px;
}

.hex-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background-color: #2C1E10;
}

.hex-inner.accent-rust { background-color: #C4503A; }
.hex-inner.accent-teal { background-color: #4A7C96; }
.hex-inner.accent-gold { background-color: #C9A23D; color: #1A120B; }
.hex-inner.accent-deep { background-color: #1A120B; }

.hex-heading {
  font-family: 'Dela Gothic One', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hex-body {
  font-family: 'Literata', serif;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.9;
}

.hex-glyph {
  font-size: 3rem;
  color: #F5ECD7;
}

/* ============================================
   COMIC PANELS
   ============================================ */
#comic-panels {
  padding: 2rem 0 4rem;
  background: #2C1E10;
}

.panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.comic-panel {
  min-height: 280px;
}

.panel-wide {
  grid-column: span 2;
}

@media (max-width: 700px) {
  .panel-wide { grid-column: span 1; }
}

.panel-border {
  width: 100%;
  height: 100%;
  border: 4px solid #1A120B;
  box-shadow: 6px 6px 0 #1A120B;
  overflow: hidden;
  background: #F5ECD7;
}

.panel-content {
  width: 100%;
  height: 100%;
  min-height: 260px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #1A120B;
  position: relative;
}

.panel-speech {
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.panel-caption h3 {
  font-family: 'Dela Gothic One', sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: #C4503A;
}

.panel-caption p {
  font-family: 'Literata', serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2C1E10;
}

.panel-caption code {
  font-family: 'Inter', monospace;
  background: #C9A23D;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.85em;
}

.panel-content.accent-deep {
  background-color: #1A120B;
  color: #C9A23D;
}

.code-art {
  font-family: 'Inter', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre;
  color: #4A7C96;
}

/* Lichtenstein burst */
.lichtenstein-burst {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  background: #C4503A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #1A120B;
  position: relative;
  box-shadow: 4px 4px 0 #1A120B;
}

.lichtenstein-burst span {
  font-family: 'Bungee Shade', cursive;
  font-size: 2.5rem;
  color: #C9A23D;
  text-shadow: 2px 2px 0 #1A120B;
}

/* ============================================
   WARHOL GRID
   ============================================ */
#warhol-grid {
  padding: 2rem 0 4rem;
  background: #1A120B;
}

.warhol-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 800px;
  margin: 0 auto;
  border: 4px solid #F5ECD7;
}

.warhol-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cell-bg);
  border: 2px solid #1A120B;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.warhol-cell:hover {
  transform: scale(1.08);
  z-index: 2;
}

.warhol-cell span {
  font-family: 'Bungee Shade', cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--cell-fg);
  letter-spacing: 0.05em;
  user-select: none;
}

/* ============================================
   MANIFESTO
   ============================================ */
#manifesto {
  position: relative;
  padding: 6rem 3rem;
  background: #2C1E10;
  overflow: hidden;
}

#manifesto .benday-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.manifesto-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-heading {
  font-family: 'Dela Gothic One', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-transform: uppercase;
  color: #C9A23D;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.manifesto-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 600px) {
  .manifesto-columns { grid-template-columns: 1fr; gap: 1.5rem; }
}

.manifesto-col p {
  font-family: 'Literata', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #F5ECD7;
  text-align: left;
}

.manifesto-bubble {
  margin-top: 1rem;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-anim="fade-up"].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .honeycomb {
    gap: 1rem;
    padding: 0 1rem;
  }
  .hex-large { width: 260px; height: 290px; }
  .hex-medium { width: 200px; height: 225px; }
  .hex-small { width: 130px; height: 146px; }
  .panels-grid { padding: 0 1.5rem; }
  #manifesto { padding: 4rem 1.5rem; }
}
