/* ============================================
   NEWSPAPER DESIGN SYSTEM
   Classic editorial layout with bold typography
   ============================================ */

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: #fafaf8;
  color: #1a1a1a;
  font-family: 'Merriweather', serif;
}

/* ============================================
   Typography - Editorial Style
   ============================================ */

/* Newspaper masthead effect */
.newspaper-masthead {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 4px double #000;
  border-bottom: 4px double #000;
  padding: 0.75rem 0;
  font-size: 2.5rem;
}

/* Editorial headline styles */
.editorial-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Subheadline/deck style */
.editorial-deck {
  font-family: 'Merriweather', serif;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  border-left: 3px solid #000;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

/* Drop cap for first paragraph */
.drop-cap::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 5em;
  font-weight: 900;
  line-height: 0.8;
  float: left;
  margin: 0.05em 0.1em 0 0;
  color: #000;
}

/* Byline style */
.byline {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 0.5rem 0;
  margin: 1rem 0;
}

/* ============================================
   Layout - Column System
   ============================================ */

/* Two-column layout for content */
.newspaper-columns {
  column-count: 1;
  column-gap: 3rem;
  column-rule: 1px solid #ddd;
}

@media (min-width: 768px) {
  .newspaper-columns {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .newspaper-columns {
    column-count: 3;
  }
}

/* Prevent column breaks inside elements */
.no-break {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* ============================================
   Decorative Elements
   ============================================ */

/* Horizontal rule - newspaper style */
.newspaper-rule {
  border: none;
  border-top: 3px double #000;
  margin: 3rem 0;
  width: 100%;
}

/* Section divider with ornament */
.section-divider {
  text-align: center;
  margin: 4rem 0;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 2px;
  background: #000;
}

.section-divider::before {
  left: 0;
}

.section-divider::after {
  right: 0;
}

.section-divider span {
  background: #fafaf8;
  padding: 0 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Pull quote style */
.pull-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  border-left: 5px solid #000;
  border-right: 5px solid #000;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  background: #fff;
  font-style: italic;
}

/* ============================================
   Cards - Boxed Article Style
   ============================================ */

.article-box {
  border: 2px solid #000;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-box:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

/* ============================================
   Header & Navigation
   ============================================ */

header {
  background: #fafaf8;
  border-bottom: 3px solid #000;
}

header a {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  color: #000;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  transition: all 0.2s;
}

header a:hover {
  border: 2px solid #000;
  background: #000;
  color: #fafaf8;
}

/* ============================================
   Buttons - Bold Newspaper CTA
   ============================================ */

.btn-newspaper {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2.5rem;
  border: 3px solid #000;
  background: #000;
  color: #fafaf8;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-newspaper:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  background: #fafaf8;
  color: #000;
}

.btn-newspaper:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 #000;
}

.btn-newspaper-outline {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2.5rem;
  border: 3px solid #000;
  background: #fafaf8;
  color: #000;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-newspaper-outline:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  background: #000;
  color: #fafaf8;
}

/* ============================================
   Forms - Editorial Style
   ============================================ */

input[type="email"],
input[type="text"],
textarea {
  font-family: 'Merriweather', serif;
  border: 2px solid #000;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #000;
  min-height: 44px;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  outline: none;
  box-shadow: 4px 4px 0 #000;
  transform: translate(-2px, -2px);
}

/* ============================================
   Mobile Menu
   ============================================ */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobile-menu {
  animation: slideDown 0.3s ease-out;
  border-top: 2px solid #000;
  background: #fafaf8;
}

/* ============================================
   Accessibility
   ============================================ */

.focus-visible:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Print Styles (for actual newspaper feel)
   ============================================ */

@media print {
  body {
    background: white;
  }

  .newspaper-masthead {
    border-top: 4px solid black;
    border-bottom: 4px solid black;
  }

  .article-box {
    box-shadow: none;
  }
}