/*
	Focal Three — Marketing Site
	Pure HTML/CSS. No JavaScript, no frameworks.

	Palette (from the brief):
		Ink         #1F1F1F
		Bone        #F6F2EB
		Sage        #DBE4D6
		Clay        #E8D8CA
		Warm line   #C1B59E
		App bg      #F4F2ED
*/

/* ---------- Reset & base ---------- */

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

html, body {
	margin: 0;
	padding: 0;
}

:root {
	--ink: #1F1F1F;
	--ink-soft: #4f4d48;
	--ink-gray: #6b6863;
	--ink-fade: #8a857d;
	--ink-mute: #b8ad97;
	--bone: #F6F2EB;
	--sage: #DBE4D6;
	--clay: #E8D8CA;
	--warm-line: #C1B59E;
	--app-bg: #F4F2ED;
	--page-bg: #F4F2ED;
	--rule: #e6e1d8;
	--rule-soft: #ece8df;

	--sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
	--serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color: var(--ink);
	background: var(--page-bg);
	font-feature-settings: "ss01", "cv11";
	line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

/* ---------- Page shell ---------- */

.page {
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px 64px 0;
}

.section {
	padding: 128px 0;
	border-top: 1px solid var(--rule);
}

.section--no-rule {
	border-top: 0;
}

.section__kicker {
	font-size: 12px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ink-fade);
	font-weight: 500;
	margin: 0 0 24px;
}

.section__title {
	font-size: 56px;
	line-height: 1.04;
	letter-spacing: -0.03em;
	font-weight: 330;
	margin: 0 0 24px;
	max-width: 22ch;
}

.section__lede {
	font-size: 19px;
	line-height: 1.6;
	color: var(--ink-soft);
	max-width: 58ch;
	margin: 0;
}

/* ---------- Top nav ---------- */

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 32px;
}

.nav__brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: var(--ink);
}

.nav__logo {
	width: 28px;
	height: auto;
	display: block;
}

.nav__brand-name {
	font-size: 15px;
	letter-spacing: -0.005em;
	font-weight: 500;
}

.nav__links {
	display: flex;
	gap: 32px;
	font-size: 13px;
	letter-spacing: 0.02em;
	color: var(--ink-gray);
}

.nav__links a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
	padding: 96px 0 144px;
	text-align: center;
}

.hero__logo {
	width: 96px;
	height: auto;
	margin: 0 auto 56px;
	display: block;
}

.hero__eyebrow {
	font-size: 12px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--ink-fade);
	margin: 0 0 28px;
	font-weight: 500;
}

.hero__name {
	font-size: 124px;
	letter-spacing: -0.045em;
	line-height: 0.94;
	font-weight: 300;
	margin: 0 0 28px;
}

.hero__tagline {
	font-size: 32px;
	line-height: 1.2;
	letter-spacing: -0.018em;
	font-weight: 350;
	color: var(--ink);
	margin: 0 auto 40px;
	max-width: 28ch;
}

.hero__desc {
	font-size: 20px;
	line-height: 1.55;
	color: var(--ink-soft);
	margin: 0 auto 56px;
	max-width: 60ch;
	font-weight: 400;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	border: 1px solid var(--warm-line);
	border-radius: 999px;
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink-soft);
	background: rgba(255,255,255,0.4);
	margin-bottom: 56px;
}

.hero__badge .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ink);
}

/* ---------- What it is ---------- */

.about {
	display: grid;
	grid-template-columns: minmax(0, 360px) 1fr;
	gap: 96px;
}

.about__copy {
	max-width: 60ch;
}

.about__copy p {
	font-size: 21px;
	line-height: 1.6;
	color: var(--ink);
	margin: 0 0 24px;
	font-weight: 380;
}

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

.about__copy p + p {
	color: var(--ink-soft);
	font-size: 19px;
	font-weight: 400;
}

/* ---------- The constraint ---------- */

.constraint {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 64px;
	align-items: center;
}

.constraint__numeral {
	font-size: 380px;
	line-height: 0.85;
	letter-spacing: -0.07em;
	font-weight: 200;
	color: var(--ink);
	margin: 0;
	text-align: center;
	font-feature-settings: "ss01";
}

.constraint__body h3 {
	font-size: 44px;
	line-height: 1.08;
	letter-spacing: -0.028em;
	font-weight: 340;
	margin: 0 0 24px;
}

.constraint__body p {
	font-size: 18px;
	line-height: 1.65;
	color: var(--ink-soft);
	margin: 0 0 18px;
	max-width: 52ch;
}

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

/* ---------- Themes grid ---------- */

.themes {
	margin-top: 64px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.theme {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow:
		0 0 0 1px rgba(0,0,0,0.05),
		0 24px 40px -28px rgba(28,24,18,0.18),
		0 8px 16px -12px rgba(28,24,18,0.10);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.theme:hover {
	transform: translateY(-4px);
	box-shadow:
		0 0 0 1px rgba(0,0,0,0.06),
		0 36px 60px -28px rgba(28,24,18,0.24),
		0 12px 22px -12px rgba(28,24,18,0.13);
}

.theme__preview {
	aspect-ratio: 4 / 3;
	background: var(--page-bg);
	display: flex;
	overflow: hidden;
	border-bottom: 1px solid var(--rule-soft);
	position: relative;
}

.theme__meta {
	padding: 24px 26px 28px;
}

.theme__number {
	font-size: 11px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ink-mute);
	margin: 0 0 10px;
	font-weight: 500;
}

.theme__name {
	font-size: 22px;
	letter-spacing: -0.018em;
	font-weight: 420;
	margin: 0 0 10px;
}

.theme__desc {
	font-size: 14px;
	color: var(--ink-gray);
	line-height: 1.55;
	margin: 0;
}

/* ---------- Theme preview internals ---------- */

.tp {
	width: 100%;
	height: 100%;
	display: flex;
	padding: 24px;
	font-family: var(--sans);
	color: var(--ink);
	position: relative;
}

/* 01 — Whitespace Triplet */
.tp--wt {
	background: #fff;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 18px;
	text-align: center;
}
.tp--wt .n { font-size: 9px; letter-spacing: 0.26em; color: var(--ink-mute); margin-bottom: 4px; text-transform: uppercase; }
.tp--wt h4 { font-size: 13px; letter-spacing: -0.01em; font-weight: 400; margin: 0; max-width: 22ch; }
.tp--wt .rule { width: 20px; height: 1px; background: var(--rule); }

/* 02 — The Index */
.tp--idx {
	background: #fbf9f4;
	flex-direction: column;
	padding: 24px 36px;
	justify-content: center;
	font-family: var(--serif);
}
.tp--idx .head { font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-fade); text-align: center; margin-bottom: 16px; font-family: var(--sans); }
.tp--idx .row { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dotted #d4cdbd; font-size: 13px; }
.tp--idx .row:last-child { border-bottom: 0; }
.tp--idx .num { font-size: 10px; letter-spacing: 0.16em; color: var(--ink-mute); font-family: var(--sans); }
.tp--idx .name { flex: 1; }
.tp--idx .leader { flex: 1; border-bottom: 1px dotted #cfc6b3; margin: 0 6px; transform: translateY(-3px); }

/* 03 — Triptych */
.tp--tri {
	padding: 0;
	background: #f0ebe1;
}
.tp--tri .panel { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px; }
.tp--tri .panel:nth-child(1) { background: var(--clay); }
.tp--tri .panel:nth-child(2) { background: var(--sage); }
.tp--tri .panel:nth-child(3) { background: var(--bone); }
.tp--tri .panel .n { font-size: 9px; letter-spacing: 0.24em; color: rgba(0,0,0,0.42); margin-bottom: 6px; text-transform: uppercase; }
.tp--tri .panel h5 { font-size: 12px; letter-spacing: -0.01em; font-weight: 450; margin: 0; line-height: 1.22; }

/* 04 — Compass */
.tp--cmp {
	background: #faf7f1;
	justify-content: center;
	align-items: center;
}
.tp--cmp .dial { position: relative; width: 170px; height: 170px; border: 1px solid var(--rule); border-radius: 50%; }
.tp--cmp .center { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); transform: translate(-50%,-50%); }
.tp--cmp .point { position: absolute; font-size: 10px; letter-spacing: -0.01em; color: var(--ink); text-align: center; max-width: 14ch; line-height: 1.15; }
.tp--cmp .point .n { display: block; font-size: 8px; letter-spacing: 0.22em; color: var(--ink-mute); margin-bottom: 3px; text-transform: uppercase; }
.tp--cmp .p1 { top: -6px; left: 50%; transform: translate(-50%, -100%); }
.tp--cmp .p2 { bottom: 50%; right: -6px; transform: translate(100%, 50%); }
.tp--cmp .p3 { bottom: 50%; left: -6px; transform: translate(-100%, 50%); }
.tp--cmp .tick { position: absolute; width: 1px; height: 8px; background: var(--ink-mute); left: 50%; transform: translateX(-50%); }
.tp--cmp .tick.t1 { top: 0; }
.tp--cmp .tick.t2 { top: 50%; right: 0; left: auto; height: 1px; width: 8px; transform: translateY(-50%); }
.tp--cmp .tick.t3 { top: 50%; left: 0; height: 1px; width: 8px; transform: translateY(-50%); }

/* 05 — Today's Brief */
.tp--brief {
	background: #fbf9f4;
	padding: 22px 28px;
	flex-direction: column;
	justify-content: center;
	font-family: var(--serif);
}
.tp--brief .masthead { text-align: center; padding-bottom: 8px; border-bottom: 2px solid #111; }
.tp--brief .masthead .name { font-size: 20px; letter-spacing: 0.02em; font-weight: 800; }
.tp--brief .masthead .date { font-size: 8px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; font-family: var(--sans); }
.tp--brief .cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 12px; }
.tp--brief .col { padding-right: 8px; border-right: 1px solid #d4cdbd; font-size: 10px; line-height: 1.35; }
.tp--brief .col:last-child { border-right: 0; padding-right: 0; }
.tp--brief .col .h { font-weight: 700; font-size: 10px; margin-bottom: 4px; line-height: 1.2; }
.tp--brief .col .num { font-size: 8px; letter-spacing: 0.22em; color: var(--ink-mute); margin-bottom: 4px; font-family: var(--sans); text-transform: uppercase; }

/* 06 — Horizon */
.tp--hzn {
	background: linear-gradient(180deg, #f6efe0 0%, #ead8b8 60%, #c9b594 100%);
	padding: 0;
	align-items: stretch;
}
.tp--hzn svg { width: 100%; height: 100%; display: block; }

/* ---------- Surfaces ---------- */

.surfaces {
	margin-top: 64px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.surface {
	padding: 32px 28px;
	background: #fff;
	border-radius: 18px;
	box-shadow:
		0 0 0 1px rgba(0,0,0,0.05),
		0 18px 28px -22px rgba(28,24,18,0.14);
}

.surface__icon {
	width: 56px;
	height: 56px;
	margin-bottom: 22px;
	color: var(--ink);
}

.surface__icon svg {
	width: 100%;
	height: 100%;
}

.surface__name {
	font-size: 16px;
	letter-spacing: -0.005em;
	font-weight: 500;
	margin: 0 0 8px;
}

.surface__desc {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ink-gray);
	margin: 0;
}

/* ---------- TRMNL section ---------- */

.trmnl-section {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
	gap: 80px;
	align-items: center;
}

.trmnl-section__copy h3 {
	font-size: 40px;
	line-height: 1.08;
	letter-spacing: -0.028em;
	font-weight: 340;
	margin: 0 0 22px;
}

.trmnl-section__copy p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink-soft);
	margin: 0 0 16px;
	max-width: 52ch;
}

.trmnl-section__copy p:last-child { margin-bottom: 0; }

.trmnl-frame {
	padding: 22px 22px 44px;
	background: linear-gradient(180deg, #f5f1ea 0%, #ede7dc 100%);
	border-radius: 18px;
	position: relative;
	box-shadow:
		0 0 0 1px rgba(0,0,0,0.05),
		0 30px 50px -30px rgba(28,24,18,0.18),
		0 8px 18px -10px rgba(28,24,18,0.12);
}

.trmnl-frame::after {
	content: "TRMNL";
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 10px;
	letter-spacing: 0.34em;
	color: var(--ink-mute);
	font-weight: 600;
}

.trmnl-screen {
	width: 100%;
	aspect-ratio: 800 / 480;
	background: #f8f6f0;
	color: #111;
	overflow: hidden;
	position: relative;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
	filter: grayscale(1) contrast(1.08);
	padding: 28px 36px;
	display: flex;
	flex-direction: column;
	font-family: var(--serif);
}

.trmnl-screen__masthead {
	text-align: center;
	padding-bottom: 10px;
	border-bottom: 4px double #111;
}

.trmnl-screen__masthead .vol {
	font-family: var(--sans);
	font-size: 10px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	display: flex;
	justify-content: space-between;
	color: #333;
}

.trmnl-screen__masthead h4 {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 800;
	font-size: 40px;
	letter-spacing: -0.025em;
	margin: 6px 0 4px;
	line-height: 1;
}

.trmnl-screen__masthead .date {
	font-family: var(--sans);
	font-size: 10px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.trmnl-screen__cols {
	flex: 1;
	padding: 14px 0;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 22px;
}

.trmnl-screen__cols .col {
	padding-right: 22px;
	border-right: 1px solid #111;
}

.trmnl-screen__cols .col:last-child {
	border-right: 0;
	padding-right: 0;
}

.trmnl-screen__cols .num {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
}

.trmnl-screen__cols .kicker {
	font-family: var(--sans);
	font-size: 8px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	margin: 5px 0 5px;
}

.trmnl-screen__cols h5 {
	font-family: var(--serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.012em;
	margin: 0 0 6px;
}

.trmnl-screen__cols p {
	font-family: var(--serif);
	font-size: 11px;
	line-height: 1.45;
	margin: 0;
}

/* ---------- Roadmap ---------- */

.roadmap {
	margin-top: 56px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	position: relative;
}

.roadmap::before {
	content: "";
	position: absolute;
	top: 14px;
	left: 12px;
	right: 12px;
	height: 1px;
	background: var(--rule);
}

.roadmap__step {
	position: relative;
	padding-top: 36px;
}

.roadmap__step::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 0;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--ink);
}

.roadmap__step--later::before {
	background: #fff;
	border: 1px solid var(--warm-line);
}

.roadmap__step .ver {
	font-size: 11px;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--ink-mute);
	font-weight: 500;
	margin: 0 0 12px;
}

.roadmap__step h4 {
	font-size: 18px;
	letter-spacing: -0.012em;
	font-weight: 500;
	margin: 0 0 14px;
}

.roadmap__step ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.roadmap__step li {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-gray);
	padding: 4px 0;
}

/* ---------- Coming-soon tile ---------- */

.coming {
	margin-top: 64px;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 56px;
	align-items: center;
	padding: 48px;
	background: #fff;
	border-radius: 24px;
	box-shadow:
		0 0 0 1px rgba(0,0,0,0.05),
		0 30px 50px -30px rgba(28,24,18,0.16);
}

.coming__icon {
	width: 144px;
	height: 144px;
	border-radius: 32px;
	overflow: hidden;
	box-shadow:
		0 0 0 1px rgba(0,0,0,0.06),
		0 12px 30px -10px rgba(28,24,18,0.25);
}

.coming__icon img { width: 100%; height: 100%; display: block; }

.coming__copy .k {
	font-size: 11px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--ink-fade);
	margin: 0 0 12px;
	font-weight: 500;
}

.coming__copy h3 {
	font-size: 32px;
	line-height: 1.1;
	letter-spacing: -0.022em;
	font-weight: 360;
	margin: 0 0 12px;
}

.coming__copy p {
	font-size: 16px;
	color: var(--ink-soft);
	margin: 0;
	line-height: 1.6;
	max-width: 56ch;
}

/* ---------- Footer ---------- */

.footer {
	margin-top: 128px;
	border-top: 1px solid var(--rule);
	padding: 64px 0 80px;
}

.footer__tagline {
	font-size: 28px;
	letter-spacing: -0.018em;
	font-weight: 350;
	color: var(--ink);
	margin: 0 0 48px;
	font-family: var(--serif);
	font-style: italic;
}

.footer__row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
	flex-wrap: wrap;
}

.footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.footer__brand svg { width: 24px; height: auto; }

.footer__brand span {
	font-size: 14px;
	letter-spacing: -0.005em;
	font-weight: 500;
}

.footer__meta {
	font-size: 13px;
	color: var(--ink-fade);
	line-height: 1.7;
}

.footer__links {
	display: flex;
	gap: 24px;
	font-size: 13px;
	color: var(--ink-gray);
}

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

.footer__links a:hover { color: var(--ink); }

/* ---------- Privacy page ---------- */

.privacy {
	max-width: 720px;
	margin: 0 auto;
	padding: 96px 32px 128px;
}

.privacy h1 {
	font-size: 56px;
	letter-spacing: -0.03em;
	line-height: 1.04;
	font-weight: 330;
	margin: 0 0 16px;
}

.privacy .lede {
	font-size: 19px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin: 0 0 56px;
}

.privacy h2 {
	font-size: 13px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ink-fade);
	font-weight: 500;
	margin: 48px 0 16px;
}

.privacy p {
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	margin: 0 0 18px;
	font-weight: 400;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.page { padding: 48px 48px 0; }
	.themes { grid-template-columns: repeat(2, 1fr); }
	.surfaces { grid-template-columns: repeat(2, 1fr); }
	.roadmap { grid-template-columns: repeat(2, 1fr); }
	.roadmap::before { display: none; }
	.hero__name { font-size: 96px; }
	.constraint__numeral { font-size: 280px; }
	.trmnl-section { grid-template-columns: 1fr; gap: 56px; }
	.about { grid-template-columns: 1fr; gap: 24px; }
	.section__title { font-size: 44px; }
}

@media (max-width: 720px) {
	.page { padding: 32px 24px 0; }
	.section { padding: 80px 0; }
	.nav__links { display: none; }
	.hero { padding: 48px 0 96px; }
	.hero__logo { width: 72px; margin-bottom: 36px; }
	.hero__name { font-size: 64px; }
	.hero__tagline { font-size: 24px; }
	.hero__desc { font-size: 17px; }
	.section__title { font-size: 34px; }
	.themes { grid-template-columns: 1fr; }
	.surfaces { grid-template-columns: 1fr 1fr; }
	.roadmap { grid-template-columns: 1fr; }
	.constraint { grid-template-columns: 1fr; gap: 24px; }
	.constraint__numeral { font-size: 200px; }
	.constraint__body h3 { font-size: 30px; }
	.coming { grid-template-columns: 1fr; padding: 32px; gap: 24px; text-align: center; }
	.coming__icon { margin: 0 auto; width: 120px; height: 120px; }
	.footer__tagline { font-size: 22px; }
	.footer__row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Inline link (added post-agent for TRMNL site link) ---------- */
.inline-link {
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid var(--warm-line);
	padding-bottom: 1px;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.inline-link:hover {
	color: var(--ink);
	border-bottom-color: var(--ink);
}
.trmnl-section__cta {
	margin-top: 8px;
	font-size: 14px;
	letter-spacing: 0.04em;
}
.trmnl-section__cta .inline-link {
	font-weight: 500;
}
