/* Complete rewrite for magazine 2010s glossy aesthetic */

/* CMYK Glossy Palette */
:root {
  --paper: #f7f7f9;
  --black: #0f1113;
  --magenta: #ff2d6f;
  --cyan: #19c2ff;
  --yellow: #ffd400;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--paper);
}

/* Magazine Utilities */
.mag-cover {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.glossy {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.cmyk-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--magenta) 0%, var(--cyan) 50%, var(--yellow) 100%);
}

.rubric-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--black);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.rubric-tag:hover {
  background: var(--magenta);
  transform: translateY(-2px);
}

.dropcap::first-letter {
  float: left;
  font-size: 4rem;
  line-height: 0.8;
  margin: 0.1rem 0.5rem 0 0;
  font-weight: bold;
  color: var(--magenta);
}

.photo-frame {
  border: 2px solid var(--black);
  padding: 4px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

.photo-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.sticky-kicker {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--magenta);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pullquote {
  border-left: 4px solid var(--magenta);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: rgba(255, 45, 111, 0.05);
}

.meta-bar {
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  padding: 1rem 0;
}

.page-num {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.paper-texture {
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.01) 2px,
    rgba(0, 0, 0, 0.01) 4px
  );
}

.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.masonry-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.masonry-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.byline {
  font-style: italic;
  font-weight: 500;
}

.lede {
  font-weight: 500;
}

.deck {
  font-weight: 400;
  line-height: 1.5;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature-spread {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-spread.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.figure-caption {
  font-style: italic;
  color: #666;
}

.ink-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Header Shrink */
.header-shrink {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.header-shrink .site-logo h1 {
  font-size: 1.5rem !important;
}

.header-shrink .deck {
  display: none;
}

/* Burger Menu */
.burger-menu {
  cursor: pointer;
  transition: all 0.3s ease;
}

.burger-line {
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dropcap::first-letter {
    font-size: 3rem;
  }

  .masonry {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Selection */
::selection {
  background: var(--magenta);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--black);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--magenta);
}
