/* ===========================================================================
   INDEX — the page at /, listing what is in this repo.

   Deliberately self-contained: it carries the handful of tokens it uses rather
   than importing either prototype's stylesheet, so removing a prototype cannot
   break the page that lists them. Values are MetaSearch's, same as everywhere.
   =========================================================================== */

:root {
	--color-page: #080808;
	--color-card: #0a0a0a;
	--color-elevated: #1a1a1a;
	--color-stroke-default: #232528;
	--color-stroke-strong: #353940;
	--color-stroke-subtle: #171717;
	--color-text-primary: #f9fafb;
	--color-text-secondary: #737373;
	--color-text-tertiary: #4d4d4d;
	--color-accent-green: #83f891;
	--color-accent-blue: #83b9f7;
	--color-on-accent: #080808;
	--radius-sm: 4px;
	--radius-lg: 12px;
	--font-sans: "Inter", "Inter Fallback", -apple-system, sans-serif;
	--font-mono: "JetBrains Mono", "JetBrains Mono Fallback", monospace;
	--gutter: clamp(20px, 4vw, 40px);
	color-scheme: dark;
}

/* Light, either because the OS asks and nothing is pinned, or because the
   toggle on a prototype pinned it — the key is shared across all three pages. */
/*
 * DARK IS THE DEFAULT, and it does not follow the OS — see the same note in
 * assets/turbo/app.css. Light is reachable only by pinning it with the toggle
 * on either prototype; the key is shared, so a choice made there holds here.
 */
:root[data-theme='light'] {
	--color-page: #f7f8f9;
	--color-card: #fff;
	--color-elevated: #e7e8e9;
	--color-stroke-default: #d9dde0;
	--color-stroke-strong: #c1c9ce;
	--color-stroke-subtle: #eaebec;
	--color-text-primary: #1a1a1a;
	--color-text-secondary: #1a1a1a;
	--color-text-tertiary: #353535;
	color-scheme: light;
}

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

body {
	margin: 0;
	min-height: 100vh;
	background: var(--color-page);
	color: var(--color-text-primary);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
}

.ix-head {
	border-bottom: 1px solid var(--color-stroke-subtle);
	padding: 0 var(--gutter);
}

.ix-head-inner {
	max-width: 880px;
	margin-inline: auto;
	height: 64px;
	display: flex;
	align-items: center;
}

.ix-logo {
	width: 130px;
	height: 25px;
	display: block;
}

.ix-logo--light {
	display: none;
}

:root[data-theme='light'] .ix-logo--dark {
	display: none;
}
:root[data-theme='light'] .ix-logo--light {
	display: block;
}
:root[data-theme='dark'] .ix-logo--dark {
	display: block;
}
:root[data-theme='dark'] .ix-logo--light {
	display: none;
}

.ix-main {
	max-width: 880px;
	margin-inline: auto;
	padding: clamp(48px, 9vw, 96px) var(--gutter) 80px;
}

.ix-title {
	margin: 0;
	font-size: clamp(30px, 5.4vw, 46px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.ix-lede {
	margin: 16px 0 0;
	max-width: 60ch;
	font-size: 15px;
	line-height: 1.6;
	color: var(--color-text-tertiary);
}

.ix-list {
	margin: clamp(36px, 6vw, 56px) 0 0;
	display: grid;
	gap: 16px;
}

/* One card per prototype. The whole card is the link — a small "open" target
   beside a paragraph is a worse click than the paragraph itself. */
.ix-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--color-card);
	border: 1px solid var(--color-stroke-default);
	border-radius: var(--radius-lg);
	padding: clamp(20px, 3vw, 28px);
	transition:
		border-color 0.16s ease,
		background-color 0.16s ease;
}

.ix-card:hover {
	border-color: var(--color-stroke-strong);
	background: var(--color-elevated);
}

.ix-card-top {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
}

.ix-card-name {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.ix-path {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--color-text-secondary);
}

.ix-card-body {
	margin: 10px 0 0;
	max-width: 62ch;
	font-size: 14px;
	line-height: 1.6;
	color: var(--color-text-tertiary);
}

/* What each prototype needs to run, which is the thing that actually differs
   between the two and the first question anyone deploying them asks. */
.ix-tags {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ix-tag {
	border-radius: var(--radius-sm);
	padding: 2px 7px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--color-elevated);
	color: var(--color-text-secondary);
}

.ix-tag.is-green {
	background: var(--color-accent-green);
	color: var(--color-on-accent);
}

.ix-tag.is-blue {
	background: var(--color-accent-blue);
	color: var(--color-on-accent);
}
