:root {
	--bg: #f7efe5;
	--bg-accent: #f1dcc5;
	--panel: rgba(255, 250, 245, 0.84);
	--ink: #201a1a;
	--muted: #6e625d;
	--line: rgba(32, 26, 26, 0.12);
	--sidebar: #15181f;
	--sidebar-line: rgba(255, 255, 255, 0.14);
	--sidebar-ink: #f9f4ef;
	--shadow: 0 24px 60px rgba(49, 31, 20, 0.12);
	--radius-xl: 28px;
	--radius-lg: 20px;
	--radius-md: 14px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: "Manrope", sans-serif;
	color: var(--ink);
	background:
		radial-gradient(circle at top left, rgba(255, 155, 113, 0.35), transparent 30%),
		radial-gradient(circle at bottom right, rgba(27, 153, 139, 0.22), transparent 28%),
		linear-gradient(135deg, var(--bg), #fffaf5 55%, var(--bg-accent));
}

input,
button {
	font: inherit;
}

.page-shell {
	width: min(1280px, calc(100% - 32px));
	margin: 0 auto;
	padding: 24px 0 40px;
}

.topbar {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
	gap: 24px;
	align-items: end;
	margin-bottom: 24px;
}

.eyebrow {
	margin: 0 0 10px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #a2471b;
}

.topbar h1,
.intro-card h2,
.sidebar h2 {
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
	line-height: 1.02;
}

/*.topbar h1 {
	font-size: clamp(2.4rem, 5vw, 4.5rem);
	max-width: 11ch;
}*/

.headline-form,
.intro-card,
.preview-card {
	backdrop-filter: blur(14px);
}

.headline-form {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--panel);
	box-shadow: var(--shadow);
}

.headline-form label,
.input-group label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.92rem;
	font-weight: 700;
}

.headline-form input,
.headline-form select,
.color-value {
	width: 100%;
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 14px 16px;
	outline: none;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.headline-form input {
	background: #ffffff;
}

.headline-form select {
	background: #ffffff;
	appearance: none;
}

.top-color-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 56px 30px;
	gap: 10px;
	align-items: center;
	margin-top: 2px;
}

#top-text-color {
	background: #ffffff;
}

.headline-form .mini-preview {
	border-color: rgba(32, 26, 26, 0.18);
}

.top-typography-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 10px;
}

.headline-form input:focus,
.headline-form select:focus,
.color-value:focus {
	border-color: #d86a3a;
	box-shadow: 0 0 0 4px rgba(216, 106, 58, 0.16);
	transform: translateY(-1px);
}

.layout-grid {
	display: grid;
	grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
	gap: 24px;
}

.sidebar {
	padding: 24px;
	border-radius: var(--radius-xl);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 20%),
		linear-gradient(160deg, #10131a, #1f2530 70%, #10131a);
	color: var(--sidebar-ink);
	box-shadow: 0 32px 70px rgba(8, 10, 15, 0.28);
}

.sidebar .eyebrow {
	color: #ffb48f;
}

.sidebar-copy p,
.intro-card p,
.preview-copy p,
.input-group small {
	color: var(--muted);
	line-height: 1.6;
}

.sidebar-copy p,
.input-group small {
	color: rgba(249, 244, 239, 0.7);
}

.color-form {
	display: grid;
	gap: 14px;
	margin-top: 24px;
}

.input-group {
	padding: 14px;
	border: 1px solid var(--sidebar-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.03);
}

.feature-group {
	background: rgba(255, 255, 255, 0.06);
}

.field-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 56px 30px;
	gap: 10px;
	align-items: center;
}

.color-value {
	color: var(--sidebar-ink);
	background: rgba(255, 255, 255, 0.08);
}

.picker {
	width: 56px;
	height: 50px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: transparent;
	cursor: pointer;
}

.picker::-webkit-color-swatch-wrapper {
	padding: 4px;
}

.picker::-webkit-color-swatch {
	border: none;
	border-radius: 8px;
}

.mini-preview {
	width: 30px;
	height: 30px;
	border: 2px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	background: #ffffff;
}

.main-content {
	display: grid;
	gap: 24px;
}

.intro-card {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	background: rgba(255, 252, 248, 0.82);
	box-shadow: var(--shadow);
}

.palette-presets {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	background: rgba(255, 252, 248, 0.82);
	box-shadow: var(--shadow);
	backdrop-filter: blur(14px);
	margin-top: 25px;
}

.palette-presets-copy h2 {
	margin: 0 0 10px;
	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.palette-presets-copy p:last-child {
	margin-top: 0;
	color: var(--muted);
}

.palette-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.palette-option {
	display: grid;
	gap: 12px;
	padding: 14px;
	border: 1px solid rgba(32, 26, 26, 0.1);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.82);
	text-align: left;
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.palette-option:hover,
.palette-option:focus-visible {
	transform: translateY(-2px);
	border-color: rgba(216, 106, 58, 0.45);
	box-shadow: 0 16px 28px rgba(62, 38, 23, 0.08);
	outline: none;
}

.palette-option-name {
	font-weight: 800;
	color: var(--ink);
}

.palette-samples {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 6px;
}

.palette-samples span {
	display: block;
	height: 34px;
	border-radius: 10px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.preview-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.preview-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: stretch;
	padding: 18px;
	border: 1px solid rgba(32, 26, 26, 0.1);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.74);
	box-shadow: 0 18px 40px rgba(62, 38, 23, 0.08);
}

.swatch {
	order: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	width: 100%;
	height: 90px;
	border-radius: 16px;
	background: #ff6b35;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.swatch-label {
	font-family: "Space Grotesk", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
	color: #201a1a;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.preview-copy {
	order: 1;
}

.preview-copy h3,
.preview-copy p {
	margin: 0;
}

.preview-copy h3 {
	margin-bottom: 8px;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.15rem;
}

.preview-value {
	font-weight: 700;
	color: #473d38;
}

.is-invalid {
	border-color: #ff7b72;
	box-shadow: 0 0 0 4px rgba(255, 123, 114, 0.16);
}

.big-footer {
	margin-top: 28px;
	padding: 30px;
	border: 1px solid rgba(32, 26, 26, 0.12);
	border-radius: 28px;
	background:
		linear-gradient(145deg, rgba(32, 26, 26, 0.96), rgba(23, 18, 18, 0.98)),
		radial-gradient(circle at top right, rgba(255, 140, 66, 0.16), transparent 34%);
	color: #f7eee7;
	box-shadow: 0 28px 60px rgba(18, 12, 11, 0.32);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: 24px;
}

.big-footer h2,
.big-footer h3 {
	margin: 0 0 12px;
	font-family: "Space Grotesk", sans-serif;
	line-height: 1.15;
}

.big-footer h2 {
	font-size: clamp(1.5rem, 2.4vw, 2.1rem);
	max-width: 18ch;
}

.big-footer p {
	margin: 0;
	color: rgba(247, 238, 231, 0.82);
	line-height: 1.65;
}

.footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.footer-links a {
	color: #f7eee7;
	text-decoration: none;
	border-bottom: 1px dashed transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
	color: #ffb48f;
	border-color: rgba(255, 180, 143, 0.55);
	outline: none;
}

.footer-subscribe {
	display: grid;
	gap: 10px;
}

.footer-subscribe label {
	font-size: 0.92rem;
	font-weight: 700;
	color: rgba(247, 238, 231, 0.9);
}

.footer-subscribe input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: #f7eee7;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-subscribe input::placeholder {
	color: rgba(247, 238, 231, 0.55);
}

.footer-subscribe input:focus {
	border-color: rgba(255, 180, 143, 0.75);
	box-shadow: 0 0 0 4px rgba(255, 180, 143, 0.15);
}

.footer-subscribe button {
	padding: 12px 14px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #ff8c42, #ff6b35);
	color: #fffaf5;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-subscribe button:hover,
.footer-subscribe button:focus-visible {
	transform: translateY(-1px);
	filter: brightness(1.06);
	outline: none;
}

.footer-bottom {
	margin-top: 24px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	display: flex;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.footer-bottom p {
	font-size: 0.92rem;
	color: rgba(247, 238, 231, 0.72);
}

@media (max-width: 980px) {
	.topbar,
	.layout-grid,
	.preview-grid,
	.palette-list {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.topbar h1 {
		max-width: none;
	}
}

@media (max-width: 640px) {
	.page-shell {
		width: min(100% - 20px, 100%);
		padding-top: 18px;
	}

	.sidebar,
	.intro-card,
	.headline-form,
	.preview-card {
		border-radius: 20px;
	}

	.field-row {
		grid-template-columns: 1fr;
	}

	.top-color-row {
		grid-template-columns: 1fr;
	}

	.top-typography-row {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.big-footer {
		padding: 22px;
		border-radius: 22px;
	}

	.footer-bottom {
		flex-direction: column;
	}

	.swatch {
		height: 74px;
	}

	.picker,
	.mini-preview {
		justify-self: start;
	}
}















