/*
Theme Name: Guestlist Midnight
Version: 2.2.2
*/
:root{color-scheme:dark;--ink:#000;--white:#faf8f4;--gold:#d6bc94}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#000;color:var(--white);font:16px/1.55 system-ui,sans-serif}a{color:inherit}button,input{font:inherit}button{cursor:pointer}button,a:focus-visible{outline-offset:5px}.skip{position:absolute;left:-999px}.skip:focus{left:8px;z-index:5;background:#000}.header,.footer{display:flex;justify-content:space-between;align-items:center;padding:0 6vw}.header{height:72px;background:#000}.wordmark{width:155px;height:46px;display:flex;align-items:center;overflow:hidden}.wordmark img{width:100%;height:auto}.nav{display:flex;gap:24px;align-items:center}.nav a,.footer a{text-decoration:none}.solid,.outline,.close{display:inline-block;border:0;border-bottom:1px solid var(--gold);background:none;color:#fff;text-decoration:none;padding:9px 0;font-weight:600;min-height:44px}.nav,.solid,.outline{font-size:.9rem}.hero,.spread{isolation:isolate;position:relative;display:flex;align-items:center;min-height:clamp(560px,72svh,860px);overflow:hidden}.hero-frame,.spread-art{position:absolute;inset:0 0 0 22%;z-index:-1;pointer-events:none}.art{height:100%;position:relative}.paper-scene{width:100%;height:100%;object-fit:cover;object-position:center 42%;transform:translate(var(--px,0),var(--py,0)) scale(1.035);transition:transform .4s}.hero-frame,.spread-art{mask-image:linear-gradient(90deg,transparent,#000 32%),linear-gradient(0deg,transparent,#000 20%,#000 81%,transparent);mask-composite:intersect}.hero-copy,.spread-copy{padding:65px 6vw;max-width:58%;text-shadow:0 2px 22px #000}.eyebrow{font-size:.8rem;text-transform:uppercase;letter-spacing:.16em;color:var(--gold);font-weight:650}.hero h1,.spread h3,dialog h2{font:normal clamp(3rem,5.4vw,5.9rem)/1.01 Georgia,serif;letter-spacing:-.055em;margin:18px 0}.hero h1 em{font-weight:normal}.intro{font:italic clamp(1.25rem,2.1vw,2.2rem)/1.25 Georgia,serif;margin:0 0 20px}.art-label,.framing-fold,.crease,.spine{display:none}.spread{min-height:520px}.spread-copy{max-width:48%}.tidal-title{width:min(225px,80%);height:auto}.details,.description{color:#ede8df}.description{max-width:35ch}.chapter-next{flex-direction:row-reverse}.chapter-next .spread-art{inset:0 24% 0 0;mask-image:linear-gradient(270deg,transparent,#000 36%),linear-gradient(0deg,transparent,#000 20%,#000 82%,transparent)}.chapter-next .spread-copy{width:48%}.footer{min-height:85px;color:#aaa;font-size:.84rem}dialog{background:#101212;color:#fff;width:min(470px,92vw);border:1px solid #45413d;padding:28px}dialog::backdrop{background:#000c}dialog h2{font-size:2.7rem}.close{display:block;margin-left:auto}dialog input{width:100%;padding:10px;margin:5px 0 12px} [hidden]{display:none!important}
@media(max-width:680px){.header{height:62px;padding:0 5vw}.wordmark{width:120px}.nav{gap:15px}.hero,.spread{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;min-height:0}.hero-frame,.spread-art,.chapter-next .spread-art{position:relative;inset:auto;width:100%;height:clamp(325px,112vw,590px);order:-1;mask-image:linear-gradient(to bottom,transparent,#000 13%,#000 65%,transparent);mask-composite:add}.hero-copy,.spread-copy,.chapter-next .spread-copy{padding:0 7vw 36px;max-width:none;width:100%;margin-top:-65px;z-index:1}.hero h1{font-size:clamp(2.65rem,10.7vw,4rem);max-width:15ch}.hero .eyebrow{margin:0}.intro{font-size:1.38rem}.spread-art,.chapter-next .spread-art{height:clamp(270px,83vw,415px)}.spread-copy,.chapter-next .spread-copy{margin-top:-48px}.chapter-next h3{font-size:3.3rem}.footer{padding:0 7vw}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.paper-scene{transition:none;transform:none}}

.gl-trap{position:absolute;left:-10000px}.gl-consent{display:flex;gap:8px}.gl-consent input{width:auto} .gl-signup button{padding:10px 20px}
/* One sheet of paper runs behind the three scenes. */
main.wrap {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #000 0%, #061218 34%, #082128 52%, #131719 72%, #211913 88%, #000 100%);
}
main.wrap::before, main.wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
main.wrap::before {
  background: linear-gradient(118deg, transparent 20%, #629caa21 42%, #a38b6030 80%, transparent);
  clip-path: polygon(100% 9%, 48% 39%, 77% 60%, 13% 84%, 75% 59%, 45% 39%);
}
main.wrap::after {
  background: linear-gradient(160deg, transparent 12%, #7cb6bc12 40%, #c4a16b16 78%, transparent);
  clip-path: polygon(100% 9%, 48% 39%, 77% 60%, 13% 84%, 91% 61%, 56% 40%);
}
#tidal-chapter .eyebrow { color: #a9d5d8; }
#next-chapter .eyebrow { color: #e5c18f; }

.hero { min-height:clamp(450px,62svh,680px) }
.inside { position:relative; isolation:isolate; width:min(100%,1480px); margin:auto; }
.inside-art { position:absolute; z-index:-1; top:0; right:0; width:68%; height:100%; object-fit:contain; mask-image:linear-gradient(90deg,transparent,#000 16%),linear-gradient(0deg,transparent,#000 7%,#000 94%,transparent); mask-composite:intersect }
.inside-notes { padding:0 6vw; display:grid; grid-template-rows:repeat(3,1fr); min-height:clamp(750px,94vw,1250px); }
.inside-notes > div { align-self:center; max-width:min(32vw,38ch) }
.inside h3 { font:normal clamp(2rem,4vw,4rem)/1.03 Georgia,serif; letter-spacing:-.045em; margin:.3em 0 }
.inside p { color:#efece6; margin:.7em 0 }
#join { max-width:27rem; scroll-margin-top:1.5rem; margin-top:1.3rem }
#gl-email { display:block; width:100%; padding:.75em 0; margin-bottom:.85rem; background:transparent; color:white; border:0; border-bottom:1px solid #bda687; font:inherit; border-radius:0 }
.gl-consent { align-items:baseline; font-size:.88rem }
.gl-signup .gl-pill { background:#e9d4ae; color:#19150f; border:0; margin-top:1em; min-height:44px; font-weight:600; cursor:pointer }
@media(max-width:680px){
 .hero{min-height:0}.hero-frame{height:clamp(225px,34svh,330px)}.hero-copy{padding-bottom:12px}
 .inside-art{width:100%;object-fit:cover;object-position:58% center;mask-image:linear-gradient(0deg,transparent,#000 6%,#000 94%,transparent)}
 .inside-notes{min-height:clamp(890px,230vw,1250px);padding:0;position:relative;background:linear-gradient(90deg,#041012b3,transparent 85%)}
 .inside-notes > div{max-width:100%;align-self:end;padding:36px 7vw 16px;background:linear-gradient(transparent,#031013ef 65%,#031013bf);text-shadow:0 1px 5px #000}
 .inside-notes p{max-width:39ch;margin:.35em 0;font-size:.95rem}.inside h3{font-size:2rem}
}

.hero .hero-frame { left:50%; mask-image:none; mix-blend-mode:screen; }
#hero-art { display:block; object-fit:contain; object-position:center; transform:translate(var(--px,0),var(--py,0)); }
@media(max-width:680px) {
  .hero .hero-frame { left:auto; }
  .hero-copy { margin-top:-12px; }
}

.footer { flex-wrap:wrap; gap:0 2rem; }
.footer nav { display:flex; flex-wrap:wrap; align-items:center; gap:0 1.5rem; }
.footer nav a { display:inline-flex; align-items:center; min-height:44px; }
