/* ==========================================================================
   Altarmala Â· è®¾è®¡ä»¤çï¼ä¸ theme.json åæ­¥ï¼ååä¿æåæ­¥ï¼
   æ¬æä»¶æ¯åç«¯ PHP æ¨¡æ¿ç CSS åéå¯ä¸çæºï¼theme.json æ¯ç¼è¾å¨ä¾§çæºã

   æ­ç¹ä½ç³»ï¼v1.4.0 æ¶æä¸º 4 æ¡£ï¼èªä¸èä¸ max-widthï¼ï¼
     1439px  æ¡é¢æ å     å®¹å¨ 1160 / gutter 24 / åå 4 å
     1199px  å°æ¡é¢Â·å¹³æ¿æ¨ªå± å®¹å¨ 100% / gutter 24 / åå 3 å
      899px  å¹³æ¿ç«å±     å®¹å¨ 100% / gutter 20 / åå 2 å
      599px  ææº        å®¹å¨ 100% / gutter 16 / åå 2 å
   é¤ä¸è¿° 4 æ¡£å¤åªå© prefers-reduced-motion ä¸ printã
   ========================================================================== */

:root {
	/* 12 è² */
	--am-primary:#1f3b34;
	--am-primary-deep:#162b26;
	--am-gold:#b08d57;
	--am-gold-deep:#96763f;
	--am-gold-text:#8a6a35; /* ä»·æ ¼æå­ä¸éåºæé®åºè²ï¼ç½å­/çº¸åºå¯¹æ¯åº¦ >=4.5ï¼AAï¼ */
	--am-gold-soft:#d8c09a;
	--am-ivory:#f6f2e9;
	--am-paper:#fffdf9;
	--am-ink:#26221c;
	--am-muted:#6b6252;
	--am-footer-muted:rgba(255, 253, 249, 0.7); /* é¡µèæ¬¡è¦æå­ç»ä¸éæåº¦ï¼v1.5.2 æ¶ç¼ 74/68/72% ç¡¬ç¼ç ï¼ */
	--am-line:#e6dfd0;
	--am-wa:#1faa59;
	--am-wa-deep:#17854a;

	/* ä¸­æ§æ©å±è²ï¼v1.4.0ï¼ææ£è½çç¡¬ç¼ç æ¶ç¼ä¸ºä»¤çï¼
	   line-soft æµåº / line-strong æ·±ä¸æ¡£çº¿ / stone æ·±åºä¸çæ¬¡çº§æå­ / alert åºå­ä¸éè¯¯æç¤º */
	--am-line-soft:#f2eee2;
	--am-line-strong:#cfc9b8;
	--am-stone:#b9b3a0;
	--am-alert:#a8562f;
	/* æè´¨ / æ°å´è²ï¼v1.4.7ï¼ä»ç¨äº section èæ¯ãoverlayãæå½±è¡¬æï¼ä¸è¿å¥æé® / æ­£ææ ¸å¿äº¤äºè²ï¼ */
	--am-clay:#a9764f;
	--am-cedar:#5a4632;
	--am-mist:#ece7dc;
	--am-gold-bright:#c9a36a;

	/* åè§ */
	--am-radius-pill:999px;
	--am-radius-card:16px;
	--am-radius-block:24px;
	--am-radius-input:8px;

	/* ç»æä¸é´è· */
	--am-container:1160px;
	--am-container-wide:1360px; /* ç¼è¾å¼å®½å¹ï¼Hero / ç²¾éå */
	--am-gutter:24px;
	--am-section-gap:88px;
	--am-section-gap-mobile:56px;

	/* é¡¶æ é«åº¦ï¼v1.2.0 åè¡ä¸åºï¼ï¼æªæ»å¨ 64 / æ»å¨æ¶ç¼©å 52 / ç§»å¨ç«¯ 56 */
	--am-header-h:64px;
	--am-header-h-condensed:52px;
	--am-header-h-mobile:56px;

	/* å­ä½ */
	--am-font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
	--am-font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;

	/* å­å·é¶æ¢¯ï¼v1.4.0 æ¨¡ååï¼8pt å¯¹é½ï¼ */
	--am-fs-xs:12px;   /* åä¿¡æ¯ / èæ³¨ / è§æ  */
	--am-fs-sm:13px;   /* å¡çæ¬¡è¦ä¿¡æ¯ / å¯¼èª / æé®å°å· */
	--am-fs-base:16px; /* æ­£æ */
	--am-fs-md:18px;   /* å¡çæ é¢ / å¼å¯¼å¥ */
	--am-fs-lg:22px;   /* åºåå°æ é¢ */
	--am-fs-xl:32px;   /* åºåæ é¢ */
	--am-fs-2xl:48px;  /* Hero æ é¢ */

	/* é´å½±ï¼åå¶ï¼ä»å¡ç hover ä½¿ç¨ï¼ */
	--am-shadow-card: 0 6px 18px rgba(31, 59, 52, .08);
	--am-shadow-card-hover: 0 10px 26px rgba(31, 59, 52, .13);

	/* å¨æï¼v1.4.0ï¼ç»ä¸ç¼åºæ²çº¿ï¼æ¿ä»£åå¤ç easeï¼ */
	--am-ease: cubic-bezier(.22, .61, .36, 1);
	--am-transition: .2s var(--am-ease);
}

/* ---------- ä»¤çå¨ body ä¸çè½å°ï¼PHP æ¨¡æ¿ä¾§ï¼ ---------- */
html {
	overflow-x: clip; /* æ¨ªåæº¢åºååºï¼clip ä¸ç ´å stickyï¼hidden ä¼ï¼ */
	scroll-padding-top: 72px; /* éç¹è·³è½¬é¿å¼ sticky é¡¶æ  */
}
/* éç¹ç®æ ç»ä¸é¢çé¡¶æ é«åº¦ï¼æ­¤åä¸º autoï¼éç¹è·³è½¬ä¼è¢«é¡¶æ é®ä½ï¼ */
a[target],
[id] { scroll-margin-top: 72px; }
body.am-body {
	background: var(--am-paper);
	color: var(--am-ink);
	font-family: var(--am-font-body);
	font-size: var(--am-fs-base);
	padding-top: 0;
	overflow-x: clip;
}

/* ---------- å®¹å¨ï¼ä¸ style.css ä¿æä¸è´ï¼ä¾ç¼è¾å¨ä¸åºåå¤ç¨ï¼ ---------- */
.am-container {
	width: 100%;
	max-width: var(--am-container);
	margin-inline: auto;
	padding-inline: var(--am-gutter);
}

/* ---------- åºåé´è· ---------- */
.am-section {
	padding-block: var(--am-section-gap);
}
.am-section--ivory { background: var(--am-ivory); }
.am-section--deep { background: var(--am-primary-deep); color: var(--am-line-soft); }
.am-section--editorial { padding-block: 96px; }

/* ---------- æ æ ¼ ---------- */
.am-grid {
	display: grid;
	gap: var(--am-gutter);
}
.am-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.am-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.am-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- è¯­ä¹è²å·¥å·ç±» ---------- */
.am-text-primary { color: var(--am-primary); }
.am-text-gold { color: var(--am-gold); }
.am-text-gold-deep { color: var(--am-gold-deep); }
.am-text-muted { color: var(--am-muted); }
.am-bg-ivory { background: var(--am-ivory); }
.am-bg-deep { background: var(--am-primary-deep); color: var(--am-line-soft); }

/* ---------- ååºæ é¢ ---------- */
.am-heading {
	text-align: center;
	margin-bottom: 40px;
}
.am-heading__eyebrow {
	display: block;
	font-size: var(--am-fs-sm);
	letter-spacing: .18em;
	color: var(--am-gold);
	margin-bottom: 10px;
}
.am-heading__title {
	font-family: var(--am-font-serif);
	font-size: var(--am-fs-xl);
	font-weight: 600;
	color: var(--am-primary);
	margin: 0 0 10px;
}
.am-heading__sub {
	color: var(--am-muted);
	font-size: var(--am-fs-base);
	margin: 0;
}
/* ååºæ é¢éçº¿è£é¥°ï¼ä¸æ¹å¨ç©ç¾å­¦ï¼ç»éçº¿ + ä¸­å¿è±ç¹ï¼ */
.am-heading__title { position: relative; }
.am-heading__title::after {
	content: "";
	display: block;
	width: 66px;
	height: 11px;
	margin: 16px auto 0;
	background:
		radial-gradient(circle, var(--am-gold) 0 2.4px, transparent 3px) center/11px 11px no-repeat,
		linear-gradient(90deg, transparent, var(--am-line-strong) 22%, var(--am-line-strong) 78%, transparent) center/100% 1px no-repeat;
}

/* æ é¢åè¡¡æ­è¡ï¼æ¶é¤ãåªåä½ çé£ä¸ä¸²ãå¼å­¤å­æ¢è¡ï¼ç°ä»£æµè§å¨æ¯æï¼ä¸æ¯æåå¿½ç¥ï¼ */
.am-heading__title,
.am-hero__title,
.am-promise__t,
.am-product-card__title,
.woocommerce-loop-product__title,
.am-product-card h2,
.am-product-card h3 { text-wrap: balance; }

/* ---------- æ»å¨è¿å¥å¨æï¼v1.4.0ï¼ï¼ç± JS å  .am-revealï¼æ  JS æ¶åå®¹ç§å¸¸æ¾ç¤º ---------- */
.am-reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .5s var(--am-ease), transform .5s var(--am-ease);
}
.am-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

/* å¡çç½æ ¼éè½å¥åºï¼æå­é¡¹åºå·å  transition-delayï¼ä¸é 120msï¼ï¼å½¢æèå¥æï¼reduced-motion ä¸ç±å¨å±å®å«å³é­ */
@media (prefers-reduced-motion: no-preference) {
	ul.products > li.am-reveal:nth-child(1) { transition-delay: 0ms; }
	ul.products > li.am-reveal:nth-child(2) { transition-delay: 30ms; }
	ul.products > li.am-reveal:nth-child(3) { transition-delay: 60ms; }
	ul.products > li.am-reveal:nth-child(4) { transition-delay: 90ms; }
	ul.products > li.am-reveal:nth-child(n+5) { transition-delay: 120ms; }
}

/* ---------- ååºå¼ï¼4 æ¡£æ­ç¹ï¼ ---------- */
/* â¤1199pxï¼å°æ¡é¢ / å¹³æ¿æ¨ªå± */
@media (max-width: 1199px) {
	:root {
		--am-gutter: 24px;
		--am-section-gap: 72px;
	}
}

/* â¤899pxï¼å¹³æ¿ç«å± */
@media (max-width: 899px) {
	:root {
		--am-gutter: 20px;
		--am-section-gap: var(--am-section-gap-mobile);
	}
	.am-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.am-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* â¤599pxï¼ææº ââ æ é¢é¶æ¢¯æ´ä½éä¸æ¡£ï¼Hero 40â32 / åºåæ é¢ 28â24ï¼ */
@media (max-width: 599px) {
	:root {
		--am-gutter: 16px;
		--am-fs-2xl: 32px;
		--am-fs-xl: 24px;
	}
	.am-grid--2,
	.am-grid--3 { grid-template-columns: minmax(0, 1fr); }
	/* ååç±»å/äºåæ æ ¼å¨ææºç«¯ä¿æåå/ä¸åï¼é¿åååå å è¿é¿ï¼å¦é¦é¡µå®å¶åº 8 å¡ååè¿ 4600pxï¼ */
	.am-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.am-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.am-heading { margin-bottom: 28px; }
}

/* ---------- ç¼è¾å¨ä¾§ï¼åºåç¼è¾å¨åå®¹åºï¼ ---------- */
.editor-styles-wrapper {
	font-family: var(--am-font-body);
	color: var(--am-ink);
}
