:root {
  --fof-midnight: #071526;
  --fof-blue: #102A43;
  --fof-gold: #D6A84F;
  --fof-cream: #F7F1E6;
  --fof-cloud: #E8EEF5;
  --fof-white: #FFFFFF;
  --fof-charcoal: #1C1C1C;
  --fof-shadow: 0 20px 60px rgba(7, 21, 38, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(214, 168, 79, 0.16), transparent 32rem),
    var(--fof-cream);
}

a { text-underline-offset: 0.18em; }

.wp-site-blocks { overflow-x: hidden; }

.fof-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  background: rgba(7, 21, 38, 0.94);
  box-shadow: 0 10px 30px rgba(7, 21, 38, 0.22);
}

.fof-header a { text-decoration: none; }

.fof-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--fof-white);
}

.fof-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--fof-midnight);
  background: linear-gradient(135deg, #F3D992, var(--fof-gold));
  font-weight: 900;
  box-shadow: 0 0 0 6px rgba(214, 168, 79, 0.14);
}

.fof-brand-title {
  display: block;
  color: var(--fof-white);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.fof-brand-subtitle {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fof-header .wp-block-navigation a {
  color: rgba(255, 255, 255, 0.88);
}

.fof-header .wp-block-navigation a:hover {
  color: var(--fof-gold);
}

.fof-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 720px;
  background:
    linear-gradient(115deg, rgba(7, 21, 38, 0.98), rgba(16, 42, 67, 0.88)),
    radial-gradient(circle at 78% 24%, rgba(214, 168, 79, 0.34), transparent 25rem),
    var(--fof-midnight);
  color: var(--fof-white);
}

.fof-hero::before {
  content: "";
  position: absolute;
  inset: auto -8rem -12rem auto;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  background: rgba(214, 168, 79, 0.12);
  filter: blur(5px);
  z-index: -1;
}

.fof-hero::after {
  content: "✦";
  position: absolute;
  right: clamp(2rem, 8vw, 8rem);
  top: 24%;
  color: rgba(214, 168, 79, 0.55);
  font-size: clamp(5rem, 16vw, 14rem);
  line-height: 1;
  z-index: -1;
}

.fof-hero h1,
.fof-hero h2,
.fof-dark h1,
.fof-dark h2,
.fof-dark h3 { color: var(--fof-white); }

.fof-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--fof-gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fof-card {
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--fof-shadow);
  overflow: hidden;
}

.fof-card-pad { padding: clamp(1.4rem, 4vw, 2.2rem); }

.fof-dark-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.fof-scripture {
  border-left: 5px solid var(--fof-gold);
  padding: 1.1rem 1.3rem;
  border-radius: 18px;
  background: rgba(214, 168, 79, 0.12);
}

.fof-button-outline a,
.wp-block-button.is-style-outline > .wp-block-button__link {
  border: 2px solid currentColor;
  background: transparent !important;
}

.fof-section { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }

.fof-dark {
  background:
    radial-gradient(circle at top right, rgba(214, 168, 79, 0.2), transparent 28rem),
    linear-gradient(135deg, var(--fof-midnight), var(--fof-blue));
  color: rgba(255, 255, 255, 0.86);
}

.fof-footer {
  background: var(--fof-midnight);
  color: rgba(255, 255, 255, 0.76);
}

.fof-footer a { color: var(--fof-white); }

.fof-footer h2,
.fof-footer h3 { color: var(--fof-white); }

.wp-block-post-template {
  gap: 1.5rem;
}

.wp-block-post-title a {
  text-decoration: none;
}

.wp-block-query-pagination {
  margin-top: 3rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(16, 42, 67, 0.18);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  background: #fff;
}

textarea { min-height: 150px; }

@media (max-width: 760px) {
  .fof-header {
    position: relative;
  }

  .fof-hero {
    min-height: auto;
  }

  .fof-brand-subtitle {
    display: none;
  }
}

/* v1.2 logo and single article updates */
.fof-brand-logo {
  line-height: 0;
}

.fof-site-logo {
  display: block;
  width: clamp(150px, 22vw, 260px);
  max-height: 76px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.fof-footer-logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: 1.15rem;
}

.fof-footer-logo {
  display: block;
  width: min(260px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.2));
}

.fof-single-post-wrap {
  background: var(--fof-cream);
}

.fof-post-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(214, 168, 79, 0.38), transparent 28rem),
    linear-gradient(135deg, var(--fof-midnight), var(--fof-blue));
}

.fof-post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 21, 38, 0.14), rgba(7, 21, 38, 0.68)),
    radial-gradient(circle at center, transparent 0, rgba(7, 21, 38, 0.28) 72%);
}

.fof-post-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

.fof-post-hero-content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  text-align: center;
}

.fof-post-hero h1 {
  color: var(--fof-white);
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.38);
}

.fof-post-kicker,
.fof-post-kicker a {
  color: var(--fof-gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
}

.fof-post-meta {
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.84);
}

.fof-post-meta a,
.fof-post-meta time {
  color: rgba(255, 255, 255, 0.84);
}

.fof-single-content {
  font-size: 1.08rem;
  line-height: 1.8;
}

.fof-post-separator {
  margin-top: 3rem;
  margin-bottom: 1.2rem;
}

.fof-post-taxonomy {
  color: rgba(28, 28, 28, 0.78);
  font-size: 0.95rem;
}

.fof-post-taxonomy a {
  color: var(--fof-blue);
  font-weight: 800;
  text-decoration-color: rgba(214, 168, 79, 0.65);
}

.fof-article-nav {
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(16, 42, 67, 0.14);
}

.fof-article-button,
.fof-article-button a,
.fof-return-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--fof-gold);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fof-midnight), var(--fof-blue));
  color: var(--fof-white) !important;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(7, 21, 38, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.fof-article-button:hover,
.fof-article-button a:hover,
.fof-return-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(7, 21, 38, 0.26);
  background: linear-gradient(135deg, var(--fof-blue), var(--fof-midnight));
}

.fof-article-nav .post-navigation-link-previous,
.fof-article-nav .post-navigation-link-next {
  flex: 1 1 180px;
}

.fof-return-button {
  flex: 0 1 auto;
}

@media (max-width: 760px) {
  .fof-site-logo {
    width: 170px;
    max-height: 62px;
  }

  .fof-post-hero {
    min-height: 420px !important;
  }

  .fof-article-nav {
    justify-content: center;
  }

  .fof-article-button,
  .fof-article-button a,
  .fof-return-button {
    width: 100%;
  }
}

/* v1.3 full-width layout, sticky header refinement, and starter content styling */
html,
body,
.wp-site-blocks,
.wp-block-template-part,
.wp-block-template-part > .wp-block-group,
main.wp-block-group,
.fof-header,
.fof-footer {
  width: 100%;
  max-width: none;
}

.wp-site-blocks {
  padding: 0;
}

.fof-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
}

.admin-bar .fof-header {
  top: 32px;
}

.fof-header-inner,
.fof-footer-inner {
  width: min(100%, 1180px);
  margin-left: auto;
  margin-right: auto;
}

.fof-main-nav {
  row-gap: 0.45rem;
}

.fof-page-main,
.fof-blog-main {
  background: var(--fof-cream);
}

.fof-page-hero {
  width: 100%;
  background:
    radial-gradient(circle at 86% 20%, rgba(214, 168, 79, 0.32), transparent 28rem),
    linear-gradient(135deg, var(--fof-midnight), var(--fof-blue));
  color: var(--fof-white);
}

.fof-page-hero h1,
.fof-page-hero h2,
.fof-page-hero p {
  color: var(--fof-white);
}

.fof-page-content-wrap {
  width: 100%;
}

.fof-content-section {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.fof-content-section .wp-block-columns {
  gap: 1.5rem;
  margin-top: 2rem;
}

.fof-content-section .wp-block-column {
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: 24px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(7, 21, 38, 0.08);
}

.fof-card-image img {
  border-radius: 22px;
  object-fit: cover;
}

@media (max-width: 782px) {
  .admin-bar .fof-header {
    top: 46px;
  }
}

@media (max-width: 760px) {
  .fof-header {
    position: sticky;
  }
}
