
/* CSS Prefix: gms- */

:root {
  --gms-primary: #6b7280;
  --gms-primary-dark: #4b5563;
  --gms-secondary: #8b5a2b;
  --gms-secondary-dark: #704a23;
  --gms-accent: #d4a574;
  --gms-memorial: #9ca3af;
  --gms-text: #1f2937;
  --gms-text-light: #6b7280;
  --gms-bg: #fdfcfb;
  --gms-bg-alt: #f5f3f0;
  --gms-bg-warm: #faf8f5;
  --gms-border: #e5e2de;
  --gms-shadow: 0 1px 3px rgba(107, 114, 128, 0.1);
  --gms-shadow-lg: 0 10px 40px rgba(107, 114, 128, 0.15);
  --gms-radius: 8px;
  --gms-radius-lg: 16px;
  --gms-max-width: 1200px;
  --gms-content-width: 800px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.gms-body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--gms-text);
  background: var(--gms-bg);
  line-height: 1.8;
  font-size: 18px;
}

.gms-container {
  max-width: var(--gms-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.gms-header {
  background: var(--gms-bg);
  border-bottom: 1px solid var(--gms-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.gms-header .gms-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.gms-logo img {
  height: 52px;
  width: auto;
}

.gms-nav {
  display: flex;
  gap: 8px;
}

.gms-nav a {
  color: var(--gms-text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--gms-radius);
  font-size: 15px;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 500;
  transition: all 0.2s;
}

.gms-nav a:hover {
  background: var(--gms-bg-alt);
  color: var(--gms-secondary);
}

/* Breadcrumb */
.gms-breadcrumb {
  background: var(--gms-bg-alt);
  padding: 12px 0;
  border-bottom: 1px solid var(--gms-border);
}

.gms-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-family: system-ui, -apple-system, sans-serif;
}

.gms-breadcrumb li {
  display: flex;
  align-items: center;
}

.gms-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--gms-text-light);
}

.gms-breadcrumb a {
  color: var(--gms-secondary);
  text-decoration: none;
}

.gms-breadcrumb a:hover {
  text-decoration: underline;
}

.gms-breadcrumb span {
  color: var(--gms-text-light);
}

/* Main Content */
.gms-main {
  min-height: calc(100vh - 300px);
}

/* Article Styles */
.gms-article {
  max-width: var(--gms-content-width);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.gms-article-header {
  margin-bottom: 48px;
  text-align: center;
}

.gms-article-title {
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--gms-text);
  margin-bottom: 20px;
  font-style: italic;
}

.gms-article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: var(--gms-text-light);
  font-size: 15px;
  font-family: system-ui, -apple-system, sans-serif;
}

.gms-article-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gms-article-content {
  font-size: 18px;
  line-height: 1.9;
}

.gms-article-content h2 {
  font-size: 1.6rem;
  font-weight: 400;
  margin: 56px 0 24px;
  color: var(--gms-text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gms-border);
  font-style: italic;
}

.gms-article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--gms-secondary);
  font-family: system-ui, -apple-system, sans-serif;
}

.gms-article-content p {
  margin-bottom: 24px;
}

.gms-article-content ul,
.gms-article-content ol {
  margin: 24px 0 24px 28px;
}

.gms-article-content li {
  margin-bottom: 12px;
}

.gms-article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 32px auto;
  border-radius: var(--gms-radius);
}

.gms-article-content a {
  color: var(--gms-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.gms-article-content a:hover {
  border-bottom-color: var(--gms-secondary);
}

.gms-article-content strong {
  font-weight: 600;
  color: var(--gms-text);
}

.gms-article-content blockquote {
  margin: 40px 0;
  padding: 28px 32px;
  background: var(--gms-bg-warm);
  border-left: 4px solid var(--gms-accent);
  border-radius: 0 var(--gms-radius) var(--gms-radius) 0;
  font-style: italic;
  color: var(--gms-text);
}

/* Memorial Box - for tributes */
.gms-memorial-box {
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(135deg, #f5f3f0 0%, #ebe8e4 100%);
  border-radius: var(--gms-radius-lg);
  border: 1px solid var(--gms-border);
  text-align: center;
}

.gms-memorial-box h4 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--gms-secondary);
  font-style: italic;
}

.gms-memorial-box .gms-dates {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--gms-text-light);
  margin-bottom: 16px;
}

.gms-memorial-box p {
  margin-bottom: 0;
}

/* Reader Story Box */
.gms-reader-story {
  margin: 48px 0;
  padding: 32px;
  background: var(--gms-bg-warm);
  border-radius: var(--gms-radius-lg);
  border: 1px solid var(--gms-border);
}

.gms-reader-story h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gms-text);
  font-family: system-ui, -apple-system, sans-serif;
}

.gms-reader-story .gms-attribution {
  font-size: 14px;
  color: var(--gms-text-light);
  margin-bottom: 16px;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Reflection Box */
.gms-reflection {
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 100%);
  border-radius: var(--gms-radius-lg);
  border-left: 4px solid var(--gms-secondary);
}

.gms-reflection h4 {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gms-secondary);
  font-family: system-ui, -apple-system, sans-serif;
}

/* Resource Box */
.gms-resource-box {
  margin: 40px 0;
  padding: 28px;
  background: var(--gms-bg-alt);
  border-radius: var(--gms-radius-lg);
  border: 1px solid var(--gms-border);
}

.gms-resource-box h4 {
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--gms-text);
  font-family: system-ui, -apple-system, sans-serif;
}

.gms-resource-box ul {
  margin: 0;
  padding-left: 20px;
}

/* Homepage Styles */
.gms-hero {
  background: linear-gradient(135deg, #4b5563 0%, #6b7280 50%, #8b5a2b 100%);
  color: white;
  padding: 96px 24px;
  text-align: center;
}

.gms-hero h1 {
  font-size: 3.25rem;
  font-weight: 400;
  margin-bottom: 24px;
  font-style: italic;
}

.gms-hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.gms-hero-cta {
  display: inline-block;
  background: var(--gms-accent);
  color: #1f2937;
  padding: 16px 36px;
  border-radius: var(--gms-radius);
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gms-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.gms-articles-section {
  padding: 80px 24px;
  background: var(--gms-bg-alt);
}

.gms-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: var(--gms-max-width);
  margin: 0 auto;
}

.gms-article-card {
  background: var(--gms-bg);
  border-radius: var(--gms-radius-lg);
  border: 1px solid var(--gms-border);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.gms-article-card:hover {
  box-shadow: var(--gms-shadow-lg);
  transform: translateY(-4px);
}

.gms-article-card h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 14px;
  font-style: italic;
}

.gms-article-card h3 a {
  color: var(--gms-text);
  text-decoration: none;
}

.gms-article-card h3 a:hover {
  color: var(--gms-secondary);
}

.gms-article-card p {
  color: var(--gms-text-light);
  font-size: 16px;
  line-height: 1.7;
}

.gms-section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 48px;
  color: var(--gms-text);
  font-style: italic;
}

/* Footer */
.gms-footer {
  background: #374151;
  color: white;
  padding: 72px 24px 36px;
}

.gms-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.gms-footer-about img {
  height: 44px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.gms-footer-about p {
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.7;
}

.gms-footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  color: #d4a574;
  font-family: system-ui, -apple-system, sans-serif;
}

.gms-footer-links ul {
  list-style: none;
}

.gms-footer-links li {
  margin-bottom: 12px;
}

.gms-footer-links a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-family: system-ui, -apple-system, sans-serif;
  transition: color 0.2s;
}

.gms-footer-links a:hover {
  color: var(--gms-accent);
}

.gms-footer-bottom {
  padding-top: 36px;
  border-top: 1px solid #4b5563;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  font-family: system-ui, -apple-system, sans-serif;
}

.gms-footer-bottom p {
  margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .gms-header .gms-container {
    flex-direction: column;
    height: auto;
    padding: 16px 24px;
    gap: 16px;
  }

  .gms-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .gms-nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .gms-hero h1 {
    font-size: 2.25rem;
  }

  .gms-article-title {
    font-size: 2rem;
  }

  .gms-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .gms-articles-grid {
    grid-template-columns: 1fr;
  }
}
