:root {
  --page: #f4f1ea;
  --paper: #fffdf8;
  --ink: #151515;
  --muted: #5c5c5c;
  --line: #0e6472;
  --line-soft: rgba(14, 100, 114, 0.2);
  --black: #111;
  --card: #242424;
  --card-text: #f7f2df;
  --gold: #d7b84b;
  --red: #7c1f2b;
  --blue: #193d5a;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

.site-header,
.page-shell,
.site-footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  padding: 20px 0 0;
  background: var(--paper);
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 42px);
  padding: 8px 18px 10px;
  text-align: center;
}

.brand-mark {
  width: clamp(130px, 18vw, 230px);
  height: clamp(130px, 18vw, 230px);
  object-fit: contain;
  flex: 0 0 auto;
}

.masthead h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 8.2rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.78;
}

.masthead p {
  margin: 16px 0 0;
  padding-top: 8px;
  border-top: 3px solid var(--black);
  font-size: clamp(1.05rem, 2.2vw, 1.85rem);
  font-style: italic;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-top: 4px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.site-nav a,
.nav-parent {
  padding: 8px 12px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  font: inherit;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-dropdown:hover .nav-parent,
.nav-dropdown:focus-within .nav-parent {
  background: var(--line-soft);
  outline: none;
}

.nav-dropdown {
  position: relative;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-parent::after {
  content: "▾";
  font-size: 0.72em;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 150px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.dropdown-menu a {
  display: block;
  white-space: nowrap;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.edition-line {
  padding: 12px 18px 14px;
  text-align: center;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  font-weight: 500;
}

.published-line {
  padding: 0 18px 14px;
  border-bottom: 4px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.page-shell {
  padding: 24px 18px 36px;
  background: var(--paper);
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.section-label {
  color: var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.editor-read {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #f8fbfb;
}

.editor-read h2,
.sponsor-card h2,
.devotional-card h2,
.verse-card h2 {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.editor-read p {
  max-width: 84ch;
  margin: 8px 0 0;
  font-size: 1.05rem;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 24px;
  margin-top: 26px;
  align-items: stretch;
}

.lead-story {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(20px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 20% 0%, rgba(215, 184, 75, 0.35), transparent 42%),
    var(--card);
  color: var(--card-text);
}

.story-source {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.84rem;
}

.lead-story h2 {
  max-width: 18ch;
  margin: 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.97;
}

.story-summary {
  max-width: 65ch;
  margin: 0 0 16px;
  font-size: 1.08rem;
}

.read-link {
  color: var(--line);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.lead-story .read-link {
  color: var(--gold);
}

.sponsor-card,
.devotional-card,
.verse-card,
.news-section,
.resource-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 18px;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}

.sponsor-card img {
  width: min(170px, 45vw);
  margin: 10px auto 12px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--black);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.story-item a:hover {
  color: var(--red);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 26px;
}

.story-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.story-item {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.story-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.story-item a {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.12;
  text-decoration: none;
}

.story-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
}

.story-note {
  margin: 6px 0 0;
  color: #333;
}

.devotional-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.verse-widget {
  margin-top: 12px;
  overflow: hidden;
}

.verse-widget iframe {
  display: block;
  width: 100%;
  height: 190px;
  border: 0;
}

.site-footer {
  padding: 26px 18px;
  background: var(--black);
  color: #cfcfcf;
  text-align: center;
}

.site-footer p {
  max-width: 980px;
  margin: 0 auto;
}

.site-footer p + p {
  margin-top: 10px;
}

.site-footer a {
  color: #f0e68c;
  font-weight: 700;
}

.footer-rule {
  width: min(360px, 60%);
  margin: 22px auto 0;
  border: 0;
  border-top: 1px solid #333;
}

.static-page {
  max-width: 850px;
  margin: 0 auto;
}

.static-page h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.static-page li + li {
  margin-top: 8px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.resource-card h3 {
  margin: 8px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.08;
}

.resource-card p {
  margin: 8px 0 0;
}

.content-section {
  margin-top: 28px;
}

.content-section h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  color: var(--blue);
}

.content-section h4 {
  margin: 18px 0 8px;
  font-size: 1.1rem;
  color: var(--blue);
}

.updated-line {
  color: var(--muted);
  font-weight: 700;
}

.program-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

@media (max-width: 820px) {
  .masthead {
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .lead-grid,
  .story-list,
  .devotional-section,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .lead-story,
  .sponsor-card {
    min-height: auto;
  }

}

@media (max-width: 560px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: 100%;
  }

  .masthead {
    padding: 12px;
    gap: 10px;
  }

  .brand-mark {
    width: 96px;
    height: 96px;
  }

  .masthead h1 {
    font-size: clamp(2.85rem, 16vw, 4rem);
  }

  .masthead p {
    margin-top: 10px;
    font-size: 1rem;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
  }

  .page-shell {
    padding: 18px 12px 28px;
  }

  .verse-widget iframe {
    height: 230px;
  }
}
