/* The Watchman's Cry: Common Sense Reborn - Stylesheet */
/* Authentic 18th-century American broadsheet / Poor Richard’s Almanack style */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&display=swap");

/* =========================
   BASE PAGE STYLES
   ========================= */

body {
  font-family: "EB Garamond", serif;
  background-color: #f4e8d4; /* parchment */
  color: #000;
  line-height: 1.55;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

/* =========================
   HEADINGS
   ========================= */

h1,
h2 {
  text-align: center;
  font-weight: 700;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 0.25em;
}

h2 {
  font-size: 1.8em;
  margin-top: 0.5em;
  margin-bottom: 1em;
}

h3 {
  font-size: 1.4em;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.tagline {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.85;
  margin-top: -0.5rem;
  margin-bottom: 1em;
  text-align: center;
}

/* =========================
   TYPOGRAPHY DETAILS
   ========================= */

.author-byline {
  font-style: italic;
  text-align: right;
  margin-bottom: 1em;
  font-size: 0.95em;
}

.drop-cap::first-letter {
  font-size: 3em;
  float: left;
  line-height: 0.8;
  margin-right: 0.1em;
  margin-top: 0.1em;
  font-weight: 700;
}

/* =========================
   DIVIDERS & IMAGES
   ========================= */

img.divider {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 2em auto;
}

img.woodcut {
  max-width: 100%;
  border: 1px solid #000;
  margin: 1em 0;
}

img.woodcut.float-right {
  float: right;
  max-width: 300px;
  margin: 0 0 1em 1.5em;
}

/* =========================
   NAVIGATION — AUTHENTIC VERSION
   ========================= */

/*
   This replaces “buttons” with period-accurate
   engraved text links separated by rules.
*/

nav {
  margin: 2.5em 0;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.2em;

  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 0.75em 0;
}

nav li {
  margin: 0;
  padding: 0;
}

/* Link appearance — NOT buttons */
nav a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 0 0.2em;
}
/* --- Broadsheet drop-cap initials in nav (H / A / S) --- */

nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
}

/* The initial itself */
nav a .nav-initial {
  font-weight: 700;
  font-size: 1.65em; /* drop-cap feel */
  line-height: 0.85;
  letter-spacing: 0.02em;
  position: relative;
  top: 0.06em; /* slight sink like old type */
}

/* Optional: tiny “ink bite” effect (subtle, not modern) */
nav a .nav-initial::after {
  content: "";
  position: absolute;
  left: 0.05em;
  top: 0.15em;
  width: 0.12em;
  height: 0.12em;
  background: #000;
  opacity: 0.15;
}

/* Keep the word slightly smaller so the initial leads */
nav a .nav-word {
  font-size: 1em;
  letter-spacing: 0.1em;
}

/* On hover, underline only the word (more print-like) */
nav a:hover {
  text-decoration: none;
}
nav a:hover .nav-word {
  text-decoration: underline;
}

/* Small engraved ornament on hover */
nav a:hover::after {
  content: " ❧";
  font-size: 0.85em;
  position: relative;
  top: -0.05em;
}

nav a:hover {
  text-decoration: underline;
}

/* Hide Archive for now */
nav a[href*="archive.html"] {
  display: none;
}

/* =========================
   ARTICLES & TEXT
   ========================= */

article {
  margin: 2em 0;
}

section {
  margin: 2em 0;
}

p {
  margin: 1em 0;
  text-align: justify;
}

/* =========================
   LINKS
   ========================= */

a {
  color: #000;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* =========================
   BIBLE QUOTE BLOCK
   ========================= */

.bible-quote {
  font-style: italic;
  font-size: 1.05em;
  line-height: 1.7;
  margin: 2em 1.5em;
  padding: 1.5em 2em;
  border: 2px double #000;
  background-color: rgba(244, 232, 212, 0.5);
  text-align: center;
  position: relative;
}

.bible-quote strong {
  font-weight: 700;
  display: block;
  margin-bottom: 0.75em;
  letter-spacing: 0.05em;
}

.bible-quote::before,
.bible-quote::after {
  content: "❧";
  font-size: 1.5em;
  position: absolute;
  opacity: 0.6;
}

.bible-quote::before {
  left: 0.5em;
  top: 0.5em;
}

.bible-quote::after {
  right: 0.5em;
  bottom: 0.5em;
}

/* =========================
   FOOTER
   ========================= */

.page-footer {
  margin-top: 4em;
  padding-top: 1.5em;
  border-top: 1px solid #000;
  text-align: center;
  font-size: 0.85rem;
  color: #000;
}

/* =========================
   IMAGE MODAL
   ========================= */

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border: 2px solid #f4e8d4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body.modal-open {
  overflow: hidden;
}

/* =========================
   MOBILE
   ========================= */

/* =========================
   STAFF MEMBER / VOICES PAGE
   ========================= */

.staff-member {
  display: flex;
  align-items: flex-start;
  gap: 1.5em;
  margin: 2em 0;
}

.staff-member .portrait {
  width: 150px;
  height: auto;
  flex-shrink: 0;
  margin: 0;
}

.staff-content {
  flex: 1;
}

.staff-member h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.staff-member .motto {
  margin: 0;
}

/* Stack on mobile */
@media (max-width: 600px) {
  body {
    padding: 10px;
    font-size: 16px;
  }

  nav ul {
    flex-direction: column;
    gap: 0.75em;
  }

  img.woodcut.float-right {
    float: none;
    max-width: 100%;
    margin: 1em 0;
  }

  .staff-member {
    flex-direction: column;
    align-items: center;
  }

  .staff-member .portrait {
    width: 120px;
  }

  .staff-member .motto {
    text-align: center;
  }
}
