/* Marlow — storefront */

:root {
	--ink: #1a1814;
	--ink-soft: #3f3a34;
	--muted: #6e675e;
	--paper: #f3efe7;
	--paper-deep: #e7e0d4;
	--white: #fbfaf7;
	--line: #e3dcd0;
	--amber: var(--marlow-accent, #e6a317);
	--amber-deep: #8a5a09;
	--sale: #9f2d2d;
	--shadow: 0 18px 50px rgba(26, 24, 20, 0.12);
	--wrap: 1240px;
	--header: 76px;
	--sans: "Instrument Sans", "Helvetica Neue", sans-serif;
	--serif: Cardo, Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16.5px;
	line-height: 1.6;
	font-weight: 450;
}

body.marlow { padding-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.05;
	margin: 0 0 0.4em;
}

p { margin: 0 0 0.8em; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -40px;
	background: var(--ink);
	color: var(--paper);
	padding: 8px 12px;
	z-index: 100;
}

.skip-link:focus { top: 12px; }

:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 3px;
}

.marlow-wrap {
	width: min(var(--wrap), calc(100% - 40px));
	margin-inline: auto;
}

.marlow-kicker {
	margin: 0 0 8px;
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--amber-deep);
}

.marlow-button,
.marlow-text-link {
	text-decoration: none;
}

.marlow-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font-weight: 650;
	cursor: pointer;
}

.marlow-button--light { background: var(--paper); color: var(--ink); }

.marlow-text-link {
	font-weight: 650;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.marlow-icon { width: 22px; height: 22px; display: block; }

.marlow-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
	position: relative;
}

.marlow-note {
	background: #efe6cf;
	padding: 10px 12px;
	border-radius: 8px;
}

.marlow-note--bad { background: #f3d6d2; }

/* Announcement + header */

.marlow-announce {
	background: var(--ink);
	color: var(--paper);
	text-align: center;
	font-size: 0.82rem;
	letter-spacing: 0.02em;
}

.marlow-announce p { margin: 0; padding: 8px 16px; }

.marlow-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(251, 250, 247, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.marlow-header__bar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 20px;
	min-height: var(--header);
}

.marlow-header__menu { display: none; }

.marlow-logo__text {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.marlow-logo__mark {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--serif);
	font-size: 1.3rem;
	border-radius: 8px;
}

.marlow-logo__text strong { display: block; font-size: 1.05rem; letter-spacing: -0.03em; }
.marlow-logo__text small { display: block; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.62rem; }

.custom-logo-link img { max-height: 48px; width: auto; }

.marlow-nav__list,
.marlow-drawer__menu,
.marlow-footer__menu {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.marlow-nav__list a,
.marlow-drawer__menu a { text-decoration: none; font-weight: 600; }

.marlow-nav__list li { position: relative; }

.marlow-nav__list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 180px;
	padding: 10px 0;
	background: var(--white);
	border: 1px solid var(--line);
	list-style: none;
	z-index: 5;
}

.marlow-nav__list li:hover > .sub-menu,
.marlow-nav__list li:focus-within > .sub-menu { display: block; }

.marlow-nav__list .sub-menu a { display: block; padding: 8px 16px; }

.marlow-header__tools {
	display: flex;
	align-items: center;
	gap: 4px;
}

.marlow-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0 12px;
	min-width: 210px;
}

.marlow-search input[type="search"] {
	border: 0;
	background: transparent;
	width: 100%;
	min-height: 40px;
	padding: 0;
}

.marlow-search input[type="search"]:focus { outline: none; }

.marlow-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow);
	padding: 8px;
	z-index: 20;
}

.marlow-search__results a {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 10px;
	align-items: center;
	padding: 6px;
	text-decoration: none;
	border-radius: 8px;
}

.marlow-search__results a:hover { background: var(--paper); }

.marlow-search__results img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }

.marlow-search__results small { color: var(--muted); }

.marlow-wish-link,
.marlow-bottom a,
.marlow-bottom button { position: relative; }

.marlow-wish-count,
.marlow-cart-count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--sale);
	color: white;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.marlow-cart-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 6px;
	padding: 6px 12px 6px 8px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	cursor: pointer;
	position: relative;
}

.marlow-cart-chip .marlow-cart-count {
	position: static;
	background: var(--amber);
	color: var(--ink);
}

.marlow-cart-total { font-size: 0.82rem; font-weight: 650; }
.marlow-cart-total .woocommerce-Price-amount { font-weight: 650; }

/* Drawers */

.marlow-drawer[hidden] { display: none; }

.marlow-drawer {
	position: fixed;
	inset: 0;
	z-index: 60;
}

.marlow-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 24, 20, 0.45);
}

.marlow-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(420px, 100%);
	background: var(--white);
	padding: 18px 18px 28px;
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.marlow-drawer--cart .marlow-drawer__panel { left: auto; right: 0; }

.marlow-drawer__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.2rem;
}

.marlow-drawer__menu { flex-direction: column; gap: 0; }
.marlow-drawer__menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.marlow-drawer__menu .sub-menu { list-style: none; padding-left: 12px; }

.marlow-search--stack { min-width: 0; }

.marlow-bottom {
	display: none;
}

/* Sections */

.marlow-section { padding: 72px 0; }
.marlow-section--paper { background: var(--white); }
.marlow-section--ink { background: var(--ink); color: var(--paper); }
.marlow-section--ink .marlow-kicker { color: var(--amber); }

.marlow-section__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	margin-bottom: 28px;
}

.marlow-section__head h2,
.marlow-section--ink h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); max-width: 14ch; }

/* Hero */

.marlow-hero { position: relative; background: var(--ink); color: var(--paper); }

.marlow-hero__slide {
	display: grid;
	grid-template-columns: minmax(280px, 0.82fr) 1.18fr;
	min-height: 620px;
}

.marlow-hero__slide[hidden] { display: none; }

.marlow-hero__copy {
	padding: 72px 48px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
}

.marlow-hero__copy .marlow-kicker { color: var(--amber); }

.marlow-hero__copy h1 {
	font-size: clamp(3rem, 6vw, 5.4rem);
	font-style: italic;
	max-width: 10ch;
	margin-bottom: 12px;
}

.marlow-hero__text { max-width: 36ch; color: #ddd6cb; }

.marlow-hero__media {
	background: #c4a574 center/cover no-repeat;
	min-height: 320px;
}

.marlow-hero__controls {
	position: absolute;
	right: 20px;
	bottom: 20px;
	display: flex;
	gap: 8px;
}

.marlow-hero__controls button {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	display: grid;
	place-items: center;
	cursor: pointer;
}

.marlow-hero__controls button:first-child svg { transform: rotate(180deg); }

/* Categories, promos, collection */

.marlow-cats {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.marlow-cats a { text-decoration: none; }

.marlow-cats__media {
	display: block;
	aspect-ratio: 1;
	background: var(--paper-deep);
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 10px;
}

.marlow-cats__media img { width: 100%; height: 100%; object-fit: cover; }

.marlow-cats__fallback {
	display: grid;
	place-items: center;
	height: 100%;
	font-family: var(--serif);
	font-size: 2rem;
}

.marlow-cats__name { display: block; font-weight: 680; }
.marlow-cats__count { color: var(--muted); font-size: 0.85rem; }

.marlow-promos {
	display: grid;
	grid-template-columns: 1.3fr 0.9fr;
	gap: 16px;
}

.marlow-promo {
	position: relative;
	min-height: 320px;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	text-decoration: none;
	color: var(--paper);
	background: #2a2622;
}

.marlow-promo__media,
.marlow-collection__media {
	position: absolute;
	inset: 0;
	background: #c4a574 center/cover no-repeat;
}

.marlow-promo__copy,
.marlow-collection__copy {
	position: relative;
	z-index: 1;
	padding: 28px;
	background: linear-gradient(transparent, rgba(26, 24, 20, 0.72));
	width: 100%;
}

.marlow-promo__copy .marlow-kicker,
.marlow-collection__copy .marlow-kicker { color: var(--amber); }

.marlow-promo strong,
.marlow-collection strong {
	display: block;
	font-family: var(--serif);
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	font-weight: 400;
	line-height: 1.05;
	max-width: 16ch;
}

.marlow-collection {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	min-height: 380px;
	background: var(--ink);
	color: var(--paper);
	border-radius: 22px;
	overflow: hidden;
	text-decoration: none;
	position: relative;
}

.marlow-collection__copy {
	position: relative;
	background: transparent;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.marlow-collection__copy em {
	font-style: normal;
	color: #ddd6cb;
	max-width: 32ch;
}

.marlow-collection__media { position: relative; min-height: 240px; }

/* Quotes and posts */

.marlow-quotes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
}

.marlow-quotes blockquote {
	margin: 0 0 16px;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.45rem;
	line-height: 1.25;
}

.marlow-quotes p { margin: 0; }
.marlow-quotes strong { display: block; }
.marlow-quotes span { color: #c9c1b4; }

.marlow-posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.marlow-post { display: flex; flex-direction: column; }
.marlow-post__media { display: block; aspect-ratio: 4/3; background: var(--paper-deep); border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.marlow-post__media img { width: 100%; height: 100%; object-fit: cover; }
.marlow-post h2 { font-size: 1.7rem; }
.marlow-post h2 a { text-decoration: none; }
.marlow-post .marlow-kicker { color: var(--muted); }

.marlow-trust { border-top: 1px solid var(--line); background: var(--white); }
.marlow-trust ul {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	list-style: none;
	margin-block: 0;
	margin-inline: auto;
	padding: 28px 0;
}
.marlow-trust li { display: flex; gap: 14px; align-items: flex-start; }
.marlow-trust .marlow-icon { flex: none; margin-top: 1px; }
.marlow-trust strong { display: block; line-height: 1.3; }
.marlow-trust p { margin: 4px 0 0; color: var(--muted); text-wrap: pretty; line-height: 1.45; }

/* Footer */

.marlow-footer { background: var(--ink); color: #e7e1d8; padding-top: 56px; }
.marlow-footer a { text-decoration: none; }
.marlow-footer h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; }
.marlow-footer__brand { font-family: var(--serif); font-size: 2rem; color: white; }
.marlow-footer__grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr; gap: 32px; }
.marlow-footer__menu { flex-direction: column; gap: 8px; }
.marlow-footer__base { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding: 16px 0 22px; color: #b7b0a6; font-size: 0.88rem; }
.marlow-social { display: flex; gap: 10px; }
.marlow-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; display: grid; place-items: center; }

.marlow-news {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.marlow-news input[type="email"] {
	flex: 1;
	min-height: 46px;
	border: 0;
	border-radius: 999px;
	padding: 0 16px;
	background: #2c2925;
	color: white;
}

.marlow-news button { background: var(--amber); color: var(--ink); }

/* Inner pages */

.marlow-archive-hero { padding: 48px 0 20px; }
.marlow-archive-hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-style: italic; max-width: 16ch; }
.marlow-archive-hero__text { max-width: 46ch; color: var(--ink-soft); }

.marlow-loop { padding-bottom: 72px; }
.marlow-prose { max-width: 68ch; padding-bottom: 72px; }
.marlow-prose > *:first-child { margin-top: 0; }
.marlow-single__image { margin: 0 0 28px; border-radius: 18px; overflow: hidden; }
.marlow-single__image img { width: 100%; max-height: 560px; object-fit: cover; }
.marlow-single__body { padding-top: 10px; }

.marlow-missing { padding: 80px 0 100px; max-width: 640px; }
.marlow-missing h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); font-style: italic; }
.marlow-missing__actions { display: flex; gap: 18px; align-items: center; }

.marlow-about { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; padding-bottom: 80px; align-items: stretch; }
.marlow-about__lead { font-size: 1.2rem; align-self: center; }
.marlow-about__lead p:last-child { margin-bottom: 0; }
.marlow-about__media { position: relative; min-height: 420px; border-radius: 18px; background: #c4a574 center/cover no-repeat; }
.marlow-about__notes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 12px 0 0; padding: 0; }
.marlow-about__notes h2 { font-size: 1.8rem; font-style: italic; }
.marlow-about__notes p { margin: 0; color: var(--ink-soft); }
.marlow-about .marlow-prose { grid-column: 1 / -1; }

.marlow-contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; padding-bottom: 80px; }
.marlow-form { display: grid; gap: 14px; }
.marlow-form label { display: grid; gap: 6px; font-weight: 650; }
.marlow-form input,
.marlow-form textarea {
	border: 1px solid var(--line);
	background: var(--white);
	border-radius: 12px;
	padding: 12px 14px;
	font-weight: 450;
}

.marlow-comments { margin-top: 36px; }
.marlow-comment-list { padding-left: 18px; }

.nav-links,
.pagination,
.woocommerce-pagination { margin-top: 28px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers {
	display: inline-flex;
	min-width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	text-decoration: none;
	background: var(--white);
	border: 1px solid var(--line);
}
.page-numbers.current { background: var(--ink); color: var(--paper); }

.marlow-empty { color: var(--muted); }

@media (max-width: 1100px) {
	.marlow-cats { grid-template-columns: repeat(3, 1fr); }
	.marlow-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.marlow-header__menu { display: inline-flex; }
	.marlow-nav { display: none; }
	.marlow-header__bar { grid-template-columns: auto 1fr auto; }
	.marlow-header .marlow-search,
	.marlow-header .marlow-icon-btn,
	.marlow-cart-chip { display: none; }
	.marlow-header .marlow-header__menu { display: inline-flex; }
	.marlow-logo { justify-self: center; }
	.marlow-hero__slide { grid-template-columns: 1fr; min-height: 0; }
	.marlow-hero__copy { padding: 36px 22px 28px; }
	.marlow-hero__copy h1 { font-size: 3.1rem; }
	.marlow-promos,
	.marlow-collection,
	.marlow-quotes,
	.marlow-posts,
	.marlow-trust ul,
	.marlow-about,
	.marlow-about__notes,
	.marlow-contact { grid-template-columns: 1fr; }
	.marlow-section { padding: 48px 0; }
	.marlow-bottom {
		display: grid;
		grid-template-columns: 1fr 1fr;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 45;
		background: var(--ink);
		color: var(--paper);
	}
	.marlow-bottom a,
	.marlow-bottom button {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 58px;
		background: transparent;
		border: 0;
		color: inherit;
		text-decoration: none;
		cursor: pointer;
	}
	.marlow-bottom .marlow-cart-count,
	.marlow-bottom .marlow-wish-count { position: static; }
	body.marlow { padding-bottom: 58px; }
	.marlow-wrap { width: min(var(--wrap), calc(100% - 28px)); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.marlow-card__media img,
	.marlow-hero__slide { transition: none; }
}
