/* ==========================================================================
   JoyOfSpices theme
   Palette: espresso ink, parchment, saffron, paprika, cardamom.
   Mobile-first. Sections: tokens · base · header · homepage · shared
   components · listing pages · article · pages · forms · footer.
   ========================================================================== */

:root {
	--ink: #2a1a12;
	--ink-2: #5d4639;
	--ink-3: #8b7465;
	--night: #1c120d;
	--night-2: #2b1c14;
	--paper: #fbf6ee;
	--paper-2: #f4eadb;
	--paper-3: #eadcc6;
	--line: rgba(42, 26, 18, .12);
	--saffron: #e39b2d;
	--saffron-2: #f3c37a;
	--paprika: #b8432c;
	--paprika-2: #d4593f;
	--cardamom: #4c6a35;
	--radius: 22px;
	--radius-lg: 30px;
	--shadow: 0 1px 2px rgba(42, 26, 18, .06), 0 12px 32px -12px rgba(42, 26, 18, .22);
	--shadow-lg: 0 2px 4px rgba(42, 26, 18, .06), 0 30px 60px -20px rgba(42, 26, 18, .35);
	--serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--gutter: clamp(16px, 4vw, 40px);
	--wrap: 1240px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base (scoped to the homepage body) ---------- */
body.jos-site {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 16px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden; /* fallback for old browsers */
	overflow-x: clip; /* clips without creating a scroll container, so the sticky header keeps working */
}
body.jos-site *, body.jos-site *::before, body.jos-site *::after { box-sizing: border-box; }
:where(.jos-site) img { max-width: 100%; height: auto; display: block; }
:where(.jos-site) a { color: inherit; text-decoration: none; }
:where(.jos-site) :is(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
:where(.jos-site) :is(ul, ol) { padding: 0; list-style: none; }
:where(.jos-site) button { font: inherit; color: inherit; cursor: pointer; }
.jos-site :focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
html { scroll-behavior: smooth; }

.jos-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.jos-sr, .jos-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jos-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper) !important; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.jos-skip:focus { top: 12px; }
.jos-ico { width: 1.1em; height: 1.1em; flex: none; transition: transform .3s var(--ease); }

/* ---------- Type ---------- */
.jos-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--paprika); margin-bottom: 18px; }
.jos-eyebrow--light { color: var(--saffron-2); }
.jos-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.jos-h2 { font: 500 clamp(2rem, 4.4vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 120; }
.jos-h2 em, .jos-hero__title em { font-style: italic; font-weight: 400; color: var(--paprika); }
.jos-h3 { font: 600 1.6rem/1.15 var(--serif); letter-spacing: -.01em; }
.jos-meta { font-size: .82rem; color: var(--ink-3); font-weight: 500; }
.jos-badge { display: inline-block; font: 700 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--cardamom); margin-bottom: 10px; }
.jos-badge--light { color: var(--saffron-2); }

/* ---------- Buttons & links ---------- */
.jos-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; font: 700 .95rem/1 var(--sans); white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.jos-btn:hover { transform: translateY(-2px); }
.jos-btn:hover .jos-ico { transform: translateX(4px); }
.jos-btn--dark { background: var(--ink); color: var(--paper) !important; box-shadow: 0 10px 24px -10px rgba(42, 26, 18, .6); }
.jos-btn--dark:hover { background: #3a251a; }
.jos-btn--spice { background: linear-gradient(135deg, var(--paprika-2), var(--paprika)); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(184, 67, 44, .7); }
.jos-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size .3s var(--ease), color .2s; }
.jos-link::after { content: "→"; transition: transform .3s var(--ease); }
.jos-link:hover { color: var(--paprika); }
.jos-link:hover::after { transform: translateX(4px); }
.jos-link--light { color: var(--paper); }
.jos-link--light:hover { color: var(--saffron-2); }
.jos-iconbtn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; transition: background .2s, transform .2s; }
.jos-iconbtn svg { width: 22px; height: 22px; }
.jos-iconbtn:hover { background: rgba(42, 26, 18, .07); }
.jos-iconbtn--line { border: 1.5px solid currentColor; }
.jos-iconbtn--line:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
/* The frosted background lives on ::before: a backdrop-filter on the header
   itself would become the containing block of the fixed mobile menu panel
   and squeeze it to the header's height. */
.jos-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.jos-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251, 246, 238, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); pointer-events: none; }
.admin-bar .jos-header { top: 32px; }
.jos-header.is-stuck { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(42, 26, 18, .35); }
.jos-header__bar { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.jos-brand { display: flex; align-items: center; flex: none; }
.jos-brand__logo { height: 64px; width: auto; transition: height .3s var(--ease); }
.jos-header.is-stuck .jos-brand__logo { height: 52px; }
.jos-brand__text { font: 600 1.5rem/1 var(--serif); }
.jos-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.jos-burger { position: relative; }
.jos-burger span { position: absolute; left: 13px; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.jos-burger span:nth-child(1) { top: 16px; } .jos-burger span:nth-child(2) { top: 22px; } .jos-burger span:nth-child(3) { top: 28px; }
.jos-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.jos-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.jos-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile navigation: slide-in panel */
.jos-nav { position: fixed; inset: 76px 0 0 0; z-index: 49; background: var(--paper); padding: 16px var(--gutter) 40px; overflow-y: auto; clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .45s var(--ease), visibility 0s .45s; }
.jos-nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .45s var(--ease); }
.jos-nav__list > li { border-bottom: 1px solid var(--line); }
.jos-nav__list a { display: flex; align-items: center; min-height: 54px; font: 500 1.35rem/1.2 var(--serif); }
.jos-nav__list .sub-menu { padding: 0 0 12px 14px; display: none; }
.jos-nav__list li.is-open > .sub-menu { display: block; }
.jos-nav__list .sub-menu a { min-height: 42px; font: 600 1rem/1.3 var(--sans); color: var(--ink-2); }
.jos-nav__list .menu-item-has-children > a::after { content: ""; width: 9px; height: 9px; margin-left: auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.jos-nav__list li.is-open > a::after { transform: rotate(-135deg); }
.jos-nav-lock { overflow: hidden; }

@media (min-width: 1024px) {
	.jos-burger { display: none; }
	.jos-nav { position: static; clip-path: none; visibility: visible; background: none; padding: 0; overflow: visible; margin-left: auto; transition: none; }
	.jos-header__actions { margin-left: 0; }
	.jos-nav__list { display: flex; align-items: center; gap: 4px; }
	.jos-nav__list > li { position: relative; border: 0; }
	.jos-nav__list > li > a { min-height: 44px; padding: 0 14px; border-radius: 999px; font: 600 .93rem/1 var(--sans); transition: background .2s, color .2s; }
	.jos-nav__list > li > a:hover, .jos-nav__list > li:focus-within > a { background: rgba(42, 26, 18, .06); }
	.jos-nav__list > .current-menu-item > a { color: var(--paprika); }
	.jos-nav__list .menu-item-has-children > a::after { width: 6px; height: 6px; margin-left: 8px; }
	.jos-nav__list .sub-menu { display: block; position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; padding: 10px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
	.jos-nav__list .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
	.jos-nav__list li:hover > .sub-menu, .jos-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.jos-nav__list .sub-menu a { min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: .92rem; }
	.jos-nav__list .sub-menu a:hover { background: var(--paper-2); color: var(--paprika); }
}

/* GTranslate language switcher injected into the menu */
.jos-nav .menu-item-gtranslate { display: flex; align-items: center; min-height: 54px; }
.jos-nav .menu-item-gtranslate > div { position: relative !important; }
.jos-nav .menu-item-gtranslate #gt_float_wrapper { position: relative !important; inset: auto !important; }
@media (min-width: 1024px) { .jos-nav .menu-item-gtranslate { min-height: 44px; margin-left: 6px; } }

/* Search dialog */
.jos-searchdlg { width: min(720px, calc(100vw - 32px)); margin: 12vh auto auto; padding: 0; border: 0; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); }
.jos-searchdlg::backdrop { background: rgba(28, 18, 13, .55); backdrop-filter: blur(4px); }
.jos-searchdlg__form { display: flex; align-items: center; gap: 8px; padding: 10px; }
.jos-searchdlg input { flex: 1; min-width: 0; height: 56px; padding: 0 16px; border: 0; background: transparent; font: 500 1.2rem var(--sans); color: var(--ink); }
.jos-searchdlg input:focus { outline: none; }
@media (max-width: 520px) { .jos-searchdlg .jos-btn { display: none; } }

/* ---------- Hero ---------- */
.jos-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 6vw, 72px) 0 0; }
.jos-hero__decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.jos-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.jos-glow--a { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, #f6c77e, transparent 70%); }
.jos-glow--b { width: 420px; height: 420px; left: -160px; bottom: 40px; background: radial-gradient(circle, #f0b29d, transparent 70%); opacity: .4; }
.jos-seed { position: absolute; display: block; width: 10px; height: 6px; border-radius: 50%; background: var(--saffron); opacity: .55; animation: jos-drift 14s ease-in-out infinite; }
.jos-seed--1 { left: 6%; top: 18%; } .jos-seed--2 { left: 44%; top: 10%; background: var(--paprika); width: 7px; height: 7px; animation-delay: -3s; }
.jos-seed--3 { left: 52%; top: 72%; background: var(--cardamom); animation-delay: -6s; } .jos-seed--4 { left: 92%; top: 64%; animation-delay: -2s; }
.jos-seed--5 { left: 3%; top: 76%; background: var(--paprika); width: 6px; height: 6px; animation-delay: -8s; } .jos-seed--6 { left: 36%; top: 88%; background: #6b3f26; animation-delay: -5s; }
.jos-seed--7 { left: 64%; top: 4%; background: var(--cardamom); width: 12px; height: 5px; animation-delay: -9s; } .jos-seed--8 { left: 80%; top: 30%; background: #6b3f26; width: 5px; height: 5px; animation-delay: -1s; }
.jos-seed--9 { left: 24%; top: 6%; width: 5px; height: 5px; animation-delay: -11s; } .jos-seed--10 { left: 97%; top: 12%; background: var(--paprika); animation-delay: -4s; }
.jos-seed--11 { left: 48%; top: 40%; background: #6b3f26; width: 4px; height: 4px; animation-delay: -7s; } .jos-seed--12 { left: 15%; top: 52%; background: var(--cardamom); width: 6px; height: 4px; animation-delay: -10s; }
.jos-seed--13 { left: 72%; top: 90%; width: 8px; height: 8px; animation-delay: -12s; } .jos-seed--14 { left: 30%; top: 34%; background: var(--paprika); width: 4px; height: 4px; animation-delay: -6.5s; }
@keyframes jos-drift { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(14px, -18px) rotate(160deg); } }

.jos-hero__grid { display: grid; gap: 48px; align-items: center; }
.jos-hero__title { font: 500 clamp(2.6rem, 7.4vw, 5.6rem)/.98 var(--serif); letter-spacing: -.035em; font-variation-settings: "opsz" 144; margin-bottom: 34px; }
.jos-hero__title em { position: relative; white-space: nowrap; }
.jos-hero__title em::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -.02em; height: .12em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9c60-7 140-9 296-3' fill='none' stroke='%23e39b2d' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; transform-origin: left; animation: jos-swash 1.1s .5s var(--ease) both; }
@keyframes jos-swash { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.jos-hero__kicker { display: block; margin-bottom: 18px; font: 700 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cardamom); }
.jos-hero__lead { max-width: 33em; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-2); margin-bottom: 28px; }

.jos-hero__search { position: relative; display: flex; align-items: center; max-width: 560px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 22px; transition: box-shadow .25s; }
.jos-hero__search:focus-within { box-shadow: 0 0 0 4px rgba(227, 155, 45, .25), var(--shadow); }
.jos-hero__search > svg { width: 20px; height: 20px; margin: 0 4px 0 14px; color: var(--ink-3); flex: none; }
.jos-hero__search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; padding: 0 8px; font: 500 1rem var(--sans); color: var(--ink); }
.jos-hero__search input:focus { outline: none; }
.jos-hero__search .jos-btn { min-height: 48px; }

.jos-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-bottom: 36px; }
.jos-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.jos-stats > div { display: flex; flex-direction: column-reverse; }
.jos-stats dd { font: 500 2.1rem/1 var(--serif); letter-spacing: -.02em; }
.jos-stats dt { font-size: .78rem; font-weight: 600; color: var(--ink-3); margin-top: 6px; }

.jos-hero__visual { position: relative; max-width: 540px; width: 100%; margin-inline: auto; }
.jos-feature { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--night); transform: rotate(1.2deg); transition: transform .5s var(--ease); }
.jos-feature:hover { transform: rotate(0) scale(1.01); }
.jos-feature__media { display: block; aspect-ratio: 4 / 4.6; }
.jos-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.jos-feature:hover .jos-feature__media img { transform: scale(1.05); }
.jos-feature__body { position: absolute; inset: auto 0 0; padding: 90px 26px 24px; color: #fff; background: linear-gradient(to top, rgba(20, 12, 8, .92) 15%, rgba(20, 12, 8, .55) 60%, transparent); }
.jos-feature__title { font: 500 clamp(1.4rem, 2.6vw, 1.85rem)/1.12 var(--serif); letter-spacing: -.01em; margin-bottom: 10px; }
.jos-feature__title a::after { content: ""; position: absolute; inset: 0; }
.jos-feature .jos-meta { color: rgba(255, 255, 255, .72); }

.jos-float { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-radius: 18px; box-shadow: var(--shadow-lg); margin-top: 12px; transition: transform .3s var(--ease); }
.jos-float:hover { transform: translateY(-3px); }
.jos-float__img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; }
.jos-float__img img { width: 100%; height: 100%; object-fit: cover; }
.jos-float__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jos-float__cat { font: 700 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--paprika); }
.jos-float strong { font: 600 .9rem/1.25 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.jos-spinbadge { position: absolute; top: -34px; right: -18px; width: 112px; height: 112px; z-index: 2; animation: jos-spin 22s linear infinite; filter: drop-shadow(0 10px 18px rgba(42, 26, 18, .25)); }
.jos-spinbadge circle { fill: var(--saffron); }
.jos-spinbadge text { font: 700 9.6px var(--sans); fill: var(--ink); }
.jos-spinbadge path { fill: var(--ink); }
@keyframes jos-spin { to { transform: rotate(360deg); } }

@media (min-width: 960px) {
	.jos-hero__grid { grid-template-columns: 1.08fr .92fr; gap: 64px; padding-bottom: 24px; }
	.jos-hero__visual { margin-right: 18px; }
	.jos-float { position: absolute; width: 270px; margin: 0; z-index: 3; animation: jos-bob 7s ease-in-out infinite; }
	.jos-float--1 { left: -64px; top: 15%; }
	.jos-float--2 { right: -16px; bottom: 26%; animation-delay: -3.5s; }
	.jos-nav__list > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
	@keyframes jos-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
}
@media (max-width: 959px) {
	.jos-spinbadge { width: 92px; height: 92px; top: -26px; right: -6px; }
}

/* Marquee */
.jos-marquee { margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); overflow: hidden; background: rgba(255, 255, 255, .35); }
.jos-marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 18px 0; animation: jos-marquee 55s linear infinite; }
.jos-marquee span { font: italic 400 clamp(1.3rem, 2.4vw, 1.9rem)/1 var(--serif); color: var(--ink-2); }
.jos-marquee b { color: var(--saffron); font-size: 1.1rem; }
.jos-marquee:hover .jos-marquee__track { animation-play-state: paused; }
@keyframes jos-marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.jos-section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.jos-section--tint { background: var(--paper-2); }
.jos-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.jos-head__lead { margin-top: 16px; font-size: 1.08rem; color: var(--ink-2); max-width: 40em; }
.jos-head--center { margin-inline: auto; text-align: center; }
.jos-head--center .jos-head__lead { margin-inline: auto; }
.jos-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; max-width: none; }
.jos-head--row .jos-h2 { max-width: 16em; }

/* Collections: bento */
.jos-bento { display: grid; gap: 14px; grid-template-columns: 1fr; grid-auto-rows: 236px; }
.jos-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--night); color: #fff; isolation: isolate; box-shadow: var(--shadow); }
.jos-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.jos-tile:hover img { transform: scale(1.07); }
.jos-tile__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 12, 8, .05) 20%, rgba(20, 12, 8, .86) 100%); transition: background .4s; }
.jos-tile:hover .jos-tile__shade { background: linear-gradient(180deg, rgba(20, 12, 8, .2) 0%, rgba(20, 12, 8, .9) 100%); }
.jos-tile__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.jos-tile__count { position: absolute; top: 18px; left: 18px; padding: 7px 12px; border-radius: 999px; background: rgba(20, 12, 8, .5); backdrop-filter: blur(8px); font: 700 .72rem/1 var(--sans); letter-spacing: .04em; }
.jos-tile__tag { font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-2); margin-bottom: 8px; }
.jos-tile__name { font: 500 clamp(1.45rem, 2.4vw, 2rem)/1.05 var(--serif); letter-spacing: -.01em; padding-right: 56px; }
.jos-tile__desc { font-size: .92rem; color: rgba(255, 255, 255, .8); margin-top: 8px; max-width: 32em; padding-right: 56px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jos-tile__go { position: absolute; right: 20px; bottom: 20px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); transition: transform .35s var(--ease), background .3s; }
.jos-tile:hover .jos-tile__go { transform: rotate(-45deg); background: var(--saffron); }
@media (min-width: 640px) {
	.jos-bento { grid-template-columns: repeat(2, 1fr); }
	.jos-tile--1 { grid-column: span 2; }
}
@media (min-width: 980px) {
	.jos-bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 230px; gap: 18px; }
	.jos-bento > .jos-tile { grid-column: span 2; }
	.jos-bento > .jos-tile--1 { grid-column: span 3; grid-row: span 2; }
	.jos-bento > .jos-tile--2, .jos-bento > .jos-tile--3 { grid-column: span 3; }
	.jos-tile--1 .jos-tile__name { font-size: clamp(2rem, 3.4vw, 2.9rem); }
	.jos-tile--1 .jos-tile__body { padding: 32px; }
	.jos-bento > .jos-tile:nth-child(n+4) .jos-tile__desc { display: none; }
	.jos-bento > .jos-tile:nth-child(n+4) .jos-tile__name { font-size: 1.5rem; }
}

/* Cards */
.jos-card { position: relative; }
.jos-card__media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--paper-3); }
.jos-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.jos-card:hover .jos-card__media img, .jos-row:hover img { transform: scale(1.05); }
.jos-card__body { padding-top: 20px; }
.jos-card__title { font: 600 1.18rem/1.25 var(--serif); letter-spacing: -.005em; margin-bottom: 8px; }
.jos-card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
.jos-card:hover .jos-card__title a, .jos-row:hover .jos-card__title a, .jos-card__title a:focus-visible { background-size: 100% 1.5px; }
.jos-card__title a::after { content: ""; position: absolute; inset: 0; }
.jos-card__title--xl { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; font-weight: 500; }
.jos-card__text { color: var(--ink-2); margin-bottom: 12px; }

.jos-latest { display: grid; gap: 40px; }
.jos-latest__list { display: grid; gap: 22px; align-content: start; }
.jos-row { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.jos-row:last-child { border-bottom: 0; padding-bottom: 0; }
.jos-row__media { display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--paper-3); }
.jos-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.jos-row .jos-badge { margin-bottom: 6px; }
.jos-row .jos-card__title { font-size: 1.08rem; margin-bottom: 4px; }
@media (min-width: 600px) { .jos-row { grid-template-columns: 150px 1fr; } }
@media (min-width: 960px) {
	.jos-latest { grid-template-columns: 1.2fr 1fr; gap: 56px; }
	.jos-card--lead .jos-card__media { aspect-ratio: 4 / 3; }
}

/* ---------- Spice Atlas ---------- */
.jos-atlas { background: radial-gradient(1000px 500px at 85% 0%, rgba(227, 155, 45, .16), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(184, 67, 44, .18), transparent 60%), var(--night); color: var(--paper); overflow: hidden; }
.jos-atlas .jos-h2 em { color: var(--saffron-2); }
.jos-atlas .jos-head__lead { color: rgba(251, 246, 238, .72); }
.jos-atlas__grid { display: grid; gap: 28px; align-items: center; }

.jos-wheel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.jos-wheel::-webkit-scrollbar { display: none; }
.jos-wheel__ring, .jos-wheel__hub { display: none; }
.jos-wheel__btn { display: inline-flex; align-items: center; gap: 8px; flex: none; scroll-snap-align: start; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(251, 246, 238, .18); background: rgba(251, 246, 238, .05); color: var(--paper); font: 600 .95rem/1 var(--sans); transition: background .3s, border-color .3s, transform .35s var(--ease), box-shadow .3s; }
.jos-wheel__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.jos-wheel__btn:hover { border-color: rgba(251, 246, 238, .45); }
.jos-wheel__btn[aria-selected="true"] { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 10px 30px -8px var(--c); }
.jos-wheel__btn[aria-selected="true"] .jos-wheel__dot { background: #fff; }

@media (min-width: 900px) {
	.jos-atlas__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
	.jos-wheel { position: relative; display: block; overflow: visible; aspect-ratio: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 0; --r: 200px; container-type: inline-size; }
	@supports (width: 1cqi) { .jos-wheel { --r: 40cqi; } }
	.jos-wheel__ring { display: block; position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(251, 246, 238, .22); animation: jos-spin 90s linear infinite; }
	.jos-wheel__ring::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid rgba(251, 246, 238, .08); }
	.jos-wheel__btn { --a: calc(360deg / var(--n) * var(--i) - 90deg); position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a))); }
	.jos-wheel__btn[aria-selected="true"] { transform: translate(-50%, -50%) rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a))) scale(1.1); }
	.jos-wheel__hub { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: conic-gradient(from 0deg, #9c4a26, #d99a12, #8a5a2b, #62743a, #7a4a2e, #5b2c1d, #c0392b, #d4731f, #9c4a26); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
	.jos-wheel__hub::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a2619, var(--night) 70%); }
	.jos-wheel__hub span { position: relative; font: italic 400 clamp(1.6rem, 2.6vw, 2.3rem)/1 var(--serif); color: var(--saffron-2); text-align: center; padding: 0 12px; transition: opacity .25s; }
}

.jos-panel { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(251, 246, 238, .08), rgba(251, 246, 238, .02)); border: 1px solid rgba(251, 246, 238, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); animation: jos-panel .5s var(--ease); }
@keyframes jos-panel { from { opacity: 0; transform: translateY(14px); } }
.jos-panel__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.jos-panel__name { font: 500 clamp(2.2rem, 4vw, 3.2rem)/1 var(--serif); letter-spacing: -.02em; color: var(--saffron-2); color: color-mix(in srgb, var(--c) 45%, #fff3df); }
.jos-panel__latin { font: italic 400 1rem var(--serif); color: rgba(251, 246, 238, .6); margin-top: 6px; }
.jos-heat { display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 999px; background: rgba(251, 246, 238, .07); }
.jos-heat span { width: 9px; height: 16px; border-radius: 9px 9px 4px 4px; background: rgba(251, 246, 238, .18); }
.jos-heat span.on { background: var(--paprika-2); }
.jos-heat small { margin-left: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(251, 246, 238, .65); }
.jos-notes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.jos-notes li { padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: color-mix(in srgb, var(--c) 30%, transparent); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); }
.jos-facts { display: grid; gap: 14px; padding: 18px 0; border-block: 1px solid rgba(251, 246, 238, .12); margin-bottom: 22px; }
.jos-facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(251, 246, 238, .55); margin-bottom: 4px; }
.jos-facts dd { font-weight: 600; }
@media (min-width: 600px) { .jos-facts { grid-template-columns: repeat(3, 1fr); } }
.jos-panel__label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 246, 238, .55); margin-bottom: 12px; }
.jos-panel__reads { display: grid; gap: 8px; }
.jos-panel__reads a { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 14px; font-weight: 600; line-height: 1.3; transition: background .25s; }
.jos-panel__reads a:hover { background: rgba(251, 246, 238, .08); }
.jos-panel__thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: none; background: var(--night-2); }
.jos-panel__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- History track ---------- */
.jos-history { padding-bottom: clamp(56px, 8vw, 100px); }
.jos-scrollnav { display: none; gap: 10px; }
@media (min-width: 760px) { .jos-scrollnav { display: flex; } }
.jos-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 330px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding: 6px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 24px; scrollbar-width: thin; scrollbar-color: var(--paper-3) transparent; }
.jos-track:focus-visible { outline-offset: -3px; }
.jos-story { scroll-snap-align: start; }
.jos-story > a { position: relative; display: flex; flex-direction: column; height: 100%; }
.jos-story__media { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); box-shadow: var(--shadow); }
.jos-story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: sepia(.15) saturate(.95); }
.jos-story > a:hover img { transform: scale(1.06); filter: none; }
.jos-story__num { position: absolute; top: 14px; left: 18px; font: 600 3.6rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .9); text-shadow: 0 4px 30px rgba(0, 0, 0, .3); }
.jos-story__title { font: 600 1.22rem/1.2 var(--serif); margin: 18px 0 6px; }
.jos-story__text { font-size: .9rem; color: var(--ink-2); }
.jos-story--more > a { justify-content: center; align-items: flex-start; gap: 18px; min-height: 280px; padding: 30px; border-radius: var(--radius); background: var(--ink); color: var(--paper); transition: background .3s; }
.jos-story--more > a:hover { background: var(--paprika); }
.jos-story--more .jos-story__title { font-size: 1.9rem; margin: 0; }
.jos-story--more .jos-ico { width: 34px; height: 34px; }

/* ---------- Keep it fresh ---------- */
.jos-fresh { display: grid; gap: 48px; }
.jos-rules { counter-reset: r; margin: 28px 0 32px; display: grid; gap: 18px; }
.jos-rules li { counter-increment: r; position: relative; padding-left: 62px; color: var(--ink-2); }
.jos-rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: -4px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1px solid var(--paper-3); font: 600 1rem var(--serif); color: var(--paprika); }
.jos-rules strong { display: block; color: var(--ink); font: 600 1.08rem/1.3 var(--serif); margin-bottom: 2px; }
.jos-fresh__grid { display: grid; gap: 24px 14px; grid-template-columns: 1fr 1fr; }
.jos-card--compact .jos-card__body { padding-top: 14px; }
.jos-card--compact .jos-card__title { font-size: 1.05rem; }
@media (min-width: 560px) { .jos-fresh__grid { gap: 28px 22px; } }
@media (min-width: 1000px) { .jos-fresh { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } .jos-fresh__intro { position: sticky; top: 110px; } }

/* ---------- Videos ---------- */
.jos-videos { background: var(--night-2); color: var(--paper); }
.jos-videos .jos-h2 em { color: var(--saffron-2); }
.jos-vgrid { display: grid; gap: 20px; }
.jos-video { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; }
.jos-video__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #000; }
.jos-video__media img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .9s var(--ease), opacity .4s; }
.jos-video:hover img { transform: scale(1.05); opacity: 1; }
.jos-play { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; display: grid; place-items: center; border-radius: 50%; background: rgba(251, 246, 238, .94); color: var(--paprika); transition: transform .35s var(--ease); }
.jos-play svg { width: 45%; margin-left: 2px; }
.jos-video:hover .jos-play { transform: scale(1.15); }
.jos-video__title { font: 600 1rem/1.3 var(--serif); }
.jos-video--big { grid-template-columns: 1fr; gap: 16px; }
.jos-video--big .jos-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; box-shadow: 0 0 0 12px rgba(251, 246, 238, .15); }
.jos-video--big .jos-video__title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 500; line-height: 1.15; }
@media (min-width: 960px) {
	.jos-vgrid { grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(3, auto); gap: 22px 40px; }
	.jos-video--big { grid-row: span 3; }
	.jos-video { grid-template-columns: 170px 1fr; }
	.jos-vgrid .jos-video--big { grid-template-columns: 1fr; align-content: start; }
}

/* ---------- Gear ---------- */
.jos-gear { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.jos-product { position: relative; display: flex; flex-direction: column; padding: 12px 12px 18px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.jos-product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.jos-product__media { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; margin-bottom: 14px; }
.jos-product__media img { width: 100%; height: 100%; object-fit: contain; }
.jos-product__title { font: 600 .98rem/1.3 var(--serif); padding: 0 4px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jos-product__title a::after { content: ""; position: absolute; inset: 0; }
.jos-product__cta { margin-top: auto; padding: 0 4px; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--paprika); }
.jos-product:hover .jos-ico { transform: translateX(4px); }
.jos-note { margin-top: 22px; font-size: .82rem; color: var(--ink-3); }
.jos-note a { text-decoration: underline; }
@media (min-width: 900px) { .jos-gear { grid-template-columns: repeat(4, 1fr); gap: 22px; } .jos-product { padding: 16px 16px 22px; } }

/* ---------- Newsletter + about ---------- */
.jos-closing { display: grid; gap: 22px; }
.jos-nl { position: relative; overflow: hidden; display: grid; gap: 26px; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); background: radial-gradient(600px 300px at 100% 0%, rgba(227, 155, 45, .35), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(184, 67, 44, .35), transparent 60%), var(--night); color: var(--paper); }
.jos-nl .jos-h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.jos-nl .jos-h2 em { color: var(--saffron-2); }
.jos-nl__copy p:last-child { color: rgba(251, 246, 238, .75); max-width: 34em; }
.jos-nl__form { display: flex; flex-wrap: wrap; gap: 10px; align-self: end; }
.jos-nl__form input[type="email"] { flex: 1 1 220px; min-width: 0; height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(251, 246, 238, .25); background: rgba(251, 246, 238, .08); color: var(--paper); font: 500 1rem var(--sans); }
.jos-nl__form input::placeholder { color: rgba(251, 246, 238, .5); }
.jos-nl__form input:focus { outline: none; border-color: var(--saffron); background: rgba(251, 246, 238, .12); }
.jos-nl__form .jos-btn { min-height: 54px; flex: 1 0 auto; }
.jos-nl__msg { padding: 18px 22px; border-radius: 16px; background: rgba(76, 106, 53, .35); border: 1px solid rgba(160, 200, 120, .4); font-weight: 600; align-self: end; }
.jos-nl__err { width: 100%; color: #ffb4a3; font-size: .9rem; font-weight: 600; }
.jos-about { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--paper-3); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.jos-about p { color: var(--ink-2); }
@media (min-width: 1000px) {
	.jos-closing { grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: stretch; }
	.jos-nl { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 36px; }
	.jos-about { justify-content: center; }
}

/* ---------- Footer ---------- */
.jos-footer { background: var(--night); color: rgba(251, 246, 238, .78); padding: clamp(56px, 7vw, 88px) 0 28px; }
.jos-footer__grid { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(251, 246, 238, .12); }
.jos-footer__word { display: inline-block; font: 500 2.4rem/1 var(--serif); color: var(--paper); letter-spacing: -.02em; margin-bottom: 16px; }
.jos-footer__word em { color: var(--saffron-2); }
.jos-footer__brand p { max-width: 30em; }
.jos-footer__h { font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--saffron-2); margin-bottom: 18px; }
.jos-footer ul { display: grid; gap: 10px; }
.jos-footer ul a { transition: color .2s; }
.jos-footer ul a:hover { color: var(--paper); }
.jos-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: .82rem; color: rgba(251, 246, 238, .5); }
@media (min-width: 760px) { .jos-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 56px; } }

/* ==========================================================================
   SHARED COMPONENTS (all pages)
   ========================================================================== */
.jos-wrap--narrow { max-width: calc(800px + 2 * var(--gutter)); }
.jos-section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.jos-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(76, 106, 53, .1); color: var(--cardamom); font: 700 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; transition: background .2s, color .2s; }
a.jos-pill:hover { background: var(--cardamom); color: #fff; }

/* Breadcrumbs (Yoast) */
.jos-crumbs { font-size: .82rem; font-weight: 600; color: var(--ink-3); margin-bottom: 22px; }
.jos-crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(42, 26, 18, .25); text-underline-offset: 3px; }
.jos-crumbs a:hover { color: var(--paprika); }
.jos-crumbs .breadcrumb_last { color: var(--ink-3); }

/* Page header band (archives, search, pages, 404) */
.jos-pagehead { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.jos-pagehead__decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.jos-pagehead__decor .jos-glow--a { width: 460px; height: 460px; right: -140px; top: -200px; }
.jos-pagehead__decor .jos-glow--b { width: 380px; height: 380px; left: -200px; bottom: -220px; }
.jos-pagehead__title { font: 500 clamp(2.4rem, 6vw, 4.6rem)/1.02 var(--serif); letter-spacing: -.03em; font-variation-settings: "opsz" 144; max-width: 15em; }
.jos-pagehead__title em { font-style: italic; font-weight: 400; color: var(--paprika); }
.jos-pagehead--page .jos-pagehead__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.jos-pagehead__lead { margin-top: 18px; max-width: 42em; font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--ink-2); }
.jos-pagehead__lead p + p { margin-top: .8em; }
.jos-pagehead__count { margin-top: 20px; font-size: .85rem; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.jos-pagehead__search { margin: 26px 0 4px; }

/* Category chips */
.jos-chips { margin-top: 26px; margin-inline: calc(-1 * var(--gutter)); }
.jos-chips ul { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter) 8px; scrollbar-width: none; }
.jos-chips ul::-webkit-scrollbar { display: none; }
.jos-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.jos-chips a span { font-size: .75rem; font-weight: 700; color: var(--ink-3); }
.jos-chips a:hover { border-color: var(--ink); }
.jos-chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.jos-chips a[aria-current="page"] span { color: var(--saffron-2); }
@media (min-width: 900px) { .jos-chips { margin-inline: 0; } .jos-chips ul { flex-wrap: wrap; padding-inline: 0; overflow: visible; } }

/* Card grid */
.jos-grid { display: grid; gap: 36px 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .jos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .jos-grid { grid-template-columns: repeat(3, 1fr); gap: 48px 28px; } }
.jos-card__media { position: relative; }
.jos-card .jos-play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.jos-card--default .jos-card__text { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Listing: lead card is horizontal on wide screens */
.jos-listing .jos-card--lead { margin-bottom: clamp(40px, 6vw, 64px); }
@media (min-width: 900px) {
	.jos-listing .jos-card--lead { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
	.jos-listing .jos-card--lead .jos-card__media { aspect-ratio: 4 / 3; }
	.jos-listing .jos-card--lead .jos-card__body { padding-top: 0; }
}
.jos-listing__sub { margin: 56px 0 24px; }
.jos-empty { max-width: 640px; padding: 36px; border-radius: var(--radius-lg); background: var(--paper-2); }
.jos-empty p + p { margin-top: 10px; color: var(--ink-2); }

/* Pagination */
.jos-pagination { margin-top: clamp(48px, 7vw, 72px); }
.jos-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.jos-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: .92rem; transition: background .2s, color .2s, border-color .2s; }
.jos-pagination a.page-numbers:hover { border-color: var(--ink); }
.jos-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.jos-pagination .page-numbers.dots { border: 0; min-width: 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Newsletter – compact variant (article sidebar / end of article) */
.jos-nl--compact { gap: 16px; padding: 26px; border-radius: var(--radius); grid-template-columns: minmax(0, 1fr) !important; }
.jos-nl > * { min-width: 0; }
.jos-nl--compact .jos-eyebrow { margin-bottom: 10px; }
.jos-nl__title { font: 500 1.35rem/1.15 var(--serif); margin-bottom: 8px; }
.jos-nl__title em { font-style: italic; color: var(--saffron-2); }
.jos-nl--compact .jos-nl__text { font-size: .88rem; }
.jos-nl--compact .jos-nl__form input[type="email"] { height: 48px; flex: 1 1 100%; min-width: 0; }
.jos-nl--compact .jos-nl__form .jos-btn { min-height: 48px; width: 100%; }
.jos-nl__text { color: rgba(251, 246, 238, .75); max-width: 34em; }
@media (min-width: 1000px) { .jos-nl--compact { grid-template-columns: 1fr; } }

/* Reading progress */
.jos-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.jos-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--saffron), var(--paprika)); }

/* ==========================================================================
   ARTICLE
   ========================================================================== */
.jos-article__head { position: relative; isolation: isolate; overflow: hidden; padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.jos-article__title { font: 500 clamp(2.2rem, 5.6vw, 4rem)/1.04 var(--serif); letter-spacing: -.028em; font-variation-settings: "opsz" 144; margin-bottom: 20px; text-wrap: balance; }
.jos-article__dek { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--ink-2); margin-bottom: 26px; max-width: 38em; }
.jos-byline { display: flex; align-items: center; gap: 14px; }
.jos-byline__avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--saffron), var(--paprika)); color: #fff; font: 600 1.2rem/1 var(--serif); }
.jos-byline__avatar--lg { width: 64px; height: 64px; font-size: 1.6rem; }
.jos-byline__text { display: flex; flex-direction: column; gap: 2px; }
.jos-byline__text > a { font-weight: 700; }
.jos-byline__text > a:hover { color: var(--paprika); }
.jos-article__figure { margin: 0 auto clamp(32px, 5vw, 56px); max-width: calc(1100px + 2 * var(--gutter)); }
.jos-article__figure img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.jos-article__layout { display: grid; gap: 32px; padding-bottom: clamp(48px, 7vw, 88px); }
.jos-article__main { min-width: 0; max-width: 740px; width: 100%; margin-inline: auto; }
.jos-article__asidecta { display: none; }
@media (min-width: 1100px) {
	.jos-article__layout.has-toc { grid-template-columns: 260px minmax(0, 740px); justify-content: center; gap: 64px; }
	.jos-article__layout.has-toc .jos-article__main { margin: 0; }
	.jos-article__aside { position: sticky; top: 104px; align-self: start; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-height: calc(100vh - 124px); overflow-y: auto; scrollbar-width: none; }
	.jos-article__aside::-webkit-scrollbar { display: none; }
	.jos-article__asidecta { display: block; }
	.admin-bar .jos-article__aside { top: 136px; }
}

/* Table of contents */
.jos-toc { border-radius: var(--radius); background: var(--paper-2); padding: 6px 20px; }
.jos-toc summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--paprika); }
.jos-toc summary::-webkit-details-marker { display: none; }
.jos-toc summary::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s; }
.jos-toc[open] summary::after { transform: rotate(-135deg); }
.jos-toc ol { counter-reset: t; display: grid; gap: 2px; padding-bottom: 14px; }
.jos-toc li { counter-increment: t; }
.jos-toc a { display: grid; grid-template-columns: 28px 1fr; padding: 7px 0; font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); transition: color .2s; }
.jos-toc a::before { content: counter(t, decimal-leading-zero); font: 600 .78rem/1.6 var(--serif); color: var(--ink-3); }
.jos-toc a:hover, .jos-toc a.is-active { color: var(--paprika); }
.jos-toc a.is-active::before { color: var(--paprika); }

/* Long-form typography */
.jos-prose { font-size: clamp(1.04rem, 1.3vw, 1.125rem); line-height: 1.78; color: #3b2a20; overflow-wrap: break-word; }
.jos-prose > :first-child { margin-top: 0; }
.jos-prose p { margin: 0 0 1.15em; }
.jos-prose h2 { font: 500 clamp(1.6rem, 3vw, 2.15rem)/1.15 var(--serif); letter-spacing: -.015em; color: var(--ink); margin: 2.1em 0 .7em; scroll-margin-top: 110px; }
.jos-prose h3 { font: 600 clamp(1.25rem, 2.2vw, 1.5rem)/1.25 var(--serif); color: var(--ink); margin: 1.8em 0 .6em; scroll-margin-top: 110px; }
.jos-prose h4 { font: 700 1.05rem/1.3 var(--sans); color: var(--ink); margin: 1.6em 0 .5em; }
.jos-prose a { color: var(--paprika); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.jos-prose a:hover { color: var(--ink); }
.jos-prose strong { color: var(--ink); font-weight: 700; }
.jos-prose ul, .jos-prose ol { margin: 0 0 1.3em; }
.jos-prose ul { list-style: none; padding-left: 1.5em; }
.jos-prose ul > li { position: relative; }
.jos-prose ul > li::before { content: ""; position: absolute; left: -1.15em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }
.jos-prose ol { list-style: decimal; padding-left: 1.4em; }
.jos-prose ol > li::marker { color: var(--paprika); font-weight: 700; }
.jos-prose li + li { margin-top: .45em; }
.jos-prose li > ul, .jos-prose li > ol { margin: .45em 0 0; }
.jos-prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--saffron); font: italic 400 1.3em/1.45 var(--serif); color: var(--ink); }
.jos-prose blockquote p:last-child { margin-bottom: 0; }
.jos-prose img { border-radius: 16px; height: auto; }
.jos-prose figure { margin: 1.8em 0; }
.jos-prose figcaption, .jos-prose .wp-caption-text { margin-top: 10px; font-size: .85rem; color: var(--ink-3); text-align: center; }
.jos-prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.jos-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; margin-bottom: 1.4em; }
.jos-prose th, .jos-prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.jos-prose th { font-weight: 700; background: var(--paper-2); }
.jos-prose iframe, .jos-prose video, .jos-prose embed { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-bottom: 1.5em; }
.jos-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.jos-prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.jos-prose .aligncenter { margin-inline: auto; }
.jos-prose .wp-block-button__link { display: inline-flex; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; }
/* Product overview posts (imported galleries + Amazon button) */
.jos-prose img.wp_automatic_gallery { display: inline-block; width: calc(25% - 8px); aspect-ratio: 1; object-fit: contain; margin: 0 8px 8px 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; vertical-align: top; }
@media (max-width: 600px) { .jos-prose img.wp_automatic_gallery { width: calc(33.333% - 8px); } }
.jos-prose a[href*="amazon."] img { display: inline-block; max-width: 240px; border-radius: 10px; box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.jos-prose a[href*="amazon."]:hover img { transform: translateY(-2px); }
.jos-prose .jos-watch a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #c4302b; color: #fff; text-decoration: none; font: 700 .9rem/1 var(--sans); }
.jos-prose .jos-watch a::before { content: ""; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.jos-prose .jos-watch a:hover { background: #a3241f; color: #fff; }
.jos-prose .wp_automatic_amazon_disclaimer { text-decoration: underline dotted; cursor: help; }

/* Article footer */
.jos-article__foot { display: grid; gap: 28px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.jos-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.jos-share__label { font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px; }
.jos-share__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: background .2s, color .2s, transform .2s, border-color .2s; }
.jos-share__btn svg { width: 18px; height: 18px; }
.jos-share__btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.jos-share__btn--pinterest:hover { background: #bd081c; border-color: #bd081c; }
.jos-share__btn.is-copied { background: var(--cardamom); color: #fff; border-color: var(--cardamom); }
.jos-authorbox { display: flex; gap: 20px; align-items: flex-start; padding: 26px; border-radius: var(--radius); background: var(--paper-2); }
.jos-authorbox__label { font: 700 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.jos-authorbox__name { font: 600 1.25rem/1.2 var(--serif); margin-bottom: 8px; }
.jos-authorbox__name a:hover { color: var(--paprika); }
.jos-authorbox__bio { font-size: .94rem; color: var(--ink-2); }

/* Previous / next */
.jos-postnav { display: grid; gap: 14px; padding-bottom: clamp(48px, 7vw, 80px); }
.jos-postnav__item { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.jos-postnav__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.jos-postnav__label { font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--paprika); }
.jos-postnav__title { font: 600 1.12rem/1.3 var(--serif); }
.jos-postnav__item--next { text-align: right; }
@media (min-width: 760px) { .jos-postnav { grid-template-columns: 1fr 1fr; } .jos-postnav__item--next:only-child { grid-column: 2; } }

/* Comments */
.jos-comments-wrap { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.jos-comments__title { margin-bottom: 24px; }
.jos-comments__list, .jos-comments__list .children { display: grid; gap: 18px; }
.jos-comments__list .children { margin: 18px 0 0 28px; }
.jos-comments .comment-body { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.jos-comments .comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.jos-comments .comment-author img { border-radius: 50%; }
.jos-comments .comment-author .says { display: none; }
.jos-comments .comment-metadata { margin: 4px 0 12px 56px; font-size: .8rem; color: var(--ink-3); }
.jos-comments .reply a { font-size: .85rem; font-weight: 700; color: var(--paprika); }
.jos-comments .comment-respond { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--paper-2); }
.jos-comments__list + .comment-respond, .jos-comments .comment-navigation + .comment-respond { margin-top: 40px; }
.jos-comments .comment-reply-title { margin-bottom: 8px; }
.jos-comments .comment-reply-title small { font: 600 .85rem var(--sans); margin-left: 10px; }
.jos-comments .comment-notes, .jos-comments .logged-in-as { font-size: .88rem; color: var(--ink-3); margin-bottom: 18px; }
.jos-comments .comment-form { display: grid; gap: 16px; }
.jos-comments .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
@media (min-width: 700px) {
	.jos-comments .comment-form { grid-template-columns: 1fr 1fr; }
	.jos-comments .comment-form > p { grid-column: 1 / -1; }
	.jos-comments .comment-form > .comment-form-author { grid-column: 1; }
	.jos-comments .comment-form > .comment-form-email { grid-column: 2; }
}

/* ==========================================================================
   FORMS (comments, Contact Form 7)
   ========================================================================== */
:is(.jos-prose, .jos-comments) label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--ink); }
:is(.jos-prose, .jos-comments) :is(.comment-form-cookies-consent, .wpcf7-list-item) label { display: inline; font-weight: 500; }
:is(.jos-prose, .jos-comments) :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], textarea, select) { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--paper-3); background: #fff; font: 500 1rem var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
:is(.jos-prose, .jos-comments) textarea { min-height: 160px; resize: vertical; }
:is(.jos-prose, .jos-comments) :is(input, textarea, select):focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(227, 155, 45, .2); }
:is(.jos-prose, .jos-comments) :is(input[type="submit"], button[type="submit"]) { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 .95rem/1 var(--sans); cursor: pointer; transition: transform .25s var(--ease), background .2s; }
:is(.jos-prose, .jos-comments) :is(input[type="submit"], button[type="submit"]):hover { background: var(--paprika); transform: translateY(-2px); }
.jos-prose .wpcf7 { margin-top: 2em; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--paper-2); }
.jos-prose .wpcf7 p { margin-bottom: 1em; }
.jos-prose .wpcf7-not-valid-tip { color: var(--paprika); font-size: .85rem; margin-top: 6px; }
.jos-prose .wpcf7-response-output { border-radius: 12px; padding: 12px 16px !important; margin: 16px 0 0 !important; }
.jos-searchform { max-width: 100%; }

/* ==========================================================================
   PAGES & 404
   ========================================================================== */
.jos-page__body { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 100px); }
.jos-page__figure img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 36px; }
.jos-pagehead--404 { padding-bottom: clamp(48px, 7vw, 80px); }
.jos-404 { font: 500 clamp(5rem, 16vw, 10rem)/.9 var(--serif); letter-spacing: -.04em; color: var(--ink); margin-bottom: 12px; }
.jos-404 span { display: inline-block; color: var(--saffron); font-size: .7em; vertical-align: .12em; margin: 0 .05em; animation: jos-spin 12s linear infinite; }

/* WordPress core helpers */
.alignwide { max-width: 1100px; }
.wp-caption { max-width: 100%; }
.jos-pagelinks { margin-top: 32px; display: flex; gap: 8px; align-items: center; font-weight: 700; }

/* ---------- Fallback image block ---------- */
.jos-img-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--saffron), var(--paprika)); }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.jos-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.jos-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	body.jos-site *, body.jos-site *::before, body.jos-site *::after { animation: none !important; transition: none !important; }
	.jos-js [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 782px) {
	.admin-bar .jos-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .jos-header { top: 0; }
}
