: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;
    font-size: 16px;
    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: clamp(1.2rem, 2.2vw, 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: 16px 18px;
    border-radius: 8px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    color: var(--muted);
  }

  .contact-note{
    border-left: 4px solid #4b5563;
    margin-top: 1.25em;
  }

  /* 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;
  }

  .site-footer{
    margin-top: 0;
    padding: 2px 0 14px;
    border-top: 1px solid var(--line);
    background: #0a101c;
    color: var(--muted);
  }

  .site-footer-inner{
    max-width: 920px;
    margin: -4px auto 0;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto minmax(180px, auto);
    grid-template-areas: "meta badge nav";
    align-items: start;
    gap: 24px;
    padding: 6px 20px 0;
  }

  .site-footer p{
    margin: 0.45em 0;
  }

  .site-footer p:first-child{
    margin-top: 0;
  }

  .site-footer p:last-child{
    margin-bottom: 0;
  }

  .site-footer-title{
    color: var(--text);
    font-weight: 700;
  }

  .site-footer-meta{
    grid-area: meta;
    min-width: 250px;
    max-width: 38rem;
  }

  .site-footer-badge{
    grid-area: badge;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    padding: 0 12px 0;
    transform: translateY(-68px);
  }

  .site-footer-badge-mark{
    display: block;
    width: min(220px, 100%);
    height: auto;
    opacity: 0.9;
  }

  .site-footer-nav{
    grid-area: nav;
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 0;
    justify-content: flex-end;
    white-space: nowrap;
    align-self: start;
  }

  .site-footer-nav a{
    color: var(--link);
  }

  .about-intro{
    display: flow-root;
    margin: 0.8em 0 0.6em 0;
  }

  .about-headshot-wrap{
    float: left;
    width: min(240px, 38%);
    margin: 0 18px 12px 0;
    border-radius: 12px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--paper-soft);
  }

  .about-headshot{
    display: block;
    width: 100%;
    height: auto;
  }

  .about-copy p:first-child{
    margin-top: 0;
  }

  .cta{
    margin-top: 2.2em;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-soft);
  }

  .cta h2{
    margin-top: 0;
  }

  .cta p{
    margin: 0.6em 0 1em 0;
    color: var(--muted);
  }

  .cta-actions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .cta-button{
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
  }

  .cta-button:hover{
    color: #ffffff;
    background: #1d4ed8;
    text-decoration: none;
  }

  .cta-button:focus-visible{
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
  }

  .cta-button-secondary{
    background: transparent;
    color: var(--text);
    border-color: var(--line);
  }

  .cta-button-secondary:hover{
    color: var(--text);
    background: var(--paper);
  }

  .credential-badge{
    margin: 0;
  }

  .credential-badge-mark{
    display: block;
    width: min(280px, 100%);
    height: auto;
  }

  .intro-split{
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin: -4px 0 18px;
  }

  .intro-split-copy p:first-child{
    margin-top: 0;
  }

  .intro-split-copy p:last-child{
    margin-bottom: 0;
  }

  .contact-form{
    margin-top: 1.1em;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-soft);
  }

  .contact-intro,
  .contact-note{
    max-width: 62ch;
  }

  .form-grid{
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
  }

  .form-grid label{
    font-weight: 650;
    color: var(--text);
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea{
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--text);
    font: inherit;
  }

  .form-grid textarea{
    resize: vertical;
  }

  .form-grid input:focus-visible,
  .form-grid select:focus-visible,
  .form-grid textarea:focus-visible{
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
    border-color: #93c5fd;
  }

  .sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  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;
    }
    body{
      line-height: 1.75;
    }
    p, li{
      font-size: 1.02rem;
    }
    h1{ font-size: 1.75rem; }
    h2{ font-size: 1.3rem; }
    .cta-actions{
      flex-direction: column;
    }
    .cta-button{
      width: 100%;
      text-align: center;
      min-height: 44px;
      padding: 11px 14px;
    }
    .contact-form{
      padding: 14px;
    }
    .about-intro{
      display: block;
    }
    .about-headshot-wrap{
      float: none;
      width: 100%;
      margin: 0 0 14px 0;
      max-width: 280px;
    }
    .site-footer{
      margin-top: 0;
      padding: 2px 0 14px;
    }
    .site-footer-inner{
      margin: -4px auto 0;
      grid-template-columns: 1fr;
      grid-template-areas:
        "meta"
        "badge"
        "nav";
      align-items: flex-start;
      gap: 12px;
      padding: 6px 16px 0;
    }
    .site-footer-badge{
      padding: 4px 0;
      transform: none;
    }
    .site-footer-badge-mark{
      width: min(200px, 100%);
    }
    .site-footer-nav{
      flex-direction: column;
      gap: 8px;
      justify-content: flex-start;
      margin-top: 0.2em;
    }
  }

  /* ===== 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;
  }

  .header-submark{
    margin-top: 12px;
  }

  .header-submark-image{
    display: block;
    width: min(260px, 100%);
    height: auto;
    opacity: 0.92;
  }


  /* 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; }
    .intro-split{
      grid-template-columns: 1fr;
      gap: 14px;
      margin-top: 0;
    }
  }
 
  /* ===== Top navigation ===== */
  body{
    padding-top: 0;
  }

  .site-nav{
    position: static;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    z-index: 9999;
  }

  .site-nav-inner{
    max-width: 1100px;
    margin: 0 auto;
    min-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;
  }

  .nav-toggle{
    display: none;
    appearance: none;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
  }

  .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: inherit;
    font-weight: 650;
  }

  .dropbtn{
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .toplink:hover,
  .dropbtn:hover,
  .toplink:focus-visible,
  .dropbtn:focus-visible,
  .nav-toggle:focus-visible{
    background: var(--paper-soft);
    text-decoration: none;
    outline: 2px solid transparent;
  }

  .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;
  }
  
  .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);
  }

  .dropdown:hover .dropdown-menu{
    display: block;
  }

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

  /* Mobile default (no JS): stacked and always visible. */
  @media (max-width: 800px){
    .site-nav{
      padding: 10px 0;
    }

    .site-nav-inner{
      min-height: 0;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .menu{
      width: 100%;
      flex-direction: column;
      align-items: stretch;
      gap: 6px;
    }

    .toplink,
    .dropbtn{
      width: 100%;
      text-align: left;
      padding: 11px 12px;
    }

    .dropdown-menu{
      position: static;
      display: block;
      min-width: 0;
      width: 100%;
      box-shadow: none;
      border-radius: 12px;
      margin-top: 6px;
    }

    .dropdown-menu::before{
      display: none;
    }
  }

  /* Mobile enhanced (with JS): collapsible menu and tap submenus. */
  @media (max-width: 800px){
    .site-nav.has-js .site-nav-inner{
      flex-direction: row;
      align-items: center;
      flex-wrap: wrap;
    }

    .site-nav.has-js .nav-toggle{
      display: inline-block;
      margin-left: auto;
    }

    .site-nav.has-js .menu{
      display: none;
      width: 100%;
      margin-top: 8px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--paper);
    }

    .site-nav.has-js.is-open .menu{
      display: flex;
    }

    .site-nav.has-js .dropdown-menu{
      display: none;
    }

    .site-nav.has-js .dropdown.open .dropdown-menu{
      display: block;
    }
  }
