/**
 * Home page sections. Loaded on the front page only.
 *
 * Section order and surfaces:
 *   hero (Ink) ~torn~ trust (Paper) / drop (Paper) ~torn~ statement (Ink) /
 *   categories (Paper) / fabric (Paper raised) / instagram (Paper) / signup (Ink)
 *
 * Signal lime: hero button, signup button. Nothing else.
 */

/* ===========================================================================
 * Hero
 * ======================================================================== */

/*
 * Phones: the 3:4 picture sits full width at the top (under the transparent
 * header) and the copy follows on Ink, so no text covers the prints.
 * Desktop: copy on the left, picture filling the right half.
 */
.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	padding-bottom: calc(var(--torn-h) + var(--space-xl));
	overflow: hidden;
}

/* Sit under the transparent header on the front page. */
.has-overlay-header .hero {
	margin-top: calc(var(--header-h) * -1);
}

.hero__media {
	position: relative;
	z-index: -1;
	width: 100%;
	aspect-ratio: 3 / 4;
	max-height: 70svh;
	background: var(--ink-raised);
}

.hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

/* Darkens under the header icons and melts the bottom edge into the copy. */
.hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgb(11 11 11 / 0.55) 0, rgb(11 11 11 / 0) 18%),
		linear-gradient(to top, var(--ink) 0, rgb(11 11 11 / 0) 8%);
}

.hero__inner {
	position: relative;
	margin-top: calc(var(--space-l) * -1);
}

.hero__copy {
	container-type: inline-size;
	width: 100%;
}

.hero__kicker {
	margin: 0 0 var(--space-s);
	color: var(--paper-dim);
	font-size: var(--step--1);
}

/* Sized from its own column width so the longest word never overflows. */
.hero__title {
	margin: 0 0 var(--space-m);
	font-size: clamp(2.5rem, 12.5cqi, 9rem);
	line-height: 0.86;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

/* No word longer than 8 letters ("act natural."), so it can go bigger. */
.hero__title--short {
	font-size: clamp(3.25rem, 17cqi, 10rem);
}

.hero__body {
	max-width: 34ch;
	margin: 0 0 var(--space-l);
	font-size: var(--step-1);
	line-height: 1.4;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-s) var(--space-l);
}

.hero__cta .icon {
	width: 18px;
	height: 18px;
}

.hero__scroll {
	color: var(--paper-dim);
	font-size: var(--step--1);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.hero__scroll:hover,
.hero__scroll:focus-visible {
	color: var(--paper);
}

@media (min-width: 1024px) {
	.hero {
		flex-direction: row;
		align-items: center;
		min-height: min(92svh, 900px);
		padding-top: calc(var(--header-h) + var(--space-2xl));
	}

	.hero__media {
		position: absolute;
		inset: 0 0 0 auto;
		width: 50%;
		max-height: none;
		aspect-ratio: auto;
	}

	.hero__media::after {
		/* Narrow: Myra's elbow sits about 6% in from the left edge. */
		background: linear-gradient(90deg, var(--ink) 0%, rgb(11 11 11 / 0) 5%);
	}

	.hero__inner {
		margin-top: 0;
	}

	.hero__copy {
		width: 48%;
	}
}

/* ===========================================================================
 * Trust strip
 * ======================================================================== */

.trust {
	padding-block: var(--space-m) var(--space-l);
	background: var(--paper);
	border-bottom: var(--hairline) solid var(--line-on-paper);
}

.trust__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-m) var(--space-s);
	margin: 0 auto;
	list-style: none;
}

.trust__item {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	font-size: var(--step--1);
	font-weight: 500;
	line-height: 1.3;
}

.trust__icon {
	flex: none;
	width: 28px;
	height: 28px;
}

@media (min-width: 1024px) {
	.trust__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.trust__item + .trust__item {
		padding-left: var(--space-m);
		border-left: var(--hairline) solid var(--line-on-paper);
	}
}

/* ===========================================================================
 * The drop
 * ======================================================================== */

.drop {
	position: relative;
	padding-block: var(--section-y) calc(var(--section-y) + var(--torn-h));
}

.drop__empty {
	color: var(--mute);
}

/* ===========================================================================
 * Brand statement
 * ======================================================================== */

.statement {
	padding-block: var(--space-xl) var(--section-y);
}

.statement__inner {
	display: grid;
	justify-items: start;
	gap: var(--space-l);
}

.statement__inner .eyebrow {
	margin: 0;
}

.statement__title {
	max-width: 20ch;
	margin: 0;
	font-size: clamp(2rem, 1.3rem + 3.2vw, 4.5rem);
	line-height: 0.98;
}

.statement__line {
	display: block;
}

.statement__line--dim {
	color: var(--paper-dim);
}

.statement__cta .icon {
	width: 18px;
	height: 18px;
}

/* ===========================================================================
 * Category tiles
 * ======================================================================== */

.cats {
	padding-block: var(--section-y);
}

.cats__grid {
	display: grid;
	gap: var(--space-s);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.cats__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.cat-tile {
	position: relative;
	display: block;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: var(--ink);
	color: var(--paper);
	text-decoration: none;
}

@media (min-width: 768px) {
	.cat-tile {
		aspect-ratio: 4 / 5;
	}
}

.cat-tile__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--ease);
}

.cat-tile::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgb(11 11 11 / 0.82), rgb(11 11 11 / 0) 58%);
}

.cat-tile__text {
	position: absolute;
	left: var(--space-s);
	right: 3.5rem;
	bottom: var(--space-s);
	z-index: 1;
	display: grid;
	gap: 0.35rem;
}

.cat-tile__title {
	font-family: var(--font-display);
	font-size: var(--step-2);
	line-height: 1;
	letter-spacing: var(--tracking-display);
	text-transform: lowercase;
}

.cat-tile__line {
	font-size: var(--step--1);
}

.cat-tile__arrow {
	position: absolute;
	right: var(--space-s);
	bottom: var(--space-s);
	z-index: 1;
	width: 26px;
	height: 26px;
	transition: transform var(--dur-2) var(--ease);
}

.cat-tile:hover .cat-tile__img {
	transform: scale(1.04);
}

.cat-tile:hover .cat-tile__arrow {
	transform: translateX(4px);
}

.cat-tile:focus-visible {
	outline-color: var(--ink);
}

/* ===========================================================================
 * Fabric and fit
 * ======================================================================== */

.fabric {
	padding-block: var(--section-y);
	background: var(--paper-raised);
}

.fabric__inner {
	display: grid;
	gap: var(--space-xl);
}

@media (min-width: 1024px) {
	.fabric__inner {
		grid-template-columns: 5fr 7fr;
		align-items: center;
		gap: var(--space-3xl);
	}
}

.fabric__media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--ink);
}

@media (min-width: 768px) {
	.fabric__media {
		aspect-ratio: 4 / 5;
	}
}

.fabric__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fabric__stat {
	position: absolute;
	left: var(--space-m);
	bottom: var(--space-s);
	display: flex;
	align-items: baseline;
	gap: 0.12em;
	margin: 0;
	color: var(--paper);
	font-family: var(--font-display);
	line-height: 0.8;
}

.fabric__num {
	font-size: clamp(5.5rem, 3rem + 11vw, 12rem);
	letter-spacing: -0.045em;
}

.fabric__unit {
	font-size: var(--step-2);
}

.fabric__title {
	margin: 0 0 var(--space-m);
	font-size: var(--step-4);
}

.fabric__lede {
	max-width: 42ch;
	margin: 0 0 var(--space-l);
	font-size: var(--step-1);
	line-height: 1.45;
}


.fabric__note {
	max-width: 54ch;
	padding: var(--space-m);
	border: var(--hairline) solid var(--ink);
	background: var(--paper);
}

.fabric__note-title {
	margin: 0 0 var(--space-2xs);
	font-size: var(--step-1);
}

.fabric__note p {
	margin: 0;
}

.fabric__note .fabric__aside {
	margin-top: var(--space-2xs);
	color: var(--mute);
	font-size: var(--step--1);
}

/* ===========================================================================
 * Instagram strip
 * ======================================================================== */

.insta {
	padding-block: var(--section-y);
}

.insta__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 1024px) {
	.insta__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.insta__tile {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--paper-raised);
}

.insta__tile a {
	display: block;
	height: 100%;
}

.insta__tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--ease);
}

.insta__tile a:hover img {
	transform: scale(1.04);
}

/* ===========================================================================
 * Email signup (Fluent Forms inside)
 * ======================================================================== */

.signup {
	padding-block: var(--section-y);
	border-bottom: var(--hairline) solid var(--line-on-ink);
}

.signup__inner {
	display: grid;
	gap: var(--space-l);
}

@media (min-width: 1024px) {
	.signup__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: end;
		gap: var(--space-3xl);
	}
}

.signup__title {
	margin: 0;
	font-size: var(--step-4);
}

.signup__line {
	margin: var(--space-xs) 0 0;
	color: var(--paper-dim);
}

.signup__fine {
	margin: var(--space-xs) 0 0;
	color: var(--paper-dim);
	font-size: var(--step--2);
}

.signup__fine a {
	color: var(--paper);
}

/* Fluent Forms markup inside the signup. Label stays in the DOM for screen
   readers; field and the lime button sit in one row. */
.signup .fluentform .ff-el-input--label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.signup .frm-fluent-form fieldset {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

.signup .fluentform .ff-el-group {
	margin: 0;
}

.signup .fluentform .ff-el-group:not(.ff_submit_btn_wrapper) {
	flex: 1 1 13rem;
	min-width: 0;
}

.signup .fluentform .ff-el-form-control {
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	padding: 0 var(--space-s);
	border: var(--hairline) solid var(--paper-dim);
	border-right: 0;
	border-radius: 0;
	background: transparent;
	color: var(--paper);
	font-family: var(--font-body);
	font-size: var(--step-0);
	box-shadow: none;
}

.signup .fluentform .ff-el-form-control::placeholder {
	color: var(--paper-dim);
	opacity: 1;
}

.signup .fluentform .ff-el-form-control:focus {
	border-color: var(--paper);
	outline: var(--focus-width) solid var(--paper);
	outline-offset: var(--focus-offset);
}

.signup .fluentform form .ff-btn.ff-btn-submit {
	height: 52px;
	padding: 0 1.5em;
	border: 0;
	border-radius: 0;
	background: var(--signal);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: var(--tracking-label);
	text-transform: lowercase;
	opacity: 1;
	cursor: pointer;
	transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.signup .fluentform form .ff-btn.ff-btn-submit:hover {
	transform: translate(-2px, -2px);
	box-shadow: 4px 4px 0 var(--paper);
}

.signup .fluentform form .ff-btn.ff-btn-submit:focus-visible {
	outline: var(--focus-width) solid var(--paper);
	outline-offset: var(--focus-offset);
}

.signup .fluentform .text-danger,
.signup .fluentform .error {
	margin-top: var(--space-2xs);
	color: var(--paper);
	font-size: var(--step--1);
}

.signup .fluentform .ff-el-is-error .ff-el-form-control {
	border-color: var(--paper);
}

.signup .ff-message-success {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--paper);
	font-size: var(--step-1);
}

/* Raised Paper is darker than Paper, so Mute text drops to 4.05:1 there.
   Use the deeper Mute for secondary text inside the fabric section. */
.fabric .eyebrow,
.fabric .spec dt {
	color: var(--mute-deep);
}

/* "visual generated using AI" label positions on home images. */
.hero .ai-label {
	top: calc(var(--header-h) + var(--space-s));
	right: var(--space-s);
	bottom: auto;
	left: auto;
}

@media (min-width: 1024px) {
	.hero .ai-label {
		top: auto;
		bottom: calc(var(--torn-h) + var(--space-s));
	}
}

.cat-tile .ai-label {
	z-index: 2;
	top: var(--space-2xs);
	bottom: auto;
}

/* Fabric close-up: the "240 gsm" numeral owns the bottom-left corner. */
.fabric__media .ai-label {
	top: var(--space-2xs);
	right: var(--space-2xs);
	bottom: auto;
	left: auto;
}
