/* SetupSociety */

/* ---------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------- */
:root {
	--paper: #f3f4f6;
	--surface: #ffffff;
	--ink: #14161a;
	--muted: #5d626b;
	--line: #e0e3e8;
	--accent: #3a34ee;
	--accent-soft: #e9e8fe;

	--font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--gutter: clamp(16px, 4vw, 40px);
	--max: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }

/* ---------------------------------------------------------------
 * Header
 * ------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(243, 244, 246, 0.9);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.brand-dot {
	width: 12px; height: 12px; border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.nav-list, .footer-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav-list a { text-decoration: none; font-weight: 500; font-size: 16px; }
.nav-list .current-menu-item > a, .nav-list a:hover { color: var(--accent); }

.nav-toggle {
	display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before {
	content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { left: 0; right: 0; top: -7px; box-shadow: 0 14px 0 var(--ink); }

@media (max-width: 720px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none; position: absolute; top: 68px; left: 0; right: 0;
		background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
	}
	.site-nav.is-open { display: block; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
}

/* ---------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 24px; border-radius: 999px;
	background: var(--ink); color: #fff; text-decoration: none;
	font-weight: 600; font-size: 16px; border: 1.5px solid var(--ink);
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); }

.text-link { font-weight: 600; font-size: 15px; }

/* ---------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}

.hero-title {
	font-size: clamp(42px, 7vw, 96px);
	line-height: 0.98;
	letter-spacing: -0.04em;
	max-width: 14ch;
}

.hero-lede { margin: 28px 0 0; max-width: 34ch; font-size: clamp(18px, 2vw, 21px); color: var(--muted); }

.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-look { position: relative; }
.hero-caption {
	display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
	margin-top: 14px; text-decoration: none; font-weight: 600; font-size: 15px;
}
.hero-caption-cta { color: var(--accent); }
.hero-caption:hover .hero-caption-cta { text-decoration: underline; }

@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-title { max-width: none; }
	.hero-look { max-width: 520px; }
}

/* ---------------------------------------------------------------
 * Look photo + pins  (the signature element)
 * ------------------------------------------------------------- */
.look-photo {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: #dfe2e8;
	aspect-ratio: 4 / 5;
}
.look-stage .look-photo { aspect-ratio: 16 / 11; }

.look-img { width: 100%; height: 100%; object-fit: cover; }
.look-img--empty {
	background:
		linear-gradient(180deg, transparent 58%, rgba(20, 22, 26, 0.07) 58%),
		linear-gradient(135deg, #e6e8ee, #d3d7e0);
}

.pin {
	position: absolute; transform: translate(-50%, -50%);
	width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
	background: #fff; color: var(--ink); cursor: pointer;
	font: 600 13px/1 var(--font-body);
	box-shadow: 0 2px 10px rgba(20, 22, 26, 0.25);
	display: grid; place-items: center;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.pin::after {
	content: ""; position: absolute; inset: -6px; border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	animation: pin-ring 2.6s ease-out infinite;
}
.pin:hover, .pin.is-active { background: var(--accent); color: #fff; transform: translate(-50%, -50%) scale(1.12); }
.look-photo--demo .pin { cursor: default; }

@keyframes pin-ring {
	0%   { transform: scale(0.8); opacity: 0.9; }
	70%  { transform: scale(1.35); opacity: 0; }
	100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.pin::after { animation: none; opacity: 0.6; }
	html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------- */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section--first { padding-top: clamp(32px, 5vw, 64px); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }

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

/* ---------------------------------------------------------------
 * Grid + cards
 * ------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* First card on the home grid leads the row */
.section .grid > .card:first-child { grid-column: span 2; grid-row: span 2; }
.section .grid--three > .card:first-child, .section .grid--flat > .card:first-child { grid-column: auto; grid-row: auto; }

.card-link { display: block; text-decoration: none; }
.card-media {
	position: relative; display: block; overflow: hidden; border-radius: var(--radius);
	aspect-ratio: 4 / 5; background: #dfe2e8;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card-link:hover .card-media img { transform: scale(1.03); }
.card-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #e6e8ee, #d3d7e0); }

.card-count {
	position: absolute; left: 12px; bottom: 12px;
	background: rgba(255, 255, 255, 0.94); color: var(--ink);
	padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
}

.card-title { margin-top: 14px; font-size: 20px; letter-spacing: -0.015em; line-height: 1.2; }
.section .grid:not(.grid--flat):not(.grid--three) > .card:first-child .card-title { font-size: clamp(24px, 2.6vw, 32px); }
.card-link:hover .card-title { color: var(--accent); }

@media (max-width: 960px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.grid, .grid--three { gap: 24px 12px; }
	.section .grid > .card:first-child { grid-column: span 2; grid-row: auto; }
	.card-title { font-size: 17px; }
}

/* ---------------------------------------------------------------
 * Gear index (typographic list)
 * ------------------------------------------------------------- */
.section--index { background: var(--surface); border-top: 1px solid var(--line); }

.index { list-style: none; margin: 0; padding: 0; }
.index li { border-top: 1px solid var(--line); }
.index li:last-child { border-bottom: 1px solid var(--line); }
.index a {
	display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
	padding: 22px 4px; text-decoration: none;
	transition: padding 0.2s;
}
.index-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 4.2vw, 52px); letter-spacing: -0.03em; line-height: 1.05; }
.index-count { color: var(--muted); font-size: 15px; white-space: nowrap; }
.index a:hover { color: var(--accent); padding-left: 16px; }

/* ---------------------------------------------------------------
 * Archive
 * ------------------------------------------------------------- */
.archive-head { margin-bottom: 28px; }
.archive-head h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.035em; }
.archive-desc { margin-top: 14px; color: var(--muted); max-width: 52ch; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
	padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
	text-decoration: none; font-size: 15px; font-weight: 500;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }

.pagination { margin-top: 48px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-numbers {
	min-width: 40px; height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500;
}
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------------------------------------------------------
 * Single setup (shop the look)
 * ------------------------------------------------------------- */
.look { padding: clamp(24px, 4vw, 56px) 0 0; }

.look-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}

.look-stage { position: sticky; top: 92px; }

.look-title { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.035em; }
.look-excerpt { margin: 14px 0 0; color: var(--muted); }
.look-disclosure { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.products { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }

.product {
	display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: start;
	padding: 18px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line);
	border-radius: var(--radius-sm);
	transition: background 0.15s;
}
.product.is-active { background: var(--accent-soft); }

.product-num {
	width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
	display: grid; place-items: center; font-size: 13px; font-weight: 600;
}
.product.is-active .product-num { background: var(--accent); }

.product-name { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.product-note { margin: 4px 0 0; font-size: 15px; color: var(--muted); line-height: 1.45; }

.product-buy {
	align-self: center; white-space: nowrap; text-decoration: none;
	padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--ink);
	font-size: 14px; font-weight: 600;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.product-buy:hover { background: var(--ink); color: #fff; }
.product-price { opacity: 0.65; margin-left: 4px; font-weight: 500; }

.look-tags { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }

@media (max-width: 960px) {
	.look-grid { grid-template-columns: 1fr; }
	.look-stage { position: static; }
}
@media (max-width: 480px) {
	.product { grid-template-columns: 34px minmax(0, 1fr); }
	.product-buy { grid-column: 2; justify-self: start; margin-top: 6px; }
}

/* ---------------------------------------------------------------
 * Articles / prose
 * ------------------------------------------------------------- */
.article { padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 7vw, 96px); }
.article-head h1 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -0.035em; }
.article-meta { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.article-hero { margin: 32px 0 0; }
.article-hero img { border-radius: var(--radius); width: 100%; }

.prose { margin-top: 36px; }
.look .prose { padding-top: 56px; padding-bottom: 24px; margin-top: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.8em; }
.prose h3 { font-size: 22px; margin-top: 1.6em; }
.prose img { border-radius: var(--radius-sm); }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--muted); }

.post-list { display: grid; gap: 32px; }
.post-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; }
.post-row-media img { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post-row h2 { font-size: 26px; }
.post-row h2 a { text-decoration: none; }
.post-row p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 560px) { .post-row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 40px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.footer-brand .brand-name { font-size: 22px; }
.footer-brand p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.footer-list { gap: 22px; flex-wrap: wrap; }
.footer-list a { text-decoration: none; font-size: 15px; }
.footer-disclosure, .footer-copy { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); max-width: 70ch; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
 * Setup scanner
 * ------------------------------------------------------------- */
[hidden] { display: none !important; }

.hero-copy { margin-bottom: clamp(28px, 4vw, 48px); }

.scanner { position: relative; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Dropzone */
.dropzone {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 8px; min-height: clamp(260px, 36vw, 380px); padding: 40px 24px; text-align: center;
	border: 2px dashed #b7bcc7; border-radius: calc(var(--radius) + 6px); background: var(--surface);
	cursor: pointer; overflow: hidden;
	transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover, .dropzone.is-over, .dropzone:focus-within { border-color: var(--accent); background: #fbfbff; }
.dropzone.is-over { background: var(--accent-soft); }
.dropzone-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }

.dropzone-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.6vw, 42px); letter-spacing: -0.03em; line-height: 1.1; }
.dropzone-sub { color: var(--muted); font-size: 17px; }
.dropzone-fine { color: var(--muted); font-size: 14px; margin-top: 10px; }

.dropzone-art { position: relative; width: 120px; height: 64px; margin-bottom: 14px; }
.dz-pin {
	position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
	display: grid; place-items: center; font-size: 12px; font-weight: 600;
	transition: transform 0.25s;
}
.dz-pin--a { left: 6px; top: 22px; }
.dz-pin--b { left: 46px; top: 2px; background: var(--accent); }
.dz-pin--c { left: 86px; top: 28px; }
.dropzone:hover .dz-pin--a, .dropzone.is-over .dz-pin--a { transform: translateY(-6px); }
.dropzone:hover .dz-pin--b, .dropzone.is-over .dz-pin--b { transform: translateY(6px); }
.dropzone:hover .dz-pin--c, .dropzone.is-over .dz-pin--c { transform: translateY(-8px); }

.scanner-error {
	margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-sm);
	background: #fdecec; color: #8a1c1c; font-weight: 500; font-size: 15px;
}

/* Busy */
.scanner-busy { display: grid; justify-items: center; gap: 20px; padding: 8px 0 24px; }
.busy-photo {
	position: relative; overflow: hidden; border-radius: var(--radius);
	max-width: 560px; width: 100%; background: #dfe2e8;
}
.busy-photo img { width: 100%; max-height: 62vh; object-fit: contain; background: #dfe2e8; }
.scanline {
	position: absolute; left: 0; right: 0; height: 90px; top: -90px;
	background: linear-gradient(180deg, transparent, rgba(58, 52, 238, 0.28) 70%, rgba(58, 52, 238, 0.9));
	border-bottom: 2px solid var(--accent);
	animation: scan 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes scan { 0% { top: -90px; } 100% { top: 100%; } }
.busy-text { margin: 0; font-weight: 600; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
	.scanline { animation: none; top: 0; height: 100%; opacity: 0.18; background: var(--accent); border: 0; }
}

/* Results */
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.results-title { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.035em; outline: none; }
.results-style { margin: 8px 0 0; color: var(--muted); }
.results-remaining { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.results-grid { align-items: start; }
.results-photo { aspect-ratio: auto; background: #dfe2e8; position: sticky; top: 92px; }
.results-photo .look-img { height: auto; display: block; }
.product-meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .results-photo { position: static; } }

/* WordPress alignment helpers */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
