/* sim-ai.net — vaporwave magazine spread */
:root {
  --deep-purple: #1a1228;
  --lavender: #c28eda;
  --sunset-pink: #e86b9e;
  --peach: #f4a683;
  --sky: #7eb4d8;
  --cream: #f0e8e0;
  --paper-white: #ffffff;
  --bg-gradient: linear-gradient(155deg, #f4a683 0%, #c28eda 38%, #1a1228 78%, #7eb4d8 100%);
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --body-font: "Nunito", "Inter", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--deep-purple);
  color: var(--cream);
  font-family: var(--body-font);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.7;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background layers */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.7;
}

.bg-haze {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 25%, rgba(244,166,131,0.35), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(126,180,216,0.30), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(232,107,158,0.20), transparent 60%),
    var(--bg-gradient);
  filter: saturate(1.05);
}

/* Cover */
.cover {
  position: relative;
  min-height: 100vh;
  padding: 6rem 6vw 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

.cover-blinds {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.cover-blinds span {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg,
    rgba(255,255,255,0.04) 0%,
    transparent 12%,
    transparent 88%,
    rgba(255,255,255,0.04) 100%);
}

.cover-cuts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.cover-inner {
  position: relative;
  z-index: 3;
  max-width: 980px;
  width: 100%;
  text-align: center;
  background: rgba(26, 18, 40, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4rem 3rem;
  box-shadow: 0 30px 90px rgba(26, 18, 40, 0.45),
    0 0 60px rgba(232, 107, 158, 0.18);
}

.masthead {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.masthead-label { color: var(--peach); font-weight: 700; }
.masthead-issue { color: var(--lavender); font-weight: 700; }
.masthead-price { color: var(--sky); font-weight: 700; }
.masthead-sep { color: var(--cream); opacity: 0.5; }

.cover-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(80px, 18vw, 220px);
  letter-spacing: 0.01em;
  line-height: 0.9;
  color: var(--paper-white);
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.04em;
  transform: skew(-2deg);
  margin-bottom: 1.4rem;
  text-shadow: 0 0 30px rgba(232, 107, 158, 0.45),
    0 0 60px rgba(126, 180, 216, 0.25);
}

.cover-glyph {
  display: inline-block;
  opacity: 0;
  animation: glyph-fade 0.6s ease-out forwards;
}

.cover-glyph:nth-child(1) { animation-delay: 0.4s; }
.cover-glyph:nth-child(2) { animation-delay: 0.5s; }
.cover-glyph:nth-child(3) { animation-delay: 0.6s; }
.cover-glyph:nth-child(5) { animation-delay: 0.8s; }
.cover-glyph:nth-child(6) { animation-delay: 0.9s; }

.cover-slash {
  display: inline-block;
  color: var(--peach);
  margin: 0 0.04em;
  opacity: 0;
  animation: glyph-fade 0.6s ease-out 0.7s forwards;
  text-shadow: 0 0 20px rgba(244, 166, 131, 0.6);
}

.cover-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 1.9vw, 22px);
  color: var(--cream);
  max-width: 56ch;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.cover-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.feature-item {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--peach);
}

.feature-num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--peach);
}

.cover-scroll {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: var(--cream);
  opacity: 0.7;
  animation: scroll-pulse 2.4s ease-in-out infinite;
}

/* Magazine spreads */
.magazine {
  position: relative;
  z-index: 2;
  padding: 4rem 5vw 5rem;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.spread {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2.4rem 2.6rem 2.8rem;
  box-shadow: 0 18px 60px rgba(26, 18, 40, 0.35),
    0 0 40px rgba(194, 142, 218, 0.12);
}

.spread-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 1.8rem;
}

.spread-section {
  color: var(--peach);
  font-weight: 700;
}

.spread-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--paper-white);
  letter-spacing: 0.005em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.spread-title--big {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.02;
  text-shadow: 0 0 24px rgba(232, 107, 158, 0.32);
}

/* Editorial */
.spread-grid--editorial {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2.6rem;
}

.spread-text {
  color: var(--cream);
}

.dropcap-paragraph {
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.dropcap {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 4.4em;
  float: left;
  line-height: 0.9;
  margin: 0.05em 0.12em 0 0;
  color: var(--peach);
  text-shadow: 0 0 12px rgba(244, 166, 131, 0.5);
}

.spread-text p {
  margin-bottom: 1rem;
  color: var(--cream);
}

.byline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 1.4rem;
  color: var(--lavender);
}

.byline strong {
  color: var(--peach);
}

.spread-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  border-left: 1px dashed rgba(255, 255, 255, 0.25);
  padding-left: 2rem;
}

.pull-quote {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  color: var(--paper-white);
}

.pull-mark {
  font-family: var(--serif);
  font-size: 4em;
  line-height: 0.6;
  display: block;
  color: var(--peach);
  margin-bottom: 0.2em;
  text-shadow: 0 0 18px rgba(244, 166, 131, 0.6);
}

.aside-stamp {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sky);
  align-self: flex-end;
}

/* Feature spread */
.spread-grid--feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto 1fr;
  gap: 1.6rem 2.2rem;
}

.spread-grid--reverse .feature-figure,
.spread-grid--reverse .feature-stats {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.spread-grid--reverse .feature-header,
.spread-grid--reverse .feature-body {
  grid-column: 2;
}

.feature-header {
  grid-column: 1;
  grid-row: 1;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sunset-pink);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 1.85vw, 22px);
  line-height: 1.45;
  color: var(--cream);
  margin-bottom: 1rem;
}

.feature-body {
  grid-column: 1;
  grid-row: 2;
  padding-right: 0.5rem;
}

.feature-body p {
  margin-bottom: 1rem;
  color: var(--cream);
}

.feature-body em {
  color: var(--peach);
  font-style: italic;
  font-weight: 600;
}

.feature-figure {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.figure-mock {
  position: relative;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(244,166,131,0.35), rgba(194,142,218,0.45), rgba(126,180,216,0.35));
  overflow: hidden;
}

.figure-rays {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 22px, rgba(255,255,255,0.05) 22px, rgba(255,255,255,0.05) 23px);
}

.figure-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(26,18,40,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,18,40,0.18) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.65;
}

.figure-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper-white);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
}

.figure-dot--a { top: 30%; left: 25%; background: var(--peach); }
.figure-dot--b { top: 55%; left: 60%; background: var(--sunset-pink); }
.figure-dot--c { top: 70%; left: 35%; background: var(--sky); }

.feature-figure figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  margin-top: 0.8rem;
  text-align: center;
}

.feature-stats {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.stat-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.2rem 1.4rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--peach);
}

.stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 42px);
  color: var(--peach);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
}

/* Column spread */
.spread-grid--column {
  max-width: 70ch;
  margin: 0 auto;
}

.column-text {
  font-family: var(--serif);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--cream);
}

.column-byline {
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-top: 1.4rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.gallery-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(26, 18, 40, 0.4),
    0 0 30px rgba(232, 107, 158, 0.18);
}

.gallery-image {
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-image--a { background: linear-gradient(135deg, var(--peach), var(--sunset-pink)); }
.gallery-image--b { background: linear-gradient(135deg, var(--lavender), var(--deep-purple)); }
.gallery-image--c { background: linear-gradient(135deg, var(--sky), var(--lavender)); }
.gallery-image--d { background: linear-gradient(135deg, var(--cream), var(--peach)); }

.gallery-card figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: var(--cream);
}

.gallery-card figcaption strong {
  font-style: normal;
  font-weight: 700;
  color: var(--peach);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

/* Colophon page */
.colophon-page-inner {
  max-width: 80ch;
  margin: 0 auto;
}

.colophon-list {
  list-style: none;
  margin: 1.6rem 0 2rem;
}

.colophon-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.2rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.col-key {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach);
  font-weight: 700;
}

.col-val {
  color: var(--cream);
  font-size: 15px;
  line-height: 1.55;
}

.closing-poem {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.9vw, 22px);
  text-align: center;
  color: var(--paper-white);
  line-height: 1.5;
  margin-top: 1.6rem;
}

/* Back cover */
.back-cover {
  position: relative;
  z-index: 2;
  background: rgba(26, 18, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2rem 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.back-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.back-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--peach);
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(244, 166, 131, 0.45);
}

.back-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--cream);
  opacity: 0.85;
}

.back-issue {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--lavender);
}

/* Reveal */
.spread {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s ease, transform 1s ease;
}

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

@keyframes glyph-fade {
  to { opacity: 1; }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

@media (max-width: 800px) {
  .spread-grid--editorial,
  .spread-grid--feature {
    grid-template-columns: 1fr;
  }
  .spread-grid--reverse .feature-figure,
  .spread-grid--reverse .feature-stats,
  .spread-grid--reverse .feature-header,
  .spread-grid--reverse .feature-body {
    grid-column: 1;
    grid-row: auto;
  }
  .feature-figure,
  .feature-stats,
  .feature-header,
  .feature-body {
    grid-column: 1;
    grid-row: auto;
  }
  .spread-aside {
    border-left: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.25);
    padding-left: 0;
    padding-top: 1.6rem;
  }
  .colophon-list li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .back-inner {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}
