/*
 * Ask Gigi — the moments.
 *
 * A screen fills the whole of the glass and the page never moves. Where a
 * screen holds more than a phone can show, its own middle scrolls while the
 * question stays put and the way onward stays put.
 *
 * Three colours. Black, white, and Paige's pale pink. Every rule is one of
 * them at full strength, the way the rule on a perfume box is drawn.
 *
 * Sized from 379px first.
 */

:root {
	--askgigi-black: #000;
	--askgigi-white: #fff;
	--askgigi-pink: #f7d9e8;

	/* Georgia, Paige's own choice from the Webflow build. It sits on every
	   device already, so nothing is downloaded and nothing can fail to load. */
	--askgigi-serif: Georgia, "Times New Roman", Times, serif;
	--askgigi-rise: 1400ms;
	--askgigi-fade: 1100ms;
	--askgigi-out: 700ms;
	--askgigi-ease: cubic-bezier( 0.22, 0.61, 0.36, 1 );
	--askgigi-float: cubic-bezier( 0.16, 0.72, 0.24, 1 );
	--askgigi-ease-out: cubic-bezier( 0.4, 0, 0.7, 0.2 );
}

html.askgigi-holding,
html.askgigi-holding body {
	height: 100%;
	overflow: hidden;
	overscroll-behavior: none;
}

/*
 * The ground the box stands on. Always black, on every screen and at every
 * size, so the panel reads as an object placed on a surface rather than as
 * a page stretched to whatever window it was opened in.
 *
 * On a phone the panel fills the glass and no ground is seen at all.
 */
html.askgigi-holding body {
	margin: 0;
	background: var( --askgigi-black );
}

/*
 * The stage is the room a screen is given, and it is measured rather than the
 * window. In the app that comes to the same thing; in a preview it means a
 * screen drawn into a tablet-sized frame is styled as a tablet, which a media
 * query can never do.
 */
/*
 * The stage takes the whole of the glass and sits above everything a theme
 * puts on the page. Without a stacking order a footer will lie across the
 * journey, which is exactly what it did.
 */
.askgigi-stage {
	position: fixed;
	inset: 0;
	z-index: 2147480000;
	overflow: hidden;
	background: var( --askgigi-black );
	container-type: size;
	container-name: askgigi;
}

/*
 * And the page beneath is held still and put out of reach, so nothing of a
 * theme can be scrolled to, tabbed into, or read by a screen reader while a
 * moment is on the glass.
 */
html.askgigi-holding body > *:not( .askgigi-stage ) {
	display: none;
}

/* ---------------------------------------------------------------- a screen */

.askgigi-screen {
	--askgigi-ink: var( --askgigi-black );
	--askgigi-ground: var( --askgigi-white );
	/*
	 * The panel keeps the proportion of a phone held in the hand, whatever
	 * it is opened in. A tall narrow window leaves ground above and below
	 * rather than stretching one screen down a corridor.
	 */
	/*
	 * On a phone the screen is the screen. It fills the glass edge to edge
	 * and wears a fine rule held in from it — the box drawn on the thing
	 * itself, never a panel floating on a ground.
	 *
	 * A shape locked to one phone's proportion letterboxes every other, which
	 * is what turned the whole of it into a white strip on black.
	 */
	/*
	 * The box, and the air inside it, are one measurement. The rule sits at
	 * the inset and the words sit an even breath further in on every side —
	 * so the space around them is the same at the top, the foot and both
	 * flanks, the way it is on a perfume box.
	 */
	--askgigi-inset: 0.9rem;
	--askgigi-breath: 1.9rem;

	position: absolute;
	inset: 0;
	background: var( --askgigi-ground );
	/*
	 * Every screen is one composition, held in the middle of the glass and
	 * spaced by what is on it. Nothing is pinned to the top and nothing is
	 * pinned to the foot; a screen carrying three words and a screen
	 * carrying a dozen answers each find their own balance.
	 */
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	gap: clamp( 1.6rem, 4vh, 2.6rem );
	/*
	 * A notch moves the box, never the air inside it. Pushing the words in
	 * while leaving the rule where it was is what made the top gap wider than
	 * the sides on a real phone.
	 */
	--askgigi-top: max( var( --askgigi-inset ), env( safe-area-inset-top ) );
	--askgigi-foot: max( var( --askgigi-inset ), env( safe-area-inset-bottom ) );

	padding: calc( var( --askgigi-top ) + var( --askgigi-breath ) )
		calc( var( --askgigi-inset ) + var( --askgigi-breath ) )
		calc( var( --askgigi-foot ) + var( --askgigi-breath ) );
	color: var( --askgigi-ink );
	font-family: var( --askgigi-serif );
	opacity: 0;
	transition: opacity 340ms var( --askgigi-ease );
}

.askgigi-screen.is-night {
	--askgigi-ink: var( --askgigi-white );
	--askgigi-ground: var( --askgigi-black );
}

.askgigi-screen.is-here {
	opacity: 1;
}

/*
 * Every piece floats up into its place, each a little behind the one above
 * it. The rise runs long and lands soft, so a screen is read in the order
 * it was written rather than landing whole.
 */
.askgigi-floats {
	opacity: 0;
	transform: translate3d( 0, 2.2rem, 0 );
	transition:
		opacity var( --askgigi-fade ) var( --askgigi-ease ) var( --askgigi-wait, 0ms ),
		transform var( --askgigi-rise ) var( --askgigi-float ) var( --askgigi-wait, 0ms );
	will-change: opacity, transform;
}

.is-here .askgigi-floats {
	opacity: 1;
	transform: none;
}

.askgigi-screen.is-leaving {
	opacity: 0;
	transition: opacity var( --askgigi-out ) var( --askgigi-ease-out );
	pointer-events: none;
}

.is-leaving .askgigi-floats {
	transition: none;
}

/*
 * The box. One fine rule held in from the edge of the glass, on every screen.
 */
.askgigi-screen::before {
	content: "";
	position: absolute;
	top: var( --askgigi-top );
	right: var( --askgigi-inset );
	bottom: var( --askgigi-foot );
	left: var( --askgigi-inset );
	border: 1px solid var( --askgigi-ink );
	pointer-events: none;
}

/* --------------------------------------------------------- how a screen sits */

/*
 * A screen is read from the top down and it fills the glass. The greeting
 * sits up top where a greeting belongs, the middle carries the message with
 * even air between its lines, and the way onward waits at the foot.
 */

.askgigi-ask {
	flex: 0 0 auto;
	padding-bottom: 15px;
	text-align: center;
}

.askgigi-offer {
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: safe center;
	gap: 3.4rem;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	text-align: center;
}

.askgigi-offer::-webkit-scrollbar {
	display: none;
}

.askgigi-onward {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.2rem;
}

/* A screen that asks for a name holds the two together, close. */
.askgigi-screen.is-writing .askgigi-offer {
	justify-content: center;
	overflow: visible;
}

/*
 * A screen offering choices keeps them in the middle of their own room —
 * but only while they fit. Centred content that overflows cannot be scrolled
 * back to, which is how fourteen occasions hid Birthday above the top edge.
 * safe center gives up the centring the moment it would cost somebody an
 * answer.
 */
.askgigi-screen.is-choosing .askgigi-offer {
	justify-content: safe center;
}

/*
 * A short question is spoken large. Only a long one steps back, and only far
 * enough to sit on three lines rather than five. Size follows the sentence,
 * never the screen it happens to be on.
 */
.askgigi-screen.is-choosing .askgigi-heading {
	font-size: clamp( 1.9rem, 8vw, 2.2rem );
	line-height: 1.24;
}

.askgigi-screen.is-choosing.is-wordy .askgigi-heading {
	font-size: clamp( 1.6rem, 6.8vw, 1.85rem );
	line-height: 1.28;
}

.askgigi-screen.is-choosing .askgigi-sub {
	margin-top: 0.7rem;
	font-size: 0.88rem;
}

/* Many answers, drawn closer so every one of them is reachable. */
.askgigi-screen.is-choosing.has-many .askgigi-chip {
	min-height: 2.65rem;
	padding: 0.5rem 0.75rem;
	font-size: 1.02rem;
}

.askgigi-screen.is-choosing.has-many .askgigi-chips,
.askgigi-screen.is-choosing.has-many .askgigi-choices {
	gap: 0.45rem;
}

/*
 * A long list closes up further and the question steps back with it, so a
 * dozen answers sit on one screen without a single one falling off the foot.
 */
.askgigi-screen.is-choosing.has-lots .askgigi-heading {
	font-size: clamp( 1.45rem, 6.2vw, 1.7rem );
}

.askgigi-screen.is-choosing.has-lots .askgigi-chip {
	min-height: 2.3rem;
	padding: 0.38rem 0.65rem;
	font-size: 0.97rem;
}

.askgigi-screen.is-choosing.has-lots .askgigi-chips,
.askgigi-screen.is-choosing.has-lots .askgigi-choices {
	gap: 0.34rem;
}

/* A long question above a long list gives back what it takes. */
.askgigi-screen.is-choosing.has-lots.is-wordy .askgigi-heading {
	font-size: clamp( 1.3rem, 5.5vw, 1.48rem );
}

.askgigi-screen.is-choosing.has-lots.is-wordy .askgigi-ask {
	padding-bottom: 10px;
}

.askgigi-screen.is-choosing.has-lots.is-wordy .askgigi-chip {
	min-height: 2.2rem;
	font-size: 0.94rem;
}

/* --------------------------------------------------------------- the words */

.askgigi-heading {
	margin: 0;
	font-size: clamp( 2rem, 8.4vw, 2.35rem );
	font-style: normal;
	font-weight: 400;
	line-height: 1.24;
	letter-spacing: -0.004em;
	text-wrap: balance;
}

.askgigi-heading em {
	font-style: italic;
}

/*
 * The line beneath a greeting is the message, never a byline. It is set to
 * be read from across a room.
 */
.askgigi-sub {
	margin: 1.2rem 0 0;
	font-size: clamp( 1.2rem, 5.4vw, 1.5rem );
	font-style: italic;
	line-height: 1.45;
	text-wrap: pretty;
}

/*
 * One thought, spoken over three breaths. The lines are held together and
 * spaced within themselves, never scattered down the glass.
 */
/*
 * The gap between the lines is the line-height itself, so a line that wraps
 * on to two sits exactly as far from its neighbour as one that does not. Any
 * gap added here shows up as an uneven step wherever a line breaks.
 */
.askgigi-lines {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.askgigi-line {
	margin: 0;
	font-size: clamp( 1.3rem, 5.9vw, 1.6rem );
	font-style: italic;
	line-height: 1.4;
	text-wrap: balance;
}

/* Their question, answered. */
.askgigi-answer {
	margin: 0;
	font-size: clamp( 1.75rem, 7.8vw, 2.1rem );
	font-style: normal;
	line-height: 1.24;
	text-wrap: balance;
}

/*
 * A hero line. This is the promise the whole product rests on, so it is set
 * as a promise and never as fine print at the foot of a page.
 */
.askgigi-hero {
	margin: 0;
	font-size: clamp( 1.35rem, 6.2vw, 1.65rem );
	font-style: italic;
	line-height: 1.3;
	text-align: center;
	text-wrap: balance;
}

.askgigi-footnote {
	margin: 0;
	font-size: 1rem;
	font-style: italic;
	text-align: center;
	line-height: 1.5;
}

/* ------------------------------------------------------------- the choosing */

/*
 * The answers. Each one its own box with air between, never a run of rows
 * stacked hard against one another.
 */
.askgigi-choices,
.askgigi-chips {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	width: min( 16.5rem, 100% );
	margin-inline: auto;
	padding-block: 0.1rem;
}

.askgigi-chip {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.72rem 0.85rem;
	border: 1px solid var( --askgigi-ink );
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 1.08rem;
	line-height: 1.24;
	text-align: center;
	cursor: pointer;
	transition:
		background-color 200ms var( --askgigi-ease ),
		color 200ms var( --askgigi-ease );
	-webkit-tap-highlight-color: transparent;
}

/*
 * One answer chosen fills with ink. Where many may be chosen it fills with
 * the pale pink instead — a screen of black boxes carries far too much
 * weight, and the many-answer screens are the feeling ones, which is
 * exactly where the pink belongs.
 */
.askgigi-chip.is-taken {
	background: var( --askgigi-ink );
	color: var( --askgigi-ground );
}

.is-many .askgigi-chip.is-taken {
	background: var( --askgigi-pink );
	border-color: var( --askgigi-pink );
	color: var( --askgigi-black );
}

/* --------------------------------------------------------------- the naming */

/*
 * A screen asking for more than a name gives a box to fill, outlined so it
 * is plainly somewhere to write, and it grows as somebody keeps writing.
 */
.askgigi-screen.is-long .askgigi-writing {
	width: 100%;
}

.askgigi-screen.is-long .askgigi-field {
	width: min( 17rem, 88% );
	margin-inline: auto;
	min-height: 9rem;
	padding: 1rem 1rem 1.1rem;
	border: 1px solid var( --askgigi-ink );
	font-size: clamp( 1.02rem, 4.4vw, 1.15rem );
	font-style: italic;
	line-height: 1.6;
	text-align: left;
}

.askgigi-screen.is-long .askgigi-heading {
	font-size: clamp( 1.75rem, 7.4vw, 2.05rem );
}

.askgigi-writing {
	display: flex;
	justify-content: center;
}

.askgigi-field {
	display: block;
	width: 100%;
	min-height: 0;
	padding: 0 0.25rem 0.5rem;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: clamp( 1.9rem, 8.6vw, 2.2rem );
	font-style: italic;
	letter-spacing: -0.008em;
	line-height: 1.32;
	text-align: center;
	resize: none;
	outline: none;
}

.askgigi-field::placeholder {
	color: inherit;
	opacity: 0.3;
}

/* ------------------------------------------------------------ the way onward */

.askgigi-go {
	min-width: 11rem;
	min-height: 2.7rem;
	padding: 0.8rem 1.9rem;
	border: 1px solid var( --askgigi-ink );
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 0.68rem;
	font-style: normal;
	letter-spacing: 0.22em;
	text-indent: 0.22em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background-color 220ms var( --askgigi-ease ),
		color 220ms var( --askgigi-ease ),
		opacity 220ms var( --askgigi-ease );
	-webkit-tap-highlight-color: transparent;
}

.askgigi-go:hover,
.askgigi-go:focus-visible {
	background: var( --askgigi-ink );
	color: var( --askgigi-ground );
}

.askgigi-go[ disabled ] {
	opacity: 0.3;
	cursor: default;
}

/* --------------------------------------------------------------- the splash */

/* The mark arrives on nothing but black. No rule, no frame, no company. */
.askgigi-screen.is-splash::before {
	content: none;
}

.askgigi-screen.is-splash {
	justify-content: center;
	align-items: stretch;
	padding-bottom: calc( max( 3rem, env( safe-area-inset-bottom ) ) + 20px );
}

/*
 * The wordmark keeps the one row the splash has. Left in the row the other
 * screens use, it lands in a row that was never drawn and is never seen.
 */
.askgigi-screen.is-splash .askgigi-offer {
	align-self: stretch;
	overflow: visible;
}

/*
 * The mark is measured against the room, never against its own parent. A
 * percentage here asks the wrapper how wide it is, the wrapper asks the
 * image, and the whole thing collapses to nothing — which is exactly what it
 * did on a tablet.
 */
.askgigi-wordmark {
	display: flex;
	justify-content: center;
	width: 100%;
}

.askgigi-logo {
	width: min( 78%, 21rem );
	height: auto;
	display: block;
}

/* --------------------------------------------------- wider than a phone */

/* ------------------------------------------------------------- the pricing */

/*
 * The price, shown before a person spends a moment of their life on the
 * journey. Two ways in, each in its own box, stacked on a phone with room to
 * breathe and side by side where there is width for it.
 */

.askgigi-screen.is-pricing .askgigi-offer {
	justify-content: center;
	gap: 1rem;
}

.askgigi-cards {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
}

/* The whole box is the way in, so no button need sit inside it. */
.askgigi-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: 1.1rem 1rem 1.15rem;
	border: 1px solid var( --askgigi-ink );
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	text-align: center;
	cursor: pointer;
	transition:
		background-color 220ms var( --askgigi-ease ),
		color 220ms var( --askgigi-ease );
	-webkit-tap-highlight-color: transparent;
}

.askgigi-card:hover,
.askgigi-card:focus-visible {
	background: var( --askgigi-ink );
	color: var( --askgigi-ground );
}

.askgigi-card:hover .askgigi-card-line.is-glowing,
.askgigi-card:focus-visible .askgigi-card-line.is-glowing {
	color: var( --askgigi-pink );
}

.askgigi-card-title {
	margin: 0;
	font-size: 0.7rem;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-indent: 0.24em;
	text-transform: uppercase;
}

.askgigi-card-price {
	margin: 0;
	font-size: 2.05rem;
	font-style: italic;
	line-height: 1;
}

.askgigi-card-cadence {
	margin: 0;
	font-size: 0.8rem;
	font-style: italic;
	line-height: 1.45;
}

.askgigi-card-lines {
	display: flex;
	flex-direction: column;
	gap: 0.16rem;
	margin: 0.4rem 0 0;
	padding: 0;
	list-style: none;
}

.askgigi-card-line {
	margin: 0;
	padding: 0.06rem 0.3rem;
	font-size: 0.84rem;
	line-height: 1.34;
}

/* The one a member gets, and nobody else. */
.askgigi-card-line.is-glowing {
	color: var( --askgigi-pink );
	font-size: 0.97rem;
	font-style: italic;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.is-day .askgigi-card-line.is-glowing {
	color: var( --askgigi-black );
}

/*
 * The way in for somebody who wants to see before they join. Text, in the
 * pale pink, leaning. It carries a person through to the trial without ever
 * looking like a button.
 */
.askgigi-glimpse {
	margin: 0;
	color: var( --askgigi-pink );
	font-size: 0.92rem;
	font-style: italic;
	line-height: 1.5;
	text-align: center;
	text-wrap: pretty;
	cursor: pointer;
}

/*
 * The way through on a free turn. In the pink, leaning, underlined — an open
 * door rather than a locked one.
 */
/*
 * The invitation. It is the whole point of a free turn, so it is set larger
 * than the question above it and given a box of its own. Only the closing
 * words carry the line — that is the door, and the rest is the welcome.
 */
.askgigi-unlock {
	margin: 0.65rem 0 0;
	padding: 0.55rem 0.7rem;
	border: 1px solid var( --askgigi-pink );
	color: var( --askgigi-pink );
	font-size: 1.1rem;
	font-style: italic;
	line-height: 1.34;
	text-align: center;
	text-wrap: balance;
	cursor: pointer;
}

.askgigi-unlock-through {
	text-decoration: underline;
	text-underline-offset: 0.24em;
}

.is-day .askgigi-unlock {
	border-color: var( --askgigi-black );
	color: var( --askgigi-black );
}

.is-day .askgigi-unlock {
	color: var( --askgigi-black );
}

/* The words that carry a person through wear the line. */
.askgigi-glimpse-through {
	text-decoration: underline;
	text-underline-offset: 0.28em;
}

.is-day .askgigi-glimpse {
	color: var( --askgigi-black );
}

@container askgigi ( min-width: 700px ) {
	/*
	 * On a tablet and on a laptop the box comes back, the way Paige drew it
	 * in Webflow — one hairline square held in from the edge of the panel,
	 * with everything living well inside it.
	 */
	/* With room to stand, the box becomes an object on a ground. */
	.askgigi-screen {
		--askgigi-inset: 1.5rem;
		--askgigi-breath: 2.8rem;

		margin: auto;
		max-width: 40rem;
		max-height: 92%;
		aspect-ratio: 3 / 4;
	}

	.askgigi-screen::before {
		border-width: 2px;
	}

	.askgigi-ask,
	.askgigi-offer,
	.askgigi-onward {
		width: 100%;
		margin-inline: auto;
	}

	/* Bigger, because there is room to be bigger. */
	.askgigi-heading {
		font-size: 2.9rem;
	}

	.askgigi-screen.is-choosing .askgigi-heading {
		font-size: 2.6rem;
	}

	.askgigi-screen.is-choosing.is-wordy .askgigi-heading,
	.askgigi-screen.is-choosing.has-lots.is-wordy .askgigi-heading {
		font-size: 2.15rem;
	}

	.askgigi-sub,
	.askgigi-line,
	.askgigi-hero,
	.askgigi-answer {
		font-size: 1.7rem;
	}

	.askgigi-answer {
		font-size: 2.3rem;
	}

	.askgigi-chips,
	.askgigi-choices {
		width: min( 22rem, 100% );
		gap: 0.7rem;
	}

	.askgigi-chip,
	.askgigi-screen.is-choosing.has-many .askgigi-chip {
		min-height: 3.4rem;
		font-size: 1.2rem;
	}

	/*
	 * A dozen answers stay close, even where there is room to spread. A
	 * laptop is wide but it is short, and twelve boxes at tablet size do not
	 * fit the height of one.
	 */
	.askgigi-screen.is-choosing.has-lots {
		padding: 3.2rem 4rem;
	}

	.askgigi-screen.is-choosing.has-lots .askgigi-heading {
		font-size: 1.85rem;
	}

	.askgigi-screen.is-choosing.has-lots .askgigi-chip {
		min-height: 2.15rem;
		font-size: 1rem;
	}

	.askgigi-screen.is-choosing.has-lots .askgigi-chips,
	.askgigi-screen.is-choosing.has-lots .askgigi-choices {
		gap: 0.3rem;
		width: min( 20rem, 100% );
	}

	.askgigi-screen.is-choosing.has-many:not( .has-lots ) {
		padding: 3.8rem 4.2rem;
	}

	.askgigi-field {
		width: min( 18rem, 70% );
		font-size: 2.6rem;
	}

	.askgigi-screen.is-long .askgigi-field {
		width: min( 26rem, 84% );
		min-height: 11rem;
		font-size: 1.35rem;
	}

	.askgigi-screen.is-long .askgigi-heading {
		font-size: 2.5rem;
	}

	.askgigi-go {
		min-width: 15rem;
		min-height: 3.3rem;
		font-size: 0.82rem;
	}

	.askgigi-logo {
		width: min( 62%, 24rem );
	}

	/*
	 * Two ways in, side by side, each one its own box. Never one card
	 * stretched across the width of the other.
	 */
	.askgigi-screen.is-pricing {
		padding: 2.9rem 3rem;
	}

	.askgigi-screen.is-pricing .askgigi-heading {
		font-size: 2.1rem;
	}

	.askgigi-cards {
		flex-direction: row;
		align-items: stretch;
		gap: 1.2rem;
	}

	.askgigi-card {
		flex: 1 1 0;
		gap: 0.35rem;
		padding: 1.2rem 1rem 1.1rem;
	}

	.askgigi-card-price {
		font-size: 2rem;
	}

	.askgigi-card-line {
		font-size: 0.95rem;
	}

	.askgigi-card-line.is-glowing {
		font-size: 1.1rem;
	}

	.askgigi-card-title {
		font-size: 0.82rem;
	}

	.askgigi-glimpse {
		font-size: 1rem;
	}
}

/* ------------------------------------------------------------------ the six */

/*
 * While Gigi is choosing. The six sit quietly rather than a spinner turning,
 * because a spinner says waiting and this is somebody thinking.
 */
.askgigi-screen.is-listening .askgigi-six {
	opacity: 0.4;
	transition: opacity 400ms var( --askgigi-ease );
}

/*
 * Five answer what a person told Gigi, and the sixth answers what they did
 * not. That one wears the pale pink, so the leap is the piece the eye finds
 * first.
 *
 * Two across on a phone, three where there is width. All six are drawn on a
 * free turn and only one is readable — the rest are present as shape and
 * colour, which is honest. They exist, and they are hers the moment she asks.
 */

/* Six boxes leave less room for a question, so it is asked smaller here. */
.askgigi-screen.is-results {
	padding: 2.6rem 1.4rem;
}

.askgigi-screen.is-results .askgigi-heading {
	font-size: clamp( 0.86rem, 3.7vw, 0.98rem );
	line-height: 1.32;
}

.askgigi-screen.is-results .askgigi-sub {
	margin-top: 0.35rem;
	font-size: 0.78rem;
}

.askgigi-screen.is-results .askgigi-ask {
	padding-bottom: 6px;
}

.askgigi-screen.is-results .askgigi-offer {
	justify-content: flex-start;
	gap: 0.8rem;
}

.askgigi-six {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 0.5rem;
	width: 100%;
	margin: auto 0;
}

.askgigi-gift {
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
	padding: 0.4rem 0.35rem 0.35rem;
	border: 1px solid var( --askgigi-ink );
	text-align: center;
}

/* The leap. */
.askgigi-gift.is-wild {
	background: var( --askgigi-pink );
	border-color: var( --askgigi-pink );
	color: var( --askgigi-black );
}

.askgigi-gift-picture {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var( --askgigi-white );
}

.askgigi-gift-picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.askgigi-gift-name {
	margin: 0;
	font-size: 0.68rem;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.askgigi-gift-price {
	margin: 0;
	font-size: 0.8rem;
	font-style: italic;
	line-height: 1;
}

/* Held back, and plainly still there. */
.askgigi-gift.is-hazed {
	filter: blur( 5px );
	opacity: 0.5;
	pointer-events: none;
	user-select: none;
}

.askgigi-gift.is-away {
	opacity: 0.35;
}

/* ------------------------------------------------------------- the three marks */

.askgigi-marks {
	display: flex;
	justify-content: center;
	gap: 0.55rem;
	margin-top: 0.2rem;
}

/*
 * No boxes. Three small drawn marks with room around them, so the eye reads
 * the gift and the marks wait quietly underneath it.
 */
.askgigi-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	opacity: 0.62;
	cursor: pointer;
	transition:
		opacity 180ms var( --askgigi-ease ),
		transform 180ms var( --askgigi-ease );
	-webkit-tap-highlight-color: transparent;
}

.askgigi-mark:hover,
.askgigi-mark:focus-visible {
	opacity: 1;
	transform: translateY( -1px );
}

.askgigi-mark svg {
	width: 1.05rem;
	height: 1.05rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.askgigi-mark.is-keep svg {
	fill: none;
}

.askgigi-mark.is-said {
	opacity: 1;
	transform: translateY( -1px );
}

/* A heart pressed is pink, on every ground. */
.askgigi-mark.is-keep.is-said {
	color: var( --askgigi-pink );
}

.askgigi-mark.is-keep.is-said svg {
	fill: var( --askgigi-pink );
	stroke: var( --askgigi-pink );
}

/* On the wild card's pink ground the heart fills with ink instead. */
.askgigi-gift.is-wild .askgigi-mark.is-keep.is-said {
	color: var( --askgigi-black );
}

.askgigi-gift.is-wild .askgigi-mark.is-keep.is-said svg {
	fill: var( --askgigi-black );
	stroke: var( --askgigi-black );
}

@container askgigi ( min-width: 700px ) {
	.askgigi-six {
		grid-template-columns: repeat( 3, 1fr );
		gap: 1rem;
	}

	.askgigi-gift {
		gap: 0.4rem;
		padding: 0.8rem 0.7rem 0.7rem;
	}

	.askgigi-gift-name {
		font-size: 0.9rem;
	}

	.askgigi-gift-price {
		font-size: 1.05rem;
	}

	.askgigi-mark {
		width: 1.9rem;
		height: 1.9rem;
	}

	.askgigi-mark svg {
		width: 1.3rem;
		height: 1.3rem;
	}

	.askgigi-screen.is-results {
		padding: 2.4rem 2.4rem;
	}

	.askgigi-gift-picture {
		aspect-ratio: 1;
	}

	.askgigi-screen.is-results .askgigi-heading {
		font-size: 1.95rem;
	}

	.askgigi-screen.is-results .askgigi-ask {
		padding-bottom: 8px;
	}

	.askgigi-screen.is-results .askgigi-sub {
		font-size: 1.15rem;
	}

	.askgigi-unlock {
		font-size: 1.4rem;
		padding: 0.7rem 1rem;
	}
}

/* A little more room where the relationships are asked. */
.askgigi-screen[ data-moment="relationship" ] .askgigi-chips,
.askgigi-screen[ data-moment="relationship" ] .askgigi-choices {
	gap: 0.46rem;
}

.askgigi-screen[ data-moment="relationship" ] .askgigi-chip {
	min-height: 2.85rem;
}

/* ---------------------------------------------------------------- the box */

/*
 * Somebody was given this. The box is the first thing they meet, and their
 * own name is on it.
 */

.askgigi-screen.is-arrival .askgigi-offer {
	justify-content: center;
	overflow: visible;
}

.askgigi-box {
	display: flex;
	justify-content: center;
}

.askgigi-box img {
	width: min( 74%, 20rem );
	height: auto;
	display: block;
}

@container askgigi ( min-width: 700px ) {
	.askgigi-box img {
		width: min( 58%, 22rem );
	}
}

/* The price and the marks, in one small box at the foot of a card. */

.askgigi-gift-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	margin-top: auto;
	padding: 0.3rem 0.4rem 0.15rem;
	border-top: 1px solid var( --askgigi-ink );
}

.askgigi-gift.is-wild .askgigi-gift-foot {
	border-top-color: var( --askgigi-black );
}

.askgigi-gift-foot .askgigi-marks {
	margin-top: 0;
	gap: 0.3rem;
}

.askgigi-gift-foot .askgigi-gift-price {
	font-size: 0.86rem;
}

/* A picture that has not arrived leaves a quiet space, never a broken frame. */
.askgigi-gift-picture {
	background: var( --askgigi-white );
}

.askgigi-gift-picture img {
	background: var( --askgigi-white );
}

/* Said quietly, under the question, never shouted at the foot of a screen. */

.askgigi-quietly {
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	font-style: italic;
	line-height: 1.45;
	text-align: center;
}

/* What Gigi says back — a breath after a choice, never a screen of its own. */

.askgigi-she-said {
	margin: 0.9rem 0 0;
	font-size: 0.95rem;
	font-style: italic;
	line-height: 1.42;
	text-align: center;
	text-wrap: balance;
	opacity: 0;
	transform: translate3d( 0, 0.5rem, 0 );
	transition:
		opacity 520ms var( --askgigi-ease ),
		transform 620ms var( --askgigi-float );
}

.askgigi-she-said.is-said {
	opacity: 1;
	transform: none;
}

@media ( prefers-reduced-motion: reduce ) {
	.askgigi-she-said {
		transition-duration: 1ms;
		transform: none;
	}
}


/* A question asked softly. Never a headline, whatever its length. */

.askgigi-screen.is-soft .askgigi-heading,
.askgigi-screen.is-choosing.is-soft .askgigi-heading,
.askgigi-screen.is-choosing.is-wordy.is-soft .askgigi-heading,
.askgigi-screen.is-choosing.has-lots.is-wordy.is-soft .askgigi-heading {
	font-size: clamp( 1.25rem, 5.2vw, 1.45rem );
	font-style: italic;
	line-height: 1.34;
}

.askgigi-screen.is-soft .askgigi-sub {
	font-size: 0.82rem;
}

/* One open line, for everything a list can never hold. */

.askgigi-also {
	display: block;
	width: 100%;
	margin-top: 0.9rem;
	padding: 0.75rem 0.8rem;
	border: 1px solid var( --askgigi-ink );
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 0.95rem;
	font-style: italic;
	line-height: 1.5;
	text-align: center;
	resize: none;
	overflow: hidden;
	outline: none;
}

.askgigi-also::placeholder {
	color: inherit;
	opacity: 0.42;
}

/* ------------------------------------------------------------- your circle */

/*
 * A place rather than a path. Nothing moves on its own here — somebody
 * arrives, looks, and chooses where to go.
 */

.askgigi-gate {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	width: min( 17rem, 100% );
	margin-inline: auto;
}

.askgigi-field.is-written {
	width: 100%;
	min-height: 2.9rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var( --askgigi-ink );
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 1rem;
	font-style: normal;
	text-align: center;
}

.askgigi-field.is-written::placeholder {
	color: inherit;
	font-style: italic;
	opacity: 0.42;
}

.askgigi-trouble {
	margin: 0;
	font-size: 0.85rem;
	font-style: italic;
	line-height: 1.4;
	text-align: center;
}

.askgigi-swap {
	margin: 0;
	padding: 0.3rem 0.5rem;
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 0.82rem;
	font-style: italic;
	text-decoration: underline;
	text-underline-offset: 0.24em;
	cursor: pointer;
}

/* Everybody, VIPs held at the top. */

.askgigi-group {
	margin: 1.1rem 0 0.5rem;
	font-size: 0.68rem;
	font-style: normal;
	letter-spacing: 0.24em;
	text-indent: 0.24em;
	text-transform: uppercase;
	text-align: center;
}

.askgigi-people {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	width: min( 18rem, 100% );
	margin-inline: auto;
}

.askgigi-person {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.6rem;
	min-height: 2.9rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid var( --askgigi-ink );
	background: transparent;
	color: inherit;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition:
		background-color 200ms var( --askgigi-ease ),
		color 200ms var( --askgigi-ease );
}

.askgigi-person:hover,
.askgigi-person:focus-visible {
	background: var( --askgigi-ink );
	color: var( --askgigi-ground );
}

.askgigi-person-name {
	font-size: 1.05rem;
}

.askgigi-person-when {
	font-size: 0.74rem;
	font-style: italic;
	opacity: 0.72;
	white-space: nowrap;
}

/* Kept for them, for when their day comes. */

.askgigi-kept {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 0.5rem;
	width: 100%;
}

.askgigi-kept-one {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.45rem 0.4rem;
	border: 1px solid var( --askgigi-ink );
	text-align: center;
}

.askgigi-kept-one img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var( --askgigi-white );
}

.askgigi-kept-name {
	margin: 0;
	font-size: 0.7rem;
	line-height: 1.25;
}

.askgigi-kept-price {
	margin: 0;
	font-size: 0.8rem;
	font-style: italic;
}

/* Everything about somebody can be changed at any moment. */

.askgigi-changes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 0.9rem;
}

.askgigi-small {
	padding: 0.2rem 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 0.76rem;
	font-style: italic;
	text-decoration: underline;
	text-underline-offset: 0.22em;
	cursor: pointer;
	opacity: 0.75;
}

.askgigi-small:hover,
.askgigi-small:focus-visible {
	opacity: 1;
}

.askgigi-screen.is-circle .askgigi-offer,
.askgigi-screen.is-person .askgigi-offer {
	justify-content: safe center;
	gap: 0.2rem;
}
