/*
 * DavidSW Theme - The Collector's Edit (homepage)
 *
 * Loaded only on pages whose content carries the Edit (the dsw-edit-slider
 * class or an Edit row; inc/frontend/motion.php). Printed at wp_head 102,
 * after dsw-motion.css, so the hero's overrides of the banner motion win.
 * Markup: inc/edit/render.php. Spec: docs/collectors-edit-plan.md.
 *
 * Breakpoints are Flatsome's: phone up to 549px, tablet 550-849px, desktop
 * from 850px.
 */

/* Raleway, variable (weights 100-900), latin, Google Fonts v37, shipped in the
 * theme under its own family name so no other page is affected (SIL Open Font
 * License, fonts/OFL.txt). The URL must stay identical to the preload in
 * inc/frontend/motion.php. */
@font-face {
	font-family: "DSW Raleway";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/raleway-v37-latin-wght.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.dsw-edit-hero,
.dsw-edit {
	--dsw-edit-ink: #121212;
	--dsw-edit-night: #0c0c0d;
	--dsw-edit-paper: #f3f1ed;
	--dsw-edit-cream: #ede9e2;
	--dsw-edit-gold: #c9b08a;
	--dsw-edit-bronze: #7a6a52;
	--dsw-edit-muted: #4a453f;
	--dsw-edit-head: "DSW Raleway", Arial, "Helvetica Neue", sans-serif;
	/* Chosen by the owner on 2026-11-12 from the demo page's variants: the
	 * headline at weight 300 (not 200) and lining numerals for prices and
	 * references (Raleway's own default is old-style). */
	--dsw-edit-title-weight: 300;
	font-variant-numeric: lining-nums;
	font-kerning: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* =====================================================================
 * The hero: slide 1 of the weekly banner sliders
 * ===================================================================== */

/* As tall as the weekly banners at every size (PHP copies their heights into
 * these variables), so the slider never changes height between slides. */
.dsw-edit-hero {
	position: relative;
	width: 100%;
	height: var(--dsw-edit-h-sm, 820px);
	overflow: hidden;
	background:
		radial-gradient(ellipse 60% 70% at 72% 52%, rgba(201, 176, 138, .16), rgba(201, 176, 138, 0) 62%),
		var(--dsw-edit-night);
	color: var(--dsw-edit-cream);
	font-family: Lato, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 550px) {
	.dsw-edit-hero { height: var(--dsw-edit-h-md, 100vh); }
}

@media (min-width: 850px) {
	.dsw-edit-hero { height: var(--dsw-edit-h, 100vh); }
}

.dsw-edit-hero--full { min-height: 550px; }

/* Text and art sit in separate cells, so they cannot collide at in-between
 * widths. Phones and tablets: text above art. */
.dsw-edit-hero__grid {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 18px;
	height: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding: 44px 20px 46px;
}

.dsw-edit-hero__text {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 18px;
	position: relative;
	z-index: 2;
	white-space: normal;
}

.dsw-edit-hero__kicker,
.dsw-edit-hero__line,
.dsw-edit-hero__actions,
.dsw-edit-hero__title {
	margin: 0;
	padding: 0;
}

.dsw-edit-hero__kicker {
	color: var(--dsw-edit-gold);
	font-size: 12px;
	letter-spacing: .24em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* Each headline line is its own no-wrap block, sized so the longest line
 * ("new arrivals,") fits in either font with slack: the font arriving can
 * neither re-wrap the headline nor change the slide's height. */
.dsw-edit-hero__title {
	color: var(--dsw-edit-cream);
	font-family: var(--dsw-edit-head);
	font-size: clamp(34px, 10.5vw, 56px);
	font-weight: var(--dsw-edit-title-weight);
	letter-spacing: -.01em;
	line-height: 1.04;
	text-transform: none;
}

.dsw-edit-hero__title span {
	display: block;
	white-space: nowrap;
}

.dsw-edit-hero__line {
	color: #b8b3ab;
	font-size: 16px;
	line-height: 1.6;
	max-width: 460px;
}

.dsw-edit-hero__cta,
.dsw-edit-hero__cta:visited {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	box-sizing: border-box;
	padding: 0 26px;
	border: 1px solid var(--dsw-edit-gold);
	color: var(--dsw-edit-cream);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
}

.dsw-edit-hero__cta:hover,
.dsw-edit-hero__cta:focus-visible {
	background: var(--dsw-edit-gold);
	color: var(--dsw-edit-night);
}

.dsw-edit-hero a:focus-visible {
	outline: 2px solid var(--dsw-edit-cream);
	outline-offset: 3px;
}

.dsw-edit-hero__art {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 0;
	margin: 0;
}

/* The square stage the watch layers are placed on (positions from PHP). It
 * must stay square: the layers are placed by percentages of it. On phones and
 * tablets the art cell's own size bounds it (container units), so a short
 * screen shrinks the square instead of squashing it. */
.dsw-edit-hero__stage {
	position: relative;
	flex: 0 0 auto;
	width: min(100%, 400px);
	aspect-ratio: 1 / 1;
}

@supports (container-type: size) {
	@media (max-width: 849px) {
		.dsw-edit-hero__art { container-type: size; }
		.dsw-edit-hero__stage { width: min(100cqw, 100cqh, 400px); }
		.dsw-edit-hero--watch .dsw-edit-hero__stage { width: min(100cqw, calc(100cqh - 60px), 400px); }
	}
}

.dsw-edit-hero__stage::before {
	content: "";
	position: absolute;
	inset: -8%;
	pointer-events: none;
	background: radial-gradient(circle at 50% 50%, rgba(201, 176, 138, .22) 0%, rgba(201, 176, 138, .05) 34%, rgba(12, 12, 13, 0) 64%);
}

.dsw-edit-hero__caption {
	color: #a7a198;
	font-size: 14px;
	letter-spacing: .02em;
	line-height: 1.5;
	text-align: center;
}

.dsw-edit-hero__caption a,
.dsw-edit-hero__caption a:visited {
	color: inherit;
	text-decoration: none;
}

.dsw-edit-hero__caption a:hover { color: var(--dsw-edit-gold); }

@media (min-width: 850px) {
	.dsw-edit-hero__grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px;
		align-items: center;
		padding: 48px 32px 56px;
	}

	.dsw-edit-hero__text { gap: 26px; }
	.dsw-edit-hero__title { font-size: clamp(40px, 5.2vw, 76px); }
	.dsw-edit-hero__line { font-size: 18px; line-height: 1.65; }
	.dsw-edit-hero__stage { width: min(100%, 62vh, 600px); }
}

/* --- Inside the banner motion (css/dsw-motion.css, js/dsw-motion.js) --- */

/* The stage is the layer box: no cover-sizing, no dust, no light layer. */
.dsw-motion.dsw-edit-hero .banner-inner .banner-layers {
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

.dsw-motion.dsw-edit-hero .banner-inner {
	overflow: visible;
}

/* On screen before any script runs: slide 1 does not replay its entrance
 * when the slider starts (dsw-motion.js removes dsw-first once it leaves). */
.dsw-motion.dsw-edit-hero.dsw-first .dsw-layer .img-inner {
	animation: none !important;
	opacity: 1;
}

.dsw-edit-hero .dsw-layer picture {
	display: block;
}

.dsw-edit-hero .dsw-layer img {
	filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55));
}

/* A hidden slide must not take keyboard focus. */
.slider-type-fade .flickity-slider > .dsw-edit-hero:not(.is-selected) {
	visibility: hidden;
	transition: opacity 0s .9s, visibility 0s .9s;
}

/* =====================================================================
 * The Edit rows
 * ===================================================================== */

.dsw-edit {
	box-sizing: border-box;
	width: 100%;
	font-family: Lato, "Helvetica Neue", Arial, sans-serif;
}

.dsw-edit *,
.dsw-edit *::before,
.dsw-edit *::after {
	box-sizing: border-box;
}

.dsw-edit__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
	max-width: 1360px;
	margin: 0 auto;
	padding: 56px 16px;
}

.dsw-edit__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid currentColor;
}

.dsw-edit .dsw-edit__h {
	margin: 0;
	color: inherit;
	font-family: var(--dsw-edit-head);
	font-size: clamp(30px, 6vw, 44px);
	font-weight: 300;
	letter-spacing: 0;
	line-height: 1.15;
	text-transform: none;
}

.dsw-edit__count {
	margin: 0;
	color: #5c564d;
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.dsw-edit p {
	margin: 0;
}

.dsw-edit__kicker {
	display: block;
	margin: 0;
	color: var(--dsw-edit-bronze);
	font-size: 11px;
	letter-spacing: .2em;
	line-height: 1.5;
	text-transform: uppercase;
}

.dsw-edit__price {
	display: block;
	margin: 0;
	font-weight: 700;
	font-size: 15px;
}

.dsw-edit a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* This week's Edit: light band. */
.dsw-edit-picks {
	background: var(--dsw-edit-paper);
	color: var(--dsw-edit-ink);
}

.dsw-edit-picks .dsw-edit__head { border-bottom-color: var(--dsw-edit-ink); }

/* Features 01 and 06: image above text on phones and tablets (capped), side
 * by side on desktop with 06 mirrored. The HTML order stays image, then text. */
.dsw-edit-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: center;
}

.dsw-edit-feature__img {
	display: block;
	width: 100%;
	max-width: 600px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fff;
}

.dsw-edit-feature__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dsw-edit-feature__text {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 480px;
}

.dsw-edit .dsw-edit-feature__title {
	margin: 0;
	color: inherit;
	font-family: var(--dsw-edit-head);
	font-size: clamp(28px, 5vw, 40px);
	font-weight: 300;
	letter-spacing: 0;
	line-height: 1.1;
	text-transform: none;
}

.dsw-edit-feature__title a,
.dsw-edit-feature__title a:visited {
	color: inherit;
	text-decoration: none;
}

.dsw-edit-feature__note {
	color: var(--dsw-edit-muted);
	font-size: 17px;
	line-height: 1.6;
}

.dsw-edit-feature .dsw-edit__price {
	font-family: var(--dsw-edit-head);
	font-size: 26px;
	font-weight: 400;
}

.dsw-edit__button,
.dsw-edit__button:visited {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 26px;
	background: var(--dsw-edit-ink);
	color: var(--dsw-edit-paper);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
}

.dsw-edit__button:hover,
.dsw-edit__button:focus-visible {
	background: var(--dsw-edit-bronze);
	color: #fff;
}

/* Cards: 2 x 2 on phones and tablets, 4 across on desktop. */
.dsw-edit-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dsw-edit-card {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dsw-edit-card a,
.dsw-edit-card a:visited {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}

.dsw-edit-card__img {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #fff;
}

.dsw-edit-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.dsw-edit-card a:hover .dsw-edit-card__img img { transform: scale(1.03); }

.dsw-edit-card__title {
	font-family: var(--dsw-edit-head);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
}

.dsw-edit-card__note {
	color: var(--dsw-edit-muted);
	font-size: 14px;
	line-height: 1.55;
}

/* Latest arrivals: dark band, square photos. */
.dsw-edit-new {
	background: var(--dsw-edit-night);
	color: var(--dsw-edit-cream);
}

.dsw-edit-new .dsw-edit__head { border-bottom-color: #26252a; }
.dsw-edit-new .dsw-edit__kicker { color: #a7a198; }
.dsw-edit-new .dsw-edit-card__img { aspect-ratio: 1 / 1; }
.dsw-edit-new .dsw-edit-card__title { font-family: inherit; font-size: 15px; line-height: 1.4; }

.dsw-edit__more,
.dsw-edit__more:visited {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--dsw-edit-cream);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid var(--dsw-edit-gold);
}

.dsw-edit__more:hover { color: var(--dsw-edit-gold); }

@media (min-width: 550px) {
	.dsw-edit__inner { padding: 72px 24px; gap: 52px; }
	.dsw-edit-cards { gap: 32px 24px; }
	.dsw-edit-card__title { font-size: 19px; }
}

@media (min-width: 850px) {
	.dsw-edit__inner { padding: 88px 32px; gap: 64px; }

	.dsw-edit-feature {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 56px;
	}

	.dsw-edit-feature__img { max-width: none; }
	.dsw-edit-feature--flip .dsw-edit-feature__img { order: 2; }
	.dsw-edit-feature--flip .dsw-edit-feature__text { justify-self: end; }

	.dsw-edit-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	/* Fewer than four close up rather than leaving holes. */
	.dsw-edit-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dsw-edit-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dsw-edit-cards--1 { grid-template-columns: minmax(0, 360px); }
}

@media (prefers-reduced-motion: reduce) {
	.dsw-edit-card__img img { transition: none; }
}
