/* ==========================================================================
   Red Crafta — home page / shared chrome
   Every value comes from tokens.css. No raw colours or sizes below.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base. :where() keeps author resets at zero specificity so component
      rules always win over them (and over anything the parent theme leaks).
   -------------------------------------------------------------------------- */
:where(.rc) *,
:where(.rc) *::before,
:where(.rc) *::after { box-sizing: border-box; }

:where(.rc) h1, :where(.rc) h2, :where(.rc) h3, :where(.rc) h4,
:where(.rc) p, :where(.rc) figure, :where(.rc) blockquote,
:where(.rc) ul, :where(.rc) ol, :where(.rc) dl, :where(.rc) dd {
	margin: 0;
	padding: 0;
	border: 0;
}

:where(.rc) ul, :where(.rc) ol { list-style: none; }
:where(.rc) img, :where(.rc) svg { display: block; max-width: 100%; }
:where(.rc) img { height: auto; }
:where(.rc) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(.rc) a { color: inherit; }

.rc {
	background-color: var(--rc-page);
	color: var(--rc-ink);
	font-family: var(--rc-font-body);
	font-weight: var(--rc-weight-body);
	font-size: var(--rc-size-body);
	line-height: var(--rc-leading-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

.rc :lang(si) { font-family: var(--rc-font-sinhala); }

/* Sinhala sets its own rhythm. The script carries far more height per glyph
   than the Latin serif, so the display sizes step down instead of overflowing
   the hero. The switch puts lang="si" on <html> and every element inherits it,
   so these must stay element-level: a descendant form would compound. */
.rc-display:lang(si) { font-size: calc(var(--rc-size-display) * 0.68); line-height: 1.26; }
.rc-h2:lang(si) { font-size: calc(var(--rc-size-h2) * 0.8); line-height: 1.3; }
.rc-h3:lang(si) { font-size: calc(var(--rc-size-h3) * 0.88); line-height: 1.38; }

.rc-skip {
	position: absolute;
	left: var(--rc-space-sm);
	top: var(--rc-space-sm);
	z-index: var(--rc-z-menu);
	padding: var(--rc-space-2xs) var(--rc-space-sm);
	background: var(--rc-forest);
	color: var(--rc-on-forest);
	transform: translateY(-200%);
}
.rc-skip:focus { transform: translateY(0); }

.rc :focus-visible {
	outline: var(--rc-hairline) solid var(--rc-terracotta);
	outline-offset: 3px;
}

.rc-visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2. Shared layout. One container for every section, so all left edges
      agree. A section whose background reaches the screen edge takes
      --full and insets its own content back to the same column.
   -------------------------------------------------------------------------- */
.rc-shell {
	width: 100%;
	max-width: var(--rc-container);
	margin-inline: auto;
	padding-inline: var(--rc-gutter);
}
.rc-shell--wide { max-width: var(--rc-container-wide); }

/* Edge to edge. Whatever sits inside is responsible for its own inset. */
.rc-shell--full {
	max-width: none;
	padding-inline: 0;
}

.rc-section { padding-block: var(--rc-space-2xl); }
.rc-section--quiet { padding-block: var(--rc-space-3xl); }

/* The home page's content sections run on a roomier container than the
   default shell. Scoped to those sections on purpose: the identity band and
   the nav in parts/site-header.php share the plain .rc-shell and must keep
   the desktop width they were signed off on. */
.rc-categories > .rc-shell,
.rc-shelf > .rc-shell,
.rc-why > .rc-shell,
.rc-trade > .rc-shell,
.rc-close > .rc-shell {
	max-width: var(--rc-container-roomy);
}

/* --------------------------------------------------------------------------
   3. Type and small parts
   -------------------------------------------------------------------------- */
.rc-display,
.rc-h2,
.rc-h3 {
	font-family: var(--rc-font-display);
	font-weight: var(--rc-weight-display);
	color: var(--rc-ink);
}
.rc-display {
	font-size: var(--rc-size-display);
	line-height: var(--rc-leading-display);
	letter-spacing: var(--rc-track-display);
}
.rc-h2 {
	font-size: var(--rc-size-h2);
	line-height: var(--rc-leading-head);
	letter-spacing: var(--rc-track-display);
}
.rc-h3 {
	font-size: var(--rc-size-h3);
	line-height: var(--rc-leading-tight);
}

.rc-lead {
	font-size: var(--rc-size-lead);
	line-height: var(--rc-leading-body);
	max-width: var(--rc-measure);
	color: var(--rc-ink-soft);
}
.rc-body { max-width: var(--rc-measure); color: var(--rc-ink-soft); }
.rc-small { font-size: var(--rc-size-small); color: var(--rc-ink-soft); }

.rc-eyebrow {
	display: block;
	font-size: var(--rc-size-label);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-earth);
}
.rc-eyebrow :lang(si) { letter-spacing: normal; text-transform: none; }

.rc-rule {
	height: var(--rc-hairline);
	border: 0;
	background: var(--rc-rule);
}

/* gold hairline with a centre bead, as in the approved header */
.rc-rule--bead {
	position: relative;
	background: linear-gradient(90deg, transparent, var(--rc-rule-strong) 12%, var(--rc-rule-strong) 88%, transparent);
}
.rc-rule--bead::after {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	width: 5px; height: 5px;
	transform: translate(-50%, -50%) rotate(45deg);
	background: var(--rc-gold);
}

/* --------------------------------------------------------------------------
   4. Buttons. Sharp corners, wide tracking. One accent, calls to action only.
   -------------------------------------------------------------------------- */
.rc-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--rc-space-2xs);
	padding: 1.05rem 2.1rem;
	border-radius: var(--rc-radius-none);
	font-size: var(--rc-size-label-lg);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-button);
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color var(--rc-duration-fast) var(--rc-ease),
	            color var(--rc-duration-fast) var(--rc-ease),
	            border-color var(--rc-duration-fast) var(--rc-ease);
}
.rc-btn :lang(si),
.rc-btn:lang(si) { letter-spacing: normal; text-transform: none; }

.rc-btn--solid {
	background: var(--rc-terracotta);
	color: var(--rc-cream-light);
	border: var(--rc-hairline) solid var(--rc-terracotta);
}
.rc-btn--solid:hover,
.rc-btn--solid:focus-visible { background: var(--rc-earth); border-color: var(--rc-earth); }

/* The hero action on the crafting stage: forest green, sharp cornered,
   terracotta on hover. It is given a hairline rather than a bare fill,
   because forest green sitting on a dark photograph needs an edge
   before it reads as a button at all. */
.rc-btn--forest {
	background: var(--rc-forest);
	color: var(--rc-cream);
	border: var(--rc-hairline) solid var(--rc-rule-on-forest);
}
.rc-btn--forest:hover,
.rc-btn--forest:focus-visible {
	background: var(--rc-terracotta);
	border-color: var(--rc-terracotta);
	color: var(--rc-cream-light);
}

.rc-btn--outline {
	background: transparent;
	color: var(--rc-ink);
	border: var(--rc-hairline) solid var(--rc-rule-strong);
}
.rc-btn--outline:hover,
.rc-btn--outline:focus-visible { border-color: var(--rc-terracotta); color: var(--rc-terracotta); }

.rc-btn--on-dark {
	background: transparent;
	color: var(--rc-on-forest);
	border: var(--rc-hairline) solid var(--rc-rule-on-forest);
}
.rc-btn--on-dark:hover,
.rc-btn--on-dark:focus-visible { border-color: var(--rc-gold); color: var(--rc-gold); }

.rc-btn__arrow { transition: transform var(--rc-duration-fast) var(--rc-ease); }
.rc-btn:hover .rc-btn__arrow { transform: translateX(4px); }

/* 4a. Reach: the Call Now / WhatsApp pair.

   One component in three places - the foot of the mobile menu, the footer's
   contact column and the contact page - so the owner's one confirmed number is
   always offered the same way. rc_contact_buttons() prints it, and prints
   nothing while no number is configured, so a dead link is not possible.

   It lives in this sheet rather than pages.css because this one is enqueued on
   every view and is what pages, shop and product all depend on.

   Two equal tracks: the pair reads as one control, and neither action looks
   like the afterthought of the other. */
.rc-reach {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rc-space-2xs);
}

.rc-reach__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--rc-space-3xs);
	min-height: var(--rc-tap);
	padding: var(--rc-space-2xs) var(--rc-space-xs);
	border: var(--rc-hairline) solid transparent;
	border-radius: var(--rc-radius-none);
	font-family: var(--rc-font-body);
	font-size: var(--rc-size-label);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-button);
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color var(--rc-duration-fast) var(--rc-ease),
	            color var(--rc-duration-fast) var(--rc-ease),
	            border-color var(--rc-duration-fast) var(--rc-ease);
}

/* Sinhala is not an uppercase script and takes no tracking. */
.rc-reach__btn :lang(si),
.rc-reach__btn:lang(si) { letter-spacing: normal; text-transform: none; }

.rc-reach__icon {
	display: inline-flex;
	flex: none;
}

.rc-reach__icon svg {
	width: 1.0625rem;
	height: 1.0625rem;
}

/* Calling is the action the owner asked to lead with, so it takes the one
   accent as a fill; WhatsApp sits beside it as the hairline sibling. */
.rc-reach__btn--call {
	background: var(--rc-terracotta);
	border-color: var(--rc-terracotta);
	color: var(--rc-cream-light);
}

.rc-reach__btn--call:hover,
.rc-reach__btn--call:focus-visible {
	background: var(--rc-earth);
	border-color: var(--rc-earth);
}

.rc-reach__btn--whatsapp {
	background: transparent;
	border-color: var(--rc-rule-strong);
	color: var(--rc-ink);
}

.rc-reach__btn--whatsapp:hover,
.rc-reach__btn--whatsapp:focus-visible {
	border-color: var(--rc-terracotta);
	color: var(--rc-terracotta);
}

/* On the footer's forest ground the ink sibling would disappear, so the
   hairline and the lettering move to the colours that read there. */
.rc-reach--footer {
	margin-top: var(--rc-space-sm);
	max-width: 22rem;
}

.rc-reach--footer .rc-reach__btn--whatsapp {
	border-color: var(--rc-rule-on-forest);
	color: var(--rc-on-forest);
}

.rc-reach--footer .rc-reach__btn--whatsapp:hover,
.rc-reach--footer .rc-reach__btn--whatsapp:focus-visible {
	border-color: var(--rc-gold);
	color: var(--rc-gold);
}

/* On the contact page the pair follows the details list, under the same
   measure as the note beneath it. */
.rc-reach--page {
	margin-top: var(--rc-space-sm);
	max-width: var(--rc-measure-narrow);
}

/* quiet text link */
.rc-link {
	display: inline-flex;
	align-items: center;
	gap: var(--rc-space-2xs);
	font-size: var(--rc-size-label-lg);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--rc-terracotta);
	padding-block-end: var(--rc-space-3xs);
	border-bottom: var(--rc-hairline) solid transparent;
	transition: border-color var(--rc-duration-fast) var(--rc-ease);
}
.rc-link :lang(si) { letter-spacing: normal; text-transform: none; }
.rc-link:hover, .rc-link:focus-visible { border-bottom-color: var(--rc-terracotta); }
.rc-link:hover .rc-btn__arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Scroll reveal. Hidden only once JS has flagged support, so no-JS,
      print and crawlers always see the content.
   -------------------------------------------------------------------------- */
.rc-js .rc-reveal {
	opacity: 0;
	transform: translateY(var(--rc-reveal-shift));
	transition: opacity var(--rc-duration-slow) var(--rc-ease),
	            transform var(--rc-duration-slow) var(--rc-ease);
}
.rc-js .rc-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.rc-js .rc-reveal { opacity: 1; transform: none; transition: none; }
	.rc * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
	.rc-hero__media { transform: none !important; }
}

/* ---------------------------------------------------------------------------
   6. Shared header. Identical on every page.

   The artwork is not drawn here. The botanical panels, the RC emblem and the
   bead on the closing rule are crops lifted out of the reference plate and
   keyed against its own backdrop, so they arrive with no background of their
   own: their highlights sit on the brand colours set below and their shadows
   darken those same colours. What this file draws is only the chrome that has
   to follow the viewport - the strip, the band, the flanking rules, the
   tagline, the icons, the switch, the navigation and the metal line.

   Every row is derived from --rc-head-h, because each panel carries the
   strip/band seam baked in at 96 of its 613 pixels. Change that one value and
   the whole header rescales in register.
   --------------------------------------------------------------------------*/

.rc-header {
	position: relative;
	overflow: hidden;
	z-index: var(--rc-z-header);
}

/* 6a. The reference artwork, laid in from both edges */

/* Each panel spans the strip and the band at once, which is what lets the
   leaf tips reach up over the forest green by exactly the amount they do in
   the reference. Height drives the size and width follows, so no crop is ever
   scaled on one axis. Where a narrow viewport will not take a whole panel,
   max-width bites and object-fit crops the inner end instead of squeezing it,
   while object-position holds the outer edge against the edge of the page. */
.rc-foliage {
	position: absolute;
	top: 0;
	height: 100%;
	width: auto;
	max-width: 30%;
	object-fit: cover;
	z-index: var(--rc-z-ornament);
	pointer-events: none;
	user-select: none;
}

/* The crops used to carry the reference plate's own backdrop baked in - a
   dark field over the top band, a flat gold-tan field below it, and a hard
   rule between the two - which composited into a visible rectangle with a
   line through it. That is gone from the files themselves now, so what is
   left here is only a soft finish on the inner edge, the one that meets open
   cream rather than the edge of the page. The botanical stops short of it,
   so the feather costs the artwork nothing. */
.rc-foliage--left {
	left: 0;
	object-position: left center;
	-webkit-mask-image: linear-gradient(to right, currentColor 0 88%, transparent 100%);
	mask-image: linear-gradient(to right, currentColor 0 88%, transparent 100%);
}

.rc-foliage--right {
	right: 0;
	object-position: right center;
	-webkit-mask-image: linear-gradient(to left, currentColor 0 88%, transparent 100%);
	mask-image: linear-gradient(to left, currentColor 0 88%, transparent 100%);
}

/* 6b. Announcement strip */

.rc-announce {
	position: relative;
	height: calc(var(--rc-head-h) * var(--rc-head-strip));
	background: var(--rc-forest);
	color: var(--rc-gold);
}

/* Three tracks so the tagline sits on the true centre of the page rather
   than the centre of the space the icons leave behind. */
.rc-announce__inner {
	position: relative;
	z-index: var(--rc-z-content);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--rc-space-sm);
	height: 100%;
}

.rc-announce__tagline {
	grid-column: 2;
	display: flex;
	align-items: center;
	gap: clamp(var(--rc-space-xs), 2vw, var(--rc-space-md));
	font-family: var(--rc-font-display);
	font-size: var(--rc-size-tagline);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label-wide);
	text-transform: uppercase;
	color: var(--rc-gold);
}

/* Sinhala has no case and sets badly when it is tracked out. */
.rc-announce__tagline:lang(si) {
	letter-spacing: normal;
	text-transform: none;
}

/* A hairline flanking the tagline on each side, closed by a bead carrying the
   soft halo the reference puts on those endpoints. */
.rc-announce__tagline::before,
.rc-announce__tagline::after {
	content: "";
	flex: none;
	width: clamp(3rem, 13vw, 15rem);
	height: 12px;
	background:
		radial-gradient(circle at 6px 50%, var(--rc-gold) 0 3px, var(--rc-gold-glow) 3px 6px, transparent 6px) no-repeat,
		radial-gradient(circle at calc(100% - 6px) 50%, var(--rc-gold) 0 3px, var(--rc-gold-glow) 3px 6px, transparent 6px) no-repeat,
		linear-gradient(var(--rc-rule-strong) 0 0) no-repeat center / 100% var(--rc-hairline);
}

.rc-social {
	display: flex;
	align-items: center;
}

.rc-social a,
.rc-social__pending {
	display: grid;
	place-items: center;
	color: var(--rc-gold);
	transition: color var(--rc-duration-fast) var(--rc-ease);
}

.rc-social__pending {
	cursor: default;
}

.rc-social a:hover,
.rc-social a:focus-visible {
	color: var(--rc-cream);
}

.rc-social svg {
	width: var(--rc-icon-social);
	height: var(--rc-icon-social);
}

/* The reference leaves clear air between the three marks and draws nothing in
   it, so the row is spaced rather than divided. */
.rc-social--announce {
	grid-column: 3;
	justify-self: end;
	gap: clamp(var(--rc-space-sm), 2.3vw, 2.1rem);
}

.rc-social--announce li {
	display: flex;
}

.rc-social--footer {
	gap: var(--rc-space-sm);
}

/* 6c. Cream identity band */

.rc-identity {
	position: relative;
	height: calc(var(--rc-head-h) * var(--rc-head-band));
	background: var(--rc-cream);
}

.rc-identity__inner {
	position: relative;
	z-index: var(--rc-z-content);
	display: grid;
	justify-items: center;
	align-content: start;
	height: 100%;
	text-align: center;
}

.rc-logo-slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.rc-logo-slot img {
	display: block;
	width: auto;
	object-fit: contain;
}

/* The emblem takes the height and the offset the reference gives it inside
   the band. Height alone is set; the width follows the crop's own ratio. */
.rc-identity .rc-logo-slot img {
	height: calc(var(--rc-head-h) * var(--rc-head-emblem));
	margin-top: calc(var(--rc-head-h) * var(--rc-head-emblem-top));
}

/* The emblem is drawn for a cream field, so on the forest footer it is given
   one rather than recoloured. The artwork already carries its own margin, so
   the card only has to clear it, and it is set taller than the old vector
   lockup was because this crop spends its upper two thirds on the ring - at
   the old height the wordmark under it fell below reading size. */
.rc-logo-slot--footer {
	background: var(--rc-cream);
	padding: var(--rc-space-xs) var(--rc-space-sm);
	border: var(--rc-hairline) solid var(--rc-rule);
}

.rc-logo-slot--footer img {
	height: clamp(104px, 13vw, 140px);
}

/* 6d. Language switch.

   The reference sets this pill into the upper right of the cream band, clear
   of the emblem and just inside the right-hand foliage. Its offsets are read
   off the plate: 16px down into a 613px block, and a right edge at 77% of the
   width. Whichever language is live carries the filled state - the switch
   must never show one language while the page is set in the other. */
.rc-lang {
	position: absolute;
	top: calc(var(--rc-head-h) * 0.026);
	right: clamp(var(--rc-gutter), 22.8%, 330px);
	z-index: var(--rc-z-menu);
	display: inline-flex;
	align-items: center;
	padding: 2px;
	border: var(--rc-hairline) solid var(--rc-rule-strong);
	border-radius: var(--rc-radius-pill);
	background: var(--rc-cream);
}

.rc-lang__btn {
	padding: 0.3rem 0.72rem;
	border-radius: var(--rc-radius-pill);
	font-size: var(--rc-size-micro);
	font-weight: var(--rc-weight-label);
	letter-spacing: 0.08em;
	line-height: 1.2;
	color: var(--rc-ink);
	transition:
		background var(--rc-duration-fast) var(--rc-ease),
		color var(--rc-duration-fast) var(--rc-ease);
}

.rc-lang__btn[lang="si"] {
	font-family: var(--rc-font-sinhala);
	letter-spacing: normal;
}

.rc-lang__btn[aria-pressed="true"] {
	background: var(--rc-forest);
	color: var(--rc-cream);
}

/* 6e. Navigation row */

.rc-nav {
	position: sticky;
	top: 0;
	padding-bottom: var(--rc-navbar-rule);
	background: var(--rc-surface);
	border-top: var(--rc-hairline) solid var(--rc-rule);
	z-index: var(--rc-z-header);
}

/* The closing rule: five bands of colour sampled down the reference's own
   metal, so the line reads as milled gold at any width rather than as a
   tinted border. */
.rc-nav::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--rc-navbar-rule);
	background: linear-gradient(
		to bottom,
		var(--rc-metal-lip) 0 20%,
		var(--rc-metal-shoulder) 20% 40%,
		var(--rc-metal-core) 40% 60%,
		var(--rc-metal-shadow) 60% 80%,
		var(--rc-metal-base) 80% 100%
	);
}

/* The sphere that rides on it. The crop carries its own stub of that rule,
   and the stub crosses the crop at 62.07% of its height, so the offset below
   lands it on the middle of the gradient.

   Rows 7 to 39 of the 58-row crop hold the sphere and its stub of rule;
   everything outside them is the plate backdrop's wash, which would print a
   pale rectangle where the sphere hangs below the rule onto the page. The
   mask keeps the sphere and drops the wash. */
.rc-nav__bead {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: auto;
	height: 48px;
	transform: translate(-50%, calc(62.07% - 2.5px));
	z-index: var(--rc-z-content);
	pointer-events: none;
	user-select: none;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, currentColor 10%, currentColor 70%, transparent 84%);
	mask-image: linear-gradient(to bottom, transparent 0, currentColor 10%, currentColor 70%, transparent 84%);
}

.rc-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rc-space-sm);
	min-height: var(--rc-navbar-h);
}

.rc-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(var(--rc-space-sm), 2.6vw, var(--rc-space-lg));
}

.rc-nav__link {
	position: relative;
	display: block;
	padding-block: var(--rc-space-xs);
	font-family: var(--rc-font-display);
	font-size: clamp(1rem, 1.3vw, 1.2rem);
	font-weight: var(--rc-weight-nav);
	letter-spacing: 0.015em;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	color: var(--rc-forest);
	transition: color var(--rc-duration-fast) var(--rc-ease);
}

.rc-nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.35rem;
	height: var(--rc-hairline);
	background: var(--rc-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--rc-duration-fast) var(--rc-ease);
}

.rc-nav__link:hover::after,
.rc-nav__link:focus-visible::after {
	transform: scaleX(1);
}

.rc-nav__link[aria-current="page"] {
	color: var(--rc-terracotta);
}

.rc-nav__link[aria-current="page"]::after {
	left: -2px;
	right: -2px;
	bottom: -0.15rem;
	height: 2px;
	background: var(--rc-terracotta);
	transform: scaleX(1);
}

.rc-nav__utilities {
	display: flex;
	align-items: center;
}

.rc-nav__utilities li {
	display: flex;
	padding-inline: var(--rc-space-sm);
}

.rc-nav__utilities li + li {
	border-left: var(--rc-hairline) solid var(--rc-rule-strong);
}

.rc-nav__utilities li:last-child {
	padding-right: 0;
}

.rc-nav__utilities a {
	display: inline-flex;
	align-items: center;
	color: var(--rc-forest);
	text-decoration: none;
	transition: color var(--rc-duration-fast) var(--rc-ease);
}

.rc-nav__utilities a:hover,
.rc-nav__utilities a:focus-visible {
	color: var(--rc-terracotta);
}

.rc-nav__utilities svg {
	width: 1.2rem;
	height: 1.2rem;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.5;
}

.rc-nav__cart {
	position: relative;
	display: inline-flex;
}

.rc-nav__count {
	position: absolute;
	top: -0.55rem;
	right: -0.6rem;
	display: grid;
	place-items: center;
	min-width: 1.2rem;
	height: 1.2rem;
	padding-inline: 0.2rem;
	border-radius: var(--rc-radius-pill);
	background: var(--rc-forest);
	color: var(--rc-cream);
	font-family: var(--rc-font-body);
	font-size: var(--rc-size-micro);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1;
}

.rc-nav__mobile {
	display: none;
	align-items: center;
	gap: var(--rc-space-xs);
}

.rc-burger {
	display: inline-flex;
	align-items: center;
	gap: var(--rc-space-2xs);
	padding: var(--rc-space-2xs) var(--rc-space-xs);
	border: var(--rc-hairline) solid var(--rc-rule-strong);
	font-size: var(--rc-size-label);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-forest);
}

.rc-burger__bars {
	display: grid;
	gap: 3px;
	width: 1rem;
}

.rc-burger__bars span {
	height: var(--rc-hairline);
	background: currentColor;
}

/* The wrapper the links fold into below the desktop tier. On desktop it has
   no business existing, so it steps out of the box tree entirely and the
   list goes back to being a direct flex child of the navigation row. */
.rc-nav__panel,
.rc-nav__panel-inner {
	display: contents;
}

/* 6g. The pieces only the narrow tiers want.

   Every one of them sits in the markup at all widths and is switched off
   here, so nothing has to be duplicated per template, moved between files or
   swapped in by script - one set of markup, one tier that shows it.

   The tools wrapper is the exception that is not simply hidden. Below the
   tier it becomes the right-hand zone of the row; above it steps out of the
   box tree entirely, so the icon row and the burger stay direct children of
   the row and the wide layout is exactly what it always was. */
.rc-nav__brand,
.rc-barlang,
.rc-nav__extra,
.rc-reach--menu,
.rc-bar {
	display: none;
}

.rc-nav__tools {
	display: contents;
}

/* 6f. The header across the three tiers.

   tokens.css fixes the two numbers; this file only ever uses those two. At
   the tablet break the flanking rules and the three-track grid stop earning
   their space, the block pulls back so the emblem keeps a clear field, and
   the navigation folds into a panel. The header ratio still holds, so the
   panels stay in register - they simply carry less of themselves across. */
@media (max-width: 1023px) {
	.rc-header {
		--rc-head-h: clamp(210px, 30vw, 300px);
	}

	.rc-announce__inner {
		display: flex;
		justify-content: space-between;
	}

	.rc-announce__tagline::before,
	.rc-announce__tagline::after {
		display: none;
	}

	/* A panel is as wide as its own height makes it: 657 by 613 is a touch
	   wider than tall, so at this header ratio each one wants a little under a
	   third of the page. The old 26 percent cap was narrower than that, and a
	   capped box with object-fit: cover does not shrink the crop, it slices it -
	   which took a fifth of the botanical off at a hard vertical line straight
	   through the leaves. The cap is lifted clear of what the panel actually
	   asks for, so the whole crop is shown, uniformly scaled, with the seam
	   still in register and the emblem still in clear air between them. */
	.rc-foliage {
		max-width: 34%;
	}

	.rc-lang {
		right: var(--rc-gutter);
	}

	.rc-nav__inner {
		min-height: var(--rc-navbar-h);
	}

	.rc-lang__btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: calc(var(--rc-tap) * 1.6);
		min-height: var(--rc-tap);
		padding-inline: var(--rc-space-sm);
		font-size: var(--rc-size-label);
	}

	/* The panel is a grid row measured in fr, so it opens and closes on its
	   own content without a pixel height having to be guessed or measured in
	   script. visibility is held back until the row has finished growing,
	   which is what keeps the folded links out of the tab order. */
	.rc-nav__panel {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: grid;
		grid-template-rows: 0fr;
		visibility: hidden;
		background: var(--rc-surface);
		box-shadow: var(--rc-shadow-lift);
		transition:
			grid-template-rows var(--rc-duration) var(--rc-ease),
			visibility 0s linear var(--rc-duration);
	}

	.rc-nav__panel-inner {
		display: block;
		min-height: 0;
		overflow: hidden;
	}

	.rc-nav--open .rc-nav__panel {
		grid-template-rows: 1fr;
		visibility: visible;
		border-bottom: var(--rc-hairline) solid var(--rc-rule);
		transition-delay: 0s;
	}

	.rc-nav__list {
		display: grid;
		gap: 0;
		padding: var(--rc-space-2xs) var(--rc-gutter) var(--rc-space-sm);
	}

	.rc-nav__list li + li {
		border-top: var(--rc-hairline) solid var(--rc-rule);
	}

	/* The pair the owner asked for below the folded links. It is inside the
	   panel, so it opens and shuts with it; the list's own bottom padding is
	   the gap above it. */
	.rc-reach--menu {
		display: grid;
		padding: 0 var(--rc-gutter) var(--rc-space-sm);
	}

	.rc-nav__link {
		display: flex;
		align-items: center;
		min-height: var(--rc-tap);
		padding-block: var(--rc-space-xs);
		font-size: var(--rc-size-h5);
	}

	.rc-nav__link::after {
		bottom: 0.5rem;
	}

	.rc-nav__mobile {
		display: flex;
	}

	.rc-burger {
		justify-content: center;
		min-width: var(--rc-tap);
		min-height: var(--rc-tap);
	}

	/* The icons stay out in the bar rather than folding away with the links:
	   a cart two taps deep is a cart nobody opens. The dividers go instead,
	   which is what buys each icon its full touch square. */
	.rc-nav__utilities {
		display: flex;
	}

	.rc-nav__utilities li {
		padding-inline: 0;
	}

	.rc-nav__utilities li + li {
		border-left: 0;
	}

	.rc-nav__utilities a {
		justify-content: center;
		min-width: var(--rc-tap);
		min-height: var(--rc-tap);
	}

	/* --- The narrow row: mark, switch, account, burger ------------------- */

	/* Three zones. The middle one is centred on the row itself rather than on
	   whatever the two sides happen to measure, which two equal outer tracks
	   give for free and space-between never can. The panel is positioned
	   absolutely below the row, so it claims no track of its own. */
	.rc-nav__inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		gap: var(--rc-space-2xs);
	}

	.rc-nav__brand {
		display: inline-flex;
		align-items: center;
		justify-self: start;
		min-height: var(--rc-tap);
	}

	.rc-nav__brand img {
		display: block;
		width: auto;
		height: 2.25rem;
	}

	/* The switch in the identity band goes quiet and this one speaks for it,
	   so the page still carries exactly one - and now a sticky one. It is
	   deliberately not .rc-lang: that class carries the absolute offsets of
	   the band and a phone rule of its own, and either would undo the
	   centring inside a grid cell. Only the chrome is restated; the buttons
	   are shared, so the Sinhala face and the pressed state still come from
	   one place. */
	.rc-identity .rc-lang {
		display: none;
	}

	.rc-barlang {
		display: inline-flex;
		align-items: center;
		justify-self: center;
		padding: 2px;
		border: var(--rc-hairline) solid var(--rc-rule-strong);
		border-radius: var(--rc-radius-pill);
		background: var(--rc-cream);
	}

	/* The tablet rule widens every language button to a tap and a half, which
	   is right when the switch has a row to itself and far too wide when it
	   shares one with a mark and two icons. The width goes; the tap height
	   stays, because a finger still has to land on it.

	   The side padding is tighter than the band version for a reason that is
	   structural rather than cosmetic: two equal outer tracks stay equal only
	   while the middle one leaves room for the wider of the two, and at 320px
	   the account icon and the burger are the wider of the two. Let the pill
	   grow past that and the right track pushes the middle one off centre. */
	.rc-barlang .rc-lang__btn {
		min-width: 0;
		min-height: var(--rc-tap);
		padding-inline: var(--rc-space-2xs);
	}

	.rc-nav__tools {
		display: flex;
		align-items: center;
		justify-self: end;
		gap: var(--rc-space-3xs);
	}

	/* Search, wishlist and cart have seats on the bottom bar now, so the top
	   row keeps the account icon alone and the burger follows straight after
	   it. Compare has no seat down there, so it folds into the dropdown
	   rather than becoming unreachable. */
	.rc-nav__utilities > li:not(.rc-nav__util--top) {
		display: none;
	}

	.rc-nav__extra {
		display: block;
	}

	/* --- The bottom bar -------------------------------------------------- */

	/* It sits on the layer of the header rather than above it: the quick view
	   is a tier higher again, so it still covers the bar the way it covers
	   everything else.

	   The top edge is the same milled gold the navigation row closes on, from
	   the same five tokens in the same order, so the two edges read as one
	   metal rather than as a rule borrowed for the occasion. */
	.rc-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: var(--rc-z-header);
		display: block;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background: var(--rc-cream);
		box-shadow: var(--rc-shadow-bar);
	}

	.rc-bar::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		height: 4px;
		background: linear-gradient(
			to bottom,
			var(--rc-metal-lip) 0 20%,
			var(--rc-metal-shoulder) 20% 40%,
			var(--rc-metal-core) 40% 60%,
			var(--rc-metal-shadow) 60% 80%,
			var(--rc-metal-base) 80% 100%
		);
	}

	/* Equal columns that count themselves, so a destination the site has not
	   been given yet leaves four evenly spread rather than a gap. */
	.rc-bar__list {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
	}

	.rc-bar__item {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: var(--rc-bar-h);
		color: var(--rc-forest);
		text-decoration: none;
	}

	.rc-bar__icon {
		position: relative;
		display: inline-flex;
	}

	.rc-bar__item svg {
		position: relative;
		width: 1.45rem;
		height: 1.45rem;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.4;
	}

	/* The page you are on is marked with gold behind the icon rather than
	   gold in it. Antique gold on cream is too close a pair to carry a stroke
	   this fine; behind a forest-green icon the same colour reads at a glance
	   and the icon keeps its contrast. */
	.rc-bar__item[aria-current] .rc-bar__icon::before {
		content: "";
		position: absolute;
		inset: -0.5rem;
		border-radius: var(--rc-radius-pill);
		background: var(--rc-gold-glow);
	}

	.rc-bar__count {
		position: absolute;
		top: -0.45rem;
		right: -0.6rem;
		display: grid;
		place-items: center;
		min-width: 1.15rem;
		height: 1.15rem;
		padding-inline: 0.2rem;
		border-radius: var(--rc-radius-pill);
		background: var(--rc-forest);
		color: var(--rc-cream);
		font-family: var(--rc-font-body);
		font-size: var(--rc-size-micro);
		font-weight: 600;
		letter-spacing: 0;
		line-height: 1;
	}

	/* The page ends above the bar instead of underneath it. The padding is
	   exactly the height of the bar plus whatever the device reserves below
	   it, and the bar carries the same cream the page does, so the strip it
	   is given and the strip it covers are one - no seam, nothing hidden. */
	body.rc {
		padding-bottom: calc(var(--rc-bar-h) + env(safe-area-inset-bottom, 0px));
	}
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
	.rc-nav__panel {
		transition: none;
	}
}

/* At phone width there is no longer room to hold the switch clear of the
   emblem, so the band gives up its fixed height and stacks: emblem, then
   switch. The panels still span the whole block and still meet the seam,
   which now falls wherever the content puts it. Both language buttons take a
   full touch square here, because the brief asks for the සිංහල switch to be
   obvious and testable on a phone before anything else. */
@media (max-width: 767px) {
	.rc-announce__tagline {
		letter-spacing: var(--rc-track-label);
	}

	/* A 320px phone has 280px of row to spend, and three zones to spend it on.
	   Two of them are fixed by what they hold - two words in two scripts, an
	   account icon and a burger - so the only give is here. The mark drops a
	   quarter inch and the pill pulls its sides in, which is enough to keep
	   the two outer tracks equal and the switch on the centre line instead of
	   squeezing the mark out of shape to make room. */
	.rc-nav__brand img {
		height: 2rem;
	}

	/* The tap height the tablet rule sets is the floor for a control that has
	   a row to itself. This one shares its row with a mark and two icons, and
	   at that height the pill was the heaviest thing on the bar. It comes down
	   to the smallest height a finger still lands on reliably, and the labels
	   drop to the micro size, which is 12px here - a label, not running copy,
	   so the 14px floor does not apply to it. */
	.rc-barlang {
		padding: var(--rc-hairline);
	}

	.rc-barlang .rc-lang__btn {
		min-height: calc(var(--rc-tap) - var(--rc-space-xs));
		padding-inline: var(--rc-space-3xs);
		font-size: var(--rc-size-micro);
	}

	/* A phone cannot do what the wider tiers do. The band stacks, so the header
	   grows tall while the page stays narrow, and a panel scaled to that height
	   would be nearly as wide as the screen. Rather than slice it - which left
	   barely a quarter of the artwork standing, cut off down the middle - the
	   panels stop taking their size from the header and take it from the space
	   beside the emblem instead: width leads, height follows, so the crop is
	   whole and uniformly scaled. The width is measured against the emblem's own
	   clamp, so the leaves reach it and never cross it at any phone size.

	   They hang from the foot of the header rather than the head of it, and the
	   band that belongs over the announcement strip is cut off before they do.

	   Every crop carries the strip/band seam baked in at row 96 of its 613. The
	   96 rows above that seam are the part of the reference plate that lies on
	   the dark strip, and at the two wider tiers they land on it exactly. Hung
	   from the bottom edge at a phone size the plate is far shorter than the
	   header, so those rows land in the middle of the cream instead, where their
	   pale leaves and the straight seam beneath them read as a torn slice beside
	   the emblem. That is the patch in the reference shots, on both sides.

	   The cut is made with the aspect ratio rather than a second set of files:
	   the box is given the seam's own proportion, cover scales the crop to the
	   box width, and the surplus comes off the top because the bottom edge is
	   the one that is pinned. Nothing is stretched, recoloured or redrawn, the
	   crops on disk are untouched, and the wider tiers still draw them whole.

	   The new top edge is then feathered the way the inner edges already are, so
	   the leaves the cut passes through dissolve instead of stopping on a line.
	   Two mask layers intersected: the inner fade restated, and the top fade.

	   They are drawn at full strength here, exactly as on the desktop tier. The
	   half opacity that used to sit on this rule was covering for the backdrop
	   the crops still carried then; with the crops clean it only drained the
	   greens and the reds towards the cream, so the same artwork read washed out
	   on a phone and saturated on a desktop. One set of colours, every width. */
	.rc-foliage {
		top: auto;
		bottom: 0;
		height: auto;
		width: calc((100% - clamp(132px, 40vw, 190px)) / 2 - var(--rc-space-2xs));
		max-width: none;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-composite: source-in;
		mask-composite: intersect;
	}

	.rc-foliage--left {
		aspect-ratio: 657 / 517;
		object-position: left bottom;
		-webkit-mask-image:
			linear-gradient(to right, currentColor 0 88%, transparent 100%),
			linear-gradient(to bottom, transparent 0, currentColor 24%);
		mask-image:
			linear-gradient(to right, currentColor 0 88%, transparent 100%),
			linear-gradient(to bottom, transparent 0, currentColor 24%);
	}

	.rc-foliage--right {
		aspect-ratio: 683 / 517;
		object-position: right bottom;
		-webkit-mask-image:
			linear-gradient(to left, currentColor 0 88%, transparent 100%),
			linear-gradient(to bottom, transparent 0, currentColor 24%);
		mask-image:
			linear-gradient(to left, currentColor 0 88%, transparent 100%),
			linear-gradient(to bottom, transparent 0, currentColor 24%);
	}

	.rc-announce,
	.rc-identity,
	.rc-identity__inner {
		height: auto;
	}

	/* The strip carries a centred line and a row of marks. The wider tiers
	   set them side by side, which works while the line has a page to sit on;
	   on a phone it has about 335px minus whatever the marks take, so it broke
	   across two lines and then sat off the page centre, pushed left by the
	   marks it was sharing the row with.

	   Here the two stack instead. The line gets the full measure, which is
	   enough to hold it on one row down to about 360px and to break it evenly
	   below that, and both pieces sit on the true centre. Nothing is dropped
	   and nothing is shrunk below the 14px floor. */
	.rc-announce__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		min-height: 2.75rem;
		gap: var(--rc-space-3xs);
		padding-block: var(--rc-space-2xs);
	}

	.rc-announce__tagline {
		display: block;
		text-align: center;
		text-wrap: balance;
		line-height: var(--rc-leading-tight);
	}

	.rc-social--announce {
		gap: var(--rc-space-md);
	}

	.rc-identity {
		display: grid;
		justify-items: center;
		padding-block: var(--rc-space-xs) var(--rc-space-sm);
	}

	.rc-identity .rc-logo-slot img {
		height: clamp(132px, 40vw, 190px);
		margin-top: 0;
	}

	.rc-lang {
		position: static;
		margin-top: var(--rc-space-xs);
	}

	.rc-lang__btn {
		font-size: var(--rc-size-label);
	}

	.rc-nav__count {
		min-width: 1.35rem;
		height: 1.35rem;
		font-size: var(--rc-size-label);
	}
}

/* ==========================================================================
   7. Shared footer
   ========================================================================== */
.rc-footer {
	background: var(--rc-forest);
	color: var(--rc-on-forest-soft);
	padding-block: var(--rc-space-xl) var(--rc-space-md);
}
.rc-footer__top {
	display: grid;
	justify-items: center;
	gap: var(--rc-space-sm);
	text-align: center;
	padding-bottom: var(--rc-space-lg);
}
.rc-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: var(--rc-space-lg);
	padding-block: var(--rc-space-lg);
	border-top: var(--rc-hairline) solid var(--rc-rule-on-forest);
}
.rc-footer__heading {
	font-size: var(--rc-size-label);
	font-weight: var(--rc-weight-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-gold);
	margin-bottom: var(--rc-space-sm);
}
.rc-footer__heading:lang(si) { letter-spacing: normal; text-transform: none; }
.rc-footer__list { display: grid; gap: var(--rc-space-2xs); font-size: var(--rc-size-small); }
.rc-footer__list a { text-decoration: none; transition: color var(--rc-duration-fast) var(--rc-ease); }
.rc-footer__list a:hover,
.rc-footer__list a:focus-visible { color: var(--rc-gold); }
.rc-footer__note { font-size: var(--rc-size-small); max-width: var(--rc-measure-narrow); }
.rc-footer__note--spaced { margin-top: var(--rc-space-sm); }
.rc-footer__list--spaced { margin-top: var(--rc-space-sm); }
.rc-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--rc-space-sm);
	padding-top: var(--rc-space-md);
	border-top: var(--rc-hairline) solid var(--rc-rule-on-forest);
	font-size: var(--rc-size-small);
}
.rc-footer .rc-social a { color: var(--rc-on-forest-soft); }

/* ==========================================================================
   7a. Touch targets below the desktop tier.

   A pointer can land on a 20px link; a thumb cannot. Everything a visitor is
   expected to tap is held to --rc-tap from the tablet break down. The links
   keep their size and their underline - only the box around them grows, so
   nothing here changes how the page reads, just how it answers a finger.
   ========================================================================== */
@media (max-width: 1023px) {
	.rc-skip { min-height: var(--rc-tap); display: inline-flex; align-items: center; }

	.rc-link {
		min-height: var(--rc-tap);
		padding-block: var(--rc-space-3xs);
	}

	.rc-footer__list a,
	.rc-footer__bottom a,
	.rc-trade__note a,
	.rc-close__contact a {
		display: inline-flex;
		align-items: center;
		min-width: var(--rc-tap);
		min-height: var(--rc-tap);
	}
}

/* ==========================================================================
   8. Hero banner.

   One framed photograph inside the wide shell, with the words on a solid
   forest-green side that falls away into the picture rather than a flat panel
   laid over it. The picture is decorative, so it carries an empty alt and the
   h1 beside it does the talking. That h1 is also the page's only one: it has
   been missing since the pinned crafting stage came out.

   Below the phone breakpoint the box stops being a frame and the picture moves
   above the words instead of behind them. That is deliberate. A 375px column
   cannot hold a legible measure beside a photograph, and the alternative is a
   scrim heavy enough to waste the picture.
   ========================================================================== */
.rc-banner { padding-block: 0; }

.rc-banner__box {
	position: relative;
	display: grid;
	align-items: center;
	min-height: clamp(22rem, 33vw, 30rem);
	padding-inline-start: max(
		var(--rc-gutter),
		(100% - var(--rc-container-roomy)) / 2 + var(--rc-gutter)
	);
	background: var(--rc-forest);
	overflow: hidden;
	isolation: isolate;
}

/* Negative z inside an isolated box: the photograph paints over the forest
   fill and under everything else, so the copy needs no z-index of its own. */
.rc-banner__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 58% 42%;
}
.rc-banner__box::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		90deg,
		var(--rc-forest) 0%,
		var(--rc-forest) 24%,
		var(--rc-scrim-strong) 46%,
		transparent 74%
	);
}

.rc-banner__copy {
	display: grid;
	justify-items: start;
	gap: var(--rc-space-sm);
	max-width: 38rem;
	padding: var(--rc-space-lg) var(--rc-space-lg) var(--rc-space-lg) 0;
	color: var(--rc-on-forest);
}
.rc-banner__title {
	color: var(--rc-cream);
	font-size: clamp(2.1rem, 3.8vw, 3.5rem);
	line-height: 1.1;
}
.rc-banner__title span { display: block; }
.rc-banner__lead {
	color: var(--rc-on-forest);
	max-width: 28ch;
}

/* Tablet: the picture gives up a little more of its left edge so the words
   keep a measure worth reading. */
@media (max-width: 1023px) {
	.rc-banner__box { min-height: clamp(20rem, 42vw, 26rem); }
	.rc-banner__img { object-position: 64% 42%; }
	.rc-banner__copy { max-width: 30rem; }
}

@media (max-width: 767px) {
	.rc-banner__box {
		display: block;
		min-height: 0;
		padding-inline-start: 0;
	}
	.rc-banner__box::before { display: none; }
	.rc-banner__img {
		position: static;
		z-index: auto;
		display: block;
		aspect-ratio: 4 / 3;
		object-position: 50% 42%;
	}
	.rc-banner__copy {
		max-width: none;
		padding: var(--rc-space-lg) var(--rc-gutter) var(--rc-space-xl);
	}
	.rc-banner__lead { max-width: none; }
}

/* ==========================================================================
   9. Shop by category. Three cards on one grid.

   One crop and one baseline for all three. The crop is 4:3 rather than square
   so the photograph gets the width the reference gives it, and the cards carry
   nothing above the picture: no index figure, no rule. Picture, name, two
   lines, link. Clean two-column tablet, single column on a phone.
   ========================================================================== */
.rc-categories { padding-block: var(--rc-space-2xl); }

.rc-section__head {
	display: grid;
	justify-items: center;
	gap: var(--rc-space-sm);
	margin-bottom: var(--rc-space-xl);
	text-align: center;
}

/* The measure belongs to the paragraph, which carries its own; the headline
   takes the shell and keeps to one line from the tablet tier up. */
@media (min-width: 768px) {
	.rc-section__head .rc-h2 { white-space: nowrap; }
	.rc-section__head .rc-h2:lang(si) { white-space: normal; }
}

.rc-section__head--split {
	justify-items: start;
	text-align: start;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: var(--rc-space-md);
}

.rc-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(var(--rc-space-sm), 3vw, var(--rc-space-lg));
	align-items: stretch;
}
.rc-cat {
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
	transition: border-color var(--rc-duration-fast) var(--rc-ease),
	            box-shadow var(--rc-duration) var(--rc-ease);
}
.rc-cat:hover {
	border-color: var(--rc-rule-accent);
	box-shadow: var(--rc-shadow-lift);
}

.rc-cat__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;      /* one landscape crop, with no exceptions */
	background: var(--rc-surface);
}
.rc-cat__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--rc-duration-slow) var(--rc-ease);
}
.rc-cat:hover .rc-cat__media img { transform: scale(1.03); }

.rc-cat__body {
	display: grid;
	gap: var(--rc-space-xs);
	align-content: start;
	padding: var(--rc-space-sm) var(--rc-space-sm) 0;
}
.rc-cat__body p { color: var(--rc-ink-soft); font-size: var(--rc-size-small); }
.rc-cat__foot { align-self: end; padding: var(--rc-space-sm); }

/* Tablet: two columns, and the odd card out lies across both of them rather
   than leaving a hole in the grid. It keeps the stack the other two have and
   widens its crop instead, so nothing about the card has to be re-plumbed. */
@media (max-width: 1023px) {
	.rc-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.rc-cat:nth-child(3) { grid-column: 1 / -1; }
	.rc-cat:nth-child(3) .rc-cat__media { aspect-ratio: 21 / 9; }
	.rc-cat:nth-child(3) .rc-cat__body p { max-width: var(--rc-measure); }
}

/* Phone: one column, and the third card goes back to the shape the other two
   have. */
@media (max-width: 767px) {
	.rc-cat-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--rc-space-md);
	}
	.rc-cat:nth-child(3) .rc-cat__media { aspect-ratio: 4 / 3; }
	.rc-section__head--split { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   10. The shelf: eight pieces straight from the shop.

   The card is the Shop page's own, so the only thing this section has to say
   is where the cards sit. Everything about how one looks lives in shop.css.

   Each rule is written against .rc-shelf rather than .rc-grid alone, and not
   for tidiness: shop.css loads after this file and sets a column count on
   .rc-grid itself. Two classes outrank one, so the shelf keeps its own
   columns no matter which stylesheet the browser happens to read last.

   Four across, then two for everything below the desktop tier. Eight pieces
   divide evenly either way, so no tier ends on a half-empty row.
   ========================================================================== */
.rc-shelf {
	background: var(--rc-surface);
	padding-block: var(--rc-space-2xl);
	border-block: var(--rc-hairline) solid var(--rc-rule);
}

.rc-shelf .rc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rc-shelf__more {
	display: flex;
	justify-content: center;
	margin-block-start: var(--rc-space-lg);
}

@media (max-width: 1023px) {
	.rc-shelf .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Two across on a phone as well, which is what was asked for. The gap closes
   up to pay for it, because at 375px two cards and a full-width gutter leave
   the price and the button nothing to sit in. */
@media (max-width: 767px) {
	.rc-shelf { padding-block: var(--rc-space-xl); }
	.rc-shelf .rc-grid { gap: var(--rc-space-xs); }
}

/* --- the narrow card ------------------------------------------------------ */
/* Two across a phone leaves each card about 160px wide, and at that width the
   card the shop draws is wrong in all but one dimension: the title breaks to
   two or three lines, and the button has eleven characters of tracked capitals
   to fit into something over a hundred pixels, which it cannot, so it breaks as
   well. The whole thing stood over 350px tall and two of them filled a phone
   screen.

   The photograph is the exception, and it stays square. Cropping it shorter
   here would be the easiest height on the card to find and the wrong one to
   take: one ratio for every piece is what makes a row of cards read as a row,
   and the shop's plates are square.

   The handle is the card's own width rather than the viewport's. A breakpoint
   gets this wrong in both directions: at 760px the phone tier still applies
   but the card is 354px wide and wants none of this, and a card put somewhere
   narrower on a wide screen would want all of it and get none. The card knows
   how much room it has, so it is the one asked. 220px is the width below
   which the shop's own sizes stop fitting, which on this grid is a screen of
   roughly 490px and narrower — every phone, no tablet.

   A browser without container queries simply keeps the shop's sizes here,
   which is the layout as it stood before: tight, but not broken. */
.rc-shelf .rc-card { container-type: inline-size; }

@container (max-width: 220px) {

	.rc-shelf .rc-card__body {
		padding: var(--rc-space-2xs);
		gap: var(--rc-space-3xs);
	}

	.rc-shelf .rc-card__title {
		font-size: var(--rc-size-small);
		line-height: var(--rc-leading-tight);
	}

	.rc-shelf .rc-card__price { font-size: var(--rc-size-label); }

	/* One line, always. The tracking is what broke the longest label the shop
	   can produce, so it goes; the height is a tap target rather than padding,
	   so the button is still 44px to a thumb at a third of its old bulk. */
	.rc-shelf .rc-card__cart {
		min-height: var(--rc-tap);
		padding-block: var(--rc-space-2xs);
		padding-inline: var(--rc-space-3xs);
		font-size: var(--rc-size-micro);
		letter-spacing: normal;
		white-space: nowrap;
	}

	/* Sinhala clusters cannot be tightened the way tracked capitals can, so
	   its labels keep the right to wrap rather than run off the card. */
	.rc-shelf .rc-card__cart:lang(si) { white-space: normal; }
}

/* ==========================================================================
   11. Why Red Crafta. Asymmetric on a wide page: the image breaks out to the
       page edge and the approved ceramic maker's seal is inset over its
       corner. Narrower than that, the break-out swaps sides and the inset
       steps back inside the frame, because an element hanging off the page
       edge is the thing that was causing the overflow on a tablet.
   ========================================================================== */
.rc-why { padding-block: var(--rc-space-2xl); overflow: hidden; }
.rc-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(var(--rc-space-md), 6vw, var(--rc-space-xl));
	align-items: center;
}
.rc-why__media { position: relative; }
.rc-why__media > img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
/* the second, smaller crop overlaps the first */
.rc-why__inset {
	position: absolute;
	right: clamp(-3rem, -4vw, -1rem);
	bottom: clamp(-2.5rem, -4vw, -1rem);
	width: clamp(130px, 17vw, 210px);
	border: 6px solid var(--rc-page);
}
.rc-why__inset img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: 74% 42%;
}

.rc-why__body {
	display: grid;
	gap: var(--rc-space-md);
	text-align: start;
}
/* The intro carries its own measure, so it is the box that has to be
   placed, not just the text inside it. */
.rc-why__body > .rc-body { justify-self: start; }

/* Read down a left edge, both of them. */
.rc-why__points,
.rc-why__body > .rc-seal { text-align: start; }
.rc-why__points { display: grid; gap: var(--rc-space-sm); }
.rc-why__point {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--rc-space-sm);
	padding-top: var(--rc-space-sm);
	border-top: var(--rc-hairline) solid var(--rc-rule);
}
.rc-why__point-num {
	font-family: var(--rc-font-display);
	font-size: var(--rc-size-h3);
	line-height: 1;
	color: var(--rc-gold);
}
.rc-why__point h3 { margin-bottom: var(--rc-space-3xs); font-size: var(--rc-size-h5); }
.rc-why__point p { font-size: var(--rc-size-small); color: var(--rc-ink-soft); }

/* the seal block: the maker's stamp, never the website logo */
.rc-seal {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--rc-space-sm);
	align-items: center;
	padding: var(--rc-space-sm);
	background: var(--rc-surface);
	border: var(--rc-hairline) solid var(--rc-rule);
}
.rc-seal img { width: clamp(74px, 9vw, 96px); height: auto; }
.rc-seal__text { display: grid; gap: var(--rc-space-3xs); }
.rc-seal__text p { font-size: var(--rc-size-small); color: var(--rc-ink-soft); }
.rc-seal__mark {
	font-size: var(--rc-size-label);
	letter-spacing: var(--rc-track-label);
	text-transform: uppercase;
	color: var(--rc-earth);
}

@media (max-width: 1023px) {
	.rc-why__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--rc-space-xl);
	}
	.rc-why__media {
		margin-left: 0;
		margin-right: calc(var(--rc-gutter) * -1);
	}
	.rc-why__media > img { aspect-ratio: 3 / 2; }
	.rc-why__inset {
		right: auto;
		left: var(--rc-space-sm);
		bottom: calc(var(--rc-space-sm) * -1);
	}
	/* These three are steps now, not three selling points, so they keep one
	   column here as well. Two columns put 01 and 02 side by side and left 03
	   alone on a second row, which reads as an orphan rather than as the end
	   of a sequence - and each column was only about twenty-four characters
	   wide once the numeral took its share. */
	.rc-why__points { grid-template-columns: minmax(0, 1fr); }
	.rc-why__body { text-align: center; }
	.rc-why__body > .rc-body { justify-self: center; }
}

@media (max-width: 767px) {
	.rc-why__media { margin-right: 0; }
	.rc-why__media > img { aspect-ratio: 4 / 3; }

	/* Nothing hangs off anything on a phone: the inset drops out rather than
	   covering the photograph it is meant to sit beside. */
	.rc-why__inset { display: none; }

	.rc-why__points { grid-template-columns: minmax(0, 1fr); }
	.rc-seal {
		grid-template-columns: minmax(0, 1fr);
		justify-items: start;
		gap: var(--rc-space-xs);
	}
}

/* ==========================================================================
   12. Hospitality and wholesale. Full-bleed forest-green breakout.
   ========================================================================== */
.rc-trade {
	position: relative;
	isolation: isolate;
	background: var(--rc-forest);
	color: var(--rc-on-forest);
	padding-block: var(--rc-space-2xl);
	overflow: hidden;
}
.rc-trade__media { position: absolute; inset: 0; z-index: -1; }
.rc-trade__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.26; }
.rc-trade__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(23, 51, 35, 0.95) 0%,
		rgba(23, 51, 35, 0.78) 55%,
		rgba(23, 51, 35, 0.55) 100%
	);
}
.rc-trade__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
	gap: clamp(var(--rc-space-md), 6vw, var(--rc-space-xl));
	align-items: start;
}
.rc-trade .rc-eyebrow { color: var(--rc-gold); }
.rc-trade .rc-h2 { color: var(--rc-cream); }
.rc-trade__lead { color: var(--rc-on-forest); max-width: var(--rc-measure); }
.rc-trade__body {
	display: grid;
	gap: var(--rc-space-md);
	text-align: start;
}
.rc-trade__body > .rc-trade__lead { justify-self: start; }

.rc-trade__panel {
	padding: clamp(var(--rc-space-sm), 3vw, var(--rc-space-md));
	border: var(--rc-hairline) solid var(--rc-rule-on-forest);
	background: rgba(23, 51, 35, 0.55);
}
.rc-trade__panel h3 {
	margin-bottom: var(--rc-space-sm);
	font-size: var(--rc-size-h5);
	color: var(--rc-cream);
}
.rc-trade__checklist { display: grid; gap: var(--rc-space-xs); font-size: var(--rc-size-small); }
.rc-trade__checklist li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--rc-space-xs);
	align-items: start;
}
.rc-trade__checklist li::before {
	content: "";
	width: 5px;
	height: 5px;
	margin-top: 0.65em;
	transform: rotate(45deg);
	background: var(--rc-gold);
}
.rc-trade__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: var(--rc-space-sm);
	align-items: center;
}
.rc-trade__note { font-size: var(--rc-size-small); color: var(--rc-on-forest-soft); }
.rc-trade__note a { color: var(--rc-gold); }

@media (max-width: 1023px) {
	.rc-trade__grid { grid-template-columns: minmax(0, 1fr); }
	.rc-trade__body { text-align: center; }
	.rc-trade__body > .rc-trade__lead { justify-self: center; }
	.rc-trade__actions { justify-content: center; }
	.rc-trade__media::after {
		background: linear-gradient(
			180deg,
			rgba(23, 51, 35, 0.9) 0%,
			rgba(23, 51, 35, 0.82) 60%,
			rgba(23, 51, 35, 0.72) 100%
		);
	}
}

@media (max-width: 767px) {
	.rc-trade__actions {
		display: grid;
		justify-content: normal;
		justify-self: center;
		width: 100%;
		max-width: 22rem;
	}
	.rc-trade__actions .rc-btn { justify-content: center; width: 100%; }
}

/* ==========================================================================
   13. Closing call to action. One idea, extreme whitespace.
   ========================================================================== */
.rc-close {
	padding-block: var(--rc-space-3xl);
	text-align: center;
}
.rc-close__inner {
	display: grid;
	justify-items: center;
	gap: var(--rc-space-md);
	max-width: 64rem;
	margin-inline: auto;
}
.rc-close__title { max-width: 48rem; }
.rc-close__lead { text-align: center; }
.rc-close__divider { width: clamp(60px, 12vw, 140px); }
.rc-close__contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--rc-space-xs) var(--rc-space-md);
	font-size: var(--rc-size-small);
	color: var(--rc-ink-soft);
}
.rc-close__contact a {
	color: var(--rc-earth);
	text-decoration: none;
	border-bottom: var(--rc-hairline) solid var(--rc-rule);
}
.rc-close__contact a:hover { color: var(--rc-terracotta); border-bottom-color: var(--rc-terracotta); }

@media (max-width: 767px) {
	.rc-close__inner { gap: var(--rc-space-sm); }
	.rc-close__contact {
		display: grid;
		gap: var(--rc-space-2xs);
	}
	.rc-close__contact a {
		display: inline-flex;
		align-items: center;
		min-height: var(--rc-tap);
	}
	.rc-close .rc-btn { justify-content: center; width: 100%; max-width: 22rem; }
}
