/* ============================================================
   Still Abiding — design tokens
   ============================================================ */

:root{

    /* colour */
    --ink:        #04366A;   /* primary text, headlines — matches FiveSixteen navy */
    --ink-soft:   #4B5B74;   /* secondary text */
    --ember:      #A8111B;   /* accent — matches FiveSixteen red */
    --ember-deep: #860C13;   /* hover / pressed */
    --gold:       #B8902E;   /* small accents, dividers */
    --water:      #EDF2F6;   /* pale background */
    --water-deep: #D7E1EA;   /* rings, borders on pale bg */
    --paper:      #FCFBF9;   /* card surface */
    --white:      #FFFFFF;

    /* type */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* misc */
    --radius:  16px;
    --radius-sm: 10px;
    --shadow: 0 24px 48px -28px rgba(4,54,106,.35);
    --shadow-sm: 0 10px 24px -14px rgba(4,54,106,.28);
    --ease: cubic-bezier(.22,.61,.36,1);

}

/* ============================================================
   Reset
   ============================================================ */

*, *::before, *::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

@media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    *, *::before, *::after{
        animation-duration:.001ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.001ms !important;
        scroll-behavior:auto !important;
    }
}

body{
    margin:0;
    font-family:var(--font-body);
    color:var(--ink);
    background:var(--white);
    line-height:1.65;
    -webkit-font-smoothing:antialiased;
}

h1,h2,h3{
    font-family:var(--font-display);
    color:var(--ink);
    line-height:1.15;
    margin:0;
    font-weight:600;
}

p{ margin:0; }

a{ color:inherit; }

img{ max-width:100%; display:block; }

.container{
    width:90%;
    max-width:1120px;
    margin:0 auto;
}

/* ============================================================
   Eyebrow / verse styling — used as a real structural device:
   every eyebrow on this site is an actual scripture reference.
   ============================================================ */

.eyebrow{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-family:var(--font-body);
    font-size:.78rem;
    font-weight:600;
    letter-spacing:.16em;
    text-transform:uppercase;
    color:var(--ember);
}

.eyebrow::before{
    content:"";
    width:20px;
    height:1px;
    background:var(--gold);
}

.verse{
    font-family:var(--font-display);
    font-style:italic;
    font-weight:400;
    color:var(--ink-soft);
}

.verse cite{
    display:block;
    margin-top:14px;
    font-family:var(--font-body);
    font-style:normal;
    font-size:.85rem;
    font-weight:600;
    letter-spacing:.04em;
    color:var(--gold);
}

/* ============================================================
   Ripple mark — the site's signature motif (still water).
   Used small + static in header/footer, large + animated in hero.
   ============================================================ */

.ripple-mark{
    display:inline-flex;
    flex-shrink:0;
}

.ripple-mark svg{ display:block; }

.brand-mark{
    display:block;
    height:34px;
    width:auto;
}

.footer-brand .brand-mark{
    height:26px;
}

/* ============================================================
   Header / nav
   ============================================================ */

.site-header{
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(252,251,249,.88);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border-bottom:1px solid transparent;
    transition:border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header.is-scrolled{
    border-bottom-color:var(--water-deep);
    box-shadow:0 8px 24px -20px rgba(4,54,106,.4);
}

.header-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px 0;
}

.wordmark{
    display:flex;
    align-items:center;
    gap:10px;
    font-family:var(--font-display);
    font-weight:600;
    font-size:1.25rem;
    text-decoration:none;
    color:var(--ink);
}

.site-nav{
    display:flex;
    align-items:center;
    gap:36px;
}

.site-nav a{
    font-size:.92rem;
    font-weight:500;
    text-decoration:none;
    color:var(--ink-soft);
    position:relative;
    padding:4px 0;
    transition:color .2s var(--ease);
}

.site-nav a::after{
    content:"";
    position:absolute;
    left:0; right:100%;
    bottom:-2px;
    height:1px;
    background:var(--ember);
    transition:right .25s var(--ease);
}

.site-nav a:hover{ color:var(--ink); }
.site-nav a:hover::after{ right:0; }

.nav-toggle{
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:38px;
    height:38px;
    background:none;
    border:none;
    cursor:pointer;
    padding:0;
}

.nav-toggle span{
    display:block;
    width:100%;
    height:1.5px;
    background:var(--ink);
    transition:transform .25s var(--ease), opacity .25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */

.hero{
    position:relative;
    overflow:hidden;
    background:var(--water);
    padding:clamp(90px,14vw,160px) 20px clamp(80px,12vw,140px);
}

.ripple-field{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    pointer-events:none;
    z-index:0;
}

.ripple-ring{
    position:absolute;
    border-radius:50%;
    border:1px solid var(--water-deep);
    width:60px;
    height:60px;
    opacity:0;
    animation:ripple 9s var(--ease) infinite;
}

.ripple-ring:nth-child(2){ animation-delay:2.25s; }
.ripple-ring:nth-child(3){ animation-delay:4.5s; }
.ripple-ring:nth-child(4){ animation-delay:6.75s; }

@keyframes ripple{
    0%{   width:40px;  height:40px;  opacity:.7; }
    70%{  opacity:.18; }
    100%{ width:920px; height:920px; opacity:0; }
}

@media (prefers-reduced-motion: reduce){
    .ripple-ring{
        animation:none;
        width:520px !important;
        height:520px !important;
        opacity:.14 !important;
    }
}

.hero .container{
    position:relative;
    z-index:1;
    text-align:center;
}

.hero .eyebrow{ justify-content:center; margin-bottom:22px; }

.hero h1{
    font-size:clamp(2.4rem,5.4vw,4.2rem);
    max-width:16ch;
    margin:0 auto 26px;
    letter-spacing:-.01em;
}

.hero h1 em{
    font-style:italic;
    color:var(--ember);
}

.hero .lede{
    font-size:clamp(1.05rem,1.6vw,1.3rem);
    color:var(--ink-soft);
    max-width:46ch;
    margin:0 auto 40px;
}

/* ============================================================
   Buttons
   ============================================================ */

.button-row{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    justify-content:center;
}

.button{
    position:relative;
    overflow:hidden;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:15px 30px;
    background:var(--ink);
    color:var(--white);
    text-decoration:none;
    border-radius:999px;
    font-weight:600;
    font-size:.95rem;
    letter-spacing:.01em;
    transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.button:hover{
    transform:translateY(-2px);
    box-shadow:var(--shadow-sm);
}

.button.primary{ background:var(--ember); }
.button.primary:hover{ background:var(--ember-deep); }

.button.ghost{
    background:transparent;
    color:var(--ink);
    box-shadow:inset 0 0 0 1.5px var(--water-deep);
}

.button.ghost:hover{
    box-shadow:inset 0 0 0 1.5px var(--ink);
}

/* ============================================================
   Sections
   ============================================================ */

.section{
    padding:clamp(80px,10vw,130px) 0;
}

.section-header{
    max-width:640px;
    margin-bottom:56px;
}

.section-header.center{ margin-left:auto; margin-right:auto; text-align:center; }

.section-header h2{
    font-size:clamp(1.9rem,3vw,2.5rem);
    margin-top:16px;
}

.paper{ background:var(--paper); }
.deep{ background:var(--ink); color:var(--white); }
.deep h2, .deep h3{ color:var(--white); }
.deep .ink-soft-on-deep{ color:#B7C2D3; }

/* ============================================================
   App feature (FiveSixteen)
   ============================================================ */

.app-feature{
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:clamp(40px,6vw,90px);
    align-items:center;
}

.app-feature .quote-col .verse{
    font-size:clamp(1.25rem,2vw,1.55rem);
    line-height:1.5;
}

.app-lockup{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:22px;
}

.app-lockup img{ width:64px; }
.app-lockup .name-image{ width:200px; height:auto; }

.app-tagline{
    font-family:var(--font-display);
    font-style:italic;
    font-size:1.2rem;
    color:var(--ember);
    margin-bottom:18px;
}

.app-copy p{
    color:var(--ink-soft);
    font-size:1.05rem;
    margin-bottom:28px;
}

/* ============================================================
   Cards (coming soon)
   ============================================================ */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:26px;
}

.card{
    background:var(--paper);
    padding:34px 32px;
    border-radius:var(--radius);
    box-shadow:var(--shadow-sm);
    border:1px solid var(--water-deep);
}

.card .tag{
    display:inline-block;
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:var(--gold);
    margin-bottom:14px;
}

.card h3{
    font-size:1.3rem;
    margin-bottom:10px;
}

.card p{ color:var(--ink-soft); }

/* ============================================================
   Simple content pages (about / contact / donate)
   ============================================================ */

.page-hero{
    background:var(--water);
    padding:clamp(70px,10vw,110px) 0 clamp(50px,7vw,70px);
}

.page-hero h1{
    font-size:clamp(2.1rem,4vw,3rem);
    margin-top:16px;
    max-width:18ch;
}

.prose{
    max-width:640px;
}

.prose p{
    color:var(--ink-soft);
    font-size:1.08rem;
    margin-bottom:22px;
}

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

.contact-card, .donate-card{
    background:var(--paper);
    border:1px solid var(--water-deep);
    border-radius:var(--radius);
    padding:36px 38px;
    box-shadow:var(--shadow-sm);
    margin-top:36px;
}

.contact-email{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-family:var(--font-display);
    font-size:1.35rem;
    color:var(--ink);
    text-decoration:none;
    border-bottom:1.5px solid var(--gold);
    padding-bottom:3px;
    transition:color .2s var(--ease), border-color .2s var(--ease);
}

.contact-email:hover{ color:var(--ember); border-color:var(--ember); }

.contact-label, .donate-label{
    display:block;
    font-size:.75rem;
    font-weight:700;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:var(--ink-soft);
    margin-bottom:10px;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer{
    background:var(--ink);
    color:#B7C2D3;
    padding:56px 0 34px;
}

.footer-row{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding-bottom:30px;
    border-bottom:1px solid rgba(255,255,255,.12);
}

.footer-brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-family:var(--font-display);
    font-size:1.1rem;
    color:var(--white);
}

.footer-nav{
    display:flex;
    gap:28px;
    flex-wrap:wrap;
}

.footer-nav a{
    color:#B7C2D3;
    text-decoration:none;
    font-size:.92rem;
    transition:color .2s var(--ease);
}

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

.footer-note{
    padding-top:22px;
    font-size:.82rem;
    color:#7C8BA3;
}

/* ============================================================
   Scroll reveal
   ============================================================ */

[data-reveal]{
    opacity:0;
    transform:translateY(18px);
    transition:opacity .7s var(--ease), transform .7s var(--ease);
}

[data-reveal].is-visible{
    opacity:1;
    transform:translateY(0);
}

@media (prefers-reduced-motion: reduce){
    [data-reveal]{ opacity:1; transform:none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width:860px){

    .app-feature{
        grid-template-columns:1fr;
    }

}

@media (max-width:720px){

    .nav-toggle{ display:flex; }

    .site-nav{
        position:absolute;
        top:100%;
        left:0;
        right:0;
        flex-direction:column;
        align-items:flex-start;
        gap:0;
        background:var(--paper);
        border-bottom:1px solid var(--water-deep);
        box-shadow:var(--shadow-sm);
        max-height:0;
        overflow:hidden;
        transition:max-height .3s var(--ease);
    }

    .site-nav.is-open{ max-height:280px; }

    .site-nav a{
        width:100%;
        padding:16px 6%;
    }

    .site-nav a::after{ display:none; }

    .footer-row{ flex-direction:column; align-items:flex-start; }

}
