/* The Manor at Sway Matchmaker
   Set like the venue's own wedding brochure: Marcellus and Raleway, the brochure's gold #c0a75c,
   uppercase gold titles over its flourish, full gold panels with white text, the cover's botanical
   line art, and photography used generously. Headings #333333, body #666666, as the website.
   Questions are brochure spreads (photo down one side, the question beside it); the results page is
   a proposal document that prints as the couple's PDF. Mobile first. */

:root{
  --gold:#c0a75c;
  --gold-soft:rgba(192,167,92,.14);
  --gold-deep:#a98f45;
  --heading:#333333;
  --ink:#666666;
  --ink-2:#4e4e4e;
  --muted:#8c8c8c;
  --paper:#ffffff;
  --rule:rgba(51,51,51,.14);
  --rule-soft:rgba(51,51,51,.09);
  --serif:"Marcellus",Georgia,"Times New Roman",serif;
  --body:"Raleway",Helvetica,Arial,Lucida,sans-serif;
  --caps:.18em;
  --wrap:760px;
  --r:3px;
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;overflow-anchor:none;}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.7;font-weight:500;-webkit-font-smoothing:antialiased;}
img{max-width:100%;display:block;}
a{color:var(--heading);}
button{font:inherit;color:inherit;}
h1,h2,h3,h4{font-family:var(--serif);font-weight:400;margin:0;line-height:1.2;color:var(--heading);}
p{margin:0;}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px;}
[hidden]{display:none !important;}
.eyebrow,.label{font-family:var(--body);font-size:11px;font-weight:700;letter-spacing:var(--caps);text-transform:uppercase;line-height:1.4;color:var(--gold);margin:0;}
.eyebrow{margin-bottom:14px;}
.fine{font-size:13px;color:var(--muted);line-height:1.6;}
.flourish{display:block;color:var(--gold);}
.flourish-wrap{line-height:0;display:flex;justify-content:center;}
/* The brochure's titles: uppercase Marcellus in gold, the flourish beneath, centred. */
.title-caps{font-family:var(--serif);font-weight:400;font-size:22px;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);line-height:1.3;text-align:center;}
.title-caps + .flourish-wrap{margin-top:12px;}

/* ---------- the masthead, like the venue's stationery ---------- */
.site-header{position:sticky;top:0;z-index:60;background:var(--paper);border-top:3px solid var(--gold);}
.masthead{max-width:1100px;margin:0 auto;padding:16px 20px 12px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:0 24px;}
.brand{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;}
.brand img{height:72px;width:auto;}
.brand__word{font-family:var(--serif);font-size:18px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);}
.masthead__side{display:flex;align-items:center;gap:18px;text-decoration:none;color:var(--heading);font-size:11px;letter-spacing:.22em;text-transform:uppercase;font-weight:700;line-height:1.4;white-space:nowrap;}
.masthead__side::before,.masthead__side::after{content:"";flex:1 1 0;height:1px;background:var(--rule);}
.masthead__side--l::before{display:none;}
.masthead__side--r::after{display:none;}
.masthead__side:hover{color:var(--gold);}
.masthead__rule{position:relative;height:1px;background:var(--rule);}
.masthead__rule span{position:absolute;left:50%;top:50%;width:7px;height:7px;background:var(--paper);border:1px solid var(--gold);transform:translate(-50%,-50%) rotate(45deg);}
@media (max-width:699px){
  .result__art,.result__end{margin-left:-20px;margin-right:-20px;}
  .intro .facts{flex-direction:column;align-items:center;gap:8px;}
  .intro .facts li{border-right:0;padding:0;}
  .masthead{grid-template-columns:1fr;gap:10px 0;padding:14px 16px 12px;justify-items:center;}
  .brand img{height:60px;}
  .masthead__side{display:none;}
}

/* ---------- gate ---------- */
.gate{padding:64px 0 80px;text-align:center;}
.gate .h2{font-size:32px;}
.gate .lede{margin:16px auto 0;max-width:52ch;}

/* ---------- intro: the cover. The house, then a title panel that rises into the photo, with the
   brochure's botanical line art behind the title. ---------- */
.intro{padding:0 0 48px;text-align:center;}
.hero{margin:0;aspect-ratio:4/5;overflow:hidden;background:var(--gold-soft);}
.hero picture{display:block;width:100%;height:100%;}
.hero img{width:100%;height:100%;object-fit:cover;object-position:50% 38%;}
.intro__panel{position:relative;max-width:820px;margin:-56px auto 0;padding:48px 24px 0;background:var(--paper);}
/* The cover art fades out on every side, so it never reads as a cropped rectangle. */
.intro__art{position:absolute;left:0;right:0;top:0;height:150px;background:url(../images/botanical-top.jpg) center top / 780px auto no-repeat;opacity:.55;pointer-events:none;-webkit-mask-image:radial-gradient(ellipse 78% 100% at 50% 0%,#000 30%,transparent 100%);mask-image:radial-gradient(ellipse 78% 100% at 50% 0%,#000 30%,transparent 100%);}
.intro__panel > :not(.intro__art){position:relative;}
.intro h1{font-size:34px;max-width:18ch;margin:0 auto;}
.intro .flourish-wrap{margin:16px 0 0;}
.lede{font-size:17px;margin:18px auto 0;max-width:54ch;}
.intro__actions{margin-top:30px;}
.intro__note{margin-top:12px;font-size:14px;color:var(--muted);}
.facts{list-style:none;margin:36px auto 0;padding:24px 0 0;border-top:1px solid var(--rule);display:flex;flex-wrap:wrap;justify-content:center;gap:8px 0;font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--ink);}
.facts li{padding:0 14px;border-right:1px solid var(--rule);line-height:1.5;}
.facts li:last-child{border-right:0;}
@media (min-width:700px){
  .hero{aspect-ratio:2/1;}
  .hero img{object-position:50% 45%;}
  .intro__panel{margin-top:-84px;padding:64px 56px 0;}
  .intro__art{height:170px;background-size:900px auto;}
  .intro h1{font-size:44px;}
  .intro{padding-bottom:72px;}
}
body.intro-gone .intro{display:none;}
body:not(.flow-live) .lp-only{display:none;}

/* ---------- calculator shell ---------- */
#calculator{min-height:calc(100vh - var(--header-h,80px));padding-bottom:0;}
.progress{position:sticky;top:var(--header-h,78px);z-index:55;background:var(--paper);border-bottom:1px solid var(--rule-soft);}
.progress__track{height:2px;background:var(--rule-soft);}
.progress__bar{height:2px;background:var(--gold);width:0;transition:width .4s ease;}
.progress__meta{max-width:1100px;margin:0 auto;padding:12px 20px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;letter-spacing:var(--caps);text-transform:uppercase;font-weight:700;color:var(--muted);}
.backlink{background:none;border:0;padding:0;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-size:11px;letter-spacing:var(--caps);text-transform:uppercase;font-weight:700;color:var(--heading);}
.backlink::before{content:"\2039";font-size:16px;line-height:1;margin-top:-2px;color:var(--gold);}
.backlink:hover{color:var(--gold);}
.runbar{max-width:1100px;margin:0 auto;padding:0 20px 10px;font-size:13px;color:var(--ink);line-height:1.5;}
.runbar strong{font-family:var(--serif);font-weight:400;font-size:17px;color:var(--heading);margin-right:6px;}
.panel{display:none;}

/* ---------- the question spreads ---------- */
.step{padding:36px 0 64px;max-width:640px;margin:0 auto;}
.step__photo{margin:0 -20px 32px;aspect-ratio:16/10;overflow:hidden;background:var(--gold-soft);}
.step__photo img{width:100%;height:100%;object-fit:cover;}
.step__title{font-size:28px;max-width:20ch;}
.step__lede{margin-top:14px;max-width:54ch;}
.step__hello{margin-bottom:12px;}
.step .flourish-wrap{justify-content:flex-start;margin:14px 0 2px;}
@media (min-width:1000px){
  body:not(.view-result) #calculator > .wrap{max-width:1440px;padding:0;}
  .step{max-width:none;margin:0;padding:0;}
  .step--photo{display:grid;grid-template-columns:minmax(0,46fr) minmax(0,54fr);column-gap:0;}
  .step--photo .step__photo{margin:0;aspect-ratio:auto;align-self:start;height:calc(100vh - var(--header-h,80px) - var(--progress-h,58px));min-height:560px;position:sticky;top:calc(var(--header-h,80px) + var(--progress-h,58px));}
  .step--photo .step__body{padding:64px 48px 80px 72px;max-width:640px;}
  .step:not(.step--photo){max-width:640px;margin:0 auto;padding:56px 20px 80px;}
  .step__title{font-size:36px;}
}

/* Options: a list with a gold marker and hairlines between the rows */
.opts{margin-top:28px;border-top:1px solid var(--rule);}
.opt{width:100%;text-align:left;cursor:pointer;display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:4px 14px;align-items:baseline;background:none;border:0;border-bottom:1px solid var(--rule);border-radius:0;padding:16px 0 15px;transition:color .15s;}
.opt::before{content:"";grid-row:1;width:12px;height:12px;border-radius:50%;border:1px solid var(--gold);transform:translateY(1px);transition:background .15s;}
.opt__t{grid-column:2;font-size:16px;color:var(--heading);font-weight:600;line-height:1.45;}
.opt__s{grid-column:2;font-size:14px;color:var(--ink);line-height:1.55;}
.opt__p{grid-column:3;grid-row:1;font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--gold);white-space:nowrap;}
.opt:hover .opt__t{color:var(--gold);}
.opt.is-on::before{background:var(--gold);}
.opt.is-on .opt__t{color:var(--gold);}
.opts--routes .opt__t{font-family:var(--serif);font-weight:400;font-size:21px;}
.opts--routes .opt{padding:20px 0 19px;}
@media (max-width:420px){.opt{grid-template-columns:18px minmax(0,1fr);}.opt__p{grid-column:2;grid-row:auto;margin-top:4px;}}

/* Months */
.months{display:grid;grid-template-columns:repeat(3,1fr);gap:6px 18px;margin-top:28px;border-top:1px solid var(--rule);padding-top:10px;}
@media (min-width:520px){.months{grid-template-columns:repeat(4,1fr);}}
.month{cursor:pointer;background:none;border:0;border-bottom:1px solid transparent;border-radius:0;padding:12px 0 10px;text-align:left;font-family:var(--serif);font-size:17px;color:var(--heading);transition:color .15s,border-color .15s;}
.month:hover{color:var(--gold);}
.month.is-on{color:var(--gold);border-bottom-color:var(--gold);}
.months__skip{display:inline-block;margin-top:22px;}

/* Fields */
.field{display:block;margin-top:22px;}
.field__label{display:block;font-size:11px;letter-spacing:var(--caps);text-transform:uppercase;font-weight:700;color:var(--heading);margin-bottom:8px;}
.field__hint{display:block;font-size:13px;color:var(--muted);margin-top:6px;}
.input{width:100%;font-family:var(--body);font-size:16px;color:var(--ink-2);background:var(--paper);border:0;border-bottom:1px solid var(--heading);border-radius:0;padding:10px 0;min-height:46px;appearance:none;-webkit-appearance:none;}
.input:focus{outline:none;border-bottom:2px solid var(--gold);}
.input--small{max-width:140px;}
.two{display:grid;grid-template-columns:1fr 1fr;gap:28px;}
.two .field{margin-top:22px;}

/* Guests */
.guests{margin-top:30px;}
.stepper{display:flex;align-items:center;justify-content:flex-start;gap:18px;}
.stepper__btn{width:44px;height:44px;flex:0 0 44px;border-radius:50%;cursor:pointer;border:1px solid var(--gold);background:var(--paper);color:var(--gold);font-family:var(--body);font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s;}
.stepper__btn:hover{background:var(--gold);color:#fff;}
.stepper__btn:disabled{opacity:.3;cursor:default;background:var(--paper);color:var(--gold);}
.stepper__input{width:3ch;min-width:96px;text-align:center;font-family:var(--serif);font-size:56px;line-height:1;color:var(--heading);background:transparent;border:0;border-radius:0;padding:0;-moz-appearance:textfield;appearance:textfield;}
.stepper__input::-webkit-outer-spin-button,.stepper__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.stepper__input:focus{outline:none;color:var(--gold);}
.range{width:100%;margin:18px 0 2px;accent-color:var(--gold);height:36px;font-size:16px;cursor:pointer;}
.range-ends{display:flex;justify-content:space-between;font-size:11px;letter-spacing:.08em;color:var(--muted);}
.guests__line{margin-top:10px;font-size:15px;min-height:1.5em;}
.slider-card .stepper__input{font-size:44px;}
.slider-card .guests{margin-top:8px;}
.slider-card .field__label{margin-top:18px;}
.slider-card__second{margin-top:30px;}
.slider-card__p{margin-top:8px;font-size:15px;text-align:center;}

/* Checklists */
.checks{margin-top:28px;border-top:1px solid var(--rule);}
.checkrow{border-bottom:1px solid var(--rule);}
.check{display:flex;align-items:flex-start;gap:14px;margin-top:22px;font-size:15px;cursor:pointer;}
.check input{width:16px;height:16px;margin:4px 0 0;flex:0 0 auto;accent-color:var(--gold);}
.check--row{margin:0;padding:15px 0 14px;}
.check__t{display:flex;flex-direction:column;gap:2px;flex:1;color:var(--heading);font-weight:600;line-height:1.45;}
.check__p{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--gold);}
.check__t .field__hint{margin-top:2px;}
.check__count{padding:0 0 16px 30px;}
.check__count .field{margin-top:4px;}
.check--none{margin-top:0;padding:15px 0 14px;border-bottom:1px solid var(--rule);}
.check--none .check__t{font-weight:500;color:var(--ink);}
.check--consent{font-size:14px;color:var(--ink);}
.check--consent a{color:var(--heading);}

/* The Signature menu, set like the brochure's menu page */
.menu-card{margin-top:48px;padding-top:32px;border-top:1px solid var(--rule);text-align:center;}
.menu-card__t{font-size:20px;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);}
.menu-card__tier{font-size:11px;letter-spacing:var(--caps);text-transform:uppercase;font-weight:700;color:var(--heading);margin-top:8px;}
.menu-card__list{list-style:none;margin:16px 0 0;padding:0;font-size:14px;}
.menu-card__list li{padding:4px 0;}
.menu-card__h{font-family:var(--serif);font-size:14px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-top:24px;}
.menu-card__dishes{list-style:none;margin:8px 0 0;padding:0;font-size:14px;}
.menu-card__dishes li{padding:3px 0;}
.menu-card__note{margin-top:22px;font-size:13px;color:var(--muted);}

/* ---------- buttons: one style, as the site ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;font-family:var(--body);font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;line-height:1.2;padding:13px 30px;min-height:48px;background:var(--gold);color:#fff;border:2px solid var(--gold);border-radius:var(--r);text-decoration:none;cursor:pointer;transition:background .15s,color .15s,border-color .15s;}
.btn:hover{background:var(--heading);border-color:var(--heading);color:#fff;}
.btn--ghost{background:transparent;color:var(--gold);}
.btn--ghost:hover{background:var(--gold);border-color:var(--gold);color:#fff;}
.btn--full{width:100%;}
.btn[disabled]{opacity:.45;pointer-events:none;}
.btn-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px;}
.btn-row .btn{min-width:200px;}
.btn-row--2 .btn{flex:1 1 200px;}
.linkbtn{background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--gold);font-size:14px;color:var(--heading);}
.linkbtn:hover{color:var(--gold);}
.form-error{margin-top:14px;color:#9a3b36;font-size:14px;font-weight:600;}
.card--notice{margin-top:24px;padding:22px 0 4px;border-top:1px solid var(--gold);}
.card--notice .h3{font-size:22px;}
.card--notice p{margin-top:10px;max-width:56ch;}

/* ---------- the results page: a proposal document ---------- */
body.view-result #calculator{padding-bottom:0;}
.result{padding:16px 0 0;}
.result__head{position:relative;text-align:center;padding:24px 0 8px;}
.result__art{height:140px;margin:0 auto;background:url(../images/botanical-top.jpg) center top / 700px auto no-repeat;opacity:.55;-webkit-mask-image:radial-gradient(ellipse 78% 100% at 50% 0%,#000 30%,transparent 100%);mask-image:radial-gradient(ellipse 78% 100% at 50% 0%,#000 30%,transparent 100%);}
/* The crest is in the masthead on screen; it joins the document only in print. */
.result__crest{display:none;height:64px;width:auto;margin:-10px auto 22px;position:relative;}
.result__kicker{font-family:var(--serif);font-size:13px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);}
.result__title{font-size:34px;margin-top:10px;}
.result__head .flourish-wrap{margin-top:14px;}
.result__date{margin-top:14px;font-size:11px;letter-spacing:.2em;text-transform:uppercase;font-weight:700;color:var(--ink);}
.result__body{margin-top:36px;}
.sec{margin:56px 0 24px;text-align:center;}
.sec__t{font-family:var(--serif);font-weight:400;font-size:21px;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);line-height:1.3;}
.sec .flourish-wrap{margin-top:12px;}

.summary{text-align:center;padding:36px 0 0;border-top:1px solid var(--rule);}
.summary__pkg{font-family:var(--serif);font-size:14px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);}
.summary__fig{margin-top:14px;display:flex;flex-direction:column;align-items:center;gap:6px;}
.summary__fig strong{font-family:var(--serif);font-weight:400;font-size:58px;line-height:1;color:var(--heading);letter-spacing:-.01em;}
.summary__fig span{font-size:13px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--ink);}
.summary__answers{margin:22px auto 0;max-width:54ch;font-size:16px;}
.summary__tier{margin:12px auto 0;max-width:54ch;font-size:15px;}
.summary__pending{margin:12px auto 0;max-width:54ch;font-size:15px;color:var(--heading);font-weight:600;}

/* The day in the house: photographs, numbered, as the brochure pages */
.order__list{list-style:none;margin:0;padding:0;counter-reset:order;display:grid;gap:30px 28px;}
@media (min-width:700px){.order__list{grid-template-columns:1fr 1fr;gap:40px 36px;}}
.order__item{display:block;}
.order__photo{margin:0;aspect-ratio:3/2;overflow:hidden;background:var(--gold-soft);}
.order__photo img{width:100%;height:100%;object-fit:cover;}
.order__text{padding-top:16px;}
.order__t{font-size:20px;}
.order__t::before{counter-increment:order;content:counter(order,decimal-leading-zero);display:block;font-family:var(--serif);font-size:12px;letter-spacing:.2em;color:var(--gold);margin-bottom:6px;}
.order__s{font-size:14px;margin-top:6px;line-height:1.6;max-width:44ch;}
.photo{margin:0;background:var(--gold-soft);overflow:hidden;}
.photo img{width:100%;height:100%;object-fit:cover;}
.photo--missing{display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;}
.photo__ph{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--muted);}

/* The bill */
.bill{width:100%;border-collapse:collapse;font-size:15px;}
.bill td{padding:12px 0;border-bottom:1px solid var(--rule-soft);vertical-align:top;}
.bill td:first-child{color:var(--heading);font-weight:600;padding-right:16px;}
.bill__amt{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--heading);font-weight:500;}
.bill__sub{display:block;font-size:13px;color:var(--ink);font-weight:500;margin-top:3px;line-height:1.55;max-width:52ch;}
.bill__alt{color:var(--heading);}
.bill__upgrade td:first-child,.bill__extra td:first-child{padding-left:18px;font-weight:500;color:var(--ink);}
.bill__total td{border-bottom:0;border-top:1px solid var(--gold);font-family:var(--serif);font-size:30px;line-height:1.1;padding-top:16px;color:var(--heading);}
.bill__total td:first-child{font-family:var(--body);font-size:11px;letter-spacing:var(--caps);text-transform:uppercase;font-weight:700;padding-top:24px;}
.free{color:var(--gold);font-weight:700;font-size:11px;letter-spacing:.1em;text-transform:uppercase;}
.rounding{margin-top:16px;font-size:14px;max-width:56ch;}

/* The gold page: what every package includes, in the brochure's own words */
.gold{margin:56px -20px 0;padding:44px 28px 44px;background:var(--gold);color:#fff;text-align:center;}
.gold__t{font-family:var(--serif);font-size:20px;letter-spacing:.12em;text-transform:uppercase;color:#fff;}
.gold .flourish{color:#fff;}
.gold .flourish-wrap{margin:12px 0 22px;}
.gold__list{list-style:none;margin:0 auto;padding:0;max-width:40ch;font-size:16px;line-height:1.7;}
.gold__list li{padding:6px 0;}
.gold__p{margin:22px auto 0;max-width:44ch;font-size:15px;color:rgba(255,255,255,.92);line-height:1.7;}
@media (min-width:700px){.gold{margin-left:0;margin-right:0;padding:52px 56px;}}

/* Other dates, the other package, the couple's words */
.dates__p{font-size:15px;max-width:56ch;margin:0 auto;text-align:center;}
.dates__list{list-style:none;margin:22px 0 0;padding:0;border-top:1px solid var(--rule-soft);}
.dates__item{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:14px 0;border-bottom:1px solid var(--rule-soft);}
.dates__item.is-on .dates__when{color:var(--gold);}
.dates__when{display:block;font-size:15px;color:var(--heading);font-weight:600;line-height:1.45;}
.dates__sub{display:block;font-size:13px;margin-top:2px;}
.dates__n{font-family:var(--serif);font-size:24px;color:var(--heading);white-space:nowrap;font-variant-numeric:tabular-nums;}
.dates .fine{margin-top:12px;text-align:center;}
.other{text-align:center;}
.other .h3{font-size:24px;max-width:30ch;margin:0 auto;}
.other__p{margin-top:14px;}
.other__p strong{font-family:var(--serif);font-size:32px;font-weight:400;line-height:1.1;color:var(--heading);display:block;}
.other__p span{font-size:15px;display:block;margin-top:6px;}
.other__s{margin:12px auto 0;font-size:14px;max-width:52ch;}
.other .btn{margin-top:22px;}
.quote{margin-top:56px;padding:36px 20px 0;border-top:1px solid var(--rule);text-align:center;}
.quote__t{font-family:var(--serif);font-size:21px;line-height:1.5;color:var(--heading);max-width:40ch;margin:0 auto;}
.quote__t::before{content:"\201C";display:block;font-size:52px;line-height:.6;color:var(--gold);margin-bottom:14px;}
.quote__by{margin-top:18px;font-size:11px;letter-spacing:.2em;text-transform:uppercase;font-weight:700;color:var(--gold);}

/* Actions */
.actions{margin-top:48px;padding-top:32px;border-top:1px solid var(--rule);text-align:center;}
.actions .btn--full{max-width:360px;}
.actions__soft{margin-top:14px;font-size:15px;}
.actions__soft a{text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--gold);}
.actions__links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 24px;margin-top:22px;}
.actions__tools{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 24px;margin-top:12px;}
.actions .fine{margin:26px auto 0;max-width:60ch;}
.result__end{margin-top:44px;height:170px;background:url(../images/botanical-bottom.jpg) center bottom / 760px auto no-repeat;opacity:.5;-webkit-mask-image:radial-gradient(ellipse 78% 100% at 50% 100%,#000 30%,transparent 100%);mask-image:radial-gradient(ellipse 78% 100% at 50% 100%,#000 30%,transparent 100%);}

/* ---------- toast, badge, sticky, footer ---------- */
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,12px);z-index:80;background:var(--heading);color:#fff;padding:12px 18px;border-radius:var(--r);font-size:14px;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;max-width:calc(100vw - 32px);text-align:center;}
.toast.is-on{opacity:1;transform:translate(-50%,0);}
.preview-badge{position:fixed;left:0;right:0;bottom:0;z-index:90;background:var(--heading);color:#fff;text-align:center;font-size:11px;letter-spacing:.18em;text-transform:uppercase;padding:5px 8px;line-height:1.4;}
body.has-preview{padding-bottom:26px;}
body.has-preview .toast{bottom:44px;}
.sticky{position:fixed;left:0;right:0;bottom:0;z-index:70;background:var(--paper);border-top:1px solid var(--rule);transform:translateY(110%);transition:transform .3s ease;padding:10px 16px calc(10px + env(safe-area-inset-bottom));}
.sticky.is-on{transform:none;}
.sticky__in{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:var(--wrap);margin:0 auto;}
.sticky__t{display:block;font-family:var(--serif);font-weight:400;font-size:24px;line-height:1;color:var(--heading);}
.sticky__s{display:block;font-size:12px;margin-top:3px;max-width:34ch;}
.sticky__btn{min-height:42px;padding:11px 16px;font-size:11px;white-space:nowrap;}
@media (min-width:700px){.sticky{display:none;}}
body.has-sticky{padding-bottom:74px;}
body.has-sticky .toast{bottom:90px;}

/* The colophon */
.site-footer{padding:0 0 48px;margin-top:40px;}
.site-footer__in{max-width:var(--wrap);margin:0 auto;padding:36px 20px 0;text-align:center;}
.site-footer__crest{height:56px;width:auto;margin:0 auto 18px;}
.site-footer__line{font-size:11px;letter-spacing:.2em;text-transform:uppercase;font-weight:700;color:var(--heading);line-height:1.8;}
.site-footer__line a{color:var(--heading);text-decoration:none;}
.site-footer__line a:hover{color:var(--gold);}
.site-footer__dot{color:var(--gold);margin:0 8px;}
.site-footer .fine{max-width:52ch;margin:20px auto 0;}
.site-footer__links{margin-top:18px;font-size:13px;}
.site-footer__links a{color:var(--heading);text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--gold);}
.site-credit{margin:22px auto 0;font-size:12px;letter-spacing:.04em;color:var(--muted);}
.site-footer .site-credit a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--rule);}
@media (max-width:420px){.site-footer__line{letter-spacing:.14em;}}

/* ---------- the short pause before the estimate ---------- */
.loader{max-width:520px;margin:0 auto;padding:72px 20px 56px;text-align:center;}
.loader__title{font-size:26px;max-width:22ch;margin:0 auto;}
.loader__track{height:1px;background:var(--rule);margin:26px auto 0;max-width:260px;overflow:hidden;}
.loader__fill{height:100%;background:var(--gold);width:0;transition:width 1.3s ease-in-out;}
.loader__steps{list-style:none;margin:18px 0 0;padding:0;font-size:13px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--muted);}
.loader__steps li{display:none;}
.loader__steps li.is-on{display:block;}

/* ---------- wider screens and narrow phones ---------- */
@media (min-width:700px){
  body{font-size:17px;}
  .step__title{font-size:32px;}
  .result__title{font-size:40px;}
  .summary__fig strong{font-size:68px;}
}
@media (max-width:520px){
  .wrap,.progress__meta,.runbar{padding-left:16px;padding-right:16px;}
  .step__photo,.result__art,.result__end{margin-left:-16px;margin-right:-16px;}
  .gold{margin-left:-16px;margin-right:-16px;padding-left:20px;padding-right:20px;}
  .intro h1{font-size:28px;}
  .intro__panel{margin-top:-36px;padding:40px 20px 0;}
  .step__title{font-size:25px;}
  .result__title{font-size:26px;}
  .summary__fig strong{font-size:46px;}
  .two{grid-template-columns:1fr;gap:0;}
  .btn-row .btn{width:100%;}
}
@media (max-width:420px){
  .intro h1{font-size:min(28px,7.4vw);}
  .step__title{font-size:min(25px,6.6vw);}
  .result__title{font-size:min(26px,6.4vw);}
  .loader__title{font-size:min(26px,6.8vw);}
  .order__t{font-size:min(20px,5.2vw);}
  .sec__t{font-size:min(19px,5vw);}
}
@media (max-width:360px){
  .brand img{height:54px;}
  .bill__total td{font-size:26px;}
  .stepper__input{font-size:48px;min-width:84px;}
}
@media (max-width:300px){
  .wrap,.progress__meta,.runbar{padding-left:12px;padding-right:12px;}
  .step__photo,.result__art,.result__end{margin-left:-12px;margin-right:-12px;}
  .btn{padding:13px 12px;font-size:11px;letter-spacing:.1em;}
  .months{grid-template-columns:repeat(2,1fr);}
  .dates__n{font-size:22px;}
}

/* ---------- line breaking ---------- */
h1,h2,h3,.btn,.opt__t{text-wrap:balance;}
p,li,.opt__s,.field__label,.check span,.fine,td{text-wrap:pretty;}

/* ---------- motion ---------- */
/* One fade when a question changes. */
@keyframes sw-fade{from{opacity:0;}to{opacity:1;}}
.step,.result{animation:sw-fade .3s ease both;}

/* The flourish draws itself: the diamond first, then the dots, then the lines run outward. */
@keyframes sw-draw{to{stroke-dashoffset:0;}}
@keyframes sw-dot{to{opacity:1;}}
.fl-d{stroke-dasharray:26;stroke-dashoffset:26;}
.fl-l{stroke-dasharray:60;stroke-dashoffset:60;}
.fl-c{opacity:0;}
.draw .fl-d{animation:sw-draw .45s ease-out forwards;}
.draw .fl-c{animation:sw-dot .35s ease .3s forwards;}
.draw .fl-l{animation:sw-draw .9s cubic-bezier(.25,.6,.2,1) .35s forwards;}

/* The results page settles into place as it is read: each part once, when it comes into view. */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .9s cubic-bezier(.25,.6,.2,1),transform .9s cubic-bezier(.25,.6,.2,1);}
.reveal.is-in{opacity:1;transform:none;}
.result__head > .reveal{transform:translateY(10px);}
.result__art.reveal{transform:none;transition-duration:1.4s;}
.workings.reveal{transform:none;}
.workings .bill tr{opacity:0;transform:translateY(8px);transition:opacity .6s ease,transform .6s cubic-bezier(.25,.6,.2,1);}
.workings.is-in .bill tr{opacity:1;transform:none;}
.workings .bill__total td{transition-delay:inherit;}
/* Photographs wipe upward and settle, like a print lifted off the page; the caption follows.
   The clip sits on the image, not on the observed figure, so the observer still sees the figure. */
.reveal-photo{background:transparent;}
.reveal-photo img{clip-path:inset(100% 0 0 0);transform:scale(1.08);transition:clip-path 1.1s cubic-bezier(.25,.6,.2,1) var(--d,0ms),transform 1.6s cubic-bezier(.25,.6,.2,1) var(--d,0ms);}
.reveal-photo.is-in img{clip-path:inset(0 0 0 0);transform:none;}
.order__photo:hover img{transform:scale(1.035);transition-duration:1.1s,2.8s;}
.order__text.reveal{transition-delay:calc(var(--d,0ms) + 220ms);}
/* The gold page turns in from the left, then its words appear. The gold is painted by a layer
   behind the words so the panel itself stays in view for the observer. */
.reveal-wipe{position:relative;background:transparent;}
.reveal-wipe::before{content:"";position:absolute;inset:0;background:var(--gold);clip-path:inset(0 100% 0 0);transition:clip-path 1s cubic-bezier(.25,.6,.2,1);}
.reveal-wipe > *{position:relative;opacity:0;transition:opacity .7s ease .55s;}
.reveal-wipe.is-in::before{clip-path:inset(0 0 0 0);}
.reveal-wipe.is-in > *{opacity:1;}
.quote.reveal{transition-duration:1.1s;}
.result__end.reveal{transform:none;transition-duration:1.4s;}

@media (prefers-reduced-motion:reduce){
  .step,.result{animation:none;}
  .progress__bar,.sticky,.toast{transition:none;}
  .loader__fill{transition:none;width:100% !important;}
  .fl-d,.fl-l{stroke-dashoffset:0;animation:none;}
  .fl-c{opacity:1;animation:none;}
  .reveal,.reveal-photo,.reveal-wipe,.reveal-wipe > *,.reveal-wipe::before,.workings .bill tr,.reveal-photo img{opacity:1;transform:none;clip-path:none;transition:none;}
}

/* ---------- print: the couple's PDF, the proposal document ---------- */
@page{size:A4;margin:16mm 16mm 18mm;}
@media print{
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact;}
  /* Everything is on the page whatever the scroll position was. */
  .reveal,.reveal-photo,.reveal-wipe,.reveal-wipe > *,.reveal-wipe::before,.workings .bill tr,.reveal-photo img{opacity:1 !important;transform:none !important;clip-path:none !important;transition:none !important;}
  .reveal-wipe{background:#c0a75c !important;}
  .fl-d,.fl-l{stroke-dashoffset:0 !important;animation:none !important;}
  .fl-c{opacity:1 !important;animation:none !important;}
  .site-header,.progress,.runbar,.sticky,.toast,.actions,.slider-card,.other .btn,.site-credit,.preview-badge,.panel,.site-footer__links{display:none !important;}
  body{font-size:11pt;color:#333;background:#fff;}
  .result{padding-top:0;animation:none;}
  .result__crest{display:block;height:52px;}
  .sec{margin:16px 0 8px;}
  .sec__t{font-size:14pt;}
  /* Page order for the document: the estimate and its workings on the first page, the day in
     the house on its own page, then what is included, other dates and the couple's words. */
  .result__pre{display:flex;flex-direction:column;}
  .summary{order:0;}
  .workings{order:1;break-inside:avoid;}
  .order{order:2;break-before:page;}
  .sec{break-after:avoid;}
  .order__item,.gold,.quote,.dates,.summary,.other,.bill tr{break-inside:avoid;}
  .workings .sec{margin-top:22px;}
  .result__head{padding:0;}
  .result__body{margin-top:14px;}
  .bill td{padding:6px 0;}
  .bill__sub{font-size:9pt;}
  .rounding{margin-top:10px;font-size:9.5pt;}
  .bill__total td{padding-top:10px;font-size:18pt;}
  .bill__total td:first-child{padding-top:16px;}
  .result__art{height:84px;background-size:440px auto;}
  .result__title{font-size:22pt;margin-top:6px;}
  .summary{padding-top:12px;}
  .summary__fig strong{font-size:32pt;}
  .summary__answers,.summary__tier{font-size:10.5pt;margin-top:10px;}
  .order__list{grid-template-columns:1fr 1fr;gap:14px 20px;}
  .order__photo{aspect-ratio:16/10;}
  .order__text{padding-top:10px;}
  .order__s{margin-top:3px;}
  .gold{margin:24px 0 0;padding:24px 30px;background:#c0a75c !important;color:#fff !important;}
  .gold__list{font-size:10.5pt;line-height:1.5;}
  .gold__list li{padding:3px 0;}
  .gold__p{font-size:10pt;margin-top:14px;}
  .dates__item{padding:9px 0;}
  .quote{margin-top:28px;padding-top:22px;}
  .quote__t{font-size:13pt;}
  .result__end{margin-top:22px;height:90px;background-size:480px auto;}
  .order__t{font-size:13pt;}
  .order__s{font-size:9.5pt;}
  .bill{font-size:10.5pt;}
  .bill__total td{font-size:20pt;}
  .site-footer{margin-top:20px;padding-bottom:0;}
  .site-footer__in{padding-top:20px;}
  .site-footer__crest{height:40px;}
  .site-footer .fine{font-size:9pt;}
  a{color:#333;text-decoration:none;}
}

/* Embedded in the venue's own page by embed.js. The frame grows with the content and the venue's
   page scrolls, so nothing may be sized to the screen, stick or float: 100vh in a frame sized to its
   content would grow without end. The venue's page has its own header and footer. Screen only, so
   Save as PDF prints exactly as on the tool's own page. */
@media screen{
  html.is-embedded .site-header,html.is-embedded .site-footer,html.is-embedded .sticky{display:none;}
  html.is-embedded #calculator{min-height:0;}
  html.is-embedded body.has-sticky{padding-bottom:0;}
  /* Parked at the top until shown (toast() moves it beside the button pressed): left in the flow it hangs below the page and the frame gets a scrollbar. */
  html.is-embedded body .toast{position:absolute;top:24px;bottom:auto;}
}
@media screen and (min-width:1000px){
  html.is-embedded .step--photo .step__photo{position:relative;top:auto;height:640px;min-height:0;}
}
