@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,500&family=Open+Sans:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

/* DeaconAndy.com theme — charcoal frame, midnight-navy panel, gold, parchment, burgundy */
:root {
  --charcoal: #2b2b2e;
  --charcoal-deep: #1f1f22;
  --navy: #1b1f3d;
  --navy-mid: #252a4d;
  --navy-line: rgba(227, 207, 142, 0.25);
  --burgundy: #7a1f2b;
  --burgundy-glow: rgba(122, 31, 43, 0.35);
  --gold: #c9a24e;
  --gold-light: #e8cf8f;
  --gold-deep: #9c7a2f;
  --parchment: #f4ead2;
  --parchment-deep: #e6d6b0;
  --cream-text: #e9e2d2;
  --muted: #c0bdb8;
  --ink: #1b1f3d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  color: var(--cream-text);
  background: var(--charcoal);
  line-height: 1.65;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ---------- Top bar + nav ---------- */

.topbar {
  background: var(--charcoal-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding: 0.85rem 2rem;
}

.topbar .site-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--muted);
  text-decoration: none;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: #fff;
  font-weight: 700;
  border-bottom-color: var(--gold);
}

/* ---------- Hero / branding ---------- */

.panel {
  max-width: 1100px;
  margin: 1.75rem auto 0;
  background:
    radial-gradient(ellipse at 50% 100%, var(--burgundy-glow), transparent 60%),
    radial-gradient(ellipse at 50% 0%, var(--navy-mid), var(--navy) 70%);
}

.hero {
  text-align: center;
  padding: 2rem 1.5rem 1.25rem;
}

.hero img {
  width: 170px;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold-deep), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero .wordmark {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  letter-spacing: 0.03em;
  margin: 0.4rem 0 0;
  line-height: 1.1;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--cream-text);
  margin: 0.35rem 0 0;
}

.hero.compact img { width: 110px; }
.hero.compact .wordmark { font-size: clamp(1.5rem, 4vw, 2.2rem); }

/* ---------- Main ---------- */

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 3rem;
}

.intro {
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
  padding: 1.25rem 0.5rem;
  margin: 0 auto 2.5rem;
  max-width: 640px;
  text-align: center;
}

.intro h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--gold-light);
}

.intro p {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--cream-text);
}

.intro .signature {
  display: block;
  margin-top: 0.6rem;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-deep) 100%);
  border: 1px solid var(--gold-light);
  box-shadow: inset 0 0 0 4px var(--parchment), inset 0 0 0 5px rgba(156, 122, 47, 0.45), 0 6px 18px rgba(0, 0, 0, 0.35);
  padding: 1.4rem 1.5rem;
  text-align: center;
  color: var(--ink);
}

.project-card h3 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.project-card p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
  color: #4a4636;
  margin: 0 0 0.9rem;
}

.project-card a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.project-card a:hover { color: #5a1520; }

.motto {
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--cream-text);
  margin: 2.25rem 0 0;
  font-size: 1.02rem;
}

/* ---------- Ministry Platform Tools ---------- */

.notice {
  background: rgba(244, 234, 210, 0.08);
  border: 1px solid var(--navy-line);
  border-left: 4px solid var(--burgundy);
  padding: 1rem 1.25rem;
  margin: 0 0 2.5rem;
  font-size: 0.9rem;
  color: var(--cream-text);
}

.notice p { margin: 0 0 0.5rem; }
.notice p:last-child { margin-bottom: 0; }

.section-heading {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-light);
  text-align: center;
  margin: 0 0 1.25rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.tool-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 140px;
  padding: 1.25rem;
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-deep) 100%);
  border: 1px solid var(--gold-light);
  box-shadow: inset 0 0 0 4px var(--parchment), inset 0 0 0 5px rgba(156, 122, 47, 0.45), 0 6px 18px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-family: 'Cinzel', Georgia, serif;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.tool-block:hover,
.tool-block:focus-visible {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 4px var(--parchment), inset 0 0 0 5px var(--gold), 0 10px 26px rgba(0, 0, 0, 0.5);
  outline: none;
}

.tool-block .tool-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.tool-block .tool-status {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--burgundy);
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: #fff;
  color: #2b2b2e;
  text-align: center;
  padding: 1.5rem;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .topbar { padding: 0.75rem 1rem; }
  .panel { margin-top: 0; }
  main { padding-left: 1rem; padding-right: 1rem; }
  .hero img { width: 130px; }
}
