/* CSS Custom Properties - Design Tokens */
:root {
  /* Color Palette */
  --color-bg-primary: #faf3e0;
  --color-bg-secondary: #ececec;
  --color-accent-primary: #D7613C;
  --color-accent-secondary: #7e4a6c;
  --color-text-primary: #333;
  --color-text-heading: #000;
  --color-text-light: #666;
  --color-border: #ddd;
  --color-code-bg: #1e1e1e;
  --color-white: #fff;

  /* Typography */
  --font-serif: 'Cardo', serif;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-code: 'Fira Code', 'Courier New', monospace;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

body {
  background:
      url("/images/general/blackorchid.png") repeat-x center 350px,
      linear-gradient(to bottom, var(--color-bg-primary), var(--color-bg-secondary));
  background-size: auto 15px, cover;
  color: var(--color-text-primary);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  color: var(--color-text-heading);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

a {
  color: inherit;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* Homepage-specific wider container */
body .container-narrow {
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Newspaper Style Elements */
.masthead {
  /* border-bottom: 4px solid #000; */
  padding-top: 30px;
  padding-bottom: 0rem;
  margin-bottom: 0rem;
}

.masthead h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.tagline {
  font-style: italic;
  font-size: 1.1rem;
  margin: 1rem 0;
  color: #666;
}

.nav-bar {
  border-top: 2px solid var(--color-text-heading);
  border-bottom: 1px solid var(--color-text-heading);
  padding: 0.75rem 0;
  margin: 1.5rem 0;
}

.nav-bar a {
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 0.4em 0.8em;
  display: inline-block;
  border-right: 1px solid var(--color-border);
}

.nav-bar a:last-child,
.nav-bar .dropdown:last-child {
  border-right: none;
}

.nav-bar a:hover {
  background-color: var(--color-text-heading);
  color: var(--color-bg-primary);
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;
}

/* Dropdown Navigation */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Make dropdown toggle match navbar link styling */
.nav-bar .dropdown {
  border-right: 1px solid var(--color-border);
}

.nav-bar .dropdown-toggle {
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.4em 0.8em;
  display: inline-block;
}

.nav-bar .dropdown-toggle:hover {
  background-color: var(--color-text-heading);
  color: var(--color-bg-primary);
  border-radius: 4px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-width: 160px;
  text-align: left;
  z-index: 1000;
}

.dropdown-item {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: #f5f5f5;
  color: var(--color-text-heading);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Main Content Layout */
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.feature-section {
  border-bottom: 2px solid #000;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.feature-section h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid #000;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.section-secondary h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #000;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

/* Article Listings */
.article-listing {
  margin-bottom: 0rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.article-listing:last-child {
  border-bottom: none;
}

.article-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.article-title a {
  text-decoration: none;
  color: #333;
}

.article-title a:hover {
  text-decoration: underline;
}

.article-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #D7613C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.article-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}

/* Blog Posts */
.blog-post {
  margin-bottom: 1.5rem;
  padding-bottom: 0rem;
  border-bottom: 1px dotted #ccc;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.blog-title a {
  text-decoration: none;
  color: #000;
}

.blog-title a:hover {
  text-decoration: underline;
}

.blog-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #D7613C;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Fieldnotes Twitter-style */
.fieldnote {
  background: #f5efe3;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #444;
}

.fieldnote-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.fieldnote-label {
  font-size: 0.7rem;

}

.fieldnote-label a {
  font-size: 0.75rem;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  color: #D7613C;
  letter-spacing: 0.4px;
}

.fieldnote-label a:hover {
  text-decoration: underline;
}

.fieldnote-body p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
}

.fieldnote-item {
  margin-bottom: 1.5rem;
  border-top: 1px solid #1f2937;
  border-left: 1px solid #1f2937;
  padding-top: .7rem;
  padding-left: .7rem;
}

.fieldnote-text {
  font-size: .8rem;
  color: #1f2937; /* dark slate */
  margin-bottom: 0.25rem;
}

.fieldnote-link {
  font-weight: 500;
  color: #1e40af;
  text-decoration: none;
  font-size: 0.85rem;
}

.fieldnote-link:hover {
  color: #3b82f6;
  text-decoration: underline;
}


/* Reading List */
.reading-list {
  list-style: none;
  padding: 0;
}

.reading-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3; /* Reduce overall line spacing */
}

.reading-list li i {
  position: absolute;
  left: 0;
  top: 0.25rem;
  color: #000;
  font-size: 0.8rem;
}

.book-title {
  font-weight: 700;
  font-style: italic;
}

.book-author {
  color: #666;
  font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
  padding-left: 2rem;
  border-left: 2px solid #000;
}

.sidebar-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #333; /* or #666 for lighter tone */
  line-height: 1.5;
}

/* Footer */
.footer {
  border-top: 2px solid #000;
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.footer small {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-links {
  text-align: center;
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

/* Hide the <br> tag on homepage to keep everything on one line */
.social-links br {
  display: none;
}

.social-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  padding: 0 0.75rem;
  display: inline-block;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--color-accent-primary);
}

/* Back to Index Button */
.back-to-index {
  text-align: center;
  margin: 2rem 0;
}

.back-to-index a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border: 2px solid #000;
  color: #000;
  transition: all 0.3s ease;
}

.back-to-index a:hover {
  background-color: #000;
  color: #faf3e0;
}


/* Buttons */
.btn-outline-dark {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border: 2px solid #000;
  color: #000;
  background-color: transparent;
  transition: all 0.3s ease;
  display: inline-block;
  border-radius: 0; /* keeps it editorial — you could soften it if needed */
}

.btn-outline-dark:hover {
  background-color: #000;
  color: #faf3e0;
}

.btn-outline-accent {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border: 2px solid #D7613C;
  color: #D7613C;
  background-color: transparent;
  transition: all 0.3s ease;
  display: inline-block;
  border-radius: 0;
}

.btn-outline-accent:hover {
  background-color: #D7613C;
  color: #faf3e0;
}

.btn-more {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.4px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .social-links a {
    padding: 0 0.5rem;
    font-size: 0.8rem;
  }

  .sidebar {
    border-left: none;
    border-top: 2px solid #000;
    padding-left: 0;
    padding-top: 2rem;
  }

  .masthead h1 {
    font-size: 2.5rem;
  }

  .nav-bar a {
    padding: 0 0.5rem;
    font-size: 0.8rem;
  }
}


/* Hero Image Section */
.hero-section {
  position: relative;
  height: 300px;
  overflow: hidden;
  margin-top: -20px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000; /* move it here */
}

.container-narrow {
  width: 100%;
  max-width: 720px;
  padding: 0 1rem;
}


.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-image.active {
  opacity: 1;
}

.hero-overlay.center-style {
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: none;
  padding: 0 1rem;
  z-index: 3;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.3px;
  max-width: 100%;         /* reduced from 90% to give more room to flow wide */
  margin: 0 auto;
  white-space: normal;
  text-align: right;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    background-position: center 300px, center top;
  }

  .hero-section {
    height: 200px;
  }

  .hero-overlay {
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  }

  .hero-headline {
    font-size: 1.3rem;
    line-height: 1.35;
    max-width: 100%;
  }

  .hero-caption {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1rem;
    line-height: 1.4;
    max-width: 95%;
  }
}