/*
  Questions (/questions): the island in the mist across the first screen, the title in its pale sky, the
  photograph feathering away into the page's light; then the questions (faq.css) in a calm reading column; then a
  way to ask your own; then the beach, bare, into the footer (examples-about.css).
*/
/* the page's light: out of the mist of the opening photograph (its pale blue-grey), then subtle hues flowing one into
   the next down the long column of questions: a warm paper, a breath of rose, sage, clear sky, lilac, a pale gold, and
   warming at the end toward the evening sky of the footer. Over it, soft pools of colour on their own layer, which
   drift a little slower than the page as you scroll (questions.js), so the hues seem to move past one another */
.qs-page .iv {
  position: relative; isolation: isolate; overflow: clip;   /* the drifting layer never shows past the page's end */
  background: linear-gradient(180deg, #c6d0d8 0%, #d3dade 7%, #e2e4e2 14%, #ece6e3 21%, #efe9df 28%, #e7ebe5 35%, #e2e8ec 42%,
    #e6e3ed 49%, #ece4e6 56%, #ebe8de 63%, #e3e9e7 70%, #e3e4ec 77%, #e9e2e5 84%, #ebe1d6 92%, #e2dcd6 100%);
}
.qs-page .iv::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  transform: translate3d(0, calc(var(--qs-drift, 0) * 1px), 0);
  background:
    radial-gradient(62% 9% at 14% 24%, rgb(236 210 212 / .42), rgb(236 210 212 / 0) 100%),
    radial-gradient(58% 10% at 86% 31%, rgb(204 224 212 / .45), rgb(204 224 212 / 0) 100%),
    radial-gradient(70% 10% at 22% 40%, rgb(196 214 232 / .45), rgb(196 214 232 / 0) 100%),
    radial-gradient(60% 9% at 82% 48%, rgb(218 206 236 / .48), rgb(218 206 236 / 0) 100%),
    radial-gradient(66% 9% at 18% 57%, rgb(240 214 220 / .4), rgb(240 214 220 / 0) 100%),
    radial-gradient(60% 10% at 84% 65%, rgb(240 226 194 / .42), rgb(240 226 194 / 0) 100%),
    radial-gradient(70% 10% at 24% 73%, rgb(196 224 226 / .42), rgb(196 224 226 / 0) 100%),
    radial-gradient(60% 9% at 80% 81%, rgb(224 206 226 / .4), rgb(224 206 226 / 0) 100%),
    radial-gradient(64% 10% at 30% 90%, rgb(238 214 186 / .36), rgb(238 214 186 / 0) 100%);
}

/* ---- the opening: the island in the mist, the title in dark ink up in the pale sky above it ---- */
.qs-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 84vh;
  min-height: 84svh;   /* the questions begin just below the island's reflection */
  padding-top: clamp(6.5rem, 16vh, 9.5rem);
  margin-bottom: 0;
  color: var(--ink);
}
.qs-hero__photo {
  position: absolute;
  inset: 0 0 -22vh;
  pointer-events: none;   /* its faded water reaches down over the first questions: clicks pass through to them */
  background-position: 50% 42%;   /* the island a little below the middle, the mist above it for the words */
  /* the dark water feathers away slowly into the page's light, rather than ending at an edge */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, rgb(0 0 0 / .88) 58%, rgb(0 0 0 / .66) 66%, rgb(0 0 0 / .42) 74%, rgb(0 0 0 / .22) 82%, rgb(0 0 0 / .08) 90%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, rgb(0 0 0 / .88) 58%, rgb(0 0 0 / .66) 66%, rgb(0 0 0 / .42) 74%, rgb(0 0 0 / .22) 82%, rgb(0 0 0 / .08) 90%, transparent 100%);
}
.qs-hero__on {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--gutter), 46rem);
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 0 18px rgb(236 240 244 / .7), 0 0 40px rgb(236 240 244 / .5);   /* a breath of the mist's own light behind the words */
}
.qs-hero__on .ab-crumb { justify-content: center; color: var(--ink); }
.qs-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: min(clamp(3.4rem, 2rem + 5.4vw, 7rem), 14vh);
  line-height: 1;
  letter-spacing: -.01em;
  color: #1c2430;
}
.qs-title__sub {
  display: block;
  margin-top: .45rem;
  font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: 0;
  opacity: .85;
}
.qs-lede {
  max-width: 54ch;   /* a long, easy line: three lines on a computer, not five */
  margin: clamp(1.2rem, 3vh, 1.8rem) auto 0 !important;   /* centred under the title (the page's paragraphs otherwise sit at the left) */
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem);
  line-height: 1.45;
  text-wrap: balance;
  color: #243040;
}
/* the aside on the party: a beat after the line has come, out of a blur, with the quiet vertical rule the About page's notes have */
.qs-lede-wrap { position: relative; max-width: 54ch; margin: clamp(1.2rem, 3vh, 1.8rem) auto 0; }
.qs-lede-wrap .qs-lede { margin-top: 0 !important; }
.qs-note { width: max-content; max-width: min(19rem, 100%); margin: 1rem auto 0 !important; padding: .1em 0 .1em 1rem; border-left: 1px solid rgb(31 36 42 / .3);
  font-family: var(--font-display); font-style: italic; font-size: var(--text-side, 1rem); line-height: var(--text-side-lh, 1.5); text-align: left; text-wrap: pretty; color: #243040; opacity: .85; }
@media (min-width: 1180px) {
  .qs-lede-wrap { max-width: 42ch; }   /* the line set in three, so the note sits close beside it */
  .qs-note { position: absolute; left: calc(100% + clamp(.2rem, 1vw, 1rem)); top: 50%; translate: 0 -50%; max-width: 15rem; margin: 0 !important; }
}
/* the asterisk that ties "party" to its note: small and raised by the word; and again, hanging, at the note's start */
.qs-fn { position: relative; top: -.08em; margin: 0 0 0 -.04em; font-size: .85em; line-height: 0; vertical-align: baseline; opacity: .9; }   /* the asterisk glyph sits at the top of the capitals: brought down to the top of "party" */
/* folded to its first two lines until "more" is chosen */
.qs-note__body { display: block; }
/* the note is short enough to show whole; the fold below stays ready for a longer one (it needs the "more" button back in questions.php) */
.js .qs-note.is-folding:not(.is-open) .qs-note__body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.qs-note__more { display: none; }
.js .qs-note__more { display: inline-flex; align-items: center; gap: .4em; margin-top: .3rem; padding: .15rem 0; border: 0; background: none;
  font-family: var(--font-body); font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: inherit; cursor: pointer; opacity: .8; transition: opacity 400ms var(--ease-soft); }
.qs-note__more:hover, .qs-note__more:focus-visible { opacity: 1; }
.qs-note__more svg { width: .8em; height: auto; transition: transform 500ms var(--ease-soft); }
.qs-note.is-open .qs-note__more svg { transform: rotate(180deg); }
.qs-note.is-open .qs-note__body { animation: qs-note-unfold 700ms var(--ease-soft); }
@keyframes qs-note-unfold { from { opacity: .4; filter: blur(3px); } }
.qs-fn--note { margin: 0 .2em 0 0; vertical-align: .35em; font-style: normal; }
.js .qs-note { animation: qs-note-in 1800ms var(--ease-soft) 2600ms backwards; }
@keyframes qs-note-in { from { opacity: 0; filter: blur(10px); border-left-color: rgb(31 36 42 / 0); } }
@media (prefers-reduced-motion: reduce) { .js .qs-note { animation: none; } }

/* ---- the questions: a reading column a little wider than the forms' ---- */
.qs-list { width: min(100% - 2 * var(--gutter), 42rem); padding-bottom: clamp(5rem, 14vh, 9rem); }
.qs-list .wk-faq__q button { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); }

/* ---- a question that isn't here ---- */
.qs-more { padding: 0 0 calc(40vh + clamp(3rem, 8vh, 5rem)); text-align: center; }   /* room for the footer's long dissolve */
.qs-more__h { margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: 1.12; text-wrap: balance; }
.qs-more__say { margin: 0 0 clamp(1.8rem, 5vh, 2.6rem) !important; font-style: italic; opacity: .85; }
.qs-more__form { text-align: left; }
.qs-more__form .iv-form__go { text-align: center; }
.qs-more__or { margin: clamp(2rem, 5vh, 3rem) 0 0 !important; font-style: italic; }
.qs-more__or a { display: inline-flex; align-items: center; gap: .5em; margin-left: .3em; font-style: normal; color: inherit; text-decoration: none; }
.qs-more__or a span { text-decoration: underline 1px; text-underline-offset: .28em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color 500ms var(--ease-soft); }
.qs-more__or a:hover span, .qs-more__or a:focus-visible span { text-decoration-color: currentColor; }
.qs-more__or .ab-arrow { width: 1.4em; height: auto; transition: translate 400ms var(--ease-soft); }
.qs-more__or a:hover .ab-arrow { translate: 4px 0; }

@media (max-width: 700px) {
  .qs-hero { padding-top: clamp(5.5rem, 14vh, 8rem); }
  .qs-hero__photo { background-position: 47% 45%; }   /* the island and its tree in the middle */
}

/* the footer's closing line, set as on Talk: one sentence a line (on a phone, the first takes two) */
.qs-page .site-footer__closing .tk-cl { display: block; white-space: nowrap; }
@media (max-width: 700px) { .qs-page .site-footer__closing .tk-br { display: block; } }

/* the footer: an evening sky, the sun low in the cloud with a sun dog beside it, over a dark ridge. The page dissolves
   slowly into it over 40vh; the closing words rest in the cloud, the signature in the glow along the ridge, and the
   dark land beneath holds the links (with a little slate rising from the bottom, so the small print stays easy to read) */
.qs-page .site-footer {
  margin-top: -40vh;
  padding-top: calc(40vh + clamp(8rem, 26vh, 15rem));
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgb(0 0 0 / .03) 4vh, rgb(0 0 0 / .1) 8vh, rgb(0 0 0 / .22) 12vh, rgb(0 0 0 / .35) 16vh, rgb(0 0 0 / .5) 20vh, rgb(0 0 0 / .65) 24vh, rgb(0 0 0 / .78) 28vh, rgb(0 0 0 / .9) 32vh, rgb(0 0 0 / .97) 36vh, #000 40vh);
  mask-image: linear-gradient(180deg, transparent 0, rgb(0 0 0 / .03) 4vh, rgb(0 0 0 / .1) 8vh, rgb(0 0 0 / .22) 12vh, rgb(0 0 0 / .35) 16vh, rgb(0 0 0 / .5) 20vh, rgb(0 0 0 / .65) 24vh, rgb(0 0 0 / .78) 28vh, rgb(0 0 0 / .9) 32vh, rgb(0 0 0 / .97) 36vh, #000 40vh);
  background:
    linear-gradient(180deg, transparent 0%, transparent 72%, rgb(22 28 36 / .35) 86%, rgb(20 26 34 / .7) 100%),
    url('../img/scenes/sundog-ridge.jpg') 32% 58% / cover no-repeat;
}
.qs-page .site-footer::before { display: none; }   /* no sand over the photograph: the dissolve carries the page's own light into it */
.qs-page .site-footer__closing { max-width: none; text-shadow: 0 1px 3px rgb(16 22 30 / .55), 0 2px 26px rgb(16 22 30 / .55), 0 0 60px rgb(16 22 30 / .3); }
/* the line under the signature sits in the bright glow along the ridge: a soft dusk shade behind its letters */
.qs-page .site-footer__role { filter: drop-shadow(0 1px 2px rgb(16 22 30 / .6)) drop-shadow(0 0 14px rgb(16 22 30 / .5)); }
@media (max-width: 700px) {
  /* a phone: the sun just left of centre, and the photo raised a little (the footer is taller than wide, so the
     photo fills its height; drawn a touch taller and lifted, the ridge rises), so the line under the signature rests on
     the dark ridge with the glow just above it, and the sun sits clear below the closing words. Behind those words, an
     even dusk across the whole sky (measured up from the bottom, where the words are), rather than a shade round them */
  .qs-page .site-footer {
    background:
      linear-gradient(180deg, transparent 0%, transparent 72%, rgb(22 28 36 / .35) 86%, rgb(20 26 34 / .7) 100%),
      linear-gradient(180deg, rgb(20 26 34 / 0) calc(100% - 900px), rgb(20 26 34 / .28) calc(100% - 720px), rgb(20 26 34 / .28) calc(100% - 560px), rgb(20 26 34 / 0) calc(100% - 470px)),
      url('../img/scenes/sundog-ridge.jpg') 26% -170px / auto calc(100% + 170px) no-repeat;
  }
}
