/* Chapel Street, East Stonehouse — shared styles */

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

:root {
  --bg: #F7F5F0;
  --text: #1A1A18;
  --text-secondary: #5A5754;
  --text-muted: #8A8680;
  --accent: #4A6378;
  --accent-light: #E8EDF1;
  --border: #E0DDD8;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

html { background: var(--bg); color: var(--text); font-family: var(--sans); }
body { max-width: 780px; margin: 0 auto; padding: 0 1.5rem 4rem; }

/* NAV */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-nav-home {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
}
.site-nav-home:hover { color: var(--accent); }
.site-nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.site-nav-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.12s;
}
.site-nav-links a:hover { color: var(--accent); }
.site-nav-links a.active { color: var(--accent); font-weight: 500; }

/* HERO */
.hero { margin: 0 -1.5rem; position: relative; background: #2a2e35; overflow: hidden; }
.hero-map { display: block; width: 100%; height: 420px; object-fit: cover; object-position: center 30%; opacity: 0.82; filter: sepia(0.18) contrast(1.05); }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 2rem 1.75rem; background: linear-gradient(to top, rgba(26,26,24,0.82) 0%, rgba(26,26,24,0.0) 100%); }
.hero-eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247,245,240,0.6); margin-bottom: 0.5rem; }
.hero-title { font-family: var(--serif); font-size: clamp(28px, 5vw, 42px); font-weight: 400; color: #F7F5F0; line-height: 1.15; letter-spacing: -0.01em; }
.hero-subtitle { font-family: var(--sans); font-size: 14px; font-weight: 300; color: rgba(247,245,240,0.7); margin-top: 0.4rem; letter-spacing: 0.02em; }

/* MAP CREDIT */
.map-credit { font-size: 10px; color: var(--text-muted); padding: 0.4rem 0.75rem; background: #EFEDE8; border-bottom: 0.5px solid var(--border); margin: 0 -1.5rem 2.5rem; font-style: italic; }

/* PAGE HEADER */
.page-header { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 0.5px solid var(--border); }
.page-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.page-title { font-family: var(--serif); font-size: clamp(24px, 4vw, 36px); font-weight: 400; color: var(--text); line-height: 1.2; margin-bottom: 0.75rem; }
.page-intro { font-size: 15px; line-height: 1.75; color: var(--text-secondary); font-weight: 300; }

/* INTRO */
.intro { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 0.5px solid var(--border); }
.intro p { font-size: 16px; line-height: 1.75; color: var(--text); font-weight: 300; margin-bottom: 1rem; }
.intro p:last-child { margin-bottom: 0; }

/* STATS */
.stats { display: flex; gap: 1px; background: var(--border); border: 0.5px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 2.5rem; }
.stat { flex: 1; background: var(--bg); padding: 1.1rem 1rem; text-align: center; }
.stat-num { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--accent); line-height: 1; display: block; }
.stat-label { font-size: 11px; font-weight: 400; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; display: block; }

/* SECTIONS */
.section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 0.5px solid var(--border); }
.section:last-child { border-bottom: none; margin-bottom: 0; }
.section-label { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.section-title { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--text); margin-bottom: 0.75rem; line-height: 1.3; }
.section p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); font-weight: 300; margin-bottom: 0.75rem; }
.section p:last-child { margin-bottom: 0; }

/* PROSE */
.prose p { font-size: 15px; line-height: 1.8; color: var(--text-secondary); font-weight: 300; margin-bottom: 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--text); margin: 2rem 0 0.75rem; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 0.5px solid var(--accent); }
.prose a:hover { opacity: 0.7; }

/* LINKS GRID */
.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 1.25rem; }
.link-item { display: flex; align-items: center; gap: 10px; padding: 0.85rem 1rem; background: var(--bg); border: 0.5px solid var(--border); border-radius: 6px; text-decoration: none; transition: border-color 0.12s; }
.link-item:hover { border-color: var(--accent); }
.link-icon { width: 28px; height: 28px; background: var(--accent-light); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.link-text { flex: 1; }
.link-title { font-size: 13px; font-weight: 500; color: var(--text); display: block; line-height: 1.3; }
.link-desc { font-size: 11px; color: var(--text-muted); display: block; margin-top: 2px; }

/* RELATED */
.related { background: #F0EDE8; border-radius: 8px; padding: 1.25rem; margin-top: 2rem; }
.related-title { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.related-links { display: flex; flex-direction: column; gap: 6px; }
.related-link { font-size: 13px; color: var(--accent); text-decoration: none; }
.related-link:hover { text-decoration: underline; }

/* SOURCE NOTE */
.source-note { font-size: 11px; color: var(--text-muted); margin-top: 2rem; padding-top: 1rem; border-top: 0.5px solid var(--border); font-style: italic; }

/* FOOTER */
footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 0.5px solid var(--border); font-size: 12px; color: var(--text-muted); line-height: 1.7; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .links-grid { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; }
  .stat { min-width: 50%; }
  .hero-map { height: 280px; }
  .site-nav-links { gap: 0.75rem; }
}
