/* Maps For Canadians — adventurous travel theme over Foundation 6
   Palette: cream #FBF8F3, teal #158A8A, coral #E86A33, ink #1F2D3D
   (var names kept from the shared Foundation scaffold) */

:root {
  --ss-bg: #FBF8F3;
  --ss-ink: #1F2D3D;
  --ss-text: #3A3A3A;
  --ss-yellow: #158A8A;   /* primary accent = teal */
  --ss-teal: #E86A33;     /* secondary accent = coral */
  --ss-subtle: #E7E1D6;
  --ss-soft: #DCEDED;     /* light teal tint */
}

body {
  background: var(--ss-bg);
  color: var(--ss-text);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem; line-height: 1.75;
}

h1, h2, h3, h4, .wordmark, .script {
  font-family: 'Poppins', 'Lora', sans-serif;
  color: var(--ss-ink); font-weight: 700; line-height: 1.15;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

a { color: var(--ss-yellow); }
a:hover { color: var(--ss-teal); }

.container-wide { max-width: 1100px; margin-inline: auto; padding-inline: 1rem; }

/* ---------- Header / top-bar ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ss-bg); border-bottom: 1px solid var(--ss-subtle); }
.site-header .top-bar { background: var(--ss-bg); padding: 0.5rem 1rem; }
.site-header .top-bar, .site-header .top-bar ul { background: var(--ss-bg); }
.wordmark { font-size: 1.8rem; color: var(--ss-ink); }
.wordmark:hover { color: var(--ss-ink); }
.site-header .menu a { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--ss-ink); border-radius: 4px; padding: 0.4rem 0.9rem; text-transform: none; }
.site-header .menu a:hover { background: var(--ss-soft); color: var(--ss-yellow); }
.site-header .menu li.has-sub { position: relative; }
.site-header .menu li.has-sub > ul.submenu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 110;
  background: var(--ss-bg); border: 1px solid var(--ss-subtle);
  min-width: 200px; padding: 0.3rem 0; margin: 0; list-style: none;
}
.site-header .menu li.has-sub:hover > ul.submenu,
.site-header .menu li.has-sub:focus-within > ul.submenu { display: block; }
.site-header .menu li.has-sub > ul.submenu li a { display: block; border-radius: 0; }
.nav-toggle { display: none; }
#nav-toggle-cb { display: none; }

/* ---------- Post cards ---------- */
.post-card { background: #fff; border: 1px solid var(--ss-subtle); box-shadow: 0 4px 14px rgba(0,0,0,.05); border-radius: 8px; padding: 1.25rem; margin-bottom: 2rem; position: relative; }
.post-card .date-badge { position: absolute; top: -0.6rem; right: 1rem; background: var(--ss-teal); color: #fff; font-weight: 700; font-size: 0.8rem; padding: 0.25rem 0.7rem; border-radius: 4px; }
.post-card .cat-tag { display: inline-block; background: var(--ss-soft); color: #0d5b5b; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.15rem 0.6rem; border-radius: 999px; margin-right: 0.3rem; }
.post-card h2, .post-card h3 { margin-top: 0.4rem; }
.post-card:hover h2 a, .post-card:hover h3 a { color: var(--ss-teal); }
.read-more { font-weight: 700; color: var(--ss-teal); }
.read-more:hover { color: var(--ss-yellow); }

/* ---------- Article body ---------- */
.article-body { line-height: 1.8; }
.article-body img, .prose img { max-width: 100%; height: auto; border-radius: 8px; margin-block: 1rem; }
.prose a { color: var(--ss-yellow); text-decoration: underline; text-decoration-color: var(--ss-teal); }
.prose a:hover { color: var(--ss-teal); }
.article-meta { color: var(--ss-teal); font-family: 'Poppins'; font-weight: 600; font-size: 0.85rem; }
.article-lead { font-size: 1.15rem; color: #4A4A4A; border-left: 4px solid var(--ss-yellow); padding-left: 1rem; }
.toc-top { border: 1px solid var(--ss-subtle); background: #fff; padding: 0.8rem 1rem; margin-bottom: 1.5rem; border-radius: 8px; }
.toc-top ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.4rem 0 0; padding: 0; }

/* ---------- Gallery ---------- */
.ss-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 0.6rem; }
.ss-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ss-yellow); color: #fff; text-align: center; padding: 2.5rem 1rem; margin-block: 2.5rem; border-radius: 10px; }
.cta-band h2 { color: #fff; }

/* ---------- Cards (listing) ---------- */
.card { border: 1px solid var(--ss-subtle); border-radius: 8px; background: #fff; }
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.card .card-section h3 a:hover { color: var(--ss-teal); }

/* ---------- Footer ---------- */
.site-footer.callout { background: var(--ss-ink); color: #fff; border: 0; margin-top: 3rem; padding-block: 2.5rem; }
.site-footer .wordmark { color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--ss-yellow); }
.site-footer .grid { gap: 2rem; }
.footer-copy { opacity: 0.7; font-size: 0.8rem; margin-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.2); padding-top: 1rem; }

/* pagination */
.pagination a, .pagination .current { border-radius: 4px; }
.pagination a:hover { background: var(--ss-soft); }

/* ---------- Responsive nav ---------- */
@media screen and (max-width: 39.9375em) {
  .nav-toggle { display: inline-block; cursor: pointer; padding: 0.5rem 0.9rem; font-weight: 700; }
  .site-header .top-bar-right { display: none; }
  #nav-toggle-cb:checked ~ .top-bar-right { display: block; width: 100%; }
  .site-header .menu li.has-sub > ul.submenu { position: static; border: 0; padding-left: 1rem; }
}
@media print { .site-header, .site-footer, .cta-band { display: none; } a { color: #000; } }
