/* base.css */
:root {
  --ink:        #1a1008;
  --parchment:  #f5f0e8;
  --aged:       #e8dcc8;
  --sepia:      #8b6914;
  --rust:       #8b2500;
  --muted:      #6b5a45;
  --border:     #c9b99a;
  --white-ink:  #fdfaf5;
  --shadow:     0 2px 8px rgba(26,16,8,0.15);
  --radius:     0px;                          /* No border-radius — sharp editorial corners */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-label:   'Cinzel', serif;
  --max-width:    1200px;
  --col-gap:      24px;
}

/* Paper texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('/static/img/noise-texture.png');
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

body {
  font-family: var(--font-body);
  background-color: var(--parchment);
  color: var(--ink);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: var(--sepia);
  text-decoration: none;
}

a:hover {
  color:var(--gold-ink);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5em;
}

/* Structural Components */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}

/* Ornamental divider */
.ornament {
  text-align: center;
  color: var(--sepia);
  font-size: 1.2rem;
  letter-spacing: 0.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ornament::before, .ornament::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: var(--border);
  margin: 0 1rem;
}

/* Article card */
.article-card {
  background: var(--parchment);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: 4px 4px 0 var(--sepia);
}

.article-card .category-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 0.5rem;
}

.article-card h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0.5rem 0;
}

.article-card .meta {
  font-family: var(--font-label);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 1rem;
}

/* Drop cap */
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin: 0.1em 0.1em 0 0;
  color: var(--sepia);
}

/* Breaking ticker */
.breaking-ticker {
  background: var(--rust);
  color: var(--white-ink);
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.breaking-ticker .label {
  background: var(--ink);
  padding: 6px 12px;
  display: inline-block;
  margin-right: 1rem;
}

.breaking-ticker marquee {
  display: inline-block;
  vertical-align: middle;
}

/* Mobile Responsive overrides added by plan */
@media (max-width: 991px) {
  .grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .grid > div {
    grid-column: span 4 !important;
  }
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: block !important;
  }
  .primary-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--parchment);
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 1000;
  }
  .primary-nav.active {
    display: flex;
  }
  .primary-nav a {
    padding: 1rem;
    border-top: 1px solid var(--border);
  }
}
