.cne {
	--cne-ink: #151515;
	--cne-muted: #66625c;
	--cne-paper: #f7f3ec;
	--cne-card: #fff;
	--cne-accent: #f2d64b;
	--cne-dark: #1e1e1e;
	--cne-border: #ded8ce;
	--cne-radius: 24px;
	--cne-cover-ratio: 1200 / 350; /* Kit issue covers are 1200×350 banners */
	--cne-soft: #f6f0ff;
	--cne-display: "Huninn", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
	color: var(--cne-ink);
	font-family: inherit;
	background: var(--cne-paper);
}

/*
 * Headings in 粉圓體 (Huninn). It has one weight, so headings use it rather
 * than a synthesized bold.
 */
.cne h1,
.cne h2,
.cne h3,
.cne h4 {
	font-family: var(--cne-display);
	font-weight: 400;
}

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

.cne a {
	color: inherit;
	text-decoration: none;
}

/*
 * The site-wide CSS styles every link like a menu item (block, padding, 20px,
 * no wrapping). :where keeps this easy to override.
 */
.cne :where(a:not(.cne__button):not(.cne__text-link)) {
	display: inline;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	white-space: normal;
}

.cne__hero {
	padding: 88px 24px 72px;
	border-bottom: 1px solid var(--cne-border);
	background: linear-gradient(180deg, #fffdf8 0%, var(--cne-paper) 100%);
}

.cne__hero-inner,
.cne__content,
.cne__cta-inner {
	width: min(1180px, 100%);
	margin: 0 auto;
}

.cne__hero-inner {
	max-width: 820px;
	text-align: center;
}

.cne__eyebrow,
.cne__section-kicker,
.cne__date {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cne__eyebrow,
.cne__section-kicker {
	color: var(--cne-muted);
}

.cne__title {
	margin: 14px 0 18px;
	font-size: clamp(2.6rem, 7vw, 5.7rem);
	line-height: 0.98;
	letter-spacing: -0.055em;
}

.cne__subtitle {
	max-width: 650px;
	margin: 0 auto 28px;
	color: var(--cne-muted);
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	line-height: 1.75;
}

.cne__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 24px;
	border: 1px solid var(--cne-dark);
	border-radius: 999px;
	font-weight: 700;
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.cne__button:hover,
.cne__button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08);
}

.cne__button--primary {
	background: var(--cne-accent);
}

.cne__content {
	padding: 72px 24px 88px;
}

.cne__section + .cne__section {
	margin-top: 88px;
}

.cne__section-heading {
	margin-bottom: 28px;
}

.cne__section-heading h2,
.cne__cta h2 {
	margin: 6px 0 0;
	font-size: clamp(2rem, 4vw, 3.3rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.cne__featured {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
	min-height: 460px;
	overflow: hidden;
	border: 1px solid var(--cne-border);
	border-radius: var(--cne-radius);
	background: var(--cne-card);
}

.cne__featured-media,
.cne__card-media {
	display: block;
	overflow: hidden;
	background: #e8e2d7;
}

.cne__featured-image,
.cne__card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 280ms ease;
}

.cne__featured:hover .cne__featured-image,
.cne__card:hover .cne__card-image {
	transform: scale(1.025);
}

.cne__featured-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(32px, 5vw, 58px);
}

.cne__date {
	color: var(--cne-muted);
}

.cne__featured-title,
.cne__card-title {
	margin: 12px 0 14px;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.cne__featured-title {
	font-size: clamp(2rem, 3vw, 3.25rem);
}

.cne__card-title {
	font-size: 1.45rem;
}

.cne__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cne__topics li {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--cne-soft);
	color: var(--cne-dark);
	font-size: 0.85rem;
	line-height: 1.5;
}

.cne__excerpt {
	margin: 0;
	color: var(--cne-muted);
	font-size: 1rem;
	line-height: 1.7;
}

.cne__text-link {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 0;
	font-size: inherit;
	margin-top: 22px;
	font-weight: 700;
	border-bottom: 2px solid currentColor;
}

.cne__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.cne__card {
	overflow: hidden;
	border: 1px solid var(--cne-border);
	border-radius: 20px;
	background: var(--cne-card);
}

.cne__card-media {
	aspect-ratio: var(--cne-cover-ratio);
}

.cne__card-body {
	padding: 24px;
}

.cne__image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 360px;
	font-size: clamp(3rem, 8vw, 7rem);
	font-weight: 800;
	letter-spacing: -0.08em;
	background: var(--cne-accent);
}

.cne__image-placeholder--card {
	min-height: 100%;
	font-size: 3.2rem;
}

.cne__pagination {
	margin-top: 42px;
}

.cne__pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.cne__pagination a,
.cne__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--cne-border);
	border-radius: 999px;
	background: var(--cne-card);
}

.cne__pagination .current {
	color: #fff;
	background: var(--cne-dark);
	border-color: var(--cne-dark);
}

.cne__empty {
	padding: 34px;
	border: 1px dashed var(--cne-border);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.6);
}

.cne__empty p {
	margin: 0;
	color: var(--cne-muted);
}

.cne__cta {
	padding: 76px 24px;
	color: var(--cne-ink);
	background: var(--cne-soft);
	border-top: 1px solid var(--cne-border);
}

.cne__cta-inner {
	max-width: 760px;
	text-align: center;
}

.cne__cta .cne__section-kicker,
.cne__cta p {
	color: var(--cne-muted);
}

.cne__cta h2 {
	color: var(--cne-dark);
}

.cne__cta p {
	margin: 16px auto 26px;
	font-size: 1.08rem;
	line-height: 1.7;
}

/*
 * On the light subscribe band: the yellow primary look
 * (.cne a would otherwise win).
 */
.cne .cne__button--light {
	color: var(--cne-ink);
	background: var(--cne-accent);
	border-color: var(--cne-dark);
}

@media (max-width: 960px) {

	.cne__featured {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.cne__featured-media {
		aspect-ratio: var(--cne-cover-ratio);
	}

	.cne__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {

	.cne__hero {
		padding: 64px 18px 54px;
	}

	.cne__content {
		padding: 54px 18px 68px;
	}

	.cne__section + .cne__section {
		margin-top: 64px;
	}

	.cne__featured {
		border-radius: 18px;
	}

	.cne__featured-copy {
		padding: 28px 24px 32px;
	}

	.cne__grid {
		grid-template-columns: 1fr;
	}

	.cne__card-body {
		padding: 22px;
	}

	.cne__cta {
		padding: 58px 18px;
	}
}

/*
 * Hero with the Kit form: text beside a form card, on a lavender sky with
 * the logo's sun and waves.
 */
.cne__hero--signup {
	padding: 72px 24px 132px;
}

.cne__hero--signup .cne__hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
	gap: 48px;
	align-items: center;
	max-width: 1080px;
	text-align: left;
}

.cne .cne__hero--signup .cne__title {
	margin: 10px 0 14px;
	color: var(--cne-dark);
	font-size: clamp(2.3rem, 5vw, 3.6rem) !important;
	line-height: 1.15;
	letter-spacing: 0;
}

.cne__hero-points {
	display: grid;
	gap: 8px;
	margin: 22px 0 0;
	padding: 0;
	color: var(--cne-ink);
	font-size: 1.02rem;
	list-style: none;
}

.cne__hero--signup .cne__subtitle {
	margin-left: 0;
}

.cne__signup {
	scroll-margin-top: 110px;
	padding: 28px 28px 20px;
	border: 1px solid var(--cne-border);
	border-radius: 24px;
	background: var(--cne-card);
	box-shadow: 0 18px 40px rgba(70, 40, 76, 0.12);
	text-align: left;
}

/* Kit's form, in the site's look. */
.cne .cne__signup .formkit-form {
	max-width: none !important;
	margin: 0 !important;
	font-family: inherit !important;
}

.cne .cne__signup .formkit-form > div {
	padding: 0 !important;
}

.cne .cne__signup .formkit-alert:empty {
	display: none !important;
}

.cne .cne__signup .formkit-fields {
	display: grid !important;
	gap: 10px;
	margin: 0 !important;
}

.cne .cne__signup .formkit-field {
	margin: 0 !important;
}

.cne .cne__signup .formkit-input {
	width: 100% !important;
	min-height: 50px;
	padding: 0 18px !important;
	border: 1px solid var(--cne-border) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--cne-ink) !important;
	font-family: inherit !important;
	font-size: 1rem !important;
}

.cne .cne__signup .formkit-input:focus {
	border-color: var(--cne-dark) !important;
	outline: 2px solid rgba(70, 40, 76, 0.18);
}

.cne .cne__signup .formkit-submit {
	position: relative !important;
	width: 100%;
	min-height: 52px;
	margin: 6px 0 0 !important;
	border: 1px solid var(--cne-dark) !important;
	border-radius: 999px !important;
	background: var(--cne-accent) !important;
	color: var(--cne-ink) !important;
	font-family: var(--cne-display) !important;
	font-size: 1.1rem !important;
	font-weight: 400 !important;
}

.cne .cne__signup .formkit-submit > span {
	padding: 0 !important;
	background: none !important;
	color: inherit !important;
}

/* While Kit sends the form: its dots in the ink colour, and "Sending…". */
.cne .cne__signup .formkit-spinner > div {
	background: var(--cne-dark) !important;
}

.cne .cne__signup .formkit-submit[data-sending] {
	cursor: progress;
}

.cne .cne__signup .formkit-submit[data-sending]::after {
	content: "⏳ " attr(data-sending);
	color: var(--cne-ink);
	animation: cne-sending 1.2s ease-in-out infinite;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 1rem;
}

.cne .cne__signup .formkit-submit[data-sending] .formkit-spinner,
.cne .cne__signup .formkit-submit[data-sending] > span {
	opacity: 0 !important;
}

.cne .cne__signup .formkit-powered-by-convertkit-container {
	margin: 10px 0 0 !important;
	justify-content: center !important;
}

@media (max-width: 860px) {

	.cne__hero--signup {
		padding: 48px 20px 120px;
	}

	.cne__hero--signup .cne__hero-inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		text-align: center;
	}

	.cne__hero--signup .cne__subtitle {
		margin: 0 auto;
	}

	.cne__hero-points {
		justify-items: center;
	}

	.cne__signup {
		padding: 22px 18px 16px;
	}
}

/* stylelint-disable function-url-quotes -- SVG data URIs. */

/*
 * Sky behind the heroes (templates/parts/sky.php): a lavender-to-peach sky,
 * the logo's sun with turning rays, clouds, sparkles, floating English
 * phrases and three layers of sea. assets/js/newsletter.js moves the layers
 * with the pointer and scroll.
 */
.cne__hero--sky {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 85% 10%, rgba(255, 214, 153, 0.55), transparent 45%),
		radial-gradient(ellipse at 10% 90%, rgba(183, 232, 240, 0.5), transparent 50%),
		linear-gradient(180deg, #ece0ff 0%, #f6efff 55%, #fff6ec 100%);
}

.cne__hero--sky > .cne__hero-inner,
.cne__hero--sky > .cne-issue__narrow {
	position: relative;
	z-index: 1;
}

.cne__sky {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.cne__sky > * {
	position: absolute;
	transition: translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cne__sun {
	top: 34px;
	right: 7%;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 38%, #fff7b0, #ffd84a 58%, #ffb93d);
	box-shadow: 0 0 0 18px rgba(255, 216, 74, 0.22), 0 0 70px 30px rgba(255, 196, 77, 0.35);
}

.cne__sun-rays {
	position: absolute;
	inset: -46px;
	z-index: -1;
	border-radius: 50%;
	background: repeating-conic-gradient(rgba(255, 207, 77, 0.38) 0 7deg, transparent 7deg 22deg);
	mask: radial-gradient(circle, transparent 54%, #000 56%, #000 68%, transparent 72%);
	animation: cne-spin 60s linear infinite;
}

.cne__cloud {
	width: 150px;
	height: 44px;
	border-radius: 44px;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 8px 20px rgba(70, 40, 76, 0.06);
	animation: cne-drift 26s ease-in-out infinite alternate;
}

.cne__cloud::before,
.cne__cloud::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: inherit;
}

.cne__cloud::before {
	top: -26px;
	left: 26px;
	width: 62px;
	height: 62px;
}

.cne__cloud::after {
	top: -16px;
	left: 70px;
	width: 46px;
	height: 46px;
}

.cne__cloud--1 {
	top: 64px;
	left: 4%;
}

.cne__cloud--2 {
	top: 150px;
	right: 20%;
	scale: 0.7;
	animation-duration: 34s;
}

.cne__cloud--3 {
	bottom: 120px;
	left: 38%;
	opacity: 0.7;
	scale: 0.55;
	animation-duration: 40s;
	animation-direction: alternate-reverse;
}

.cne__sparkle {
	color: #f5c400;
	font-size: 18px;
	line-height: 1;
	animation: cne-twinkle 3.2s ease-in-out infinite;
}

.cne__sparkle--1 {
	top: 22%;
	left: 22%;
}

.cne__sparkle--2 {
	top: 14%;
	left: 58%;
	color: #b98cf0;
	font-size: 13px;
	animation-delay: 0.8s;
}

.cne__sparkle--3 {
	top: 58%;
	left: 8%;
	color: #3aa9bc;
	font-size: 14px;
	animation-delay: 1.6s;
}

.cne__sparkle--4 {
	top: 44%;
	right: 4%;
	font-size: 22px;
	animation-delay: 0.4s;
}

.cne__sparkle--5 {
	top: 70%;
	right: 36%;
	color: #e57399;
	font-size: 12px;
	animation-delay: 2.2s;
}

.cne__sparkle--6 {
	top: 30%;
	left: 46%;
	color: #b98cf0;
	font-size: 10px;
	animation-delay: 1.2s;
}

.cne__bubble {
	padding: 7px 14px;
	border: 1px solid rgba(70, 40, 76, 0.12);
	border-radius: 16px 16px 16px 4px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 10px 24px rgba(70, 40, 76, 0.1);
	color: var(--cne-dark);
	font-family: var(--cne-display);
	font-size: 0.95rem;
	white-space: nowrap;
	pointer-events: auto;
	cursor: default;
	animation: cne-float 6s ease-in-out infinite;
	transition: translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), scale 0.2s ease, background-color 0.2s ease;
}

.cne__bubble:hover {
	background: var(--cne-accent);
	scale: 1.08;
}

.cne__bubble.is-popped {
	animation: cne-pop 0.5s ease;
}

.cne__bubble--1 {
	top: 30px;
	left: 30%;
}

.cne__bubble--2 {
	bottom: 116px;
	left: 3%;
	border-radius: 16px 16px 4px;
	animation-delay: 1.5s;
}

.cne__bubble--3 {
	top: 188px;
	right: 3%;
	border-radius: 16px 16px 4px;
	animation-delay: 0.7s;
}

.cne__bubble--4 {
	bottom: 100px;
	left: 24%;
	animation-delay: 2.2s;
}

.cne__bubble--5 {
	top: 26px;
	left: 3%;
	animation-delay: 3s;
}

.cne__waves {
	right: 0;
	bottom: -1px;
	left: 0;
	height: 90px;
}

.cne__wave {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 100%;
	background-repeat: repeat-x;
	background-position: 0 bottom;
	animation: cne-wave 18s linear infinite;
}

.cne__wave--back {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 Q50 15 100 40 T200 40 T300 40 T400 40 V80 H0Z' fill='%23c9ecf2'/%3E%3C/svg%3E");
	background-size: 400px 90px;
	opacity: 0.9;
}

.cne__wave--mid {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46 Q37.5 24 75 46 T150 46 T225 46 T300 46 V80 H0Z' fill='%2397dbe6'/%3E%3C/svg%3E");
	background-size: 300px 74px;
	opacity: 0.85;
	animation-duration: 12s;
	animation-direction: reverse;
}

.cne__wave--front {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 80' preserveAspectRatio='none'%3E%3Cpath d='M0 56 Q30 38 60 56 T120 56 T180 56 T240 56 V80 H0Z' fill='%233aa9bc'/%3E%3C/svg%3E");
	background-size: 240px 56px;
	opacity: 0.55;
	animation-duration: 8s;
}

/* The issue page's hero, with the same sky. */
.cne-issue__hero.cne__hero--sky {
	padding-bottom: 110px;
	border-bottom: 0;
}

.cne-issue__hero .cne__bubble--3,
.cne-issue__hero .cne__bubble--4 {
	display: none;
}

/* Paper texture for the content area. */
.cne__content,
.cne-issue__layout {
	background-image: radial-gradient(rgba(70, 40, 76, 0.07) 1px, transparent 1.2px);
	background-size: 22px 22px;
}

.cne-issue__layout {
	width: 100%;
	max-width: none;
}

/* Topic chips in the colour of their kind of section. */
.cne__topics .cne__topic--street {
	background: #d6f0f4;
	color: #1f6f79;
}

.cne__topics .cne__topic--boost {
	background: #fff4a8;
	color: #6b5500;
}

.cne__topics .cne__topic--inspire {
	background: #eedcfb;
	color: #6d1fa0;
}

.cne__topics .cne__topic--news {
	background: #d9e9f8;
	color: #23588a;
}

.cne__topics .cne__topic--diary {
	background: #fbdde8;
	color: #a63a63;
}

/* Cards lift; covers zoom a little. */
.cne__card,
.cne__featured {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cne__card:hover,
.cne__featured:hover {
	box-shadow: 0 18px 40px rgba(70, 40, 76, 0.12);
	transform: translateY(-4px);
}

/* Fade-in on scroll (only when the script runs). */
.cne-js .cne [data-reveal],
.cne-js .cne .cne-issue__section {
	opacity: 0;
	translate: 0 24px;
	transition: opacity 0.6s ease, translate 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cne-js .cne .is-visible {
	opacity: 1;
	translate: 0 0;
}

/* Reading progress on issue pages. */
.cne-issue__progress {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1000;
	height: 4px;
	pointer-events: none;
}

.cne-issue__progress-bar {
	display: block;
	height: 100%;
	background: var(--cne-dark);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: background-color 0.3s ease;
}

.cne-issue__toc li.is-current a {
	color: var(--cne-dark);
	font-weight: 700;
}

@keyframes cne-sending {

	50% {
		opacity: 0.45;
	}
}

@keyframes cne-spin {

	to {
		rotate: 360deg;
	}
}

@keyframes cne-drift {

	to {
		transform: translateX(60px);
	}
}

@keyframes cne-twinkle {

	0%,
	100% {
		opacity: 0.25;
		transform: scale(0.7) rotate(0deg);
	}

	50% {
		opacity: 1;
		transform: scale(1.15) rotate(20deg);
	}
}

@keyframes cne-float {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

@keyframes cne-pop {

	40% {
		transform: scale(1.3) rotate(-6deg);
	}

	70% {
		transform: scale(0.92) rotate(3deg);
	}
}

@keyframes cne-wave {

	to {
		background-position-x: 1200px;
	}
}

@media (max-width: 860px) {

	.cne__sun {
		top: 14px;
		right: -18px;
		width: 80px;
		height: 80px;
	}

	.cne__bubble,
	.cne__cloud--2 {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.cne__sky *,
	.cne__card,
	.cne__featured {
		animation: none !important;
		transition: none !important;
	}
}

/* stylelint-enable function-url-quotes */
