/* Nimiipuu 54 — shared styles for Places & History section
 * Kept in sync with the inline <style> in index.html.
 */
:root {
  --bg: #f6f2ec;
  --paper: #fffdf9;
  --ink: #1e1e1b;
  --muted: #5c5953;
  --border: #d9d0c3;
  --accent: #4f6150;
  --accent-dark: #3a4a3b;
  --accent-soft: #edf2eb;
  --accent-two: #7b6237;
  --chip: #efe7db;
  --water: #3a6b7a;
  --water-soft: #e8f0f3;
  --donate: #8b2020;
  --shadow: 0 12px 36px rgba(54, 44, 28, 0.09);
  --radius: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }

/* NAV */
nav.site-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent-two); }
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.nav-donate {
  background: var(--donate) !important;
  color: #fff !important;
  padding: 8px 16px !important;
}
.nav-donate:hover { background: #6e1919 !important; color: #fff !important; }

/* HERO */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(58, 107, 122, 0.14), transparent 55%),
    linear-gradient(160deg, #efe5d8 0%, var(--bg) 60%);
  padding: 72px 24px 64px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--chip);
  color: var(--accent-two);
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 20px;
  color: var(--ink);
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-mission {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 0;
  line-height: 1.7;
  font-family: Arial, sans-serif;
}

/* MAIN */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border); }

.section-header { margin-bottom: 32px; }
.eyebrow {
  display: inline-block;
  background: var(--chip);
  color: var(--accent-two);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-header p { color: var(--muted); font-family: Arial, sans-serif; max-width: 680px; }

/* BREADCRUMB */
.breadcrumb {
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { margin: 0 6px; color: var(--border); }

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.place-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.place-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(54, 44, 28, 0.14);
}
.place-card .img-wrap {
  aspect-ratio: 16 / 9;
  background: var(--accent-soft);
  overflow: hidden;
}
.place-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.place-card .card-body { padding: 20px 22px 24px; }
.place-card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.place-card p {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.96rem;
  line-height: 1.55;
}
.place-card .location {
  display: inline-block;
  margin-top: 12px;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--accent-two);
  font-weight: 700;
}

/* ARTICLE (for detail pages) */
.article {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 48px;
  box-shadow: var(--shadow);
  max-width: 880px;
  margin: 0 auto;
}
.article h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 18px;
  line-height: 1.2;
}
.article h2 {
  font-size: 1.5rem;
  margin: 32px 0 14px;
  color: var(--accent-dark);
}
.article h3 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
  color: var(--accent-dark);
}
.article p {
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.75;
}
.article ul, .article ol { margin: 0 0 16px 28px; }
.article li { margin-bottom: 6px; }
.article blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 22px;
  margin: 20px 0;
  font-style: italic;
  color: var(--accent-dark);
  border-radius: 8px;
}
.article figure {
  margin: 24px 0;
  text-align: center;
}
.article figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.article figure.float-left {
  float: left;
  margin: 6px 28px 16px 0;
  max-width: 360px;
}
.article figure.float-right {
  float: right;
  margin: 6px 0 16px 28px;
  max-width: 360px;
}
.article figcaption {
  margin-top: 10px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}
.article figcaption .credit {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
}
.article .article-meta {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.article .location-chip {
  display: inline-block;
  background: var(--chip);
  color: var(--accent-two);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-right: 8px;
}

/* PILL BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(79, 97, 80, 0.28);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary {
  background: var(--paper);
  color: var(--accent);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); }

/* EXTERNAL LINK CARDS (for museum + calendar) */
.link-card {
  background: var(--paper);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.link-card:hover { border-color: var(--accent); }
.link-card h3 { color: var(--accent-dark); font-size: 1.15rem; }
.link-card p { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.95rem; }
.link-card .ext-tag {
  display: inline-block;
  background: var(--water-soft);
  color: var(--water);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

/* NPS credit footnote */
.nps-credit {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  opacity: 0.85;
}

/* FOOTER */
footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 52px 24px 32px;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand h3 { color: #fff; font-family: Georgia, serif; font-size: 1.1rem; margin-bottom: 10px; }
.footer-brand p { line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.85rem; margin-bottom: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Clear floats inside article */
.article::after { content: ""; display: block; clear: both; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-grid.two-col { grid-template-columns: 1fr; }
  .article { padding: 32px 24px; }
  .article figure.float-left, .article figure.float-right { float: none; margin: 18px auto; max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 0.85rem; }
}
