:root{
    --bg: #0b1220;
    --paper: #141b2d;
    --paper-soft: #1b2438;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --line: #2b354d;
    --accent: #f3f4f6;
    --header-bg: #060b16;
    --link: #60a5fa;
    --link-hover: #93c5fd;
  }

  * { box-sizing: border-box; }

  body{
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
  }
  
  .logo{
    display: block;
    width: 100%;
    height: 100%;
  }

 /* Logo wrapper controls size; image fills wrapper */
  .logo-wrap{
    display: inline-block;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0.75rem;

    height: 80px;      /* default logo height everywhere */
    width: auto;       /* image determines width */
  }

  .logo-wrap img{
    height: 100%;
    width: auto;
    display: block;
  }

  .page{
    max-width: 920px;
    margin: 48px auto;
    background: var(--paper);
    padding: 56px 64px;
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(0,0,0,.35);
  }

  /* Title block */
  h1{
    font-size: 2.1rem;
    letter-spacing: -0.02em;
    margin: 0 0 0.35em 0;
  }

    /* Scripture */
  .scripture{
    margin: 1em 0 2.1em 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-left: 5px solid #4b5563;
    border-radius: 8px;
    background: var(--paper-soft);
    color: var(--text);
    font-style: italic;
  }
  .scripture .ref{
    display: block;
    margin-top: 0.6em;
    font-style: normal;
    color: var(--muted);
    font-size: 0.95rem;
  }

  /* Sections */
  h2{
    font-size: 1.35rem;
    margin: 2.2em 0 0.7em 0;
    padding-top: 0.1em;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.35em;
  }

  h3{
    font-size: 1.08rem;
    margin: 1.5em 0 0.45em 0;
    color: var(--accent);
  }

  p{ margin: 0.8em 0; }

  ul{
    margin: 0.75em 0 1.15em 1.2em;
    padding: 0;
  }
  li{ margin: 0.35em 0; }

  /* Small callouts (optional use) */
  .note{
    margin: 1em 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    color: var(--muted);
  }

  /* Contact card */
  .contact{
    margin-top: 2.5em;
	font-size: 0.98rem;
    padding: 18px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-soft);
  }
  .contact strong{
    display: inline-block;
    margin-bottom: 0.35em;
  }
  .contact a{
    white-space: normal;
    overflow-wrap: anywhere;
  }

  a{
    color: var(--link);
    text-decoration: none;
  }
  a:hover{
    color: var(--link-hover);
    text-decoration: underline;
  }

  /* Mobile */
  @media (max-width: 640px){
    .page{
      margin: 12px auto;
      padding: 20px 16px;
      border-radius: 10px;
    }
    h1{ font-size: 1.75rem; }
  }

  /* ===== Header layout (title left, logo right) ===== */

  .header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--header-bg);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;

    min-height: 120px;
  }


  .header-left{ 
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-right{
    flex: 0 0 auto;
  }


  /* Title stack */
  .stack{
    display: inline-block;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: clamp(2rem, 8vw, 3.3rem);
    line-height: 1.02;
    margin: 0;
    color: #ffffff;
  }

  .stack .word{ display: inline-block; }
  .stack .rest{ font-size: 0.78em; }
  .stack .first{ font-size: 1.25em; }

  /* Logo sizing model: logo-wrap controls size, image fills it */
  .header .logo-wrap{ margin-bottom: 0; }
  
    /* Header logo sizing: one knob */
  .header{ --logoH: 160px; }          /* default (sub-pages) */
  .header-home{ --logoH: 210px; }    /* home page only */

  .header .logo-wrap{
    margin-bottom: 0;
    height: var(--logoH);
  }
  
  .header .logo-wrap img{
    height: 100%;
    width: auto;
    display: block;
  }

  /* Make the header title dominant */
  .header h1{
    font-size: clamp(2rem, 8vw, 3.3rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 0;
    color: #ffffff;
  }

  /* Mobile: stack header */
  @media (max-width: 640px){
    .header{
      --logoH: 92px;
      flex-direction: column-reverse;
      align-items: flex-start;
      gap: 10px;
    }
    .header-home{ --logoH: 120px; }
  }
 
  /* ===== Top navigation ===== */
  body{
    padding-top: 0;
  }

  .site-nav{
    position: static;
    height: 64px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    z-index: 9999;
  }

  .site-nav-inner{
    max-width: 1100px;
    margin: 0 auto;
    height: 64px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .brand{
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
  }

  /* Defensive: hide legacy mobile toggle button from older cached nav markup. */
  .nav-toggle{
    display: none !important;
  }

  .menu{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
  }

  .toplink,
  .dropbtn{
    display: inline-block;
    padding: 10px 10px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 650;
  }

  .toplink:hover,
  .dropbtn:hover{
    background: var(--paper-soft);
    text-decoration: none;
  }

  .dropdown{
    position: relative;
  }

  .dropdown-menu{
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
    padding: 8px;
    margin: 0;
    list-style: none;
    display: none;
  }
  
  /* Hover bridge so moving straight down doesn't close the menu */
  .dropdown-menu::before{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
  }

  .dropdown-menu a{
    display: block;
    padding: 10px 10px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
  }

  .dropdown-menu a:hover{
    background: var(--paper-soft);
  }

  /* Open dropdown on hover (desktop) */
  .dropdown:hover .dropdown-menu{
    display: block;
  }

  /* Keyboard accessibility: open when tabbing into the dropdown */
  .dropdown:focus-within .dropdown-menu{
    display: block;
  }

  /* Mobile: keep it simple (no hover). Stack menu and always show submenus. */
  @media (max-width: 640px){
    .site-nav{
      position: static;
      height: auto;
      padding: 10px 0;
    }

    .site-nav-inner{
      height: auto;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .menu{
      width: 100%;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
    }

    .dropdown-menu{
      position: static;
      display: block;
      min-width: 0;
      width: 100%;
      box-shadow: none;
      border-radius: 12px;
    }

    .toplink,
    .dropbtn{
      width: 100%;
    }
  } 
