/*
Theme Name: ML Originals
Theme URI: https://shop.mauriceligon.com
Author: Maurice Ligon II
Author URI: https://mauriceligon.com
Description: A calm, gallery-first storefront for original paintings. The homepage drops visitors straight into the gallery wall; clicking a piece expands it in place with details and an Add to bag button. Black and white, hand-drawn accents, gentle motion. Built for WooCommerce.
Version: 2.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ml-originals
Tags: e-commerce, portfolio, custom-menu, featured-images, translation-ready
WC requires at least: 8.0
WC tested up to: 10.2
*/

/* ==========================================================================
   Fonts (self-hosted, SIL OFL 1.1)
   ========================================================================== */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Caveat";
	font-style: normal;
	font-display: swap;
	font-weight: 400 700;
	src: url("assets/fonts/caveat-latin-wght-normal.woff2") format("woff2-variations"), url("assets/fonts/caveat-latin-wght-normal.woff2") format("woff2");
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #141414;
	--paper: #F5F3EF;
	--paper-2: #ECE9E3;
	--muted: #6B6862;
	--line: rgba(20, 20, 20, .14);
	--gutter: clamp(18px, 4vw, 64px);
	--max: 1520px;
	--sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
	--ease: cubic-bezier(.22, .68, .18, 1);
	--ease-soft: cubic-bezier(.4, .1, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background-color: var(--paper);
	/* faint paper grain */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.mlo-locked { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	z-index: 1000; top: 8px; left: 8px; padding: 12px 16px; background: var(--ink); color: var(--paper);
}

.mlo-hand {
	font-family: var(--hand);
	font-weight: 500;
	font-size: 1.45em;
	line-height: 1.1;
	letter-spacing: 0;
}

.mlo-admin-hint { padding: 12px 14px; border: 1px dashed currentColor; font-size: 14px; opacity: .75; }

/* Hand-drawn strokes that draw themselves in */
.mlo-scribble {
	position: absolute; left: -4%; right: -4%; bottom: -9px;
	width: 108%; height: 10px; overflow: visible; pointer-events: none;
}
.mlo-scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .55s var(--ease-soft); }

/* ==========================================================================
   Buttons + links
   ========================================================================== */
.mlo-btn,
.button,
button.button,
input[type="submit"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	padding: 17px 30px;
	border: 1px solid var(--ink); border-radius: 999px;
	background: var(--ink); color: var(--paper);
	font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .04em; line-height: 1;
	text-decoration: none; cursor: pointer;
	transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.mlo-btn:hover, .button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
	background: transparent; color: var(--ink);
}
.mlo-btn:active { transform: scale(.98); }
.woocommerce a.button.alt, .woocommerce button.button.alt, .single_add_to_cart_button, .checkout-button, #place_order {
	background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important;
}
.single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover { background: transparent !important; color: var(--ink) !important; }
.button.disabled, .button:disabled, button:disabled, .mlo-btn[disabled] { opacity: .4; cursor: not-allowed; }

.mlo-textlink {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 15px; font-weight: 500; text-decoration: none;
}
.mlo-textlink .mlo-arrow { transition: transform .35s var(--ease); }
.mlo-textlink:hover .mlo-arrow { transform: translateX(5px); }

/* ==========================================================================
   Header
   ========================================================================== */
.mlo-header {
	position: sticky; top: 0; z-index: 40;
	background: rgba(245, 243, 239, .86);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transition: transform .45s var(--ease);
}
.mlo-header.is-hidden { transform: translateY(-100%); }
.admin-bar .mlo-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mlo-header { top: 0; } }

.mlo-header__inner {
	max-width: var(--max); margin: 0 auto;
	display: flex; align-items: center; gap: 32px;
	padding: 20px var(--gutter);
}

.mlo-brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; flex: none; }
.mlo-brand__mark {
	display: grid; place-items: center;
	width: 50px; height: 50px; border: 1.5px solid currentColor;
	font-stretch: 125%; font-variation-settings: "wdth" 125;
	font-weight: 700; font-size: 16px; letter-spacing: .14em; padding-left: .14em;
}
.mlo-brand__text { display: flex; flex-direction: column; gap: 6px; }
.mlo-brand__logo { display: block; flex: none; line-height: 0; }
.mlo-brand__logo-img { display: block; width: auto; height: var(--mlo-logo-h, 50px); max-width: min(320px, 60vw); object-fit: contain; }
.mlo-brand--footer .mlo-brand__logo-img { height: calc(var(--mlo-logo-h, 50px) * .8); }
.mlo-brand__name {
	font-stretch: 125%; font-variation-settings: "wdth" 125;
	font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: .22em; text-transform: uppercase;
}
.mlo-brand__sub { font-size: 10px; font-weight: 500; line-height: 1; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); }

.mlo-nav { margin-left: auto; }
.mlo-menu { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.mlo-menu a { text-decoration: none; font-size: 15px; font-weight: 400; }
.mlo-menu__label { position: relative; display: inline-block; }
.mlo-menu a:hover .mlo-scribble path,
.mlo-menu .current-menu-item .mlo-scribble path,
.mlo-home .mlo-menu li:first-child .mlo-scribble path { stroke-dashoffset: 0; }

.mlo-header__actions { display: flex; align-items: center; gap: 18px; }
.mlo-bag { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; text-decoration: none; }
.mlo-bag__count {
	display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
	border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 500;
	transition: background .3s, color .3s;
}
.mlo-bag.has-items .mlo-bag__count { background: var(--ink); color: var(--paper); }
.mlo-bag.is-bumped .mlo-bag__count { animation: mlo-bump .6s var(--ease); }
@keyframes mlo-bump { 30% { transform: scale(1.45) rotate(-8deg); } 60% { transform: scale(.92); } }

.mlo-nav-toggle { display: none; background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 15px; }
.mlo-nav-toggle__close { display: none; }

@media (max-width: 960px) {
	.mlo-header__inner { flex-wrap: wrap; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
	.mlo-header__actions { margin-left: auto; }
	.mlo-nav-toggle { display: inline-block; }
	.mlo-nav-toggle[aria-expanded="true"] .mlo-nav-toggle__open { display: none; }
	.mlo-nav-toggle[aria-expanded="true"] .mlo-nav-toggle__close { display: inline; }
	.mlo-nav { order: 4; flex-basis: 100%; margin: 0; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
	.mlo-nav > * { overflow: hidden; }
	.mlo-nav.is-open { grid-template-rows: 1fr; }
	.mlo-menu { flex-direction: column; gap: 4px; padding: 0; }
	.mlo-nav.is-open .mlo-menu { padding: 18px 0 10px; }
	.mlo-menu a { font-size: 34px; letter-spacing: -.02em; }
	.mlo-brand__mark { width: 42px; height: 42px; font-size: 14px; }
	.mlo-brand__logo-img { height: min(var(--mlo-logo-h, 50px), 44px); }
	.mlo-brand__name { font-size: 15px; letter-spacing: .18em; }
}
@media (max-width: 480px) {
	.mlo-brand { gap: 10px; }
	.mlo-brand__mark { width: 38px; height: 38px; font-size: 12px; }
	.mlo-brand__logo-img { height: min(var(--mlo-logo-h, 50px), 40px); max-width: 52vw; }
	.mlo-brand__name { font-size: 12.5px; letter-spacing: .12em; }
	.mlo-brand__sub { font-size: 8.5px; letter-spacing: .38em; }
	.mlo-bag__label { display: none; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.mlo-gallery { max-width: var(--max); margin: 0 auto; padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(80px, 10vw, 140px); }
.mlo-gallery__head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 28px; margin-bottom: clamp(18px, 3vw, 32px); }
.mlo-gallery__title {
	position: relative; margin: 0;
	font-size: clamp(44px, 6.4vw, 104px); font-weight: 300; letter-spacing: -.045em; line-height: .95;
}
/* soft painted swash behind the title */
.mlo-gallery__title::before {
	content: ""; position: absolute; z-index: -1; left: -3%; right: -8%; top: 46%; height: 46%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035 .6' numOctaves='3' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='14'/%3E%3C/filter%3E%3Cpath filter='url(%23r)' d='M8 34C70 18 150 14 230 18s130 10 162 4l-4 22C330 52 260 46 190 44S60 50 12 52z' fill='%23141414' fill-opacity='.08'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	transform-origin: left; animation: mlo-swash 1.2s .15s var(--ease) both;
}
@keyframes mlo-swash { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mlo-gallery__note { margin: 0 0 .5em; color: var(--muted); transform: rotate(-1.5deg); }
.mlo-statement { max-width: 60ch; color: var(--muted); font-size: 18px; flex-basis: 100%; margin-top: 18px; }

.mlo-filters { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-bottom: clamp(28px, 4vw, 52px); }
.mlo-filter {
	position: relative; padding: 6px 0; background: none; border: 0; cursor: pointer;
	font-size: 15px; color: var(--muted); transition: color .3s;
}
.mlo-filter span { position: relative; }
.mlo-filter .mlo-scribble { left: -6%; width: 112%; bottom: -2px; }
.mlo-filter:hover, .mlo-filter.is-active { color: var(--ink); }
.mlo-filter.is-active .mlo-scribble path, .mlo-filter:hover .mlo-scribble path { stroke-dashoffset: 0; }

/* The wall: natural proportions in flowing columns */
.mlo-wall { columns: 3 300px; column-gap: clamp(22px, 3.2vw, 56px); }
.mlo-piece { break-inside: avoid; margin: 0 0 clamp(36px, 5vw, 76px); }
.mlo-js .mlo-piece {
	opacity: 0; transform: translateY(40px) rotate(var(--tilt, 0deg));
	transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.mlo-js .mlo-piece.is-in { opacity: 1; transform: none; }
.mlo-piece.is-filtered-out { display: none; }

.mlo-piece__link { display: block; text-decoration: none; cursor: zoom-in; }
.mlo-piece__frame { position: relative; display: block; }
.mlo-piece__img, .mlo-piece__blank {
	width: 100%; height: auto; background: var(--paper-2);
	box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -24px rgba(0,0,0,.35);
	transition: transform .7s var(--ease), box-shadow .7s var(--ease), filter .6s;
}
.mlo-piece__blank { display: block; aspect-ratio: 4 / 5; }
.mlo-piece__sketch {
	/* stays inside the frame box (multi-column safe); the path itself is drawn just outside */
	position: absolute; inset: 0; width: 100%; height: 100%;
	overflow: visible; color: var(--ink); pointer-events: none;
}
.mlo-piece__sketch path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease-soft); }
.mlo-piece__link:hover .mlo-piece__img,
.mlo-piece__link:focus-visible .mlo-piece__img {
	transform: translateY(-6px);
	box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 34px 60px -30px rgba(0,0,0,.45);
}
.mlo-piece__link:hover .mlo-piece__sketch path,
.mlo-piece__link:focus-visible .mlo-piece__sketch path { stroke-dashoffset: 0; }
.mlo-piece__link:focus-visible { outline: none; }

.mlo-piece__caption {
	display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
	padding-top: 18px; font-size: 15px;
}
.mlo-piece__title { font-weight: 500; }
.mlo-piece__price { color: var(--muted); white-space: nowrap; }
.mlo-piece__price .mlo-hand { font-size: 22px; color: var(--ink); display: inline-block; transform: rotate(-3deg); }
.mlo-piece.is-collected .mlo-piece__img { filter: grayscale(1) contrast(.9); }
.mlo-piece.is-collected .mlo-piece__link:hover .mlo-piece__img { filter: grayscale(.2); }

.mlo-empty { color: var(--muted); font-size: 18px; }

/* Cursor follower */
.mlo-cursor {
	position: fixed; z-index: 60; left: 0; top: 0; pointer-events: none;
	width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ink); color: var(--paper);
	font-family: var(--hand); font-size: 22px;
	transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
	transition: transform .35s var(--ease);
}
.mlo-cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: hover) and (pointer: fine) { .mlo-has-cursor .mlo-piece__link { cursor: none; } }

/* ==========================================================================
   Expanded view
   ========================================================================== */
.mlo-viewer { position: fixed; inset: 0; z-index: 100; }
.mlo-viewer[hidden] { display: none; }
.mlo-viewer__backdrop {
	position: absolute; inset: 0; background: var(--paper);
	opacity: 0; transition: opacity .5s var(--ease);
}
.mlo-viewer.is-open .mlo-viewer__backdrop { opacity: 1; }
.mlo-viewer__panel {
	position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain;
	display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: clamp(28px, 4vw, 72px);
	max-width: var(--max); margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--gutter);
}
.mlo-viewer__close {
	position: fixed; z-index: 3; top: clamp(14px, 2vw, 26px); right: clamp(14px, 2vw, 26px);
	display: grid; place-items: center; width: 54px; height: 54px;
	background: var(--paper); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
	opacity: 0; transform: rotate(-90deg); transition: opacity .4s .2s, transform .6s .2s var(--ease), border-color .3s;
}
.mlo-viewer.is-open .mlo-viewer__close { opacity: 1; transform: none; }
.mlo-viewer__close:hover { border-color: var(--ink); }

.mlo-viewer__stage { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 2 * clamp(28px, 4vw, 56px)); }
.mlo-viewer__img {
	max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain;
	box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 40px 80px -40px rgba(0,0,0,.45);
	transition: opacity .35s;
}
.mlo-viewer__img.is-swapping { opacity: 0; }
.mlo-viewer__thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.mlo-viewer__thumbs button {
	width: 58px; height: 58px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .55;
	transition: opacity .3s, border-color .3s;
}
.mlo-viewer__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.mlo-viewer__thumbs button.is-active, .mlo-viewer__thumbs button:hover { opacity: 1; border-color: var(--ink); }

.mlo-viewer__info { align-self: center; padding: 40px 0; }
.mlo-viewer__info > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.mlo-viewer.is-open .mlo-viewer__info > * { opacity: 1; transform: none; }
.mlo-viewer.is-open .mlo-viewer__info > *:nth-child(2) { transition-delay: .06s; }
.mlo-viewer.is-open .mlo-viewer__info > *:nth-child(3) { transition-delay: .12s; }
.mlo-viewer.is-open .mlo-viewer__info > *:nth-child(4) { transition-delay: .18s; }
.mlo-viewer.is-open .mlo-viewer__info > *:nth-child(n+5) { transition-delay: .24s; }

.mlo-viewer__series { margin: 0 0 6px; color: var(--muted); transform: rotate(-1.5deg); }
.mlo-viewer__title { font-size: clamp(40px, 4.4vw, 72px); font-weight: 300; letter-spacing: -.04em; line-height: .98; margin-bottom: 18px; }
.mlo-viewer__price { font-size: 22px; margin-bottom: 22px; }
.mlo-viewer__price del { color: var(--muted); margin-right: 8px; }
.mlo-viewer__price ins { text-decoration: none; }
.mlo-viewer__short { color: var(--muted); font-size: 17px; }
.mlo-viewer__short p:last-child { margin-bottom: 0; }
.mlo-viewer__dims { font-size: 14px; color: var(--muted); letter-spacing: .04em; margin-top: 6px; }
.mlo-viewer__actions { margin: 28px 0 34px; }
.mlo-viewer__buy { width: 100%; padding: 21px 30px; font-size: 16px; }
.mlo-viewer__buy.is-collected { background: transparent; color: var(--ink); cursor: default; font-family: var(--hand); font-size: 26px; padding: 13px 30px; }
.mlo-viewer__after { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.mlo-viewer__after[hidden] { display: none; }
.mlo-viewer__after .mlo-btn { flex: 1; padding: 21px 30px; }
.mlo-viewer__msg { margin: 12px 0 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.mlo-viewer__desc { font-size: 16px; line-height: 1.75; padding-top: 26px; border-top: 1px solid var(--line); }
.mlo-viewer__more { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 36px; }
.mlo-viewer__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.mlo-viewer__nav button { background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 15px; }
.mlo-viewer__nav button:hover { text-decoration: underline; }
.mlo-viewer__count { color: var(--muted); font-family: var(--hand); font-size: 22px; }

/* The travelling image used for the expand animation */
.mlo-flyer {
	position: fixed; z-index: 101; margin: 0; pointer-events: none; object-fit: cover;
	box-shadow: 0 40px 80px -40px rgba(0,0,0,.45);
}

@media (max-width: 900px) {
	.mlo-viewer__panel { display: block; padding-top: 84px; }
	.mlo-viewer__stage { position: static; min-height: 0; }
	.mlo-viewer__img { max-height: 68vh; }
	.mlo-viewer__info { padding: 18px 0 40px; }
}

/* ==========================================================================
   Commissions
   ========================================================================== */
.mlo-commission {
	max-width: var(--max); margin: 0 auto;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 110px); align-items: start;
	padding: clamp(40px, 6vw, 100px) var(--gutter) clamp(80px, 10vw, 140px);
}
.mlo-commission__intro { position: sticky; top: 130px; }
.mlo-commission__hand { color: var(--muted); margin-bottom: 6px; transform: rotate(-2deg); display: inline-block; }
.mlo-commission__title { font-size: clamp(48px, 6vw, 96px); font-weight: 300; letter-spacing: -.045em; line-height: .98; margin-bottom: 28px; }
.mlo-commission__lede { font-size: 19px; line-height: 1.7; color: var(--muted); max-width: 44ch; margin-bottom: 40px; }
.mlo-steps { list-style: none; margin: 0; padding: 0; }
.mlo-steps li { display: flex; gap: 20px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--line); }
.mlo-steps span { font-family: var(--hand); font-size: 22px; min-width: 34px; color: var(--muted); }

.mlo-formcard { position: relative; padding: clamp(26px, 3.5vw, 56px); }
.mlo-formcard__sketch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mlo-formcard__sketch path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mlo-draw 1.8s .3s var(--ease-soft) forwards; }
@keyframes mlo-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
	.mlo-commission { grid-template-columns: 1fr; }
	.mlo-commission__intro { position: static; }
}

/* ==========================================================================
   Forms (base + common plugins)
   ========================================================================== */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="password"], input[type="search"], input[type="date"],
select, textarea {
	width: 100%; padding: 14px 2px;
	border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
	background: transparent; color: var(--ink);
	font: 400 18px/1.4 var(--sans);
	-webkit-appearance: none; appearance: none;
	transition: border-color .3s, padding .3s;
}
input:focus, select:focus, textarea:focus { outline: none; border-bottom-width: 2px; padding-bottom: 13px; }
textarea { min-height: 130px; resize: vertical; border: 1px solid var(--ink); padding: 14px; }
select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px;
}
::placeholder { color: #9a968f; }
label, .ff-el-input--label label, .gfield_label, .wpforms-field-label { display: block; margin-bottom: 4px; font-weight: 500 !important; font-size: 15px !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; }

.ff-el-progress, .gf_progressbar, .wpforms-page-indicator-page-progress-wrap { background: var(--line) !important; border-radius: 0 !important; height: 2px !important; }
.ff-el-progress-bar, .gf_progressbar_percentage, .wpforms-page-indicator-page-progress { background: var(--ink) !important; border-radius: 0 !important; height: 2px !important; transition: width .6s var(--ease); }
.ff-el-progress-bar span, .gf_progressbar_percentage span { display: none; }
.ff-el-progress-status, .gf_progressbar_title, .wpforms-page-indicator-page-title { font-family: var(--hand) !important; font-size: 22px !important; font-weight: 500; color: var(--muted); }

.ff-btn, .ff-btn-submit, .ff-btn-next, .ff-btn-prev,
.gform_button, .gform_next_button, .gform_previous_button,
.wpforms-submit, .wpforms-page-button,
.mailpoet_submit, .mc4wp-form input[type="submit"] {
	padding: 17px 30px !important; border: 1px solid var(--ink) !important; border-radius: 999px !important;
	background: var(--ink) !important; color: var(--paper) !important;
	font-family: var(--sans) !important; font-weight: 500 !important; font-size: 15px !important; letter-spacing: .04em;
	box-shadow: none !important; cursor: pointer; transition: background .3s, color .3s;
}
.ff-btn:hover, .gform_button:hover, .gform_next_button:hover, .wpforms-submit:hover, .wpforms-page-button:hover, .mailpoet_submit:hover,
.ff-btn-prev, .gform_previous_button, .wpforms-page-prev { background: transparent !important; color: var(--ink) !important; }

/* Size choices as quiet tiles (Fluent "button" style radios; add class mlo-size-cards in Gravity Forms / WPForms) */
.ff_list_buttons .ff-el-form-check label,
.mlo-size-cards .gfield_radio .gchoice label,
.mlo-size-cards .wpforms-field-radio li label {
	display: flex !important; align-items: center; justify-content: center;
	min-height: 92px; padding: 16px !important;
	border: 1px solid var(--line) !important; border-radius: 0 !important;
	background: transparent !important; color: var(--ink) !important;
	font-weight: 300 !important; font-size: 28px !important; letter-spacing: -.02em;
	cursor: pointer; transition: border-color .3s, background .3s, color .3s;
}
.ff_list_buttons .ff-el-form-check label:hover, .mlo-size-cards .gchoice label:hover, .mlo-size-cards .wpforms-field-radio li label:hover { border-color: var(--ink) !important; }
.ff_list_buttons .ff-el-form-check.ff_item_selected label,
.mlo-size-cards .gchoice input:checked + label,
.mlo-size-cards .wpforms-field-radio li.wpforms-selected label { background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important; }
.mlo-size-cards .gfield_radio, .mlo-size-cards .wpforms-field-radio ul { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mlo-size-cards .gchoice, .mlo-size-cards .wpforms-field-radio li { position: relative; }
.mlo-size-cards .gchoice input, .mlo-size-cards .wpforms-field-radio li input { position: absolute; opacity: 0; pointer-events: none; }

.ff_upload_btn, .gform_drop_area, .wpforms-uploader {
	border: 1px dashed var(--ink) !important; border-radius: 0 !important; background: transparent !important;
	padding: 34px !important; text-align: center; color: var(--ink) !important;
}
.ff_upload_btn.ff-btn { background: transparent !important; color: var(--ink) !important; border-radius: 0 !important; }

.mlo-signup { max-width: 520px; }
.mlo-signup form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.mlo-signup form > p, .mlo-signup .mailpoet_paragraph { margin: 0; }
.mlo-signup input[type="email"], .mlo-signup input[type="text"] { flex: 1 1 240px; }

/* ==========================================================================
   WooCommerce pages
   ========================================================================== */
.mlo-shop--single div.product {
	display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
	gap: clamp(32px, 5vw, 90px); align-items: start;
}
.mlo-shop--single div.product .woocommerce-product-gallery,
.mlo-shop--single div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
.mlo-shop--single div.product .summary { position: sticky; top: 120px; }
.mlo-shop--single .product_title { font-size: clamp(40px, 4.4vw, 72px); font-weight: 300; letter-spacing: -.04em; line-height: .98; }
.mlo-shop--single .summary .price { font-size: 22px !important; color: var(--ink) !important; margin-bottom: 20px; }
.mlo-shop--single .woocommerce-product-details__short-description { color: var(--muted); }
.mlo-shop--single .stock { font-family: var(--hand); font-size: 24px; color: var(--ink) !important; }
.mlo-shop--single form.cart { margin: 24px 0 30px; }
.mlo-shop--single form.cart .quantity { display: none; }
.mlo-shop--single .single_add_to_cart_button { width: 100%; padding: 21px !important; }
.mlo-shop--single .product_meta { padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.mlo-shop--single .product_meta > span { display: block; }
.mlo-shop--single .woocommerce-tabs, .mlo-shop--single .related, .mlo-shop--single .upsells { grid-column: 1 / -1; margin-top: 40px; }
.mlo-shop--single .related > h2, .mlo-shop--single .upsells > h2 { font-weight: 300; font-size: 40px; letter-spacing: -.03em; }
.woocommerce-tabs ul.tabs { display: flex; gap: 28px; list-style: none; padding: 0 !important; margin: 0 0 24px !important; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 0 !important; font-weight: 400; text-decoration: none; color: var(--muted); }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px !important; padding: 0; list-style: none; }
.flex-control-thumbs li { width: auto !important; float: none !important; }
.woocommerce ul.products { display: grid !important; gap: 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px !important; font-weight: 500; }
.woocommerce ul.products li.product .price { color: var(--muted) !important; }

@media (max-width: 900px) {
	.mlo-shop--single div.product { grid-template-columns: 1fr; }
	.mlo-shop--single div.product .summary { position: static; }
}

.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
	list-style: none; margin: 0 0 32px !important; padding: 16px 20px !important;
	border: 1px solid var(--line) !important; border-radius: 0 !important;
	background: transparent !important; color: var(--ink) !important;
}
.woocommerce-error { border-color: #A33 !important; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none !important; }
.woocommerce-message .button, .woocommerce-info .button { float: right; padding: 10px 18px; font-size: 13px; }

.mlo-page--wc .mlo-prose { max-width: none; }
.woocommerce table.shop_table { border: 0 !important; border-radius: 0 !important; border-collapse: collapse !important; }
.woocommerce table.shop_table th { font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top: 1px solid var(--line) !important; padding: 18px 10px !important; }
.woocommerce table.shop_table img { width: 80px; }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	border-radius: 999px !important; background: var(--ink) !important; color: var(--paper) !important; font-weight: 500 !important;
}
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-blocks-components-select__select { border-radius: 0 !important; }

/* ==========================================================================
   Pages, posts, prose
   ========================================================================== */
.mlo-section { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 110px) var(--gutter); }
.mlo-page__head { margin-bottom: clamp(28px, 4vw, 56px); }
.mlo-page__title { font-size: clamp(44px, 6.4vw, 104px); font-weight: 300; letter-spacing: -.045em; line-height: .98; margin: 0; }
.mlo-page__media { margin: 0 0 40px; }
.mlo-prose { max-width: 720px; font-size: 18px; line-height: 1.8; }
.mlo-prose h2 { font-size: 34px; font-weight: 300; margin-top: 1.6em; }
.mlo-prose h3 { font-size: 24px; font-weight: 400; margin-top: 1.4em; }
.mlo-prose blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 1px solid var(--ink); font-family: var(--hand); font-size: 30px; line-height: 1.25; }
.mlo-prose img { margin: 1.5em 0; }
.mlo-prose .alignwide { max-width: 1100px; }
.mlo-prose .alignfull { max-width: none; }
.mlo-kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.mlo-posts { display: grid; gap: 48px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mlo-post__media img { width: 100%; margin-bottom: 18px; }
.mlo-post__title { font-size: 28px; font-weight: 300; letter-spacing: -.02em; }
.mlo-post__title a { text-decoration: none; }

.nav-links { display: flex; gap: 10px; margin-top: 56px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.nav-links .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.mlo-search { display: flex; gap: 14px; align-items: flex-end; max-width: 520px; }
.mlo-404 .mlo-hand { color: var(--muted); }
.mlo-404 .mlo-page__title { margin-bottom: 28px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.mlo-footer { border-top: 1px solid var(--line); }
.mlo-footer__inner {
	max-width: var(--max); margin: 0 auto;
	display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px;
	padding: clamp(56px, 7vw, 100px) var(--gutter) 48px;
}
.mlo-footer__hand { color: var(--muted); margin-bottom: 6px; transform: rotate(-1.5deg); display: inline-block; font-size: 32px; }
.mlo-footer__copy { font-size: clamp(24px, 2.4vw, 34px); font-weight: 300; letter-spacing: -.02em; line-height: 1.25; max-width: 24ch; margin-bottom: 26px; }
.mlo-footer__nav { display: flex; flex-direction: column; justify-content: flex-end; gap: 30px; }
.mlo-footer__menu, .mlo-footer__social { list-style: none; margin: 0; padding: 0; }
.mlo-footer__menu a { display: inline-block; padding: 4px 0; font-size: 26px; font-weight: 300; letter-spacing: -.02em; text-decoration: none; }
.mlo-footer__menu a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.mlo-footer__social { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mlo-footer__social a { font-size: 14px; color: var(--muted); text-decoration: none; }
.mlo-footer__social a:hover { color: var(--ink); }
.mlo-footer__widgets { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.mlo-footer__base {
	max-width: var(--max); margin: 0 auto;
	display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
	padding: 26px var(--gutter) 34px; border-top: 1px solid var(--line);
}
.mlo-footer__legal { margin: 0; font-size: 13px; color: var(--muted); }
.mlo-brand--footer .mlo-brand__mark { width: 40px; height: 40px; font-size: 13px; }
.mlo-brand--footer .mlo-brand__name { font-size: 14px; }
.mlo-brand--footer .mlo-brand__sub { font-size: 9px; }
@media (max-width: 860px) { .mlo-footer__inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   WordPress core classes
   ========================================================================== */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption.wp-element-caption { font-size: 14px; color: var(--muted); margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.mlo-js .mlo-piece { opacity: 1; transform: none; }
	.mlo-cursor { display: none; }
}
