/*
  Shared by the design review pages for Talk, Walk and Gather (examples-talk.php, examples-walk.php,
  examples-gather.php). Builds on read.css, menu-welcome.css and examples-about.css (the photographs, the
  breadcrumb, the beach close, the picker). Each page's own designs live in its own stylesheet
  (examples-talk.css and so on). Only the picked design shows (html[data-iv="n"] shows .ivd--n).
  Quiet, as on the About page: words sit straight on their light, no boxes, photographs are soft-edged rectangles.
*/

html:not([data-iv="1"]) .ivd--1, html:not([data-iv="2"]) .ivd--2, html:not([data-iv="3"]) .ivd--3,
html:not([data-iv="4"]) .ivd--4, html:not([data-iv="5"]) .ivd--5, html:not([data-iv="6"]) .ivd--6,
html:not([data-iv="7"]) .ivd--7, html:not([data-iv="8"]) .ivd--8, html:not([data-iv="9"]) .ivd--9,
html:not([data-iv="10"]) .ivd--10 { display: none !important; }

/* ---- the page ---- */
body.iv-page { background: var(--sky-0-top); }   /* the same deep blue as the homepage and the writings, which iPhone Safari takes for the band behind the clock and the island */
.iv {
  --drop: 96 118 158;
  position: relative; z-index: 1; display: block; color: var(--ink); overflow-x: clip;
  background: linear-gradient(180deg, #f4efe6 0%, #f1ebe0 50%, #ece3d4 100%);
}
.iv a { color: inherit; }
.iv p { margin: 0 0 1.15em; }
.ivd { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.14rem, 1.04rem + .4vw, 1.36rem); line-height: 1.66; }
.iv-wrap { width: min(100% - 2 * var(--gutter), 35rem); margin: 0 auto; }
.iv-wide { width: min(100% - 2 * var(--gutter), 68rem); margin: 0 auto; }
.iv-lede { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.2rem); line-height: 1.14; letter-spacing: -.01em; text-wrap: balance; }
.iv-label { margin: 0 0 1.3rem !important; font-family: var(--font-body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, currentColor 70%, transparent); }
.iv-quiet { font-size: .92em; color: color-mix(in srgb, currentColor 78%, transparent); }
.iv-link { display: inline-flex; align-items: center; text-decoration: underline 1px; text-underline-offset: .32em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color 500ms var(--ease-soft); }
.iv-link:hover, .iv-link:focus-visible { text-decoration-color: currentColor; }
.iv .ab-crumb { margin-bottom: clamp(1.2rem, 3vh, 2rem); }

/* the page opens below the JW and the picker */
.iv-arrive { padding-top: clamp(9rem, 24vh, 14rem); }

/* ---- the form: lines to write on, no boxes ---- */
.iv-form { --line: color-mix(in srgb, currentColor 30%, transparent); font-family: var(--font-display); }
.iv-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.iv-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.2rem, 3vw, 2.4rem); }
@media (max-width: 560px) { .iv-form__row { grid-template-columns: 1fr; } }
.iv-field { display: grid; gap: .2rem; margin: 0 0 1.5rem !important; }
.iv-field label, .iv-how legend { font-family: var(--font-body); font-size: 1rem; letter-spacing: .16em;   /* the size of the breadcrumb (journey.css) */ text-transform: uppercase; opacity: .72; }
.iv-field--ask label { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); letter-spacing: 0; text-transform: none; opacity: 1; line-height: 1.25; }
.iv-field__hint { font-size: .9em; opacity: .66; }
.iv-field input, .iv-field textarea {
  width: 100%; padding: .55rem 0 .45rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: inherit; font-family: var(--font-body); font-size: 1rem; line-height: 1.5;   /* what you write is set in the plain face of the labels, apart from the serif of the questions */
  transition: border-color 500ms var(--ease-soft);
}
.iv-field textarea { resize: vertical; min-height: 6.5rem; }
/* when the note runs longer than its box: a thin, translucent scrollbar that takes the colour of the ink, no track */
.iv-field textarea { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, currentColor 26%, transparent) transparent; }
.iv-field textarea:hover, .iv-field textarea:focus { scrollbar-color: color-mix(in srgb, currentColor 42%, transparent) transparent; }
@supports not (scrollbar-color: auto) {   /* Safari */
  .iv-field textarea::-webkit-scrollbar { width: 6px; }
  .iv-field textarea::-webkit-scrollbar-track { background: transparent; }
  .iv-field textarea::-webkit-scrollbar-thumb { border-radius: 3px; background: rgb(40 34 26 / .24); }
  .iv-field textarea:hover::-webkit-scrollbar-thumb { background: rgb(40 34 26 / .4); }
  .iv-field textarea::-webkit-resizer { background: transparent; }
}
.iv-field input:focus, .iv-field textarea:focus { outline: none; border-bottom-color: currentColor; }
.iv-how { margin: 0 0 1.6rem; padding: 0; border: 0; }
.iv-how legend { padding: 0; margin-bottom: .7rem; }
.iv-how label { display: inline-flex; align-items: center; gap: .45rem; margin: 0 1.4rem .4rem 0; cursor: pointer; }
.iv-how label > span { font-family: var(--font-body); font-size: 1rem; }   /* the face of what you type */
/* the choices: an open ring in the colour of the ink; the chosen one filled */
.iv-how input { appearance: none; -webkit-appearance: none; flex: none; box-sizing: border-box; padding: 2px; width: 16px; height: 16px; margin: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; opacity: .7; cursor: pointer; transition: background-color 400ms var(--ease-soft), box-shadow 400ms var(--ease-soft), opacity 400ms var(--ease-soft); }
.iv-how input:checked { background: currentColor; background-clip: content-box; opacity: 1; }   /* the chosen one: a disc inside the ring, a thin clear gap between them */
.iv-how input:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
/* staying in touch: two small open circles in the ink's colour, as the form's other choices are; the chosen one
   fills with a disc, a thin clear ring between */
.iv-keep { display: grid; gap: .7rem; margin: -.2rem 0 1.5rem !important; padding: 0; border: 0; min-width: 0; }
.iv-keep label { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; font-family: var(--font-body); font-size: .875rem; line-height: 1.5; text-align: left; opacity: .78; transition: opacity 400ms var(--ease-soft); }
.iv-keep label:hover, .iv-keep label:has(input:checked) { opacity: 1; }
.iv-keep input { appearance: none; -webkit-appearance: none; flex: none; box-sizing: border-box; width: 16px; height: 16px; margin: .17em 0 0; padding: 2px; border: 1px solid currentColor; border-radius: 50%; background: transparent; background-clip: content-box; opacity: .75; cursor: pointer; transition: background-color 450ms var(--ease-soft), opacity 400ms var(--ease-soft); }
.iv-keep input:checked { background-color: currentColor; opacity: 1; }
.iv-keep input:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.iv-form__go { margin: .4rem 0 0 !important; }
.iv-send { display: inline-flex; align-items: center; padding: .55rem 0; border: 0; background: none; color: inherit; font: inherit; font-size: 1.2em; cursor: pointer; text-decoration: underline 1px; text-underline-offset: .32em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color 500ms var(--ease-soft); }
.iv-send:hover, .iv-send:focus-visible { text-decoration-color: currentColor; }
.iv-send:hover .ab-arrow { translate: 4px 0; }
.iv-form__thanks { margin: 1rem 0 0 !important; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); line-height: 1.3; }
.iv-form.is-sent > :not(.iv-form__thanks) { display: none; }
.js .iv-form.is-sent .iv-form__thanks { animation: iv-soft-in 1200ms var(--ease-soft) both; }
@keyframes iv-soft-in { from { opacity: 0; filter: blur(12px); } }

/* words over a dark photograph or band take light ink */
.iv-on-dark { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  .js .iv-form.is-sent .iv-form__thanks { animation: none; }
}

/* the JW stands out over busy photographs: in light ink, a fuller soft shade gathers round it; in dark ink over the pale
   pages, a faint pale glow; it is fully opaque either way */
.iv-page .signature { opacity: .95; filter: drop-shadow(0 0 2px rgb(16 21 27 / .7)) drop-shadow(0 0 10px rgb(16 21 27 / .55)) drop-shadow(0 0 26px rgb(16 21 27 / .4)); }
:root[data-chrome-ink="dark"] .iv-page .signature, :root[data-chrome-ink="dark"].iv-page .signature { filter: drop-shadow(0 0 6px rgb(250 246 238 / .7)) drop-shadow(0 0 18px rgb(250 246 238 / .45)); }
.is-menu-open .iv-page .signature, .iv-page.is-menu-open .signature { filter: none; }
/* a group of parts that fold (one open at a time): the script keeps the pressed question still itself, so the browser's own
   scroll anchoring stays out of it and the two never fight */
[data-iv-one] { overflow-anchor: none; }
/* a page offering one design on a phone (the Walk page, where only design 4 fits): no picker */
html.is-pick-one .wx-pick { display: none; }
