/*
 * Landing page — "Mindset Orang Cina". Layout follows the physical book:
 * hero = front cover (sky, street, red silk, gold title), synopsis = back cover
 * (street scene behind a white rounded card), spine crimson for the closing band.
 * Tokens come from skin.css (body.tmt-mindset).
 */

body.tmt-landing {
	margin: 0;
	background: var(--tmt-paper);
	color: var(--tmt-text);
	font-family: var(--tmt-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.tmt-landing *,
body.tmt-landing *::before,
body.tmt-landing *::after {
	box-sizing: border-box;
}

/* :where() keeps this reset at zero specificity so the full-bleed art rules below win */
:where(body.tmt-landing) img {
	max-width: 100%;
	height: auto;
	display: block;
}

.tmt-wrap {
	width: min(1200px, 100% - 32px);
	margin-inline: auto;
}

.tmt-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--tmt-ink);
	color: #fff;
	border-radius: 8px;
}

.tmt-skip:focus {
	left: 16px;
}

/* ---------- top bar ---------- */

.tmt-bar {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 3px solid var(--tmt-crimson);
}

.admin-bar .tmt-bar {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .tmt-bar {
		top: 46px;
	}
}

.tmt-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 64px;
}

.tmt-bar__logo {
	flex-shrink: 0;
}

.tmt-bar__logo img {
	width: clamp(170px, 24vw, 280px);
	height: auto;
}

.tmt-bar__nav {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2.2vw, 28px);
}

.tmt-bar__nav a {
	color: var(--tmt-ink);
	font-family: var(--tmt-sans);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.tmt-bar__nav a:hover {
	color: var(--tmt-crimson);
}

.tmt-bar__count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	margin-left: 4px;
	border-radius: 999px;
	background: var(--tmt-crimson);
	color: #fff;
	font-size: 11px;
}

.tmt-bar__nav .tmt-btn--small {
	min-height: 38px;
	padding: 0.5em 1.2em;
	font-size: 12px;
	color: #fff;
}

@media (max-width: 560px) {
	.tmt-bar__nav a:not(.tmt-bar__cart):not(.tmt-btn) {
		display: none;
	}
}

/* ---------- 1. hero / front cover ---------- */

.tmt-hero {
	position: relative;
	isolation: isolate;
	min-height: min(100svh, 940px);
	display: flex;
	align-items: flex-end;
	padding: 112px 0 clamp(40px, 7vh, 80px);
	overflow: hidden;
	/* the cover read top-to-bottom: sky, then the red silk the title sits on */
	background: linear-gradient(180deg, var(--tmt-sky-1) 0%, #b7dcf1 26%, var(--tmt-crimson) 64%, #3c0710 100%);
	color: #fff;
}

.tmt-hero__art,
.tmt-hero__art picture,
.tmt-hero__art img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* desktop: the art is a tall panel on the right that fades into the gradient field */
.tmt-hero__art {
	z-index: -1;
	left: auto;
	width: 60%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}

.tmt-hero__art img {
	object-fit: cover;
	object-position: 50% 30%;
}

/* sky stays clear at the top; the lower half sinks into the shirt's crimson, where the gold title sits — as on the cover */
.tmt-hero__art::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(140, 200, 234, 0) 45%, rgba(60, 7, 16, 0.75) 100%);
}

.tmt-hero__copy {
	max-width: 780px;
}

/* best-seller seal — frosted, so it reads over sky or buildings */
.tmt-badge {
	position: relative;
	display: inline-grid;
	justify-items: center;
	padding: 14px 54px 12px;
	margin-bottom: 14px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--tmt-ink);
	box-shadow: 0 10px 30px rgba(30, 42, 58, 0.18);
	line-height: 1;
	text-transform: uppercase;
}

.tmt-badge__laurel {
	position: absolute;
	top: 50%;
	width: 34px;
	height: 84%;
	transform: translateY(-50%);
}

.tmt-badge__laurel--l {
	left: 10px;
}

.tmt-badge__laurel--r {
	right: 10px;
	transform: translateY(-50%) scaleX(-1);
}

.tmt-badge span {
	position: relative;
	white-space: nowrap;
}

.tmt-badge__top,
.tmt-badge__bottom {
	font-family: var(--tmt-sans);
	font-weight: 600;
	font-size: 10px;
	letter-spacing: 0.18em;
}

.tmt-badge__mid {
	margin-top: 4px;
	font-family: var(--tmt-serif);
	font-weight: 800;
	font-size: 17px;
	letter-spacing: 0.04em;
}

.tmt-badge__num {
	font-family: var(--tmt-serif);
	font-weight: 900;
	font-size: 30px;
	letter-spacing: 0.02em;
	margin: 2px 0 3px;
}

.tmt-ribbon {
	display: inline-block;
	margin: 0 0 clamp(18px, 4vh, 40px);
	padding: 8px 40px 8px 18px;
	background: linear-gradient(90deg, var(--tmt-gold-hi), var(--tmt-gold) 60%, rgba(242, 182, 36, 0));
	color: var(--tmt-ink);
	font-family: var(--tmt-sans);
	font-weight: 700;
	font-size: clamp(13px, 1.4vw, 15px);
}

.tmt-hero__zh {
	margin: 0 0 4px;
	font-size: clamp(30px, 4.4vw, 52px);
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.1;
	color: #fff;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.tmt-title {
	margin: 0;
	font-family: var(--tmt-serif);
	font-weight: 900;
	font-size: clamp(46px, 7.2vw, 100px);
	line-height: 0.9;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	color: var(--tmt-gold);
	background: linear-gradient(180deg, #ffd760 0%, var(--tmt-gold) 50%, #e39a12 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.tmt-title span {
	display: block;
}

.tmt-title--sm {
	font-size: clamp(36px, 5.6vw, 72px);
}

.tmt-hero__author {
	margin: 18px 0 0;
	font-family: var(--tmt-sans);
	font-weight: 800;
	font-size: clamp(16px, 1.8vw, 22px);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff;
}

.tmt-hero__author .tmt-zh {
	display: block;
	margin-top: 2px;
	font-size: 1.05em;
	letter-spacing: 0.12em;
}

.tmt-buy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
	margin-top: clamp(22px, 4vh, 36px);
}

.tmt-prices {
	display: flex;
	gap: 10px;
	margin: 0;
}

.tmt-prices > div {
	padding: 8px 16px;
	border: 1px solid rgba(248, 212, 106, 0.55);
	border-radius: 14px;
	background: rgba(42, 6, 12, 0.35);
}

.tmt-prices dt {
	font-family: var(--tmt-sans);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.85;
}

.tmt-prices dd {
	margin: 0;
	font-family: var(--tmt-serif);
	font-weight: 900;
	font-size: 28px;
	line-height: 1.1;
	color: var(--tmt-gold-hi);
}

.tmt-hero .tmt-btn--gold {
	min-height: 58px;
	padding-inline: 2.2em;
	font-size: 16px;
}

/* 3D book (closing CTA) */
.tmt-cta__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
}

.tmt-cta__book {
	display: flex;
	justify-content: center;
	perspective: 1600px;
}

.tmt-book {
	position: relative;
	width: clamp(220px, 25vw, 360px);
	aspect-ratio: 1756 / 2480;
	transform: rotateY(-26deg) rotateX(3deg);
	transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tmt-book:hover {
	transform: rotateY(-12deg) rotateX(2deg);
}

.tmt-book__front {
	position: absolute;
	inset: 0;
	border-radius: 2px 6px 6px 2px;
	overflow: hidden;
	box-shadow:
		inset 4px 0 8px rgba(255, 255, 255, 0.25),
		24px 30px 50px rgba(0, 0, 0, 0.5);
}

.tmt-book__front img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* spine: 344/1756 of the cover width, hinged on the left edge */
.tmt-book__spine {
	position: absolute;
	top: 0;
	left: 0;
	width: 19.6%;
	height: 100%;
	background-size: 100% 100%;
	transform-origin: left center;
	transform: rotateY(90deg) translateX(-100%);
	filter: brightness(0.82);
}

/* ---------- 2. foreword ---------- */

.tmt-foreword {
	padding: clamp(36px, 6vw, 64px) 0;
	background: linear-gradient(180deg, var(--tmt-sky-2), #fff);
	text-align: center;
}

.tmt-kicker {
	margin: 0 0 14px;
	font-family: var(--tmt-sans);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tmt-crimson);
}

.tmt-foreword__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmt-foreword__list li {
	font-family: var(--tmt-serif);
	font-weight: 700;
	font-size: clamp(22px, 2.8vw, 32px);
	color: var(--tmt-ink);
}

.tmt-foreword__list li + li::before {
	content: "◆";
	display: inline-block;
	margin: 0 0.8em;
	font-size: 0.45em;
	vertical-align: middle;
	color: var(--tmt-gold);
}

/* ---------- 3. synopsis / back cover ---------- */

.tmt-synopsis {
	position: relative;
	isolation: isolate;
	padding: clamp(64px, 10vw, 120px) 0;
	overflow: hidden;
}

.tmt-synopsis__art,
.tmt-synopsis__art picture,
.tmt-synopsis__art img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.tmt-synopsis__art {
	z-index: -1;
}

.tmt-synopsis__art img {
	object-fit: cover;
	object-position: 50% 40%;
}

.tmt-synopsis__art::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(30, 42, 58, 0.25));
}

.tmt-card {
	max-width: 820px;
	margin-inline: auto;
	padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 64px);
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 30px 80px rgba(30, 42, 58, 0.35);
	text-align: center;
}

.tmt-pill {
	display: inline-block;
	margin: 0 0 18px;
	padding: 4px 26px;
	border: 2px solid var(--tmt-ink);
	border-radius: 999px;
	font-family: var(--tmt-sans);
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tmt-ink);
}

.tmt-card__lockup {
	margin: 0 0 26px;
	line-height: 1;
}

.tmt-card__title {
	display: block;
	font-family: var(--tmt-serif);
	font-weight: 800;
	font-size: clamp(28px, 3.6vw, 38px);
	line-height: 1.02;
	text-transform: uppercase;
	color: var(--tmt-ink);
}

.tmt-card__lockup .tmt-zh {
	display: block;
	margin-top: 8px;
	font-size: 18px;
	letter-spacing: 0.2em;
	color: var(--tmt-ink);
}

.tmt-card p:not(.tmt-card__lockup) {
	margin: 0 0 1.1em;
	font-size: 16px;
	line-height: 1.8;
	text-align: left;
	color: var(--tmt-text);
}

@media (min-width: 720px) {
	.tmt-card p:not(.tmt-card__lockup) {
		text-align: justify;
		hyphens: auto;
	}
}

.tmt-card p:last-child {
	margin-bottom: 0;
}

/* ---------- 4. themes ---------- */

.tmt-themes {
	padding: clamp(64px, 9vw, 112px) 0;
	background:
		radial-gradient(circle at 15% 0%, rgba(242, 182, 36, 0.12), transparent 45%),
		radial-gradient(circle at 90% 100%, rgba(173, 31, 49, 0.25), transparent 50%),
		var(--tmt-ink);
	color: #fff;
}

.tmt-h2 {
	margin: 0 0 clamp(28px, 4vw, 44px);
	font-family: var(--tmt-serif);
	font-weight: 900;
	font-size: clamp(30px, 4.2vw, 48px);
	line-height: 1.08;
	text-transform: uppercase;
	color: var(--tmt-ink);
}

.tmt-themes .tmt-h2 {
	color: var(--tmt-gold);
	text-align: center;
}

.tmt-themes__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmt-theme {
	padding: 28px 24px;
	border: 1px solid rgba(242, 182, 36, 0.3);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.04);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.tmt-theme:hover {
	border-color: var(--tmt-gold);
	transform: translateY(-3px);
}

.tmt-theme__zh {
	display: block;
	font-size: 52px;
	font-weight: 900;
	line-height: 1;
	color: var(--tmt-gold);
}

.tmt-theme h3 {
	margin: 18px 0 8px;
	font-family: var(--tmt-sans);
	font-weight: 800;
	font-size: 17px;
	line-height: 1.3;
	color: #fff;
}

.tmt-theme p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.8);
}

/* ---------- 5. details ---------- */

.tmt-details {
	padding: clamp(64px, 9vw, 112px) 0;
	background: #fff;
}

.tmt-details__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	align-items: center;
	gap: clamp(32px, 6vw, 88px);
}

.tmt-details__cover img {
	width: min(420px, 100%);
	margin-inline: auto;
	border-radius: 4px 8px 8px 4px;
	box-shadow: 0 30px 60px rgba(30, 42, 58, 0.28), 0 4px 10px rgba(30, 42, 58, 0.12);
}

.tmt-spec {
	margin: 0;
}

.tmt-spec > div {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--tmt-line);
}

.tmt-spec dt {
	font-family: var(--tmt-sans);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tmt-muted);
	padding-top: 3px;
}

.tmt-spec dd {
	margin: 0;
	font-size: 16px;
	color: var(--tmt-ink);
}

/* ---------- 6. closing CTA — spine crimson ---------- */

.tmt-cta {
	position: relative;
	padding: clamp(64px, 9vw, 112px) 0;
	background:
		radial-gradient(circle at 25% 50%, rgba(242, 182, 36, 0.18), transparent 45%),
		linear-gradient(180deg, var(--tmt-crimson), var(--tmt-crimson-deep));
	color: #fff;
	overflow: hidden;
}

.tmt-cta__inner {
	display: grid;
	justify-items: start;
	gap: 22px;
}

.tmt-cta__zh {
	margin: 0;
	font-size: clamp(24px, 3vw, 34px);
	letter-spacing: 0.2em;
	color: rgba(255, 255, 255, 0.9);
}

.tmt-cta .tmt-title {
	margin-top: -8px;
}

.tmt-prices--center {
	justify-content: flex-start;
}

.tmt-cta .tmt-btn--gold {
	min-height: 58px;
	padding-inline: 2.4em;
	font-size: 16px;
}

.tmt-cta__prev {
	margin: 6px 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.78);
}

.tmt-cta__prev a {
	color: var(--tmt-gold-hi);
}

/* ---------- footer ---------- */

.tmt-foot {
	padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
	background: #141c27;
	border-top: 4px solid var(--tmt-gold);
	color: rgba(255, 255, 255, 0.7);
	font-family: var(--tmt-sans);
	font-size: 13px;
}

.tmt-foot__inner {
	display: grid;
	gap: 12px;
	text-align: center;
}

.tmt-foot nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
}

.tmt-foot a {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.tmt-foot a:hover {
	color: var(--tmt-gold);
}

.tmt-foot p {
	margin: 0;
	line-height: 1.6;
}

/* ---------- mobile sticky buy ---------- */

body.tmt-mindset .tmt-sticky-buy {
	display: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.tmt-themes__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.tmt-hero {
		min-height: 0;
		padding-top: calc(64px + 46vh);
	}

	.tmt-hero__art img {
		object-position: 50% 12%;
	}

	.tmt-hero__art::after {
		background: linear-gradient(180deg, rgba(140, 200, 234, 0) 22%, rgba(110, 15, 28, 0.55) 48%, rgba(42, 6, 12, 0.96) 70%);
	}

	.tmt-hero {
		background: var(--tmt-crimson-deep);
	}

	.tmt-hero__art {
		width: 100%;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.tmt-details__grid,
	.tmt-cta__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tmt-cta {
		text-align: center;
	}

	.tmt-cta__inner {
		justify-items: center;
	}

	.tmt-prices--center {
		justify-content: center;
	}

	.tmt-book {
		width: min(240px, 60vw);
	}

	/* badge + ribbon float over the sky at the top, as on the cover */
	.tmt-badge {
		position: absolute;
		top: 84px;
		left: 50%;
		transform: translateX(-50%);
		margin: 0;
	}

	.tmt-ribbon {
		margin-bottom: 18px;
	}

	.tmt-details__cover img {
		width: min(300px, 80%);
	}

	body.tmt-mindset .tmt-sticky-buy {
		display: inline-flex;
		position: fixed;
		left: 16px;
		right: 16px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		z-index: 40;
		transform: translateY(140%);
		transition: transform 0.25s ease;
	}

	.tmt-sticky-buy.is-visible {
		transform: translateY(0);
	}

	.tmt-foot {
		padding-bottom: calc(96px + env(safe-area-inset-bottom));
	}
}

@media (max-width: 560px) {
	.tmt-themes__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tmt-prices dd {
		font-size: 24px;
	}

	.tmt-buy .tmt-btn--gold {
		width: 100%;
	}

	.tmt-spec > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tmt-book {
		transition: none;
	}
}

/* pre-sale state: same footprint as the buy button, visibly inert */
body.tmt-mindset .tmt-btn.tmt-btn--soon,
body.tmt-mindset .tmt-btn.tmt-btn--soon:hover {
	cursor: default;
	transform: none;
	background: rgba(255, 255, 255, 0.14);
	color: var(--tmt-gold-hi);
	border: 1.5px dashed rgba(248, 212, 106, 0.7);
	box-shadow: none;
}
