/* Drawn Proof: site styles. Mobile-first, one column. Colors from BRAND_AND_LAUNCH_PLAN.md §3.4 */

:root {
	--ink: #14161C;
	--ink2: #1B1E26;
	--paper: #EFE8DA;
	--amber: #F2A93B;
	--teal: #3FB8AF;
	--coral: #E5625E;
	--grid: #2A2E38;
	--muted: #9AA0AC;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--ink);
	/* faint graph-paper grid */
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 28px 28px;
	background-position: -1px -1px;
	color: var(--paper);
	font: 400 16px/1.5 var(--sans);
}

a {
	color: var(--teal);
}

.wrap {
	max-width: 30rem;
	margin: 0 auto;
	padding: max(28px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
	/* soften the grid under the text */
	background: radial-gradient(ellipse at 50% 30%, rgba(20, 22, 28, 0.92) 40%, rgba(20, 22, 28, 0.6) 100%);
}

/* ---------- brand ---------- */
.brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 8px 0 4px;
}

.mark {
	width: 34px;
	height: 34px;
	flex: none;
}

h1,
h2 {
	font-family: var(--serif);
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
}

h1 {
	font-size: 2.3rem;
	line-height: 1.1;
}

h2 {
	font-size: 1.35rem;
	margin: 0 0 12px;
}

.kicker {
	text-align: center;
	color: var(--teal);
	font-weight: 600;
	margin: 18px 0 0;
}

.tagline {
	font-family: var(--serif);
	font-size: 1.3rem;
	line-height: 1.35;
	text-align: center;
	text-wrap: balance;
	margin: 14px 0 10px;
}

.tagline em {
	font-style: normal;
	color: var(--amber);
}

.lead {
	text-align: center;
	color: var(--muted);
	margin: 0 0 22px;
}

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

/* ---------- buttons ---------- */
.stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 56px;
	padding: 14px 18px;
	border: 1.5px solid var(--grid);
	border-radius: 14px;
	background: var(--ink2);
	color: var(--paper);
	font: 600 1rem/1.25 var(--sans);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.12s ease, border-color 0.12s ease;
}

.btn > span:nth-last-child(2) {
	flex: 1;
}

.btn:hover {
	border-color: var(--muted);
}

.btn:active {
	transform: scale(0.98);
}

.btn:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 3px;
}

.btn-main {
	min-height: 68px;
	background: var(--amber);
	border-color: var(--amber);
	color: var(--ink);
	font-size: 1.15rem;
	box-shadow: 0 6px 24px rgba(242, 169, 59, 0.25);
}

.btn-main:hover {
	border-color: var(--paper);
}

.ic {
	width: 28px;
	height: 28px;
	flex: none;
}

.ic-emoji {
	width: 28px;
	text-align: center;
	font-size: 1.2rem;
	flex: none;
}

.go {
	flex: none;
	opacity: 0.8;
}

/* ---------- shorts cards ---------- */
.shorts {
	margin-top: 36px;
}

.cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.card {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 10px;
	border: 1.5px solid var(--grid);
	border-radius: 14px;
	background: var(--ink2);
	color: var(--paper);
	text-decoration: none;
}

a.card:hover {
	border-color: var(--muted);
}

.thumb {
	width: 84px;
	height: 93px;
	flex: none;
	border-radius: 8px;
	object-fit: cover;
	background: var(--ink);
	border: 1px solid var(--grid);
}

.thumb-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--serif);
	font-size: 1.8rem;
	color: var(--amber);
}

.card-title {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.25;
	margin: 0 0 4px;
}

.card-meta {
	font-size: 0.85rem;
	color: var(--muted);
	margin: 0;
}

.badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 999px;
	border: 1px solid var(--teal);
	color: var(--teal);
	font-size: 0.75rem;
	font-weight: 600;
	margin-right: 6px;
}

/* ---------- footer ---------- */
footer {
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid var(--grid);
	text-align: center;
	color: var(--muted);
	font-size: 0.85rem;
}

footer p {
	margin: 0 0 6px;
}

.qed {
	color: var(--amber);
}

/* ---------- in-app browser hint ---------- */
.iab {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: max(12px, env(safe-area-inset-bottom));
	max-width: 28rem;
	margin: 0 auto;
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--paper);
	color: var(--ink);
	font-size: 0.9rem;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.iab[hidden] {
	display: none;
}

.iab button {
	flex: none;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ink);
	font-size: 1.4rem;
	cursor: pointer;
}

@media (min-width: 700px) {
	.wrap {
		padding-top: 64px;
	}

	h1 {
		font-size: 2.8rem;
	}

	.tagline {
		font-size: 1.45rem;
	}
}

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