/* Editorial and help pages: Help, About, Collections, Journal, articles, policies, 404. */

.page-intro, .help__intro, .journal__intro {
	max-width: var(--max);
	margin: 0 auto;
	padding: 64px var(--gutter) 48px;
}

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.page-intro__title, .doc__title, .help__title {
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 400;
	letter-spacing: -0.0375em;
	line-height: 0.96;
	text-wrap: balance;
}
.page-intro__lead, .help__lead, .journal__lead { max-width: 340px; font-size: 15px; line-height: 1.5; color: var(--stone); }

.page-empty { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 64px var(--gutter) 128px; text-align: center; }
.page-empty__title { font-size: 28px; letter-spacing: -0.02em; }

/* Prose: the body of any page written in the editor */
.prose { max-width: 68ch; font-size: 16px; line-height: 1.6; color: var(--body-text); }
.prose > * + * { margin-top: 1em; }
.prose h2 {
	margin-top: 2.25em;
	font-size: clamp(26px, 2.6vw, 36px);
	font-weight: 400;
	letter-spacing: -0.028em;
	line-height: 1.1;
	color: var(--ink);
	text-wrap: balance;
}
.prose h3 { margin-top: 1.75em; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose h2 + .data-table, .prose h2 + .steps, .prose h2 + .contact-list { margin-top: 1.25em; }
.prose > :first-child { margin-top: 0; }
.prose :is(h2, h3) { scroll-margin-top: calc(var(--header-h) + 64px); }
.prose strong { font-weight: 500; color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color var(--dur-fast) ease; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--stone); }

@media (hover: hover) and (pointer: fine) {
	.prose a:hover { text-decoration-color: currentColor; }
}

/* Owner-supplied details still to come; deliberately loud so none ship by accident. */
.placeholder {
	padding: 1px 4px;
	background: color-mix(in srgb, var(--ochre) 55%, var(--paper));
	color: var(--ink);
	font-size: 0.94em;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.page-placeholder-notice { margin-bottom: 40px; }

.prose details { border-top: 1px solid var(--line); }
.prose details:last-of-type { border-bottom: 1px solid var(--line); }
.prose details + details { margin-top: 0; }
.prose details[open] { border-top-color: var(--ink); }
.prose summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 52px;
	padding: 14px 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
	list-style: none;
	cursor: pointer;
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
	transition: transform 260ms var(--ease-out);
}
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details > :not(summary) { max-width: 60ch; padding-bottom: 20px; }

.prose blockquote {
	margin: 2em 0;
	padding: 32px 0;
	border-block: 1px solid var(--ink);
	font-size: clamp(24px, 2.6vw, 34px);
	letter-spacing: -0.025em;
	line-height: 1.2;
	color: var(--ink);
}
.prose blockquote p + p { margin-top: 0.35em; }

.prose figure img { width: 100%; }
.prose figcaption { margin-top: 10px; font-size: 12px; color: var(--stone); }

/* Tables: delivery rates and the size chart */
.data-table { overflow-x: auto; overscroll-behavior-x: contain; }
.data-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 14px 16px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink); }
.data-table thead th { font-size: 11px; font-weight: 500; letter-spacing: 0.127em; text-transform: uppercase; color: var(--stone); border-bottom-color: var(--ink); }
.data-table tbody th { font-weight: 500; }
.data-table__alt { display: block; font-size: 12px; color: var(--stone); }

@media (max-width: 720px) {
	.data-table table { min-width: 0; font-size: 13px; }
	.data-table th, .data-table td { padding: 12px 8px 12px 0; }

	/* Delivery rates read as one line per service on a phone instead of a sideways-scrolling table. */
	.data-table--stack thead { display: none; }
	.data-table--stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.data-table--stack :is(th, td) { padding: 0; border: 0; }
	.data-table--stack tbody th { grid-column: 1 / -1; margin-bottom: 4px; font-size: 11px; letter-spacing: 0.127em; text-transform: uppercase; color: var(--stone); }
	.data-table--stack td:nth-of-type(1) { font-weight: 500; }
	.data-table--stack td:nth-of-type(2) { grid-row: 3; color: var(--stone); }
	.data-table--stack td:nth-of-type(3) { grid-column: 2; grid-row: 2 / span 2; text-align: right; }
}

/* Numbered steps and contact cards, used in Help */
.prose .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.prose .steps li { margin: 0; padding: 24px; background: var(--paper); font-size: 14px; line-height: 1.5; counter-increment: step; }
.prose .steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 12px; font-size: 12px; font-weight: 500; color: var(--earth); }
.prose .steps strong { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 400; letter-spacing: -0.01em; }

.prose .contact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.prose .contact-list li { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 24px; border: 1px solid var(--line); font-size: 13px; color: var(--stone); }
.prose .contact-list strong { font-size: 11px; font-weight: 500; letter-spacing: 0.145em; text-transform: uppercase; color: var(--stone); }
.prose .contact-list li > :nth-child(2) { font-size: 16px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }

@media (max-width: 1024px) {
	.prose .steps, .prose .contact-list { grid-template-columns: minmax(0, 1fr); }
}

/* Documents: policies and any plain page */
.doc__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: calc(100% - 2 * var(--gutter));
	max-width: calc(var(--max) - 2 * var(--gutter));
	margin: 0 auto;
	padding: 64px 0 56px;
	border-bottom: 1px solid var(--line);
}
.doc__body { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 128px; }
.doc__body.has-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 96px; align-items: start; }

.doc__toc { position: sticky; top: calc(var(--header-h) + 56px); display: flex; flex-direction: column; gap: 16px; }
.doc__toc-title { font-size: 11px; font-weight: 500; letter-spacing: 0.145em; text-transform: uppercase; color: var(--stone); }
.doc__toc ol { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.35; color: var(--body-text); }
.doc__toc ol { border-left: 1px solid var(--line); }
.doc__toc a {
	display: block;
	margin-left: -1px;
	padding-left: 16px;
	border-left: 1px solid transparent;
	transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.doc__toc a[aria-current="location"] { color: var(--ink); border-left-color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
	.doc__toc a:hover { color: var(--ink); }
}

@media (max-width: 1024px) {
	.doc__body.has-toc { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.doc__toc { position: static; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
	.page-intro, .help__intro, .journal__intro { padding-top: 32px; padding-bottom: 32px; }
	.doc__head { padding-top: 32px; padding-bottom: 32px; }
	.doc__body { padding-top: 32px; padding-bottom: 96px; }
}

/* Help */
.help__intro { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }

.help__topics { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.help__topics ul, .doc__toc ol { list-style: none; padding: 0; }
.help__topics ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.help__topics li + li { border-left: 1px solid var(--line); }
.help__topics a {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	padding: 24px 20px;
	font-size: 14px;
	transition: background-color var(--dur-fast) ease;
}
.help__topics .icon { width: 22px; height: 22px; color: var(--earth); }

@media (hover: hover) and (pointer: fine) {
	.help__topics a:hover { background: var(--paper); }
}

.help__main { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 128px; }
.help__main .prose { max-width: 1028px; margin-inline: auto; }
.prose--sections h2 { margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--ink); }
.prose--sections > h2:first-child { margin-top: 0; }
.prose--sections p, .prose--sections ul:not([class]), .prose--sections > h3 { max-width: 64ch; }

@media (max-width: 1024px) {
	.help__topics ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.help__topics li:nth-child(3n + 1) { border-left: 0; }
	.help__topics li:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
	.help__topics a { gap: 10px; padding: 18px 14px; font-size: 13px; }
	.help__main { padding-top: 48px; padding-bottom: 96px; }
	.prose--sections h2 { margin-top: 72px; padding-top: 24px; }
}

/* About */
.about__hero { max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter) 0; }
.about__statement {
	max-width: 22ch;
	font-size: clamp(36px, 5vw, 72px);
	font-weight: 400;
	letter-spacing: -0.038em;
	line-height: 1;
	text-wrap: balance;
}

.about__story {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 96px;
	align-items: center;
	max-width: var(--max);
	margin: 0 auto;
	padding: 96px var(--gutter) 0;
}
.about__portrait { display: flex; flex-direction: column; gap: 12px; }
.about__portrait-image { aspect-ratio: 4 / 5; }
.prose--story { font-size: 17px; line-height: 1.65; }
.prose--story > p:first-child { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; letter-spacing: -0.012em; color: var(--ink); }

.about__looks { max-width: var(--max); margin: 0 auto; padding: 160px var(--gutter) 128px; }
.about__looks-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.about__looks-title { font-size: clamp(30px, 3.2vw, 48px); font-weight: 400; letter-spacing: -0.033em; line-height: 1.05; }
.about__looks-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 12px; }
.about__look { aspect-ratio: 2 / 3; }
.about__look:nth-child(2) { margin-top: 64px; }

@media (max-width: 1024px) {
	.about__story { gap: 48px; }
}

@media (max-width: 720px) {
	.about__hero { padding: 40px var(--gutter) 0; }
	.about__story { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
	.about__portrait-image { margin-inline: calc(-1 * var(--gutter)); }
	.about__looks { padding: 96px 0 96px; }
	.about__looks-head, .about__looks > .credit { padding: 0 var(--gutter); }
	.about__looks-row {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 72%;
		gap: 10px;
		padding: 0 var(--gutter);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.about__looks-row::-webkit-scrollbar { display: none; }
	.about__look { scroll-snap-align: start; }
	.about__look:nth-child(2) { margin-top: 0; }
}

/* Collections index */
.collections__list { display: flex; flex-direction: column; gap: 128px; max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 128px; }
.collection-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: end; }
.collection-row:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.collection-row:nth-child(even) .collection-row__images { order: 2; }
.collection-row__images { display: grid; grid-template-columns: repeat(var(--looks), minmax(0, 1fr)); gap: 12px; }
.collection-row__image { aspect-ratio: 2 / 3; }
.collection-row__image img { transition: transform 900ms var(--ease-out); }
.collection-row__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 8px; }
.collection-row__title { font-size: clamp(36px, 4.4vw, 64px); font-weight: 400; letter-spacing: -0.038em; line-height: 0.98; text-wrap: balance; }
.collection-row__copy .link-arrow { margin-top: 8px; }

@media (hover: hover) and (pointer: fine) {
	.collection-row:has(a:hover) .collection-row__image img { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
	.collection-row__image img { transition: none; }
}

@media (max-width: 1024px) {
	.collection-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.collection-row:nth-child(even) .collection-row__images { order: 0; }
}

@media (max-width: 720px) {
	.collections__list { gap: 80px; padding-bottom: 96px; }
	.collection-row__images {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 72%;
		gap: 10px;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.collection-row__images::-webkit-scrollbar { display: none; }
	.collection-row__image { scroll-snap-align: start; }
}

/* Journal */
.journal__intro { display: flex; flex-direction: column; gap: 40px; padding-bottom: 40px; }
.journal__title-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.journal__title { font-size: clamp(56px, 10vw, 144px); font-weight: 400; letter-spacing: -0.042em; line-height: 0.85; }
.journal__tabs { padding-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }

.journal-feature {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: 64px;
	align-items: end;
	max-width: var(--max);
	margin: 0 auto;
	padding: 24px var(--gutter) 0;
}
.journal-feature__image { display: block; aspect-ratio: 4 / 5; }
.journal-feature__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.journal-feature__title { font-size: clamp(32px, 3.4vw, 48px); font-weight: 400; letter-spacing: -0.033em; line-height: 1; text-wrap: balance; }
.journal-feature__copy .link-arrow { margin-top: 8px; }

.story-card__meta { font-size: 11px; font-weight: 500; letter-spacing: 0.145em; text-transform: uppercase; color: var(--earth); }

.journal__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 80px 24px;
	max-width: var(--max);
	margin: 0 auto;
	padding: 112px var(--gutter) 0;
	align-items: start;
}
.story-card { display: flex; flex-direction: column; gap: 16px; }
.story-card__image { display: block; aspect-ratio: 4 / 5; }
.journal__grid .story-card:nth-child(3n + 2) .story-card__image { aspect-ratio: 3 / 4; }
.story-card__title { font-size: 22px; font-weight: 400; letter-spacing: -0.022em; line-height: 1.15; text-wrap: balance; }
.journal__more { display: flex; justify-content: center; padding: 80px var(--gutter) 0; }
.journal { padding-bottom: 128px; }

.story-card__image img, .journal-feature__image img { transition: transform 900ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
	.story-card:has(a:hover) .story-card__image img, .journal-feature:has(a:hover) .journal-feature__image img { transform: scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
	.story-card__image img, .journal-feature__image img { transition: none; }
}

@media (max-width: 1024px) {
	.journal-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.journal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.journal__intro { gap: 24px; padding-bottom: 24px; }
	.journal-feature { padding-top: 8px; }
	.journal-feature__image { margin-inline: calc(-1 * var(--gutter)); }
	.journal__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 80px; }
	.journal__grid .story-card:nth-child(3n + 2) .story-card__image { aspect-ratio: 4 / 5; }
	.journal { padding-bottom: 96px; }
}

/* Article */
.article__head { display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: var(--max); margin: 0 auto; padding: 80px var(--gutter) 64px; text-align: center; }
.article__title { max-width: 16ch; font-size: clamp(40px, 5.6vw, 80px); font-weight: 400; letter-spacing: -0.038em; line-height: 0.96; text-wrap: balance; }
/* Binye photography is all portrait, so the hero stays portrait rather than cropping to a banner. */
.article__hero { display: flex; flex-direction: column; gap: 14px; width: min(720px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.article__hero-image { aspect-ratio: 4 / 5; }
.article__body { max-width: 736px; margin: 0 auto; padding: 96px var(--gutter) 0; }
.article__body .prose { max-width: none; font-size: 19px; line-height: 1.6; color: #2b2622; }
.article__body .prose > p:first-child { font-size: 22px; line-height: 1.5; color: var(--ink); }

.article__next { max-width: var(--max); margin: 0 auto; padding: 128px var(--gutter); }
.article__next-link { position: relative; display: flex; align-items: flex-end; min-height: 420px; padding: 40px; color: var(--bone); overflow: hidden; }
.article__next-image { position: absolute; inset: 0; }
.article__next-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(17 16 15 / 0.65), rgb(17 16 15 / 0) 70%); }
.article__next-image img { transition: transform 900ms var(--ease-out); }
.article__next-copy { position: relative; display: flex; flex-direction: column; gap: 12px; }
.article__next-copy .t-caption { color: var(--sand); }
.article__next-title { max-width: 22ch; font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }

@media (hover: hover) and (pointer: fine) {
	.article__next-link:hover .article__next-image img { transform: scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
	.article__next-image img { transition: none; }
}

@media (max-width: 720px) {
	.article__head { gap: 20px; padding: 40px var(--gutter) 40px; }
	.article__hero { width: 100%; }
	.article__hero .credit { padding: 0 var(--gutter); }
	.article__body { padding-top: 56px; }
	.article__body .prose { font-size: 17px; }
	.article__body .prose > p:first-child { font-size: 19px; }
	.article__next { padding: 96px 0; }
	.article__next-link { min-height: 360px; padding: 32px var(--gutter); }
}

/* 404 */
.not-found {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 40px;
	min-height: calc(100dvh - var(--header-h) - 36px);
	padding: 96px var(--gutter);
	text-align: center;
}
.mark--not-found { --mark-h: 96px; }
.not-found__text { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 720px; }
.not-found__text .t-lead { max-width: 520px; }
.not-found__title { font-size: clamp(36px, 4.4vw, 52px); font-weight: 400; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }

.not-found__search { display: flex; align-items: center; width: min(440px, 100%); border-bottom: 1px solid var(--ink); }
.not-found__search input { height: 48px; padding: 0; border: 0; background: transparent; }
.not-found__search button { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; }
.not-found__search .icon { width: 16px; height: 16px; }

.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 28px; }

@media (max-width: 720px) {
	.not-found { gap: 32px; padding: 64px var(--gutter); }
	.mark--not-found { --mark-h: 72px; }
}
