@font-face{font-family:"MonteCarlo";src:url("../fonts/montecarlo.woff2") format("woff2");font-display:block}
@font-face{font-family:"EB Garamond";src:url("../fonts/ebg-r.woff2") format("woff2");font-weight:400 600;font-display:swap}
@font-face{font-family:"EB Garamond";src:url("../fonts/ebg-i.woff2") format("woff2");font-weight:400 600;font-style:italic;font-display:swap}

:root{
  color-scheme:light;
  --paper:#F8F5EE; --burg:#62222D; --night:#5A1E28; --blush:#E7C3BB; --olive:#56623A; --olive-deep:#46502D;
  --script:"MonteCarlo",cursive; --serif:"EB Garamond",Georgia,serif;
  --out:cubic-bezier(.16,.8,.24,1);
  --t-names:min(22.5vw,12svh,104px); --t-h2:48px; --t-body:19px; --t-lab:14px; --gut:22px;
}
@media (min-width:900px){:root{--t-names:min(10.5vw,19svh,168px); --t-h2:68px; --t-body:21px; --gut:40px}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:#4C1820}
/* the overscroll above the dusk and nightfall openings is their sky (the same photograph and sky, measured 175/209/225) (frame.js sets .ov-top while the first screen is in view; 23 Nov) */
html.ov-top:is([data-opening="dusk"],[data-opening="nightfall"],[data-opening="sheet"],[data-opening="fade"],[data-opening="sunset"],[data-opening="evening"]){background:#AED1E1}
html.ov-top[data-opening="frame"]{background:#F8F5EE}   /* the frame opening is on paper (23 Nov) */
.ov-sentinel{position:absolute;left:0;top:0;width:1px;height:100vh;pointer-events:none;visibility:hidden}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--paper);color:var(--burg);font-family:var(--serif);font-size:var(--t-body);line-height:1.55;overflow-x:clip}
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;padding:0}
[hidden]{display:none!important}

/* ================= the ground: one soft sunset, each part of the page carries its own stretch of it ================= */
.page{position:relative;isolation:isolate;overflow-x:clip}
.wk-slot{z-index:2}
.gr{position:relative;background-repeat:repeat,no-repeat;background-size:256px 256px,100% 100%}
.gr-open{background-image:url(../img/grain.png),linear-gradient(180deg,#F8F5EE,#F8F4EC)}
.gr-welcome{background-image:url(../img/grain.png),linear-gradient(180deg,#F8F4EC,#F7EEE7 55%,#F6EAE4)}
.gr-weekend{background-image:url(../img/grain.png),linear-gradient(180deg,#F6EAE4,#F4E2DA 50%,#F2DAD1)}
.gr-travel{background-image:url(../img/grain.png),linear-gradient(180deg,#F2DAD1,#F0D2C7 55%,#EFCCBF)}
.gr-edit{background-image:url(../img/grain.png),linear-gradient(180deg,#EFCCBF,#EEC4B4 30%,#EDBCA8 62%,#EBB39F)}
.gr-faqs{background-image:url(../img/grain.png),linear-gradient(180deg,#EBB39F 0,#E6A99D 30%,#DFA2A1 52%,#CC8A92 68%,#A65F70 82%,#7C394A 100%)}
.gr-rsvp{background-image:url(../img/grain.png),linear-gradient(180deg,#7C394A 0,#6A2A38 120px,#5D212B 360px,#561E27 70%,#541C25 100%)}
.gr-close{background-image:url(../img/grain.png),linear-gradient(180deg,#541C25,#4C1820)}
@supports (background:linear-gradient(in oklab,red,blue)){
  .gr-welcome{background-image:url(../img/grain.png),linear-gradient(180deg in oklab,#F8F4EC,#F7EEE7 55%,#F6EAE4)}
  .gr-faqs{background-image:url(../img/grain.png),linear-gradient(180deg in oklab,#EBB39F 0,#E6A99D 30%,#DFA2A1 52%,#CC8A92 68%,#A65F70 82%,#7C394A 100%)}
  .gr-rsvp{background-image:url(../img/grain.png),linear-gradient(180deg in oklab,#7C394A 0,#6A2A38 120px,#5D212B 360px,#561E27 70%,#541C25 100%)}
}

/* ================= frame sections (opening, welcome, edit, faqs, close) ================= */
.fr{text-align:center;padding:96px var(--gut)}
.fr h2{font-weight:400;font-style:italic;font-size:var(--t-h2);line-height:1.05;letter-spacing:-.005em;margin:0;color:var(--burg)}
.welcome p,.faqs p,.close p,.edit-b p,.fr .sh p{margin:0}
.fr .lab{font-weight:500;font-size:var(--t-lab);line-height:1.3;letter-spacing:.18em;text-transform:uppercase}
.fr .quiet{font-style:italic;font-size:18px;line-height:1.4;color:#6E2C37;margin-top:18px}
.welcome a,.faqs a,.close a{color:inherit}
.fr :focus-visible,.fx :focus-visible{outline:2px solid currentColor;outline-offset:3px}
.fr .names{font-family:var(--script);font-weight:400;font-size:var(--t-names);line-height:.95;white-space:nowrap;margin:0}
.fr .names .l1,.fr .names .l2{display:block}
.fr .names .l2{padding-left:.55em}
.fr .names .amp{font-family:var(--serif);font-style:italic;font-size:.45em;margin-right:.06em;vertical-align:.12em}

/* 1. opening (the plain skeleton opening, one self-contained block so a chosen opening can replace it) */

/* 2. welcome: her four paragraphs, set as editorial text */
.welcome{padding-top:84px;padding-bottom:96px}
.w-text{max-width:33em;margin:30px auto 0;text-align:left;font-size:19px;line-height:1.62}
.w-text p+p{margin-top:1.05em}
.w-text .last{margin-top:1.5em;font-style:italic;font-size:25px;line-height:1.3;text-align:center}
.count{display:flex;justify-content:center;gap:22px;margin-top:44px}
.count p{display:flex;flex-direction:column;align-items:center;min-width:64px}
.count b{font-weight:400;font-size:38px;line-height:1.05;font-variant-numeric:tabular-nums lining-nums}
.count span{font-weight:500;font-size:13px;letter-spacing:.16em;text-transform:uppercase;margin-top:6px}
.join{display:flex;justify-content:center;padding-top:56px}
.join svg{display:block;overflow:visible;width:min(56%,300px);height:14px}
.join path{fill:none;stroke:rgba(98,34,45,.55);stroke-width:1.2;stroke-linecap:round}

/* 5. our mallorca edit */
.edit{padding-top:84px;padding-bottom:84px}
.fr .e-intro{max-width:30em;margin:20px auto 0;font-size:20px;line-height:1.5;font-style:italic}
.e-groups{max-width:1080px;margin:44px auto 0;text-align:left;display:grid;gap:42px}
.eg{display:grid;grid-template-columns:44px 1fr;column-gap:14px;align-items:start}
.eg .mk{width:44px;height:44px;margin-top:-6px;overflow:visible}
.eg .mk g{fill:none;stroke:var(--burg);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.eg h3{grid-column:2;margin:0;font-weight:500;font-size:14px;line-height:1.3;letter-spacing:.18em;text-transform:uppercase;padding-top:6px}
.eg .eb{grid-column:2;margin-top:10px}
.eg ul{list-style:none;margin:0;padding:0}
.eg li{font-size:19px;line-height:1.45;padding:3px 0}
.eg li .tag{font-style:italic}
.e-port{margin-top:14px}
.e-port:first-child{margin-top:4px}
.e-port h4{margin:0;font-weight:400;font-size:27px;line-height:1.15}
.e-port p{font-size:19px;line-height:1.5;margin-top:4px}
.eg .eb > p{font-size:19px;line-height:1.5}
.eg .eb > p + ul{margin-top:8px}
.ln{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:rgba(98,34,45,.45)}
.ln:hover{text-decoration-color:currentColor}
.e-port h4 .ln{text-decoration-color:rgba(98,34,45,.3)}
.eg li .ln,.eg h4 .ln{display:inline-block;min-height:30px}
.fr .e-close{max-width:30em;margin:46px auto 0;font-size:21px;line-height:1.45;font-style:italic}
.m2-tg{display:inline-flex;align-items:center;gap:12px;min-height:52px;margin-top:34px;padding:0 24px;border:1px solid rgba(98,34,45,.5);border-radius:999px;background:rgba(248,245,238,.35);
  font:inherit;font-size:18px;color:var(--burg);cursor:pointer}
.m2-tg svg{width:14px;height:14px;transition:transform .35s var(--out)}
.m2-tg svg path{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.m2-tg[aria-expanded="true"] svg{transform:rotate(45deg)}
.m2{max-width:760px;margin:22px auto 0}
.m2 figure{margin:0}
.m2 .m2-svg{display:block;width:100%;height:auto;overflow:hidden}
.m2 .coast,.m2 .coast2,.m2 .land2{vector-effect:non-scaling-stroke}
/* the drawing fades out at its edges, so the corner of the island is not a box */
.m2-fig .m2-svg{-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(transparent,#000 9%,#000 91%,transparent);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(transparent,#000 9%,#000 91%,transparent);mask-composite:intersect}
.p2-wrap .n2{white-space:normal;width:min-content;line-height:1.05}
.m2 .sea-l{fill:none;stroke:rgba(98,34,45,.28);stroke-width:.9;stroke-linecap:round}
.m2 .land{fill:#DC9182;fill-opacity:.5}
.m2 .land2{fill:none;stroke:#C77A72;stroke-opacity:.35;stroke-width:2.2}
.m2 .coast{fill:none;stroke:var(--burg);stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}
.m2 .coast2{fill:none;stroke:var(--burg);stroke-width:.6;stroke-opacity:.4;stroke-dasharray:6 1.5 11 2}
.m2 .ld{stroke:var(--burg);stroke-width:.9;stroke-opacity:.7;fill:none}
.m2 .p2 g{fill:none;stroke:var(--burg);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.m2 .p2 .bg{stroke:#F8EEE8;stroke-width:5.5;opacity:.8}
.m2 .p2 text{font-family:var(--serif);font-style:italic;font-size:17px;fill:var(--burg);paint-order:stroke;stroke:#F6E4DC;stroke-width:4px;stroke-linejoin:round}
.m2 .p2 a:focus-visible{outline:none}
.m2 .p2 a:focus-visible text{text-decoration:underline}
.m2 .twn text{font-family:var(--serif);font-weight:500;font-size:13px;letter-spacing:.13em;fill:var(--burg);paint-order:stroke;stroke:#F6E4DC;stroke-width:4px}
.m2 .key{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 22px;margin-top:10px;font-size:17px}
.m2 .key span{display:inline-flex;align-items:center;gap:6px}
.m2 .key svg{width:30px;height:30px}
.m2 .key g{fill:none;stroke:var(--burg);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.m2 .cr{font-size:14px;margin-top:6px;opacity:.9}
html.motion .m2.drawn .coast{stroke-dasharray:1 1.1;animation:m2draw 1.6s cubic-bezier(.65,0,.35,1) both}
html.motion .m2.drawn .land,html.motion .m2.drawn .land2{animation:m2fade 1.4s .2s ease-out both}
html.motion .m2.drawn .p2{animation:m2fade .6s calc(.7s + var(--i) * .09s) ease-out both}
@keyframes m2draw{from{stroke-dashoffset:1.05}to{stroke-dashoffset:0}}
@keyframes m2fade{from{opacity:0}}

/* 6. faqs: words sit in the upper part; the fall into night runs below them */
.faqs{min-height:86svh;padding-top:96px;padding-bottom:40svh}

/* 8. close */
.close{min-height:84svh;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--paper)}
.close .names{font-size:min(19vw,84px);color:var(--blush)}
.close .names .amp{color:var(--paper)}
.f-links{list-style:none;padding:0;display:flex;flex-wrap:wrap;justify-content:center;column-gap:22px;margin:48px 0 0;max-width:560px}
.f-links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;font-size:19px;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;text-decoration-color:rgba(248,245,238,.45)}   /* min-width (phone audit, 23 Nov): "FAQs" was 42px wide */
.close-stars{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.close-stars svg{position:absolute;overflow:visible;fill:none;stroke-linecap:round;stroke-linejoin:round;transform:translate(-50%,-50%) rotate(var(--r))}
.close-stars .s14{width:14px;height:14px;stroke-width:9.3}.close-stars .s22{width:22px;height:22px;stroke-width:5.9}.close-stars .s30{width:30px;height:30px;stroke-width:4.4}
.close-stars .bl{stroke:var(--blush)}.close-stars .pa{stroke:var(--paper)}
.close-stars i{position:absolute;width:var(--d);height:var(--d);border-radius:50%;background:rgba(231,195,187,.75)}
.close > :not(.close-stars){position:relative}

@media (min-width:900px){
  .fr{padding:120px var(--gut)}
  .w-text{font-size:21px}
  .w-text .last{font-size:30px}
  .count{gap:34px}.count b{font-size:46px}
  .fr .e-intro{font-size:22px}
  .e-groups{grid-template-columns:1fr 1fr;column-gap:72px;row-gap:56px}
  .eg.ports{grid-row:span 2}
  .eg li,.e-port p,.eg .eb > p{font-size:20px}
  .e-port h4{font-size:30px}
  .close .names{font-size:120px}
  .close .names .l1,.close .names .l2{display:inline}.close .names .l2{padding-left:.12em}
  .f-links{max-width:1000px}
}

/* ================= reveal on entering (frame sections only) ================= */
html.motion .rv{opacity:0;transform:translateY(16px);transition:opacity 900ms ease,transform 1100ms var(--out);transition-delay:calc(var(--i,0) * 110ms)}
html.motion .rv.in{opacity:1;transform:none}

/* ================= fixed controls: menu (phone pill / desktop line), RSVP button, Review ================= */
.fx{--c-bg:rgba(248,245,238,.94);--c-ink:#62222D}
.fx[data-tone="night"]{--c-bg:rgba(84,28,37,.94);--c-ink:#F1D9D2}
.nav{display:none}
html.js .nav{display:block}
.menu-btn{position:fixed;z-index:50;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));height:44px;min-width:44px;padding:0 16px 0 calc(16px + .18em);border:0;border-radius:999px;cursor:pointer;
  background:var(--c-bg);color:var(--c-ink);box-shadow:0 1px 6px rgba(60,20,25,.12);font:500 13px/1 var(--serif);letter-spacing:.18em;text-transform:uppercase;transition:background-color .3s,color .3s}
.menu-panel{position:fixed;inset:0;z-index:80;display:none;flex-direction:column;align-items:center;justify-content:flex-start;gap:24px;
  padding:max(40px,calc(env(safe-area-inset-top) + 16px)) max(24px,env(safe-area-inset-right)) max(40px,calc(env(safe-area-inset-bottom) + 16px)) max(24px,env(safe-area-inset-left));
  overflow-y:auto;overscroll-behavior:contain;background:var(--paper);color:var(--burg)}
.menu-panel.open{display:flex}
/* phone audit (23 Nov): centred while it fits; taller than the screen (a phone on its side) it starts at the top and scrolls,
   so the names and "Close" are never cut off (justify-content:center pushed both off screen at 844 x 390) */
.menu-panel > :first-child{margin-top:auto}
.menu-panel > :last-child{margin-bottom:auto}
.menu-panel ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;align-items:center}
.menu-panel a{display:flex;align-items:center;min-height:56px;font-size:30px;text-decoration:none;color:inherit}
.menu-panel .home{font-family:var(--script);font-size:46px;line-height:1;margin-bottom:8px}
.menu-panel .home .amp{font-family:var(--serif);font-style:italic;font-size:.5em;margin:0 10px 0 14px}
.menu-close{min-height:48px;padding:0 24px;border:0;background:none;cursor:pointer;color:inherit;font:500 13px/1 var(--serif);letter-spacing:.18em;text-transform:uppercase}
html.motion .menu-panel.open{animation:fx-fade 260ms ease both}
html.motion .menu-panel.open li{animation:fx-rise 520ms var(--out) both;animation-delay:calc(var(--i) * 45ms + 60ms)}
@keyframes fx-fade{from{opacity:0}}
@keyframes fx-rise{from{opacity:0;transform:translateY(10px)}}
.nav-line{display:none}
@media (min-width:900px){
  .menu-btn,.menu-panel{display:none!important}
  .nav-line{display:flex;position:fixed;z-index:50;top:0;left:0;right:0;justify-content:center;gap:2px;margin:0;padding:8px 24px;list-style:none;
    background:var(--c-bg);color:var(--c-ink);box-shadow:0 1px 0 rgba(98,34,45,.08);transition:background-color .3s,color .3s}
  .nav-line a{display:flex;align-items:center;min-height:44px;padding:0 15px;text-decoration:none;color:inherit;font:500 13px/1 var(--serif);letter-spacing:.2em;text-transform:uppercase}
  .nav-line a[aria-current="true"]{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:7px}
}
/* the RSVP button belongs to the whole page; it hides while the form is on screen */
.fab{position:fixed;z-index:40;right:max(14px,env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom));display:inline-flex;align-items:center;justify-content:center;
  min-width:104px;min-height:52px;padding:0 24px 0 calc(24px + .22em);border-radius:999px;background:var(--burg);color:var(--paper);text-decoration:none;
  font:500 15px/1 var(--serif);letter-spacing:.22em;box-shadow:0 10px 24px -10px rgba(58,28,30,.6),0 1px 2px rgba(58,28,30,.2);
  transition:transform .4s cubic-bezier(.2,.7,.2,1),opacity .3s,visibility 0s}
.fab[data-tone="night"]{background:var(--blush);color:#4C1820}
.fab.off{transform:translateY(28px);opacity:0;visibility:hidden;transition:transform .3s ease-in,opacity .25s,visibility 0s .3s}
.fab:focus-visible{outline:2px solid currentColor;outline-offset:-6px}
html:not(.js) .fab{display:none}
@media (min-width:900px){.fab{right:24px;bottom:24px}}

/* Review: a review aid, not design. Closed by default, bottom-left. */
.review{display:none}
html.js .review{display:block;position:fixed;z-index:70;left:8px;bottom:calc(8px + env(safe-area-inset-bottom));font:500 13px/1.2 system-ui,-apple-system,sans-serif;color:#fff}
.review > button{height:44px;padding:0 14px;border:0;border-radius:999px;background:rgba(30,26,24,.78);color:#fff;font:inherit;cursor:pointer}
.review > button[aria-expanded="true"]{background:rgba(30,26,24,.92)}
.rv-panel{position:absolute;left:0;bottom:62px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:max-content;max-width:calc(100vw - 16px)}
.rv-row{display:flex;align-items:center;flex-wrap:wrap;gap:0 2px;padding:0 6px 0 12px;border-radius:18px;background:rgba(30,26,24,.9)}
.rv-row span{margin-right:4px;opacity:.85}
.rv-row button{height:44px;padding:0 8px;border:0;background:none;color:#fff;font:inherit;cursor:pointer;opacity:.8}
.rv-row button[aria-pressed="true"]{opacity:1;text-decoration:underline;text-underline-offset:4px}
.review :focus-visible{outline:2px solid #fff;outline-offset:-4px}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}
/* loops pause off screen */
.paused *{animation-play-state:paused!important}

/* map 2: the drawing is SVG; the seven marks and their names are HTML on top, so the lettering keeps its size */
.m2-fig{position:relative;width:100%;margin:0}
.m2-fig .m2-svg{position:absolute;inset:0;width:100%;height:100%}
.p2{position:absolute;width:0;height:0;color:var(--burg);text-decoration:none}
.p2::before{content:"";position:absolute;left:-22px;top:-22px;width:44px;height:44px;translate:var(--ox,0) var(--oy,0)}
.ic2{position:absolute;width:32px;height:32px;left:-16px;top:-16px;overflow:visible;translate:var(--ox,0) var(--oy,0)}
.ic2 g{fill:none;stroke:var(--burg);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ic2 .bg{stroke:#F2D6CB;stroke-width:5.5;opacity:.85}
.n2{position:absolute;white-space:nowrap;font-style:italic;font-size:16px;line-height:1.1;padding:4px 3px;
  text-shadow:0 0 1px #F6E4DC,0 0 2px #F6E4DC,0 0 3px #F6E4DC,0 0 5px #F6E4DC,0 0 8px rgba(246,228,220,.95),0 0 13px rgba(246,228,220,.8);
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:rgba(98,34,45,.4);translate:var(--lx,0) var(--ly,0)}
.n2{background:linear-gradient(90deg,rgba(247,232,226,0),rgba(247,232,226,.9) 7px,rgba(247,232,226,.9) calc(100% - 7px),rgba(247,232,226,0)) 50% 50%/100% 1.55em no-repeat;padding:4px 7px}
.p2-wrap .n2{background-size:100% 100%}
.p2-s .n2{left:0;top:14px;transform:translateX(-50%)}
.p2-n .n2{left:0;bottom:14px;transform:translateX(-50%)}
.p2-e .n2{left:16px;top:-12px}
.p2-w .n2{right:16px;top:-12px}
.p2-se .n2{left:10px;top:12px}
.p2-sw .n2{right:10px;top:12px}
.p2-nw .n2{right:10px;bottom:12px}
.p2-ne .n2{left:10px;bottom:12px}
.ld2{position:absolute;left:0;top:0;width:var(--ll,0);height:1.2px;background:rgba(98,34,45,.7);transform-origin:0 50%;transform:rotate(var(--la,0deg))}
.ld2::before{content:"";position:absolute;left:-2.5px;top:-2px;width:5px;height:5px;border-radius:50%;background:var(--burg)}
.p2:focus-visible{outline:none}
.p2:focus-visible .n2{outline:2px solid var(--burg);outline-offset:1px}
@media (min-width:900px){.n2{font-size:18px}.ic2{width:38px;height:38px;left:-19px;top:-19px}}

/* the desktop menu line sits over the top of the page: links land below it */
@media (min-width:900px){#welcome,#weekend,#travel,#edit,#faqs,#rsvp,#rsvp-slot{scroll-margin-top:60px}}
