@font-face {
	font-display: swap;
	font-family: "Maple Mono";
	font-style: normal;
	font-weight: 300 800;
	src: url("assets/fonts/MapleMono-VF.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "Maple Mono";
	font-style: italic;
	font-weight: 300 800;
	src: url("assets/fonts/MapleMono-Italic-VF.woff2") format("woff2");
}

:root {
	--bg: #14120b;
	--surface: #1b1913;
	--surface-raised: #1d1b15;
	--surface-hover: #201e18;
	--text: #edecec;
	--muted: color-mix(in oklab, #edecec 60%, transparent);
	--quiet: color-mix(in oklab, #edecec 40%, transparent);
	--line: color-mix(in oklab, #edecec 10%, transparent);
	--line-strong: color-mix(in oklab, #edecec 14%, transparent);
	--anchor-offset: 56px;
	--page-gutter: clamp(20px, 2.5vw, 40px);
	--page-max: 100%;
	--card-radius: 8px;
	--mono: "Maple Mono", "SF Mono", "Cascadia Code", "Roboto Mono", ui-monospace, monospace;
}

@media (min-width: 420px) {
	:root {
		--page-max: 420px;
	}
}

@media (min-width: 660px) {
	:root {
		--page-max: 660px;
	}
}

@media (min-width: 900px) {
	:root {
		--page-max: 900px;
	}
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	color-scheme: dark;
}

body {
	margin: 0;
	min-height: 100%;
	overflow-x: hidden;
	padding-inline: var(--page-gutter);
	background: var(--bg);
	color: var(--text);
	font-family: var(--mono);
	font-size: 15px;
	font-weight: 440;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.site-shell {
	width: 100%;
	max-width: var(--page-max);
	margin-inline: auto;
}

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

a:hover {
	color: var(--text);
}

a:focus-visible {
	outline: 1px solid var(--muted);
	outline-offset: 3px;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

[id] {
	scroll-margin-top: var(--anchor-offset);
}

.skip-link {
	position: absolute;
	left: 16px;
	top: 12px;
	z-index: 20;
	padding: 6px 10px;
	transform: translateY(-140%);
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-size: 0.85rem;
}

.skip-link:focus {
	transform: translateY(0);
}

.page,
.section-shell,
.site-footer {
	width: 100%;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	padding-block: 20px 16px;
	background: color-mix(in oklab, var(--bg) 88%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.brand {
	font-size: 0.85rem;
	font-weight: 520;
	text-decoration: none;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--quiet);
	font-size: 0.8rem;
}

.nav-links a {
	transition: color 120ms ease;
}

.nav-links a:hover {
	color: var(--text);
}

.hero {
	padding: 48px 0 56px;
}

.hero h1 {
	margin: 0 0 4px;
	font-size: 1.35rem;
	font-weight: 560;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.hero-alias {
	margin: 0 0 12px;
	color: var(--quiet);
	font-size: 0.82rem;
}

.lede {
	max-width: 36ch;
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 0.94rem;
	line-height: 1.6;
}

.status {
	margin: 0;
	color: var(--quiet);
	font-size: 0.8rem;
}

.status a {
	color: var(--muted);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent);
	text-underline-offset: 0.2em;
}

.status a:hover {
	color: var(--text);
	text-decoration-color: currentColor;
}

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

.section h2 {
	margin: 0 0 16px;
	color: var(--quiet);
	font-size: 0.72rem;
	font-weight: 480;
	letter-spacing: 0.04em;
	text-transform: lowercase;
}

.card-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	margin: 0;
	padding: 0;
	list-style: none;
}

.app-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--card-radius);
	background: var(--surface-raised);
	transition:
		background 140ms ease,
		border-color 140ms ease;
}

.app-card:hover {
	border-color: var(--line-strong);
	background: var(--surface-hover);
}

.app-card__link {
	display: flex;
	flex: 1;
	flex-direction: column;
	height: 100%;
	padding: 18px;
	color: inherit;
	text-decoration: none;
}

.app-card__icon {
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
}

.app-card__icon--placeholder {
	background:
		radial-gradient(circle at 50% 40%, color-mix(in oklab, #edecec 6%, transparent), transparent 62%),
		var(--surface);
}

.app-card__body {
	display: grid;
	flex: 1;
	gap: 6px;
	align-content: start;
}

.app-card__meta {
	margin: 0;
	color: var(--quiet);
	font-size: 0.68rem;
	text-transform: lowercase;
}

.app-card__title {
	margin: 0;
	color: var(--text);
	font-size: 0.92rem;
	font-weight: 520;
	line-height: 1.35;
}

.app-card__desc {
	margin: 0;
	color: var(--muted);
	font-size: 0.8rem;
	line-height: 1.55;
}

.app-card__footer {
	margin-top: 14px;
	color: var(--quiet);
	font-size: 0.72rem;
}

.app-card__footer span {
	color: var(--muted);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
	text-underline-offset: 0.18em;
}

.app-card:hover .app-card__footer span {
	color: var(--text);
	text-decoration-color: currentColor;
}

.section-note {
	margin: 16px 0 0;
	color: var(--quiet);
	font-size: 0.76rem;
	line-height: 1.5;
}

.about-text {
	max-width: 42ch;
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.65;
}

.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0 32px;
	border-top: 1px solid var(--line);
	color: var(--quiet);
	font-size: 0.72rem;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: var(--quiet);
}

.site-footer a:hover {
	color: var(--muted);
}

.detail-page {
	padding: 32px 0 0;
}

.back-link {
	display: inline-block;
	margin-bottom: 40px;
	color: var(--quiet);
	font-size: 0.72rem;
	text-decoration: none;
}

.back-link:hover {
	color: var(--muted);
}

.back-link::before {
	content: "<- ";
}

.detail-hero {
	padding-bottom: 28px;
	border-bottom: 1px solid var(--line);
}

.detail-hero h1 {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 560;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.detail-hero p:last-child {
	max-width: 42ch;
	margin: 0;
	color: var(--muted);
	font-size: 0.94rem;
	line-height: 1.6;
}

.app-detail-hero {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.app-detail-hero img {
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
}

.meta-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	border-bottom: 1px solid var(--line);
}

.meta-grid div {
	padding: 14px 16px 14px 0;
}

.meta-grid dt,
.meta-grid dd {
	margin: 0;
}

.meta-grid dt {
	margin-bottom: 4px;
	color: var(--quiet);
	font-size: 0.68rem;
	text-transform: lowercase;
}

.meta-grid dd {
	font-size: 0.82rem;
	font-weight: 480;
}

.product-preview {
	padding: 28px 0 32px;
	border-bottom: 1px solid var(--line);
}

.product-preview h2 {
	margin: 0 0 16px;
	color: var(--quiet);
	font-size: 0.72rem;
	font-weight: 480;
	text-transform: lowercase;
}

.preview-grid {
	display: grid;
	gap: 18px;
}

.preview-card {
	display: grid;
	gap: 8px;
	margin: 0;
}

.preview-card img {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
}

.preview-card-ios {
	max-width: 240px;
}

.preview-card figcaption {
	color: var(--quiet);
	font-size: 0.68rem;
}

.detail-section {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 24px;
	padding: 24px 0;
	border-bottom: 1px solid var(--line);
}

.detail-section h2 {
	margin: 0;
	color: var(--quiet);
	font-size: 0.72rem;
	font-weight: 480;
	text-transform: lowercase;
}

.detail-section p {
	max-width: 42ch;
	margin: 0;
	color: var(--muted);
	font-size: 0.86rem;
	line-height: 1.6;
}

.plain-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding-left: 16px;
	color: var(--muted);
	font-size: 0.84rem;
}

.plain-list li::marker {
	color: var(--quiet);
}

.detail-actions {
	padding: 20px 0 48px;
}

.detail-actions a {
	color: var(--muted);
	font-size: 0.76rem;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--muted) 35%, transparent);
	text-underline-offset: 0.2em;
}

.detail-actions a:hover {
	color: var(--text);
	text-decoration-color: currentColor;
}

.article-body {
	max-width: 42ch;
	padding: 28px 0 8px;
}

.article-body p {
	margin: 0 0 20px;
	color: var(--muted);
	font-size: 0.94rem;
	line-height: 1.72;
}

.article-body ul,
.article-body ol {
	display: grid;
	gap: 8px;
	margin: 0 0 24px;
	padding-left: 18px;
	color: var(--muted);
	font-size: 0.88rem;
	line-height: 1.65;
}

.article-body li::marker {
	color: var(--quiet);
}

.article-body h2 {
	margin: 32px 0 12px;
	color: var(--text);
	font-size: 0.98rem;
	font-weight: 520;
}

.article-body pre {
	overflow-x: auto;
	margin: 24px 0;
	padding: 12px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: transparent;
	color: var(--quiet);
	font: inherit;
	font-size: 0.78rem;
}

.article-body code {
	font: inherit;
}

@media (min-width: 660px) {
	.card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.site-header-inner {
		align-items: flex-start;
	}

	.hero {
		padding: 36px 0 44px;
	}

	.detail-section,
	.meta-grid,
	.app-detail-hero {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.meta-grid div {
		padding: 12px 0;
		border-bottom: 1px solid var(--line);
	}

	.meta-grid div:last-child {
		border-bottom: 0;
	}

	.preview-card-ios {
		max-width: 200px;
	}
}

@media (max-width: 480px) {
	.site-header-inner {
		flex-direction: column;
		gap: 10px;
	}

	.nav-links {
		width: 100%;
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
