/* Mountain Source Reserve — shared styles */
:root {
  --green-deep: #1f3d24;
  --green: #2f7d3c;
  --green-hover: #1f5a2b;
  --gold: #b8932f;
  --cream: #faf9f4;
  --paper: #fffdf8;
  --ink: #232a20;
  --line: #e6e2d3;
  --muted: #5a5f52;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Source Sans 3', sans-serif; }
a { color: var(--green); }
a:hover { color: var(--green-hover); }
table { border-collapse: collapse; width: 100%; }
footer a, main a { overflow-wrap: anywhere; }

/* Header nav (all pages) */
.site-nav { display: flex; gap: 22px; }
.site-nav a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--green); }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--green-deep); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Home page ---------- */
.home { min-height: 100vh; display: flex; flex-direction: column; }
.site-header-home {
  position: sticky; top: 0; z-index: 20; background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span { font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 19px; letter-spacing: -0.2px; }

.hero { background: var(--green-deep); text-align: center; padding: 64px 24px 72px; }
.hero-logo {
  width: 200px; height: 200px; object-fit: contain;
  background: #fff; border-radius: 50%; padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.hero h1 {
  font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 52px;
  line-height: 1.05; letter-spacing: -0.5px; color: #f7f4e9; margin: 28px 0 0;
}
.hero p { font-size: 18px; line-height: 1.6; color: #cfe0cf; max-width: 560px; margin: 16px auto 0; }
.hero .rule { width: 64px; height: 3px; background: var(--gold); margin: 26px auto 0; border: 0; }

.home-main { flex: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: 56px 24px 72px; }
.home-main h2 {
  font-family: 'Source Serif 4', serif; font-size: 26px; font-weight: 700;
  color: var(--green-deep); margin: 0 0 16px;
}
.doc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 48px; }
.doc-card {
  display: block; background: var(--paper); border: 1px solid #dcd6c2; border-radius: 12px;
  padding: 24px; text-decoration: none; color: var(--ink);
  border-top: 4px solid var(--green); transition: box-shadow .15s, transform .15s;
}
.doc-card:hover { color: var(--ink); box-shadow: 0 6px 18px rgba(31,61,36,0.12); transform: translateY(-2px); }
.doc-card strong { display: block; font-family: 'Source Serif 4', serif; font-size: 20px; color: var(--green-deep); margin-bottom: 6px; }
.doc-card span { font-size: 15px; line-height: 1.6; color: var(--muted); }
.doc-card em { display: block; margin-top: 14px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--green); }

.contact { background: #eef4e9; border: 1px solid #d9e4cf; border-radius: 12px; padding: 26px 28px; line-height: 1.8; }
.contact p { margin: 0; }

.site-footer-home { background: var(--green-deep); color: #dbe6db; padding: 40px 24px 30px; }
.site-footer-home .inner { max-width: 780px; margin: 0 auto; }
.site-footer-home .links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid #33502f; }
.site-footer-home .links a { color: #a8bfa8; }
.site-footer-home .copy { font-size: 13px; color: #8fa88f; padding-top: 18px; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .site-header, .site-header-home { padding: 12px 16px !important; flex-wrap: wrap; }
  .site-header img, .brand img { width: 40px !important; height: 40px !important; }
  .site-nav { gap: 16px; }
  .hero-title { font-size: 38px !important; }
  .hero h1 { font-size: 36px; }
  .hero-logo { width: 150px; height: 150px; }
  .doc-cards { grid-template-columns: 1fr; }
  .msr-table-wrap { overflow-x: auto !important; }
  .msr-table-wrap th { white-space: normal !important; }
}
