/* ==========================================================================
   Taggly — swing tags on a pegboard
   Forest drenches the frame, lime is the sticker + "Grab it", tomato only
   ever marks a price drop. Tags are white, notched, punched and hung.
   ========================================================================== */

:root {
	--forest: #0f3b2c;
	--forest-2: #15503c;
	--forest-3: #22684f;
	--on-forest: #f3f8f1;
	--on-forest-2: #b5ccbf;
	--lime: #c8f169;
	--lime-2: #d9f89a;
	--lime-ink: #0f2a1f;
	--tomato: #ff5b3a;
	--tomato-ink: #b8321a;
	--ground: #eef2ea;
	--tag: #ffffff;
	--ink: #10231b;
	--ink-2: #45584e;
	--ink-3: #687a70;
	--line: #d5dfd3;
	--line-2: #e6ece3;
	--string: #9fb2a6;
	--peach: #ffd8c7;
	--mint: #c2ead8;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--gutter: clamp(16px, 4vw, 40px);
	--max: 1240px;
	--notch: 22px;
	--display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
	--body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* aliases used by the shared admin view */
	--abyss: var(--forest);
	--abyss-2: var(--forest-2);
	--abyss-3: var(--forest-3);
	--on-abyss: var(--on-forest);
	--on-abyss-2: var(--on-forest-2);
	--sonar: var(--lime);
	--paper: var(--ground);
	--white: #ffffff;
	--neg: var(--tomato-ink);
	--pos: #1d7a4e;
	--shadow-lift: 0 2px 4px rgba(16, 35, 27, 0.08), 0 22px 40px -16px rgba(16, 35, 27, 0.35);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scrollbar-color: var(--forest-3) var(--ground);
}

body {
	margin: 0;
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--ground);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

::selection {
	background: var(--lime);
	color: var(--lime-ink);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-underline-offset: 0.2em;
}

svg {
	width: 1em;
	height: 1em;
	flex: none;
}

:focus-visible {
	outline: 3px solid var(--forest-3);
	outline-offset: 2px;
	border-radius: 6px;
}
.hero :focus-visible,
.foot :focus-visible,
.sheet :focus-visible {
	outline-color: var(--lime);
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--display);
	line-height: 1.05;
	text-wrap: balance;
	letter-spacing: -0.02em;
}

p {
	margin: 0;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	background: var(--lime);
	color: var(--lime-ink);
	padding: 10px 14px;
	border-radius: 999px;
	font-weight: 700;
}
.skip:focus {
	top: 12px;
}

.wrap {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* ---------- Buttons / pills ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 50px;
	padding: 0 1.4rem;
	border-radius: 999px;
	border: 0;
	font-family: var(--body);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s, transform 0.25s var(--ease);
}
.btn--lime {
	background: var(--lime);
	color: var(--lime-ink);
}
.btn--lime:hover {
	background: var(--lime-2);
	transform: translateY(-1px) rotate(-1deg);
}
.btn--forest {
	background: var(--forest);
	color: var(--on-forest);
}
.btn--forest:hover {
	background: var(--forest-3);
}
.btn--wide {
	width: 100%;
}

.pill,
.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	min-height: 40px;
	padding: 0 1rem;
	border-radius: 999px;
	background: var(--tag);
	border: 1.5px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.925rem;
	white-space: nowrap;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.pill:hover,
.chip:hover {
	border-color: var(--forest);
}
.pill.is-on,
.chip.is-on {
	background: var(--forest);
	border-color: var(--forest);
	color: var(--on-forest);
}
.pill--soft b {
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

.more {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	padding: 0.4rem 0;
	border-bottom: 2px solid var(--lime);
}
.more svg {
	transition: transform 0.25s var(--ease);
}
.more:hover svg {
	transform: translateX(3px);
}

/* ---------- Top bar ---------- */

.top {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--tag);
	border-bottom: 1px solid var(--line);
}
.top__row {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	height: 64px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	text-decoration: none;
	color: var(--forest);
}
.brand__mark {
	width: 30px;
	height: 30px;
	color: var(--forest);
}
.brand__name {
	font-family: var(--display);
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
}
.top__nav {
	display: flex;
	gap: 0.2rem;
	margin-left: auto;
}
.top__nav a {
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	color: var(--ink-2);
	transition: background-color 0.2s, color 0.2s;
}
.top__nav a:hover {
	color: var(--ink);
	background: var(--ground);
}
.top__nav a.is-active {
	color: var(--lime-ink);
	background: var(--lime);
}
.top__search {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 230px;
	height: 42px;
	padding: 0 1rem;
	border-radius: 999px;
	background: var(--ground);
	border: 1.5px solid transparent;
	color: var(--ink-3);
	transition: border-color 0.2s, width 0.3s var(--ease), background-color 0.2s;
}
.top__search:focus-within {
	border-color: var(--forest);
	background: var(--tag);
	width: 290px;
}
.top__search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	outline: none;
	font: inherit;
	font-size: 0.95rem;
	color: var(--ink);
	caret-color: var(--forest);
}
.top__search input::placeholder {
	color: var(--ink-3);
}

.shelf {
	border-top: 1px solid var(--line-2);
}
.shelf__row {
	display: flex;
	gap: 6px;
	padding-top: 8px;
	padding-bottom: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
	mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.shelf__row::-webkit-scrollbar {
	display: none;
}
.shelf a {
	flex: none;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ink-2);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.shelf a:hover {
	background: var(--ground);
	color: var(--ink);
}
.shelf a.is-active {
	background: var(--forest);
	color: var(--on-forest);
}

/* ---------- Sticker (score) ---------- */

.sticker {
	--size: 76px;
	display: inline-grid;
	place-items: center;
	align-content: center;
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	background: radial-gradient(circle at 32% 26%, #ecfdbf 0, var(--lime) 48%, #b7e34f 100%);
	color: var(--lime-ink);
	text-align: center;
	transform: rotate(-9deg);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 2px 1px rgba(16, 35, 27, 0.12), 0 8px 16px -6px rgba(16, 35, 27, 0.45);
	flex: none;
}
.sticker__num {
	font-family: var(--display);
	font-weight: 800;
	font-size: calc(var(--size) * 0.36);
	line-height: 0.95;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}
.sticker__label {
	font-size: calc(var(--size) * 0.1);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.1;
	margin-top: 0.15em;
	max-width: 82%;
}
.sticker--pale {
	background: radial-gradient(circle at 32% 26%, #ffffff 0, #f2f6ef 60%, #dfe7dc 100%);
	box-shadow: 0 0 0 2px var(--forest) inset, 0 8px 16px -6px rgba(16, 35, 27, 0.35);
}
.sticker--sm {
	--size: 50px;
}
.sticker--sm .sticker__label {
	display: none;
}
.sticker--sm .sticker__num {
	font-size: 18px;
}
.sticker--lg {
	--size: 108px;
}
.sticker--xl {
	--size: 124px;
}

.drop {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 6px;
	background: var(--tomato);
	color: #fff;
	font-family: var(--display);
	font-weight: 800;
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	transform: rotate(-3deg);
}
.drop--lg {
	position: absolute;
	left: 16px;
	top: 16px;
	font-size: 1.1rem;
	padding: 0.3rem 0.7rem;
}

/* ---------- Hang tag ---------- */

.hang {
	position: relative;
	padding-top: 28px;
	transform-origin: 50% 0;
	filter: drop-shadow(0 10px 14px rgba(16, 35, 27, 0.1)) drop-shadow(0 2px 2px rgba(16, 35, 27, 0.06));
}
.hang::before {
	/* the string, running over the tag's top edge into the hole */
	content: "";
	position: absolute;
	z-index: 2;
	left: calc(50% - 1px);
	top: 0;
	width: 2px;
	height: 45px;
	background: var(--string);
	border-radius: 2px;
}
.hang:hover {
	animation: swing 1.4s var(--ease);
}
@keyframes swing {
	0% {
		transform: rotate(0);
	}
	18% {
		transform: rotate(3.2deg);
	}
	42% {
		transform: rotate(-2deg);
	}
	66% {
		transform: rotate(1deg);
	}
	100% {
		transform: rotate(0);
	}
}
.tag {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--tag);
	border-radius: 14px;
	clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%, 0 var(--notch));
	padding: 32px 12px 12px;
}
.tag__hole {
	position: absolute;
	top: 11px;
	left: calc(50% - 8px);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ground);
	box-shadow: 0 0 0 3px #e3e9e0, inset 0 1px 2px rgba(16, 35, 27, 0.3);
}
.tag__rank {
	position: absolute;
	top: 8px;
	left: 16px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1rem;
	color: var(--forest);
}
.tag__pic {
	position: relative;
}
.tag__media {
	display: block;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--ground);
}
.tag__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}
.hang:hover .tag__media img {
	transform: scale(1.04);
}
.tag__sticker {
	position: absolute;
	right: -4px;
	bottom: -14px;
}
.tag__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 12px 2px 12px;
	flex: 1;
}
.tag__cat {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--ink-3);
	padding-right: 44px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tag__title {
	font-family: var(--body);
	letter-spacing: 0;
	font-size: 0.975rem;
	font-weight: 700;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tag__title a {
	text-decoration: none;
}
.tag__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.tag__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.8rem;
	font-size: 0.83rem;
	color: var(--ink-2);
	font-variant-numeric: tabular-nums;
}
.tag__facts > span {
	display: inline-flex;
	align-items: center;
	gap: 0.25em;
}
.tag__facts svg,
.bigtag__facts svg {
	color: #d99a00;
}
.tag__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.4rem;
}
.tag__price {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.2rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}
.tag__price s {
	margin-left: 0.35em;
	font-family: var(--body);
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--ink-3);
	letter-spacing: 0;
}
.tag__price em {
	font-style: normal;
	font-family: var(--body);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ink-2);
}
.tag__go {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: 42px;
	border-radius: 999px;
	background: var(--lime);
	color: var(--lime-ink);
	font-weight: 700;
	font-size: 0.925rem;
	text-decoration: none;
	transition: background-color 0.2s;
}
.tag__go:hover {
	background: var(--lime-2);
}

.tags {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 12px;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	background-color: var(--forest);
	/* pegboard */
	background-image: radial-gradient(circle, rgba(0, 0, 0, 0.28) 2.2px, transparent 2.7px),
		radial-gradient(circle, rgba(255, 255, 255, 0.05) 2.2px, transparent 2.7px);
	background-size: 30px 30px, 30px 30px;
	background-position: 15px 15px, 15px 16px;
	color: var(--on-forest);
	padding: clamp(32px, 4vw, 56px) 0 clamp(56px, 7vw, 88px);
}
.hero__grid {
	display: grid;
	gap: 48px;
	align-items: center;
}
.hero__grid > * {
	min-width: 0;
}
.hero__title {
	font-size: clamp(2.6rem, 6.4vw, 5.2rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variation-settings: "wdth" 96;
	max-width: 12ch;
}
.hero__title em {
	display: block;
	font-style: normal;
	color: var(--lime);
}
.hero__lede {
	margin-top: 1.3rem;
	max-width: 50ch;
	font-size: clamp(1rem, 1.35vw, 1.13rem);
	color: var(--on-forest-2);
}
.hero__search {
	display: flex;
	margin-top: 1.75rem;
	max-width: 500px;
	padding: 6px;
	gap: 6px;
	background: var(--tag);
	border-radius: 999px;
	box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);
}
.hero__search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: none;
	padding: 0 0 0 1rem;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	caret-color: var(--forest);
}
.hero__search input::placeholder {
	color: var(--ink-3);
}
.hero__search button {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	height: 46px;
	padding: 0 1.25rem;
	border: 0;
	border-radius: 999px;
	background: var(--lime);
	color: var(--lime-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s;
}
.hero__search button:hover {
	background: var(--lime-2);
}
.hero__facts {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.4rem;
	font-size: 0.925rem;
	color: var(--on-forest-2);
}
.hero__facts b {
	color: var(--on-forest);
	font-variant-numeric: tabular-nums;
}
.hero__facts a {
	color: var(--lime);
	font-weight: 600;
}

.hero__hang {
	position: relative;
	display: grid;
	justify-items: center;
	padding-top: 40px;
}
.hero__hang::before {
	content: "";
	position: absolute;
	top: -200px;
	left: calc(50% - 1px);
	width: 2px;
	height: 262px;
	background: #7f988a;
	z-index: 2;
}
.bigtag {
	position: relative;
	width: min(430px, 100%);
	background: var(--tag);
	color: var(--ink);
	border-radius: 20px;
	--notch: 42px;
	clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%, 0 var(--notch));
	padding: 46px 20px 20px;
	transform-origin: 50% -40px;
	transform: rotate(2.5deg);
	filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}
.bigtag .tag__hole {
	top: 14px;
	width: 20px;
	height: 20px;
	left: calc(50% - 10px);
}
.bigtag__label {
	position: absolute;
	top: 14px;
	left: 44px;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tomato-ink);
}
.bigtag__media {
	display: block;
	aspect-ratio: 5 / 4;
	border-radius: 12px;
	overflow: hidden;
	background: var(--ground);
}
.bigtag__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bigtag__pic {
	position: relative;
}
.bigtag__sticker {
	position: absolute;
	right: -8px;
	bottom: -34px;
}
.bigtag__title {
	margin-top: 14px;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 800;
	padding-right: 64px;
}
.bigtag__title a {
	text-decoration: none;
}
.bigtag__title a:hover {
	text-decoration: underline;
}
.bigtag__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 1rem;
	margin-top: 0.5rem;
	font-size: 0.9rem;
	color: var(--ink-2);
}
.bigtag__facts > span {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
}
.bigtag__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 2px dashed var(--line);
}
.bigtag__price {
	font-family: var(--display);
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.bigtag__price s {
	display: block;
	font-family: var(--body);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--ink-3);
	margin-top: 0.2rem;
}
.bigtag__why {
	display: inline-block;
	margin-top: 0.9rem;
	font-weight: 600;
	font-size: 0.925rem;
	color: var(--forest-3);
}
.bigtag--empty {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 1rem;
	padding-bottom: 40px;
}
.bigtag--empty p {
	color: var(--ink-2);
}

/* ---------- Bands ---------- */

.band {
	padding: clamp(48px, 7vw, 88px) 0;
}
.band--quiet {
	background: var(--tag);
}
.band--list {
	padding-top: 24px;
}
.band__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 20px;
}
.band__title {
	font-size: clamp(1.75rem, 3.4vw, 2.7rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	font-variation-settings: "wdth" 92;
}
.band__title--light {
	color: var(--on-forest);
	margin-bottom: 24px;
}
.band__note {
	max-width: 60ch;
	color: var(--ink-2);
	margin: -8px 0 20px;
}

/* ---------- Rack (horizontal) ---------- */

.rack {
	position: relative;
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin: 0 auto;
}
.rack__rail {
	position: absolute;
	top: 0;
	left: var(--gutter);
	right: var(--gutter);
	height: 8px;
	border-radius: 8px;
	background: linear-gradient(#b9c8bc, #93a898);
	box-shadow: 0 3px 6px rgba(16, 35, 27, 0.15);
	z-index: 3;
}
.rack__row {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 var(--gutter);
	padding: 4px var(--gutter) 28px;
	scrollbar-width: none;
}
.rack__row::-webkit-scrollbar {
	display: none;
}
.rack__row .hang {
	flex: 0 0 min(230px, 62vw);
	scroll-snap-align: start;
}
.rack__ctrl {
	display: flex;
	justify-content: end;
	gap: 8px;
	padding: 0 var(--gutter);
}
.rack__ctrl button {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1.5px solid var(--line);
	background: var(--tag);
	color: var(--ink);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}
.rack__ctrl button:hover {
	border-color: var(--forest);
}

/* ---------- Sticker sheet (categories) ---------- */

.sheet {
	background: var(--forest-2);
	padding: clamp(48px, 7vw, 80px) 0;
}
.stickers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 12px;
}
.aisle {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.85rem 0.9rem 0.85rem 1.3rem;
	border-radius: 999px;
	font-family: var(--display);
	font-size: clamp(1.1rem, 2vw, 1.45rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	text-decoration: none;
	color: var(--lime-ink);
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12), 0 12px 20px -12px rgba(0, 0, 0, 0.6);
	transition: transform 0.35s var(--ease);
}
.aisle b {
	display: grid;
	place-items: center;
	min-width: 2em;
	height: 2em;
	padding: 0 0.4em;
	border-radius: 999px;
	background: rgba(15, 42, 31, 0.1);
	font-family: var(--body);
	font-size: 0.6em;
	font-variant-numeric: tabular-nums;
}
.aisle--0 {
	background: var(--lime);
	transform: rotate(-2deg);
}
.aisle--1 {
	background: var(--tag);
	transform: rotate(1.5deg);
}
.aisle--2 {
	background: var(--peach);
	transform: rotate(-1deg);
}
.aisle--3 {
	background: var(--mint);
	transform: rotate(2deg);
}
.aisle:hover {
	transform: rotate(0) scale(1.05);
}

/* ---------- Recipe (score explainer) ---------- */

.explain {
	display: grid;
	gap: 40px;
	align-items: center;
}
.explain__copy p {
	margin: 1rem 0 1.6rem;
	color: var(--ink-2);
	max-width: 52ch;
	font-size: 1.05rem;
}
.receipt {
	position: relative;
	justify-self: center;
	width: min(440px, 100%);
	background: var(--ground);
	border-radius: 16px;
	--notch: 30px;
	clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%, 0 var(--notch));
	padding: 46px 26px 24px;
	transform: rotate(-1.5deg);
}
.receipt .tag__hole {
	background: var(--tag);
	box-shadow: 0 0 0 3px #d9e2d6, inset 0 1px 2px rgba(16, 35, 27, 0.3);
}
.receipt__head {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: -0.02em;
	text-align: center;
	margin-bottom: 1rem;
}
.receipt dl {
	margin: 0;
}
.receipt dl > div {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.55rem 0;
}
.receipt dt {
	color: var(--ink-2);
	font-size: 0.95rem;
}
.receipt dl > div::after {
	/* dotted leader */
	content: "";
	order: 1;
	flex: 1;
	border-bottom: 2px dotted #b4c3b7;
	transform: translateY(-4px);
}
.receipt dd {
	order: 2;
	margin: 0;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.2rem;
	font-variant-numeric: tabular-nums;
}
.receipt__total {
	margin-top: 0.4rem;
	border-top: 2px solid var(--ink);
}
.receipt__total dt {
	color: var(--ink);
	font-weight: 700;
}
.receipt__foot {
	margin-top: 1rem;
	text-align: center;
	font-size: 0.85rem;
	color: var(--ink-3);
}

/* ---------- Page head ---------- */

.phead {
	background: var(--forest);
	color: var(--on-forest);
	padding: clamp(28px, 5vw, 56px) 0 clamp(32px, 5vw, 60px);
}
.phead__title {
	margin-top: 0.9rem;
	font-size: clamp(2.2rem, 5vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	font-variation-settings: "wdth" 96;
	max-width: 18ch;
}
.phead__lede {
	margin-top: 0.8rem;
	max-width: 60ch;
	font-size: 1.05rem;
	color: var(--on-forest-2);
}
.phead--error .wrap {
	display: grid;
	justify-items: start;
	gap: 0.3rem;
	padding-top: 32px;
	padding-bottom: 32px;
}
.phead--error .btn {
	margin-top: 1.5rem;
}
.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--on-forest-2);
}
.crumbs a {
	text-decoration: none;
}
.crumbs a:hover {
	text-decoration: underline;
	color: var(--on-forest);
}
.crumbs [aria-current] {
	color: var(--on-forest);
}
.crumbs--ink {
	color: var(--ink-3);
	margin-bottom: 1.25rem;
}
.crumbs--ink a:hover,
.crumbs--ink [aria-current] {
	color: var(--ink);
}

/* ---------- Listing filters ---------- */

.filters {
	display: grid;
	gap: 12px;
	margin-bottom: 14px;
}
.filters__search {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	height: 48px;
	padding: 0 1.1rem;
	border-radius: 999px;
	background: var(--tag);
	border: 1.5px solid var(--line);
	color: var(--ink-3);
	transition: border-color 0.2s;
}
.filters__search:focus-within {
	border-color: var(--forest);
}
.filters__search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: none;
	font: inherit;
	color: var(--ink);
}
.filters__sort,
.filters__cats {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 2px;
}
.filters__sort::-webkit-scrollbar,
.filters__cats::-webkit-scrollbar {
	display: none;
}
.filters__cats {
	margin-bottom: 18px;
}
.pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 40px;
	font-weight: 600;
	color: var(--ink-2);
}
.nothing {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 0.8rem;
	padding: 64px 16px;
	border-radius: 20px;
	background: var(--tag);
}
.nothing h2 {
	font-size: 1.6rem;
	font-weight: 800;
}
.nothing p {
	color: var(--ink-2);
	margin-bottom: 0.5rem;
}

/* ---------- Product page ---------- */

.item {
	padding: 24px 0 clamp(48px, 7vw, 80px);
	overflow-x: clip;
}
.item__grid {
	display: grid;
	gap: 32px;
	align-items: start;
}
.item__grid > * {
	min-width: 0;
}
.photo {
	position: relative;
	background: var(--tag);
	border-radius: 24px;
	padding: 12px;
	box-shadow: 0 20px 40px -24px rgba(16, 35, 27, 0.4);
}
.photo img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 16px;
	background: var(--ground);
	transition: opacity 0.25s;
}
.photo .drop--lg {
	left: 26px;
	top: 26px;
}
.photo__sticker {
	position: absolute;
	right: 0;
	top: -14px;
}
.photo__sticker .sticker {
	animation: stick 0.7s var(--ease) 0.2s both;
}
@keyframes stick {
	from {
		transform: rotate(-40deg) scale(1.6);
		opacity: 0;
	}
}
.thumbs {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}
.thumbs button {
	flex: none;
	width: 64px;
	height: 64px;
	padding: 0;
	border-radius: 12px;
	overflow: hidden;
	border: 2.5px solid transparent;
	background: var(--tag);
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.2s, border-color 0.2s;
}
.thumbs button:hover {
	opacity: 1;
}
.thumbs button.is-on {
	border-color: var(--forest);
	opacity: 1;
}
.thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.item__cat {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-3);
}
.item__cat a {
	color: var(--forest-3);
	text-decoration: none;
}
.item__cat a:hover {
	text-decoration: underline;
}
.item__title {
	margin-top: 0.6rem;
	font-size: clamp(1.9rem, 3.6vw, 2.9rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	font-variation-settings: "wdth" 92;
}
.item__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1.1rem;
	margin-top: 0.9rem;
	color: var(--ink-2);
}
.item__facts b {
	color: var(--ink);
}
.stars {
	--r: 0;
	position: relative;
	display: inline-block;
	font-size: 1.1rem;
	letter-spacing: 2px;
	line-height: 1;
	color: #cfd9cc;
}
.stars::before {
	content: "★★★★★";
}
.stars::after {
	content: "★★★★★";
	position: absolute;
	left: 0;
	top: 0;
	width: calc(var(--r) / 5 * 100%);
	overflow: hidden;
	color: #e3a300;
	white-space: nowrap;
}

.pricetag {
	position: relative;
	margin: 1.5rem 0;
	padding: 20px 20px 18px 56px;
	background: var(--forest);
	color: var(--on-forest);
	border-radius: 0 18px 18px 0;
	clip-path: polygon(34px 0, 100% 0, 100% 100%, 34px 100%, 0 50%);
}
.pricetag .tag__hole {
	top: calc(50% - 8px);
	left: 22px;
	background: var(--ground);
	box-shadow: 0 0 0 3px var(--forest-3), inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.pricetag__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.pricetag__now {
	font-family: var(--display);
	font-size: clamp(2.2rem, 4vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.pricetag__row s {
	margin-left: 0.5rem;
	color: var(--on-forest-2);
	font-size: 1.05rem;
}
.pricetag__note {
	margin: 0.5rem 0 1rem;
	font-size: 0.85rem;
	color: var(--on-forest-2);
}
.pricetag__disc {
	margin-top: 0.7rem;
	font-size: 0.8rem;
	color: var(--on-forest-2);
	text-align: center;
}
.pricetag__disc a {
	color: var(--on-forest);
}

.grabskip {
	background: var(--tag);
	border-radius: 20px;
	padding: 22px;
}
.grabskip h2 {
	font-size: 1.6rem;
	font-weight: 800;
}
.grabskip__verdict {
	margin-top: 0.7rem;
	font-size: 1.08rem;
	line-height: 1.6;
}
.note {
	margin-top: 0.8rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	background: var(--lime-2);
	color: var(--lime-ink);
	font-weight: 500;
}
.note::before {
	content: "Our take";
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.25rem;
}
.grabskip__cols {
	display: grid;
	gap: 18px;
	margin-top: 1.25rem;
}
.grabskip__col h3 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--body);
	letter-spacing: 0;
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}
.grabskip__col ul {
	margin: 0;
	padding-left: 2.1rem;
	display: grid;
	gap: 0.4rem;
	color: var(--ink-2);
}
.grabskip__col p {
	color: var(--ink-2);
}
.dot {
	display: grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	font-size: 0.85rem;
}
.dot--yes {
	background: var(--lime);
	color: var(--lime-ink);
}
.dot--no {
	background: var(--peach);
	color: var(--tomato-ink);
}
.fine {
	margin-top: 1rem;
	font-size: 0.85rem;
	color: var(--ink-3);
}

.label {
	margin: 1.25rem 0 0;
	display: grid;
	border: 2px solid var(--ink);
	border-radius: 12px;
	overflow: hidden;
	background: var(--tag);
}
.label > div {
	display: grid;
	grid-template-columns: minmax(110px, 40%) 1fr;
	gap: 1rem;
	padding: 0.7rem 1rem;
	border-bottom: 1px solid var(--line);
	font-size: 0.925rem;
}
.label > div:last-child {
	border-bottom: 0;
}
.label dt {
	color: var(--ink-2);
}
.label dd {
	margin: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.stickybuy {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: var(--forest);
	color: var(--on-forest);
	transform: translateY(110%);
	transition: transform 0.35s var(--ease);
}
.stickybuy.is-shown {
	transform: none;
}
.stickybuy__info {
	flex: 1;
	min-width: 0;
	display: grid;
}
.stickybuy__name {
	font-size: 0.8rem;
	color: var(--on-forest-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.stickybuy__price {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.2rem;
	font-variant-numeric: tabular-nums;
}

/* ---------- Prose pages ---------- */

.prose {
	max-width: 760px;
	font-size: 1.05rem;
}
.prose p,
.prose ul {
	margin: 0 0 1.1rem;
	color: var(--ink-2);
}
.prose h2 {
	font-size: 1.6rem;
	font-weight: 800;
	margin: 2.4rem 0 0.8rem;
}
.prose h2:first-child {
	margin-top: 0;
}
.prose li {
	margin-bottom: 0.6rem;
}
.prose strong {
	color: var(--ink);
}
.prose a:not(.btn) {
	color: var(--ink);
	font-weight: 600;
	text-decoration-color: var(--lime);
	text-decoration-thickness: 3px;
}
.prose code {
	background: var(--tag);
	border-radius: 5px;
	padding: 0.05em 0.35em;
	font-size: 0.9em;
}
.weights {
	margin: 1.25rem 0 1.5rem;
}
.weights__bar {
	display: flex;
	gap: 4px;
	height: 72px;
}
.weights__bar > span {
	flex: var(--w) 1 0;
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 10px 12px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 0.85rem;
	white-space: nowrap;
	overflow: hidden;
}
.weights__bar b {
	font-family: var(--display);
	font-size: 1.35rem;
	font-weight: 800;
}
.weights__bar > span:nth-child(1) {
	background: var(--lime);
	color: var(--lime-ink);
}
.weights__bar > span:nth-child(2) {
	background: var(--mint);
	color: var(--lime-ink);
}
.weights__bar > span:nth-child(3) {
	background: var(--forest);
	color: var(--on-forest);
	justify-content: center;
}
.legend {
	margin: 0;
	display: grid;
	gap: 0.9rem;
}
.legend > div {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.legend dd {
	margin: 0;
	color: var(--ink-2);
}
.contact-mail {
	font-family: var(--display);
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	font-weight: 800;
}

/* ---------- Footer ---------- */

.foot {
	background: var(--forest);
	color: var(--on-forest-2);
	padding: 56px 0 calc(28px + 64px);
	font-size: 0.925rem;
}
.foot .brand,
.foot .brand__mark {
	color: var(--lime);
}
.foot__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px 24px;
}
.foot__brand {
	grid-column: 1 / -1;
}
.foot__brand p {
	margin-top: 0.75rem;
	max-width: 44ch;
}
.foot__col {
	display: grid;
	align-content: start;
	gap: 0.55rem;
}
.foot__col h2 {
	font-family: var(--body);
	letter-spacing: 0.08em;
	font-size: 0.78rem;
	text-transform: uppercase;
	color: var(--on-forest);
	margin-bottom: 0.25rem;
}
.foot__col a {
	text-decoration: none;
}
.foot__col a:hover {
	color: var(--on-forest);
	text-decoration: underline;
}
.foot__legal {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--forest-3);
	display: grid;
	gap: 0.75rem;
	font-size: 0.82rem;
	line-height: 1.6;
}
.foot__legal strong {
	color: var(--on-forest);
}

/* ---------- Motion: the hero tag swings into place once ---------- */

@media (prefers-reduced-motion: no-preference) {
	.bigtag {
		animation: hangin 1.6s var(--ease) both;
	}
}
@keyframes hangin {
	0% {
		transform: translateY(-60px) rotate(-9deg);
		opacity: 0;
	}
	30% {
		opacity: 1;
		transform: translateY(0) rotate(6deg);
	}
	55% {
		transform: rotate(-1.5deg);
	}
	78% {
		transform: rotate(3.4deg);
	}
	100% {
		transform: rotate(2.5deg);
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Breakpoints ---------- */

@media (max-width: 719px) {
	.top__hide-sm,
	.top__search {
		display: none;
	}
	.top__row {
		height: 58px;
		gap: 0.5rem;
	}
	.top__nav a {
		padding: 0.45rem 0.65rem;
		font-size: 0.9rem;
	}
	.tag {
		--notch: 16px;
		padding: 28px 8px 8px;
	}
	.tag__hole {
		top: 9px;
		width: 13px;
		height: 13px;
		left: calc(50% - 6.5px);
	}
	.hang::before {
		height: 41px;
	}
	.tag__go {
		min-height: 40px;
	}
	.hero__search button span {
		display: none;
	}
	.hero__search button {
		width: 46px;
		padding: 0;
		justify-content: center;
	}
	.bigtag__price {
		font-size: 1.7rem;
	}
	.photo__sticker .sticker--xl {
		--size: 96px;
	}
}

@media (min-width: 720px) {
	.tags {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px 20px;
	}
	.tag__body {
		padding: 14px 4px 14px;
	}
	.filters {
		grid-template-columns: minmax(240px, 360px) 1fr;
		align-items: center;
	}
	.filters__sort {
		justify-content: end;
	}
	.grabskip__cols {
		grid-template-columns: 1fr 1fr;
	}
	.label {
		grid-template-columns: 1fr 1fr;
	}
	.label > div:nth-last-child(2):nth-child(odd) {
		border-bottom: 0;
	}
	.label > div:nth-child(odd) {
		border-right: 1px solid var(--line);
	}
	.foot__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1fr;
	}
	.foot__brand {
		grid-column: auto;
	}
	.foot {
		padding-bottom: 28px;
	}
}

@media (min-width: 1000px) {
	.hero__grid {
		grid-template-columns: 1.15fr 0.85fr;
	}
	.tags {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.explain {
		grid-template-columns: 1fr 1fr;
		gap: 64px;
	}
	.item__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 56px;
	}
	.item__visual {
		position: sticky;
		top: 130px;
	}
	.stickybuy {
		display: none;
	}
}
