/* ============================================
   MPNHome.net — Main Stylesheet
   Deep forest green & parchment theme
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #1c1c1c;
  background: #f5f0e8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Header === */
.site-header {
  background: #1e3d2f;
  color: #fff;
  border-bottom: 4px solid #c9a84c;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.header-cross {
  flex-shrink: 0;
  opacity: 0.9;
}

.header-text h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: bold;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
}

.site-subtitle {
  font-size: 0.82rem;
  color: #c9a84c;
  margin-top: 0.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
}

/* === Navigation === */
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(201,168,76,0.3);
}

.site-nav li {
  display: flex;
}

.site-nav a {
  display: inline-block;
  color: #d4c9a8;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #fff;
  border-bottom-color: #c9a84c;
  background: rgba(255,255,255,0.05);
  outline: none;
}

.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #c9a84c;
}

/* === Main Content === */
.site-main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

/* === Content Sections === */
.content-section {
  margin-bottom: 2.75rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #d8cdb8;
}

.content-section:last-of-type {
  border-bottom: none;
}

.content-section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #1e3d2f;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c9a84c;
  display: inline-block;
}

.content-section p {
  margin-bottom: 1rem;
  max-width: 70ch;
  color: #2a2a2a;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* === Study Link Cards === */
.study-links {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.study-links a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 1rem 1.25rem;
  background: #fffdf7;
  border: 1px solid #c9a84c;
  border-left: 4px solid #1e3d2f;
  border-radius: 3px;
  transition: background 0.18s, border-left-color 0.18s, box-shadow 0.18s;
}

.study-links a:hover,
.study-links a:focus {
  background: #f0ece0;
  border-left-color: #c9a84c;
  box-shadow: 0 2px 8px rgba(30,61,47,0.10);
  outline: 2px solid #1e3d2f;
  outline-offset: 2px;
}

.card-icon {
  font-size: 0.6rem;
  color: #c9a84c;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.card-title {
  display: block;
  font-weight: bold;
  font-style: italic;
  color: #1e3d2f;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.card-desc {
  display: block;
  font-weight: normal;
  font-style: normal;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.55;
}

/* Grid for 4 study sections */
.study-links--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  flex-direction: unset;
}

.study-links--grid .card-title {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

/* === Author Signature === */
.author-sig {
  font-style: italic;
  color: #4a4a4a;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #d8cdb8;
}

/* === Revised Date === */
.revised-date {
  font-size: 0.82rem;
  color: #888;
  font-style: italic;
  margin-top: 1.5rem;
}

/* === Footer === */
.site-footer {
  background: #132b20;
  color: #c4b99a;
  padding: 1.75rem 0;
  border-top: 4px solid #c9a84c;
  margin-top: auto;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0;
  padding: 0;
  margin: 0 0 0.85rem;
}

.footer-nav li:not(:last-child)::after {
  content: '·';
  color: #c9a84c;
  margin: 0 0.5rem;
}

.footer-nav a {
  color: #c4b99a;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: #fff;
  outline: none;
}

.footer-copy {
  font-size: 0.78rem;
  color: #7a7060;
  font-style: italic;
}

/* === Prose links === */
a { color: #1e3d2f; }
a:hover, a:focus { color: #c9a84c; text-decoration: underline; }

/* === Breadcrumb === */
.breadcrumb {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 1.75rem;
}
.breadcrumb a {
  color: #1e3d2f;
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; color: #aaa; }

/* === Inner page elements === */
h1 { font-size: 1.6rem; color: #1e3d2f; margin-bottom: 0.5rem; }
h3 { font-size: 1.05rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; color: #1e3d2f; margin: 1.5rem 0 0.5rem; }
h4 { font-size: 1rem; font-weight: bold; color: #1e3d2f; margin: 1.25rem 0 0.4rem; }

hr {
  border: none;
  border-top: 1px solid #c9a84c;
  margin: 1.75rem 0;
}

/* === Study Article Pages === */
.study-article {
  max-width: 72ch;
}

.study-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  color: #1e3d2f;
  font-weight: bold;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #c9a84c;
}

.study-intro {
  background: #f5f0e8;
  border-left: 4px solid #1e3d2f;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  border-radius: 0 3px 3px 0;
  font-size: 0.95rem;
}

.study-intro p { margin-bottom: 0.5rem; }
.study-intro p:last-child { margin-bottom: 0; }

.study-section { margin-bottom: 0.5rem; }

.study-section h3 {
  font-size: 0.95rem;
  font-weight: bold;
  color: #1e3d2f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.85rem;
}

.study-section p { margin-bottom: 1rem; }
.study-section p:last-child { margin-bottom: 0; }

/* Scripture block */
.scripture {
  background: #fffdf7;
  border-left: 3px solid #c9a84c;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border-radius: 0 3px 3px 0;
  font-size: 0.95rem;
  color: #2a2a2a;
}

.scripture p { margin-bottom: 0.75rem; }
.scripture p:last-child { margin-bottom: 0; }

/* Prayer section */
.study-prayer {
  background: #f0ece0;
  border: 1px solid #c9a84c;
  border-left: 4px solid #1e3d2f;
  padding: 1rem 1.25rem;
  border-radius: 0 3px 3px 0;
  font-style: italic;
}

.study-prayer h3 {
  font-style: normal;
  color: #1e3d2f;
}

/* Ordered list in about page */
.study-ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0 1rem;
}

.study-ol li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* === Responsive === */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .header-text h1 { font-size: 1.35rem; }
  .study-links--grid { grid-template-columns: 1fr; }
  .site-nav a { padding: 0.55rem 0.7rem; font-size: 0.75rem; }
}
