/* FerPatel.com 2026 redesign: shared base, editorial blue + violet.
   Page layouts are inline in each page so they match the approved design canvas 1:1. */
@font-face{font-family:Outfit;src:url('/fonts/outfit-var.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--fp-ground:#F6F5FB;--fp-ink:#12153A;--fp-body:#3E4266;--fp-muted:#4D5175;--fp-blue:#2C47F5;--fp-blue-dark:#1B2FB8;--fp-violet:#6A3FE8;--fp-navy:#171B4D;--fp-line:#E2DFF1}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--fp-ground);color:var(--fp-ink);font-family:Outfit,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
img,video,svg{max-width:100%}
a{color:var(--fp-blue)}a:hover{color:var(--fp-blue-dark)}
h1,h2,h3,p{text-wrap:pretty}
:focus-visible{outline:3px solid var(--fp-violet);outline-offset:4px;border-radius:4px}
.skip-link{position:fixed;top:-100px;left:16px;z-index:10001;background:var(--fp-ink);color:#fff;padding:12px 20px;border-radius:8px;text-decoration:none}
.skip-link:focus{top:12px;color:#fff}

/* Header: sticky, wraps cleanly on small screens */
.fp-header{position:sticky;top:0;z-index:50;background:rgba(246,245,251,.94);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid #D9D6EC}
.fp-header nav a{white-space:nowrap}
@media (max-width:760px){
  .fp-header-inner{padding:14px 20px!important;gap:12px!important}
  .fp-header nav{order:3;width:100%;gap:6px 18px!important;font-size:14px!important}
  .fp-header .fp-cta{padding:11px 16px!important;font-size:14px!important}
  .fp-header svg{height:32px!important}
}

/* Legal long-form */
.legal-body{display:flex;flex-direction:column;gap:44px;max-width:760px}
.legal-body section{scroll-margin-top:96px}
.legal-body h2{margin:0 0 14px;font-family:'Instrument Serif',Georgia,serif;font-weight:400;font-size:clamp(30px,3vw,40px);line-height:1.05;color:var(--fp-ink)}
.legal-body h3{margin:22px 0 8px;font-size:18px;font-weight:600}
.legal-body p,.legal-body li{font-size:17px;line-height:1.75;color:var(--fp-body)}
.legal-body p{margin:0 0 14px}
.legal-body ul{margin:0 0 14px;padding-left:22px}
.legal-body b,.legal-body strong{color:var(--fp-ink)}
.legal-body .sub{margin-top:16px}

/* Motion: subtle, transform only so text is never hidden. */
@keyframes fp-rise{from{transform:translateY(18px)}to{transform:translateY(0)}}
@keyframes fp-photo{from{transform:translateY(24px) scale(.98)}to{transform:translateY(0) scale(1)}}
@keyframes fp-block{from{transform:translate(-18px,-18px)}to{transform:translate(0,0)}}
@media (prefers-reduced-motion:no-preference){
  main > section:first-child > * > *{animation:fp-rise .9s cubic-bezier(.16,1,.3,1) backwards}
  main > section:first-child > * > *:nth-child(2){animation-delay:.1s}
  main > section:first-child > * > *:nth-child(3){animation-delay:.2s}
  main > section:first-child > * > *:nth-child(4){animation-delay:.3s}
  main > section:first-child > * > *:nth-child(n+5){animation-delay:.4s}
  main > section:first-child img{animation:fp-photo 1.1s .2s cubic-bezier(.16,1,.3,1) backwards}
  main > section:first-child div[style*="position: absolute"]{animation:fp-block 1.2s .4s cubic-bezier(.16,1,.3,1) backwards}
  @supports (animation-timeline:view()){
    main h2,main article,main blockquote,main figure,main a:has(img){animation:fp-rise linear backwards;animation-timeline:view();animation-range:entry 0% entry 40%}
  }
  article,main a:has(img){transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s ease}
  article:hover,main a:has(img):hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(18,21,58,.10)}
  main a:has(img) img,main figure img{transition:transform .6s cubic-bezier(.16,1,.3,1)}
  main a:has(img):hover img,main figure:hover img{transform:scale(1.03)}
  .fp-header nav a{background:linear-gradient(currentColor,currentColor) 0 100%/0 1.5px no-repeat;padding-bottom:3px;transition:background-size .35s cubic-bezier(.16,1,.3,1)}
  .fp-header nav a:hover{background-size:100% 1.5px}
  a{transition:background-color .2s ease,color .2s ease,transform .2s ease}
  a:active{transform:scale(.98)}
}
