/* INDIOGA theme: tokens, base, header, menu drawer, footer. Mobile first. */

/* ------------------------------------------------------------------ Fonts (self-hosted, SIL OFL) */

@font-face {
	font-family: "Quicksand";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/quicksand-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Quicksand";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/quicksand-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ Tokens */

:root {
	/* Surfaces */
	--c-bg: #f8f3e9;
	--c-bg-soft: #fdfbf7;
	--c-surface: #fffefa;
	--c-line: #deded8;

	/* Text */
	--c-ink: #26342f;
	--c-ink-2: #283c39;
	--c-muted: #5f6a64; /* ≥ 4.5:1 on the cream background (WCAG AA for small text) */
	--c-logo: #443323;

	/* Actions */
	--c-primary: #5d7967;
	--c-primary-hover: #4e6857;
	--c-primary-ink: #ffffff;
	--c-badge: #5f6b5c;
	--c-focus: #5d7967;

	/* Product accents (the "+" buttons and dots) */
	--c-bundiko: #788166;
	--c-badimed: #c78556;
	--c-sejk: #d6a4a0;
	--c-sos: #dfb66b;

	/* Type */
	--font-body: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-heading: "Jost", "Quicksand", system-ui, sans-serif;
	--tracking-label: 0.16em;
	--tracking-wide: 0.32em;

	/* Shape */
	--radius-input: 7px;
	--radius-card: 9px;
	--radius-modal: 22px;
	--radius-pill: 999px;
	--shadow-jar: drop-shadow(4px 6px 6px rgba(60, 50, 30, 0.28));
	--shadow-panel: 0 12px 40px rgba(38, 52, 47, 0.16);

	/* Layout */
	--gutter: 20px;
	--content-max: 1100px;
	--text-max: 680px;
	--tap: 44px;
}

/* WooCommerce's own colour variables, mapped to the brand (doubled :root wins over woocommerce.css). */
:root:root {
	--woocommerce: #5d7967;
	--wc-primary: #5d7967;
	--wc-primary-text: #ffffff;
	--wc-secondary: #efede8;
	--wc-secondary-text: #283c39;
	--wc-highlight: #4e6857;
	--wc-highligh-text: #ffffff;
	--wc-content-bg: #fffefa;
	--wc-subtext: #5f6a64;
	--wc-green: #5d7967;
	--wc-red: #9b3b25;
	--wc-form-border-color: #d6d7d0;
	--wc-form-border-radius: 7px;
}

/* ------------------------------------------------------------------ Base */

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

html {
	background: var(--c-bg);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	color: var(--c-ink);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
	margin: 0 0 0.5em;
	font-family: var(--font-heading);
	font-weight: 300;
	line-height: 1.12;
	color: var(--c-ink-2);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--c-focus);
	outline-offset: 2px;
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--c-surface);
	border-radius: var(--radius-input);
	box-shadow: var(--shadow-panel);
}

.skip-link:focus {
	top: 12px;
}

/* Soft leaf shadows in the corners (optional, Customizer → INDIOGA). */
body.has-leaf-shadow::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		url("../img/leaf-shadow.svg") no-repeat left -70px top -50px / 330px auto,
		url("../img/leaf-shadow.svg") no-repeat right -120px top 46% / 300px auto;
}

/* ------------------------------------------------------------------ Shared UI */

.icon-button {
	display: inline-grid;
	place-items: center;
	width: var(--tap);
	height: var(--tap);
	padding: 0;
	color: var(--c-ink);
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.icon-button svg {
	width: 26px;
	height: 26px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7em;
	min-height: 52px;
	padding: 0 28px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--c-primary-ink);
	background: var(--c-primary);
	border: 0;
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.btn:hover {
	background: var(--c-primary-hover);
}

.btn:disabled,
.btn[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ------------------------------------------------------------------ Header */

.site-header__inner {
	display: grid;
	grid-template-columns: var(--tap) 1fr var(--tap);
	align-items: start;
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 12px 10px 4px;
}

.menu-toggle,
.site-cart {
	margin-top: 4px;
}

.site-brand {
	color: var(--c-logo);
	text-align: center;
}

.site-brand__tagline {
	margin: 0;
	/* Letter spacing also pads the right side; this keeps the text centred. */
	padding-left: 0.42em;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.42em;
	text-transform: lowercase;
}

.site-logo {
	display: block;
	width: 140px;
	margin: 5px auto 6px;
	color: var(--c-logo);
}

.site-logo svg,
.site-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.site-cart {
	position: relative;
	text-decoration: none;
}

.indioga-cart__count {
	position: absolute;
	top: 1px;
	right: -1px;
	display: grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: var(--c-badge);
	border-radius: var(--radius-pill);
}

.has-compact-header .site-header__inner {
	align-items: center;
	padding-bottom: 8px;
}

.has-compact-header .menu-toggle,
.has-compact-header .site-cart {
	margin-top: 0;
}

.has-compact-header .site-logo {
	width: 118px;
	margin: 0 auto;
}

/* ------------------------------------------------------------------ Menu drawer */

.site-menu {
	position: fixed;
	inset: 0;
	z-index: 50;
}

.site-menu[hidden] {
	display: none;
}

.site-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(38, 52, 47, 0.32);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.site-menu__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: min(340px, 86vw);
	padding: 12px 28px 28px;
	overflow-y: auto;
	background: var(--c-bg-soft);
	box-shadow: var(--shadow-panel);
	transform: translateX(-100%);
	transition: transform 0.25s ease;
}

.site-menu.is-open .site-menu__backdrop {
	opacity: 1;
}

.site-menu.is-open .site-menu__panel {
	transform: none;
}

.site-menu__panel:focus {
	outline: none;
}

.site-menu__close {
	margin-left: -12px;
}

.site-menu__list {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.site-menu__list a {
	display: block;
	padding: 12px 0;
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 300;
	text-decoration: none;
	border-bottom: 1px solid var(--c-line);
}

.site-menu__list .current-menu-item > a {
	color: var(--c-primary);
}

.site-menu__panel .site-menu__signature {
	margin-top: auto;
	padding-top: 32px;
}

body.menu-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.site-menu__panel,
	.site-menu__backdrop {
		transition: none;
	}
}

/* ------------------------------------------------------------------ Content */

.site-main {
	flex: 1;
}

.content {
	max-width: var(--text-max);
	margin: 0 auto;
	padding: 24px var(--gutter) 48px;
}

.content--shop {
	max-width: var(--content-max);
}

.page-title {
	font-size: 34px;
}

.entry__content > :first-child {
	margin-top: 0;
}

/* Headings written in a page (legal texts); not the ones inside shop templates. */
.entry__content > h2 {
	margin-top: 1.6em;
	font-size: 24px;
}

/* "⚠ NACRT" box on the draft legal pages (remove the paragraph once the text is final). */
.indioga-draft-note {
	padding: 12px 16px;
	font-size: 14.5px;
	background: #fff4dc;
	border-left: 3px solid #d9a441;
	border-radius: 6px;
}

/* ------------------------------------------------------------------ A spread's product page */

.content--product .woocommerce-breadcrumb {
	margin: 0 0 20px;
	font-size: 13px;
	color: var(--c-muted);
}

.content--product .woocommerce-breadcrumb a {
	color: var(--c-muted);
}

.content--product div.product {
	display: grid;
	gap: 8px 48px;
	align-items: start;
}

.content--product .woocommerce-product-gallery {
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	opacity: 1 !important; /* WooCommerce starts it at 0 and fades it in with its gallery script, which this page doesn't load */
}

/* Up to the column width; a small photo stays at its own size instead of turning blurry. */
.content--product .woocommerce-product-gallery img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	filter: var(--shadow-jar);
}

.content--product .woocommerce-product-gallery__trigger,
.content--product .onsale {
	display: none;
}

.content--product .product_title {
	margin: 0;
	font-size: 40px;
}

.ip-subtitle {
	margin: 4px 0 18px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--c-muted);
}

.content--product .woocommerce-product-details__short-description p {
	margin: 0 0 14px;
	font-size: 17px;
	line-height: 1.6;
}

.ip-sold {
	color: var(--c-muted);
}

.ip-cta {
	margin: 4px 0 8px;
}

.ip-heading {
	margin: 28px 0 8px;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
}

.ip-list {
	margin: 0;
	padding-left: 1.1em;
	line-height: 1.7;
}

@media (min-width: 768px) {
	.content--product div.product {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}

	.content--product .product_title {
		font-size: 52px;
	}
}

/* ------------------------------------------------------------------ WooCommerce pages (cart, account) */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	min-height: var(--tap);
	padding: 0.7em 1.4em;
	font-family: var(--font-body);
	font-weight: 600;
	letter-spacing: 0.06em;
	border-radius: var(--radius-pill);
}

/* WooCommerce hard-codes its purple on buttons; "body" makes these win. */
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button {
	color: var(--c-ink-2);
	background-color: var(--wc-secondary);
}

body .woocommerce a.button.alt,
body .woocommerce button.button.alt,
body .woocommerce input.button.alt,
body .woocommerce .wc-proceed-to-checkout a.checkout-button {
	color: var(--c-primary-ink);
	background-color: var(--c-primary);
}

body .woocommerce a.button:hover,
body .woocommerce button.button:hover {
	color: var(--c-ink-2);
	background-color: #e4e1da;
}

body .woocommerce a.button.alt:hover,
body .woocommerce button.button.alt:hover,
body .woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
	color: var(--c-primary-ink);
	background-color: var(--c-primary-hover);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
	min-height: 56px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.woocommerce table.shop_table {
	background: var(--c-surface);
	border-color: var(--c-line);
	border-radius: 14px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-color: var(--c-line);
}

.woocommerce .cart_totals h2,
.woocommerce .cross-sells h2 {
	font-size: 26px;
}

.woocommerce a.remove {
	color: var(--wc-red) !important;
}

.woocommerce a.remove:hover {
	color: #fff !important;
	background: var(--wc-red);
}

.woocommerce .quantity .qty {
	min-height: var(--tap);
	border: 1px solid var(--wc-form-border-color);
	border-radius: var(--radius-input);
}

/* ------------------------------------------------------------------ Footer */

.site-footer {
	padding: 28px var(--gutter) 36px;
	text-align: center;
	color: var(--c-ink-2);
}

.site-footer__signature,
.site-menu__signature {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
}

.site-footer__signature svg,
.site-menu__signature svg {
	width: 52px;
	height: 26px;
	flex: none;
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 18px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.site-footer__links a {
	color: var(--c-muted);
}

.site-footer__company {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.6;
	color: var(--c-muted);
}

/* ------------------------------------------------------------------ Desktop */

@media (min-width: 768px) {
	:root {
		--gutter: 32px;
	}

	.site-header__inner {
		padding: 20px var(--gutter) 8px;
	}

	.site-brand__tagline {
		font-size: 11.5px;
	}

	.site-logo {
		width: 190px;
		margin: 7px auto 8px;
	}

	.has-compact-header .site-logo {
		width: 150px;
	}

	.page-title {
		font-size: 44px;
	}

	body.has-leaf-shadow::before {
		background-size: 460px auto, 420px auto;
	}
}
