/* APIkulture — site styles (honey / hive palette aligned with app icon) */

:root {
	--color-bg: #0f1218;
	--color-bg-elevated: #161b26;
	--color-surface: #1c2333;
	--color-border: rgba(255, 224, 130, 0.12);
	--color-text: #e8eaef;
	--color-muted: #9aa3b2;
	--color-honey: #ffb300;
	--color-honey-soft: #ffe082;
	--color-teal: #00897b;
	--color-accent: #26a69a;
	--font-sans: system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
	--font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
	--radius: 10px;
	--shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	--max: 58rem;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
}

/* Honeycomb-ish grid (subtle) */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.35;
	background:
		repeating-linear-gradient(
			-60deg,
			transparent,
			transparent 48px,
			rgba(255, 179, 0, 0.03) 48px,
			rgba(255, 179, 0, 0.03) 49px
		),
		repeating-linear-gradient(
			60deg,
			transparent,
			transparent 48px,
			rgba(0, 137, 123, 0.04) 48px,
			rgba(0, 137, 123, 0.04) 49px
		),
		radial-gradient(ellipse 80% 60% at 50% -20%, rgba(255, 179, 0, 0.15), transparent 55%),
		var(--color-bg);
}

a {
	color: var(--color-honey-soft);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: #fff8e1;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--color-honey);
	color: #1a1200;
	font-weight: 600;
	border-radius: 4px;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wrap {
	width: min(100% - 2rem, var(--max));
	margin-inline: auto;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(12px);
	background: rgba(15, 18, 24, 0.85);
	border-bottom: 1px solid var(--color-border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	flex-wrap: wrap;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--color-text);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
}

.brand:hover {
	color: #fff;
	text-decoration: none;
}

.brand img {
	width: 40px;
	height: 40px;
	border-radius: 8px;
}

nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

nav a {
	color: var(--color-muted);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
}

nav a:hover {
	color: var(--color-honey-soft);
}

/* Hero */
.hero {
	padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 860px) {
	.hero-grid {
		grid-template-columns: 1.1fr 0.9fr;
		gap: 3rem;
	}
}

.hero-copy h1 {
	font-size: clamp(2rem, 5vw, 2.85rem);
	line-height: 1.15;
	margin: 0 0 0.75rem;
	letter-spacing: -0.03em;
}

.lede {
	font-size: 1.2rem;
	color: var(--color-muted);
	margin: 0 0 1.5rem;
	max-width: 36ch;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.25rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
	background: linear-gradient(165deg, var(--color-honey) 0%, #f57c00 100%);
	color: #1a0f00;
	box-shadow: 0 4px 20px rgba(255, 179, 0, 0.25);
}

.btn-primary:hover {
	color: #1a0f00;
	filter: brightness(1.05);
}

.btn-secondary {
	background: var(--color-surface);
	color: var(--color-text);
	border-color: var(--color-border);
}

.btn-secondary:hover {
	background: var(--color-bg-elevated);
	border-color: rgba(255, 224, 130, 0.25);
	color: #fff;
}

.hero-meta {
	margin-top: 1.25rem;
	font-size: 0.9rem;
	color: var(--color-muted);
}

.hero-meta code {
	font-family: var(--font-mono);
	font-size: 0.85em;
	background: rgba(0, 0, 0, 0.35);
	padding: 0.15em 0.4em;
	border-radius: 4px;
}

.hero-art {
	display: flex;
	justify-content: center;
}

.hero-art figure {
	margin: 0;
	text-align: center;
}

.hero-art img {
	width: min(220px, 70vw);
	height: auto;
	filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.45));
}

.hero-art figcaption {
	margin-top: 0.75rem;
	font-size: 0.85rem;
	color: var(--color-muted);
}

/* Sections */
section {
	padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.section-alt {
	background: rgba(0, 0, 0, 0.22);
}

.section-head {
	margin-bottom: 1.75rem;
}

.section-head h2 {
	font-size: clamp(1.5rem, 3vw, 1.85rem);
	margin: 0 0 0.35rem;
	letter-spacing: -0.02em;
}

.section-head p {
	margin: 0;
	color: var(--color-muted);
	max-width: 50ch;
}

.feature-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 560px) {
	.feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.feature-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1.25rem 1.35rem;
	box-shadow: var(--shadow);
}

.card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	color: var(--color-honey-soft);
}

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

.card code {
	font-family: var(--font-mono);
	font-size: 0.88em;
	background: rgba(0, 0, 0, 0.35);
	padding: 0.12em 0.35em;
	border-radius: 4px;
}

.platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.platforms span {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.35rem 0.65rem;
	border-radius: 4px;
	background: rgba(0, 137, 123, 0.15);
	color: var(--color-accent);
	border: 1px solid rgba(0, 137, 123, 0.35);
}

/* Build */
.build-box {
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
}

.build-box header {
	padding: 0.85rem 1.25rem;
	background: rgba(255, 179, 0, 0.06);
	border-bottom: 1px solid var(--color-border);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-honey-soft);
}

.build-box pre {
	margin: 0;
	padding: 1.25rem;
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	line-height: 1.55;
	color: #c8d0e0;
}

.build-note {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: var(--color-muted);
}

.build-note a {
	font-weight: 500;
}

/* Footer */
.site-footer {
	padding: 2.5rem 0;
	border-top: 1px solid var(--color-border);
	margin-top: 2rem;
}

.footer-grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.footer-grid {
		grid-template-columns: 1fr auto;
		align-items: start;
	}
}

.site-footer p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--color-muted);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-links a {
	font-size: 0.9rem;
	color: var(--color-muted);
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--color-honey-soft);
}
