/* Shared base for the landing mockups: fonts, colours, Ali full-screen background, embers */
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/CormorantGaramond-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/CormorantGaramond-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400 600;font-display:swap;src:url(fonts/CormorantGaramond-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400 600;font-display:swap;src:url(fonts/CormorantGaramond-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Jost';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/Jost-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:'Jost';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/Jost-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+2C60-2C7F,U+A720-A7FF}
:root{--serif:'Cormorant Garamond',Georgia,serif;--sans:'Jost',system-ui,sans-serif;--wine:#2E0D13;--gold:#B8893B;--gold-l:#D9B26A;--cream:#F1E7DA;--soft:#CDBBA6}
*{box-sizing:border-box}
html,body{height:100%}
html{background:var(--wine)}
body{margin:0;overflow:hidden;color:var(--cream);font-family:var(--sans);-webkit-font-smoothing:antialiased;
  background:radial-gradient(ellipse 75% 85% at 50% 50%,rgba(0,0,0,0) 50%,rgba(0,0,0,.45) 100%),url(img/tex-dark.svg) 0 0/400px,var(--wine)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Ali: the box is exactly the photo (1080x1464), so embers.js lands its sparks on the flame */
.hero-art{position:fixed;z-index:0;aspect-ratio:1080/1464;pointer-events:none;mix-blend-mode:screen}
.hero-pic{position:absolute;inset:0;animation:aliIn 2.2s cubic-bezier(.2,.7,.2,1) both}
.hero-pic img{display:block;width:100%;height:100%}
.ember-canvas{position:absolute;z-index:2;left:-12%;top:-30%;width:124%;height:130%}
@keyframes aliIn{from{opacity:0;transform:scale(1.04);filter:blur(8px)}to{opacity:var(--ali,.5);transform:none;filter:none}}
.hero-pic{opacity:var(--ali,.5)}

/* "cover": Ali fills the whole screen. --fx = which point of the photo sits at the screen centre, --fy = how much of the top to crop */
.cover .hero-art{--w:max(100vw,calc(100vh * 1080 / 1464));width:var(--w);left:calc(50% - var(--w) * var(--fx,.5));top:calc(var(--w) * -1.3556 * var(--fy,0))}

/* "fit": Ali fills the screen height (head to flame), the sides melt into the wine background */
.fit .hero-art{height:var(--h,122vh);top:var(--t,-3vh);left:calc(50% - var(--h,122vh) * 1080 / 1464 * var(--fx,.5))}
.fit .hero-pic{-webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
@media (max-width:760px){.fit .hero-art{height:auto;width:130vw;top:0;left:calc(50% - 130vw * var(--fx,.5))}}

/* veil over Ali so the buttons read */
.veil{position:fixed;inset:0;z-index:1;pointer-events:none}
main{position:relative;z-index:3;height:100%}

@keyframes up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
