/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* -------------------------
   Global Application Styles
   Journal Theme
-------------------------- */

/* === Global Page Layout === */

.page-container {
  display: grid;
  grid-template-columns: 3fr 1fr; /* main + sidebar */
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* --- Main column --- */
.page-main {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- Header inside main column --- */
.page-header {
  grid-column: 1; /* stay within main column only */
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-family: "DM Serif Text", serif;
  font-size: 2rem;
  color: #1e1e1e;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1rem;
  color: rgba(30, 30, 30, 0.65);
  margin: 0;
}

/* --- Sidebar --- */
.page-sidebar {
  grid-column: 2;
  position: relative;
  min-height: 100%;
}

.page-sidebar aside {
  position: sticky;
  top: 130px; /* adjust for your header height */
}

/* --- Page content section --- */
.page-content {
  width: 100%;
  grid-column: 1;
}

/* === Responsive Layouts === */
@media (max-width: 1000px) {
  .page-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-sidebar {
    grid-column: 1;
    position: static;
  }

  .page-header {
    padding-bottom: 12px;
  }
}


/* Links */
a {
  color: rgba(107, 76, 230, 1);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: rgba(107, 76, 230, 0.8);
}

/* Headings and paragraphs */
h1, h2, h3, h4, h5 {
  font-family: "DM Serif Text", serif;
  color: #1e1e1e;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(30, 30, 30, 0.8);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
