/* Faithdoku shared visual theme: layout and presentation only */
:root{--bg:#fffaf6;--cream:#fffaf6;--surface:#fffefd;--ink:#503e49;--muted:#7d6874;--rose:#a96e87;--rose-dark:#80556b;--line:#eddae1;--soft:#f9eaf0;--pink:#f7dfe9;--shadow:0 18px 50px rgba(93,59,75,.075)}
body{background:var(--bg);color:var(--ink)}
.site-header{position:sticky;top:0;z-index:80;background:rgba(255,250,248,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}
.site-header .header-inner{max-width:1140px;min-height:86px;margin:0 auto;padding:12px 26px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:20px}
.site-header .logo{display:inline-flex;align-items:center;gap:12px;flex-shrink:0;font-size:27px;font-weight:800;letter-spacing:-.65px;color:var(--ink);text-decoration:none;line-height:1.2}
.site-header .logo-mark{display:grid;place-items:center;width:49px;height:49px;border-radius:15px;background:#f8eaf0;overflow:hidden;flex-shrink:0}
.site-header .logo-mark img{width:46px;height:46px;object-fit:contain;display:block}
.site-header nav{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:5px;width:auto;overflow:visible;padding:0}
.site-header nav a{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:14px;font-weight:650;line-height:1.3;padding:10px 13px;border-radius:999px;color:#785e6d;text-decoration:none;transition:background .15s,color .15s}
.site-header nav a:hover,.site-header nav a:focus-visible{background:#f8e8ef;color:#80556b;text-decoration:none}
.site-header nav a[aria-current=page]{background:#f5e0e9;color:#85566d}
body:not(.download-page) .hero h1{color:#503e49}
body:not(.download-page) .card,body:not(.download-page) .home-link{border-color:var(--line);box-shadow:var(--shadow)}
body:not(.download-page) .card{border-radius:25px}
body:not(.download-page) .home-link{border-radius:19px}
body:not(.download-page) footer{background:#fffaf8;border-color:var(--line)}
@media(max-width:720px){.site-header .header-inner{min-height:0;padding:12px 15px 9px;display:flex;flex-direction:column;align-items:stretch;gap:10px}.site-header .logo{font-size:24px;gap:9px}.site-header .logo-mark{width:41px;height:41px;border-radius:12px}.site-header .logo-mark img{width:39px;height:39px}.site-header nav{width:100%;justify-content:flex-start;gap:3px;overflow-x:auto;overscroll-behavior-x:contain;padding:0 0 5px;scrollbar-width:none}.site-header nav::-webkit-scrollbar{display:none}.site-header nav a{font-size:13px;padding:8px 11px;flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.site-header nav a{transition:none}}

/* Gentle entrance: transform/opacity only, never alters layout dimensions. */
@keyframes faithdoku-reveal{from{opacity:0;transform:translate3d(0,9px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@media(prefers-reduced-motion:no-preference){
  body > main, body > .hero, body > section.hero, body > .download-wrap{animation:faithdoku-reveal .42s ease-out both}
  body > .hero + main, body > section.hero + main{animation-delay:.08s}
}
/* Stable navigation: reserve space and prevent accidental wrapping. */
.site-header{isolation:isolate;transform:translateZ(0);-webkit-transform:translateZ(0)}
.site-header .header-inner{box-sizing:border-box}
.site-header .logo,.site-header nav a{font-synthesis:none}
.site-header nav{min-width:0}
.site-header .logo-mark img{aspect-ratio:1/1}
@media(min-width:721px){
  .site-header .header-inner{height:86px;min-height:86px}
  .site-header nav{flex-shrink:1}
  .site-header nav a{padding-inline:clamp(7px,1vw,13px)}
}
@media(max-width:720px){
  .site-header .header-inner{height:109px;min-height:109px;max-height:109px;gap:7px;justify-content:center}
  .site-header nav{height:39px;min-height:39px;align-items:center;overflow-y:hidden;-webkit-overflow-scrolling:touch}
  .site-header nav a{height:34px}
}
@media(prefers-reduced-motion:reduce){body > main,body > .hero,body > section.hero,body > .download-wrap{animation:none!important}}
