/* wantbuild.io — dark site with yellow accents and striped borders. */

:root {
	--bg: #0b0b0d;
	--bg-2: #131317;
	--bg-3: #1b1b21;
	--line: #2b2b33;
	--fg: #ece9e0;
	--fg-dim: #a6a296;
	--yellow: #ffcd00;
	--yellow-dim: #c9a300;
	--yellow-soft: rgba(255, 205, 0, 0.1);
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--page: 1080px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--yellow);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

code {
	font-family: var(--mono);
	font-size: 0.9em;
	color: var(--yellow);
}

/* Striped borders in the logo's yellow and black. */
.hazard {
	height: 12px;
	background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--bg) 14px 28px);
}

.hazard-top {
	height: 10px;
}

.hazard-bottom {
	height: 8px;
	opacity: 0.7;
}

/* Header */
.site-header {
	max-width: var(--page);
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.brand {
	color: var(--fg);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--mono);
}

.brand:hover {
	text-decoration: none;
}

.brand-icon {
	width: 26px;
	height: 26px;
	display: block;
	flex: none;
}

.brand-name {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.brand-suffix {
	color: var(--fg-dim);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
}

.site-nav {
	display: flex;
	gap: 22px;
	font-family: var(--mono);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.site-nav a {
	color: var(--fg-dim);
}

.site-nav a:hover {
	color: var(--yellow);
	text-decoration: none;
}

main {
	max-width: var(--page);
	margin: 0 auto;
	padding: 0 24px 80px;
}

/* Hero */
.hero {
	padding: 64px 0 72px;
}

.hero h1 {
	margin: 0 0 20px;
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	font-weight: 800;
}

.taglines {
	display: block;
	height: 1.08em;
	overflow: hidden;
	color: var(--yellow);
}

.tagline-track {
	display: block;
}

.tagline-track > span {
	display: block;
	height: 1.08em;
	line-height: 1.08;
	white-space: nowrap;
}

.lede {
	max-width: 62ch;
	margin: 0 0 32px;
	font-size: 1.1rem;
	color: var(--fg-dim);
}

.hero-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 48px;
}

.btn {
	display: inline-block;
	padding: 11px 22px;
	border: 1px solid var(--line);
	color: var(--fg);
	font-family: var(--mono);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	transition: transform 120ms ease, border-color 120ms ease;
}

.btn:hover {
	text-decoration: none;
	border-color: var(--yellow);
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--yellow);
	border-color: var(--yellow);
	color: #111;
}

.btn-primary:hover {
	border-color: #fff200;
	box-shadow: 0 4px 18px rgba(255, 205, 0, 0.25);
}

/* Quickstart terminal */
.quickstart {
	max-width: 720px;
	border: 1px solid var(--line);
	background: var(--bg-2);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.quickstart-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	border-bottom: 1px solid var(--line);
	background: var(--bg-3);
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--fg-dim);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--yellow);
}

.quickstart pre {
	margin: 0;
	padding: 18px;
	overflow-x: auto;
	font-family: var(--mono);
	font-size: 0.82rem;
	line-height: 1.65;
	color: var(--fg);
}

.quickstart .prompt {
	color: var(--yellow);
}

/* Examples */
.examples {
	padding-top: 56px;
}

.section-head h2 {
	margin: 0 0 10px;
	font-size: 1.9rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	gap: 14px;
}

.h2-mark {
	width: 26px;
	height: 12px;
	background: repeating-linear-gradient(-45deg, var(--yellow) 0 6px, var(--bg) 6px 12px);
	flex: none;
}

.section-note {
	margin: 0 0 28px;
	max-width: 70ch;
	color: var(--fg-dim);
}

.search-row {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--line);
	background: var(--bg-2);
	padding: 4px 14px;
	margin-bottom: 14px;
}

.search-row:focus-within {
	border-color: var(--yellow);
	box-shadow: 0 0 0 3px var(--yellow-soft);
}

.search-icon {
	color: var(--yellow);
	font-size: 1.2rem;
}

#search {
	flex: 1;
	background: transparent;
	border: 0;
	outline: none;
	color: var(--fg);
	font-family: var(--mono);
	font-size: 0.9rem;
	padding: 10px 0;
}

#search::placeholder {
	color: #6d6a60;
}

.count {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--fg-dim);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}

.tag-chip {
	border: 1px dashed var(--line);
	background: transparent;
	color: var(--fg-dim);
	font-family: var(--mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 4px 10px;
	cursor: pointer;
}

.tag-chip:hover {
	border-color: var(--yellow);
	color: var(--yellow);
}

.tag-chip.active {
	background: var(--yellow);
	border-style: solid;
	border-color: var(--yellow);
	color: #111;
}

.example-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.example {
	border: 1px solid var(--line);
	background: var(--bg-2);
	transition: border-color 120ms ease;
}

.example:hover {
	border-color: #3a3a44;
}

.example.open {
	border-color: #4a4a56;
	border-left: 3px solid var(--yellow);
}

.example-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	width: 100%;
	padding: 18px 20px;
	background: transparent;
	border: 0;
	color: inherit;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.example-head:focus-visible {
	outline: 2px solid var(--yellow);
	outline-offset: -2px;
}

.chevron {
	color: var(--yellow);
	font-size: 0.85rem;
	transition: transform 140ms ease;
}

.example.open .chevron {
	transform: rotate(90deg);
}

.example-title {
	display: block;
	font-family: var(--mono);
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.example.open .example-title {
	color: var(--yellow);
}

.example-summary {
	display: block;
	margin-top: 4px;
	color: var(--fg-dim);
	font-size: 0.86rem;
	line-height: 1.45;
}

.example-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.files-badge {
	font-family: var(--mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--yellow);
	border: 1px solid var(--yellow-dim);
	padding: 3px 9px;
	white-space: nowrap;
}

.example-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.example-tags span {
	font-family: var(--mono);
	font-size: 0.68rem;
	color: var(--fg-dim);
	border: 1px solid var(--line);
	padding: 2px 7px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* File browser: tree on the left, viewer on the right. */
.example-body {
	border-top: 1px solid var(--line);
}

.browser {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	min-height: 280px;
}

.tree {
	background: #101014;
	border-right: 1px solid var(--line);
	padding: 12px 0;
	max-height: 480px;
	overflow: auto;
}

.tree-title {
	font-family: var(--mono);
	font-size: 0.68rem;
	color: var(--fg-dim);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	padding: 0 14px 10px;
}

.tree-dir {
	font-family: var(--mono);
	font-size: 0.82rem;
	color: var(--yellow);
	line-height: 1.9;
	padding-top: 10px;
	padding-bottom: 2px;
}

.tree-file {
	display: block;
	width: 100%;
	border: 0;
	background: none;
	text-align: left;
	color: var(--fg-dim);
	font-family: var(--mono);
	font-size: 0.82rem;
	line-height: 1.9;
	padding-top: 0;
	padding-bottom: 0;
	padding-right: 10px;
	cursor: pointer;
}

.tree-file:hover {
	color: var(--fg);
	background: rgba(255, 255, 255, 0.03);
}

.tree-file.selected {
	color: var(--yellow);
	background: var(--yellow-soft);
	box-shadow: inset 2px 0 0 var(--yellow);
}

.viewer {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.viewer-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 14px;
	border-bottom: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 0.78rem;
	color: var(--fg-dim);
}

.viewer-path {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--fg);
}

.copy {
	border: 1px solid var(--line);
	background: transparent;
	color: var(--fg-dim);
	font-family: var(--mono);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 3px 10px;
	cursor: pointer;
	white-space: nowrap;
}

.copy:hover {
	border-color: var(--yellow);
	color: var(--yellow);
}

.viewer pre {
	margin: 0;
	padding: 16px 18px;
	overflow: auto;
	max-height: 430px;
	font-family: var(--mono);
	font-size: 0.8rem;
	line-height: 1.58;
	color: #dedbd2;
	tab-size: 4;
}

.lang-badge {
	font-family: var(--mono);
	font-size: 0.66rem;
	color: var(--fg-dim);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	border: 1px solid var(--line);
	padding: 2px 8px;
	white-space: nowrap;
}

/* Syntax tokens (highlight.js scopes). The palette stays in the site's
   yellow/gray family. */
.hljs-comment {
	color: #6f6f63;
	font-style: italic;
}

.hljs-string {
	color: #a8cc8c;
}

.hljs-keyword,
.hljs-literal {
	color: var(--yellow);
}

.hljs-intrinsic {
	color: #82c8f0;
}

.hljs-number {
	color: #f0a35e;
}

.hljs-section {
	color: var(--yellow);
	font-weight: 700;
}

.hljs-title,
.hljs-type {
	color: #d9b46a;
	font-weight: 700;
}

.hljs-attr,
.hljs-built_in {
	color: #82c8f0;
}

.hljs-punctuation {
	color: #8f8c80;
}

.empty {
	margin: 26px 0 0;
	color: var(--fg-dim);
}

.linklike {
	background: none;
	border: 0;
	padding: 0;
	color: var(--yellow);
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--line);
	padding: 34px 24px 46px;
	text-align: center;
}

.footer-tag {
	margin: 22px 0 8px;
	font-family: var(--mono);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--fg-dim);
}

.footer-links {
	margin: 0;
	font-family: var(--mono);
	font-size: 0.78rem;
	color: #55524a;
}

.footer-links a {
	color: var(--fg-dim);
}

/* Narrow screens show the tagline list statically; the rotation script
   checks the same width. */
@media (max-width: 700px) {
	.taglines {
		height: auto;
		overflow: visible;
	}

	.tagline-track > span {
		height: auto;
		line-height: 1.12;
		white-space: normal;
	}
}

@media (max-width: 760px) {
	.example-head {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.example-meta {
		grid-column: 2;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
	}

	.browser {
		grid-template-columns: 1fr;
	}

	.tree {
		border-right: 0;
		border-bottom: 1px solid var(--line);
		max-height: 220px;
	}

	.hero {
		padding-top: 40px;
	}
}
