:root {
  --navy: #001f4f;
  --navy-2: #062b66;
  --blue: #0b4088;
  --page: #eaf5ff;
  --page-2: #dcefff;
  --paper: #fbfdff;
  --ink: #001a44;
  --muted: #365477;
  --line: #b8d2ee;
  --soft-line: #d3e5f8;
  --shadow: 0 10px 28px rgba(0, 31, 79, .10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: linear-gradient(180deg, var(--page), #f7fbff 60%, var(--page-2));
  color: var(--ink);
  line-height: 1.55;
}

.site-header {
  background: linear-gradient(180deg, #062b66, var(--navy));
  color: #fff;
  border-bottom: 1px solid #0b3d82;
  box-shadow: 0 4px 16px rgba(0, 31, 79, .20);
}

.header-inner {
  max-width: 1180px;
  margin: auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  /* background: transparent; */
  padding: 0;
  /* filter: invert(1) brightness(2.2) contrast(1.05); */
  filter: saturate(.85);

}

.brand { flex: 1; }

.brand h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand p {
  margin: 4px 0 0;
  color: #edf6ff;
  font-style: italic;
}

.header-verse {
  margin-left: auto;
  max-width: 360px;
  text-align: right;
  color: #fff;
  font-style: italic;
  line-height: 1.35;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.header-verse span { display: block; }
.header-verse .verse-ref { margin-top: 4px; color: #eef7ff; }

.nav {
  background: #f6fbff;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1180px;
  margin: auto;
  display: flex;
  justify-content: center;
  gap: clamp(12px, 4vw, 64px);
  padding: 9px 18px 0;
  min-height: 52px;
}

.nav a {
  position: relative;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px 13px;
  border-bottom: 4px solid transparent;
  white-space: nowrap;
}

.nav a::before {
  font-size: 1.35rem;
  line-height: 1;
}
.nav-home::before { content: '⌂'; }
.nav-audio::before { content: '♫'; }
.nav-writings::before { content: '▤'; }
.nav-search::before { content: '⌕'; font-size: 1.65rem; }
.nav-about::before { content: 'ⓘ'; }

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px;
}

.hero {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(245,251,255,.98));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}

.home-hero {
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(240,248,255,.98));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 24px;
}

.hero h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.1;
}

.hero p {
  /* max-width: 780px; */
  color: var(--ink);
  font-size: 1.08rem;
  margin: .5rem auto 1rem;
  text-align: left;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card,
.resource,
.content-card {
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 31, 79, .07);
}

.card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  text-align: left;
}

.icon-card { text-align: center; }
.card-icon {
  font-family: 'Segoe UI Symbol', 'Apple Color Emoji', Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--navy);
  margin: 0 auto 10px;
}

.card h3 {
  margin: .1rem 0 .4rem;
  color: var(--navy);
  font-size: 1.32rem;
}

.card p {
  color: var(--ink);
  margin: .4rem 0 1rem;
}

.card a,
.button,
button,
.primary-button {
  display: inline-block;
  background: linear-gradient(180deg, #073b84, var(--navy));
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  padding: 9px 15px;
  margin-top: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,31,79,.18);
}

.card a { align-self: stretch; margin-top: auto; text-align: center; }
.button.secondary { background: #3d5f86; }
.featured-button::before { content: '▶ '; }

.meta,
.results-info,
.breadcrumb,
.footer { color: var(--muted); }

.breadcrumb {
  font-size: .95rem;
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }

.section-title {
  margin-top: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--navy);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
}

.toolbar input,
.toolbar select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  min-width: 0;
  color: var(--ink);
}

.check-option {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 700;
}
.check-option input { width: auto; min-width: 0; }

.resource-list { display: grid; gap: 13px; }
.resource { padding: 15px; display: flex; flex-direction: column; }
.resource h3 { margin: 0; color: var(--navy); }
.resource .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.resource-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.legacy-id { margin-left: auto; color: var(--muted); font-size: .85rem; font-weight: 700; white-space: nowrap; align-self: flex-end; }

.player {
  position: sticky;
  bottom: 0;
  background: #f6fbff;
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(0,31,79,.12);
}
.player-inner { max-width: 1180px; margin: auto; }
.player-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.player strong { display: block; }
.player-close { margin-top: 0; background: #3d5f86; padding: 6px 11px; }
audio { width: 100%; }

.footer {
  max-width: 1180px;
  margin: 20px auto 40px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  text-align: center;
}
/* .footer::before { content: '✉ Contact Us   '; color: var(--navy); font-weight: 700; } */
.footer a { color: var(--navy); font-weight: 700; margin-right: 1rem; }

.primary-button { border-radius: 8px; }
.primary-button:hover,
.primary-button:focus,
.card a:hover,
.button:hover,
button:hover { filter: brightness(1.08); }

/* About content pages imported from the previous public site */
.page-header,
.library-header { max-width: 1180px; margin: 0 auto; padding: 28px 22px 10px; }
.page-header h1,
.library-header h1 { color: var(--navy); margin: .2rem 0; }
.library-header p { color: var(--muted); }
.content-container { max-width: 1180px; margin: 0 auto; padding: 14px 22px 36px; }
.content-card { padding: 18px; margin: 0 0 18px; }
.content-card h2,
.content-card h3 { color: var(--navy); }
.intro-card { display: flex; gap: 22px; align-items: flex-start; }
.profile-image { max-width: 210px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-inner { gap: 18px; justify-content: space-around; }
}

@media (max-width: 720px) {
  .header-inner { align-items: flex-start; flex-wrap: wrap; padding: 14px 16px; }
  .logo { width: 58px; height: 58px; }
  .brand h1 { font-size: 1.55rem; }
  .brand p { font-size: .92rem; }
  .header-verse { flex-basis: 100%; text-align: center; margin: 8px 0 0; max-width: none; font-size: .98rem; }
  .nav-inner { justify-content: space-between; gap: 4px; overflow-x: auto; padding: 6px 10px 0; min-height: 48px; }
  .nav a { font-size: .82rem; gap: 4px; padding-bottom: 10px; }
  .nav a::before { font-size: 1.1rem; }
  .container { padding: 20px 14px; }
  .hero { padding: 22px 16px; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 16px; min-height: 160px; }
  .card-icon { font-size: 2.35rem; }
  .toolbar { grid-template-columns: 1fr; }
  .intro-card { flex-direction: column; }
  .profile-image { align-self: center; max-width: 180px; }
}

@media (max-width: 460px) {
  .home-grid { grid-template-columns: 1fr; }
  .nav a span { display: none; }
}


/* Contact page */
.logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.contact-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.contact-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro .eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}

.contact-hero h2 {
  margin-bottom: 12px;
}

.contact-hero p {
  text-align: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .75fr);
  gap: 18px;
  align-items: start;
}

.contact-card {
  min-height: 0;
  text-align: left;
}

.contact-card h3,
.contact-side-card h3 {
  color: var(--navy);
  margin-top: 0;
}

.form-note {
  margin-top: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  box-shadow: inset 0 1px 2px rgba(0, 31, 79, .05);
}

.contact-form textarea {
  resize: vertical;
  min-height: 170px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(11, 64, 136, .16);
  border-color: var(--blue);
}

.contact-form strong {
  color: #8a1f11;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.form-actions button[disabled] {
  cursor: wait;
  opacity: .72;
}

.contact-status {
  display: none;
  margin: 12px 0 16px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
}

.contact-status.is-visible {
  display: block;
}

.contact-status.success {
  color: #123f22;
  background: #e8f7ed;
  border-color: #a9dfbb;
}

.contact-status.error {
  color: #701b12;
  background: #fff0ed;
  border-color: #efb5aa;
}

.contact-side-card {
  text-align: center;
}

.contact-side-card .card-icon {
  font-size: 2.8rem;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-side-card {
    text-align: left;
  }

  .contact-side-card .card-icon {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .form-actions button {
    width: 100%;
  }
}
