/*
Theme Name: KNASK Coming Soon
Theme URI: https://example.com/knask
Author: KNASK London
Description: A one-page coming-soon theme for KNASK London — poster slideshow, launch message, email sign-up and social links. Edit everything from Appearance → Customize → KNASK Page.
Version: 1.2.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: knask
*/

:root{
  --navy:#132A40; --sea:#2F4A5F; --stone:#EDE3D5; --sand:#D8C7B1; --rose:#D6A386; --ink:#F4ECE1;
  --serif:"Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:"Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
*,*::before,*::after{box-sizing:inherit}
html{scroll-padding-top:env(safe-area-inset-top,0px);height:100%}
body{margin:0;min-height:100%;background:var(--navy);color:var(--ink);font-family:var(--sans);font-weight:300;overflow-x:hidden}

/* blurred ambient backdrop that follows the active slide */
.ambient{position:fixed;inset:0;z-index:0;overflow:hidden}
.ambient img{position:absolute;inset:-8%;width:116%;height:116%;object-fit:cover;filter:blur(48px) saturate(1.1) brightness(.55);opacity:0;transition:opacity 1.6s ease}
.ambient img.on{opacity:1}
.ambient::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(19,42,64,.55) 70%)}

.stage{position:relative;z-index:1;min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:center;gap:clamp(2rem,5vw,5rem);padding:clamp(1.25rem,4vw,4rem);max-width:1320px;margin:0 auto}

/* slideshow: arch-topped frame echoing the architecture in the posters */
.show{justify-self:end;width:min(100%,560px)}
.frame{position:relative;aspect-ratio:1122/1402;border-radius:999px 999px 6px 6px / 42% 42% 6px 6px;overflow:hidden;box-shadow:0 40px 80px -30px rgba(0,0,0,.6);outline:1px solid rgba(214,163,134,.35);outline-offset:10px}
.slide{position:absolute;inset:0;opacity:0;transition:opacity 1.4s ease}
.slide.on{opacity:1}
.slide img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.06);transition:transform 7s ease-out}
.slide.on img{transform:scale(1)}

.controls{display:flex;align-items:center;justify-content:center;gap:1.25rem;margin-top:2rem}
.nav{width:44px;height:44px;border-radius:50%;border:1px solid rgba(244,236,225,.35);background:transparent;color:var(--ink);cursor:pointer;display:grid;place-items:center;transition:background .3s,border-color .3s}
.nav:hover{background:rgba(244,236,225,.08);border-color:var(--rose)}
.nav svg{width:16px;height:16px}
.dots{display:flex;gap:.6rem}
.dot{width:28px;height:2px;border:0;padding:8px 0;background:transparent;cursor:pointer;position:relative}
.dot::before{content:"";position:absolute;left:0;right:0;top:50%;height:2px;margin-top:-1px;background:rgba(244,236,225,.3)}
.dot::after{content:"";position:absolute;left:0;top:50%;height:2px;margin-top:-1px;width:0;background:var(--rose)}
.dot.on::after{animation:fill var(--dur,6s) linear forwards}
.paused .dot.on::after{animation-play-state:paused}
@keyframes fill{to{width:100%}}
:focus-visible{outline:2px solid var(--rose);outline-offset:3px}

/* copy column */
.copy{max-width:30rem}
.mark{width:64px;height:64px;color:var(--rose)}
.wordmark{font-family:var(--sans);font-weight:500;letter-spacing:.42em;font-size:1.05rem;margin:1.1rem 0 .2rem}
.city{font-size:.72rem;letter-spacing:.3em;color:var(--sand)}
h1{font-family:var(--serif);font-weight:300;font-size:clamp(2.6rem,5.2vw,4.4rem);line-height:1.02;letter-spacing:.01em;margin:2.4rem 0 1.2rem}
h1 em{font-style:italic;color:var(--rose)}
.lede{font-family:var(--serif);font-size:1.3rem;line-height:1.55;color:rgba(244,236,225,.82);margin:0 0 2.4rem;max-width:26rem}

.count{display:flex;gap:clamp(1rem,3vw,2rem);margin-bottom:2.6rem}
.unit{display:flex;flex-direction:column}
.num{font-family:var(--serif);font-size:clamp(2rem,3.6vw,2.8rem);font-weight:400;line-height:1;font-variant-numeric:lining-nums tabular-nums}
.lab{font-size:.78rem;color:var(--sand);margin-top:.45rem}
.sep{width:1px;background:rgba(244,236,225,.18)}

form{display:flex;border-bottom:1px solid rgba(244,236,225,.4);max-width:26rem;transition:border-color .3s}
form:focus-within{border-color:var(--rose)}
input{flex:1;min-width:0;background:transparent;border:0;color:var(--ink);font:inherit;font-size:1rem;padding:.9rem 0}
input::placeholder{color:rgba(244,236,225,.5)}
input:focus{outline:none}
button.go{background:transparent;border:0;color:var(--rose);font:inherit;font-weight:400;font-size:.95rem;cursor:pointer;padding:.9rem 0 .9rem 1rem}
button.go:hover{color:var(--ink)}
.msg{min-height:1.4em;font-size:.9rem;color:var(--sand);margin:.8rem 0 0}
.foot{margin-top:3rem;font-family:var(--serif);font-style:italic;font-size:1.05rem;color:rgba(244,236,225,.6)}

.social{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem 1.75rem;padding-top:1.5rem;border-top:1px solid rgba(244,236,225,.15);margin:0;list-style:none}
.social a{color:var(--sand);text-decoration:none;font-size:.85rem;letter-spacing:.08em;padding:.4rem 0;border-bottom:1px solid transparent;transition:color .3s,border-color .3s}
.social a:hover{color:var(--rose);border-color:var(--rose)}

@media (max-width:860px){
  .stage{grid-template-columns:1fr;gap:3rem;padding-top:2rem;padding-bottom:3rem}
  .show{justify-self:center;width:min(100%,440px)}
  .copy{order:-1;justify-self:center;text-align:center;display:flex;flex-direction:column;align-items:center}
  .count{justify-content:center}
  form{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .slide,.slide img,.ambient img{transition:none}
  .slide img{transform:none}
  .dot.on::after{animation:none;width:100%}
}

/* WordPress additions */
.mark-logo{max-width:100px;height:auto;display:block}
.custom-logo{max-width:100px;height:auto}
body.admin-bar .ambient{top:32px}
.dots{flex-wrap:wrap;justify-content:center;max-width:70%}
.slide img{height:100%}
