/*
 * Base reset + minimal header/footer/index styling. Full branding pass
 * (logo, real nav design, colors) is Phase 4 — this is just enough to be
 * functional and presentable in the meantime.
 */

:root {
  --jrt-color-bg: #f5f1e8;
  --jrt-color-bg-alt: #f1f5f0;
  --jrt-color-text: #2b2b2b;
  --jrt-color-muted: #6b6b6b;
  --jrt-color-accent: #053827;
  --jrt-color-accent-dark: #032b1e;
  --jrt-color-highlight: #dfeae3;
  --jrt-color-brick: #9c3b2c;
  --jrt-color-brick-dark: #7c2e21;
  --jrt-color-rule: #ddd8d0;
}

* {
  box-sizing: border-box;
}

.jrt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: var(--jrt-color-bg);
  color: var(--jrt-color-text);
  font-family: "Source Serif Pro", Georgia, serif;
}

a {
  color: var(--jrt-color-accent);
}

a:hover {
  color: var(--jrt-color-accent-dark);
}

.jrt-announcement-bar {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  background: var(--jrt-color-brick);
  text-align: center;
}

.jrt-announcement-bar a {
  color: var(--jrt-color-bg);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.jrt-announcement-bar a:hover {
  text-decoration: underline;
}

.jrt-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: var(--jrt-color-accent);
}

.jrt-site-title,
.jrt-primary-nav a {
  color: var(--jrt-color-bg);
}

.jrt-site-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.jrt-site-title img {
  height: 36px;
  width: auto;
  display: block;
}

.jrt-primary-nav ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jrt-primary-nav a {
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
}

.jrt-site-footer {
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(245, 241, 232, 0.75);
  background: var(--jrt-color-text);
  border-top: 3px solid var(--jrt-color-accent);
}

.jrt-footer-nav ul {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.jrt-footer-nav a,
.jrt-privacy-link a {
  color: var(--jrt-color-bg);
}

.jrt-footer-nav a {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  text-decoration: none;
}

.jrt-footer-bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.jrt-privacy-link a {
  font-size: 13px;
}

.jrt-footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.jrt-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245, 241, 232, 0.4);
  color: rgba(245, 241, 232, 0.75);
}

.jrt-social-icon svg {
  width: 18px;
  height: 18px;
}

.jrt-posted-on {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: var(--jrt-color-muted);
  margin-bottom: 16px;
}

.jrt-popup-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 43, 43, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.jrt-popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.jrt-popup {
  position: relative;
  background: var(--jrt-color-bg);
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 40px 32px;
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

.jrt-popup-overlay.is-visible .jrt-popup {
  transform: scale(1);
}

.jrt-popup h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 24px;
}

.jrt-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--jrt-color-muted);
  cursor: pointer;
  padding: 4px;
}

.jrt-popup #mc-embedded-subscribe {
  display: block;
  margin: 0 auto;
}
