/* Hoard Studios -- shared styles. Colours live in :root; change them here to restyle every page. */

:root {
	/* Matched to laurence-portfolio.pages.dev */
	--bg: #0b0d12;
	--bg-alt: #12151d;
	--surface: #171b25;
	--surface-hover: #1c2130;
	--border: #262b38;
	--text: #eef0f4;
	--text-body: #c9cddb;
	--text-dim: #9aa1b2;
	--text-faint: #6b7286;
	--accent: #5eead4;
	--accent-dim: #2f6f66;
	--accent-hover: #7ff0dc;
	--accent-soft: rgba(94, 234, 212, 0.08);
	--accent-ink: #0b0d12;      /* text on the accent */
	--radius: 14px;
	--radius-sm: 8px;
	--maxw: 1100px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Navigation ---------------------------------------------------------- */

.nav {
	position: sticky; top: 0; z-index: 10;
	background: rgba(11, 13, 18, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: 0.02em; }
.brand:hover { color: var(--text); }
.brand-mark {
	width: 30px; height: 30px; border-radius: 8px;
	background: var(--accent); color: var(--accent-ink);
	display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-links .short { display: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

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

.hero { padding: 96px 0 72px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 14px; }
.hero { padding: 100px 0 90px; }
.hero h1 { font-size: 2.4rem; line-height: 1.25; margin: 0 0 20px; max-width: 760px; }
.hero h1 .role { color: var(--accent); }
.hero p.lead { font-size: 1.1rem; color: var(--text-dim); max-width: 640px; margin: 0 0 28px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border-radius: var(--radius-sm);
	font-weight: 600; font-size: 15px;
	border: 1px solid var(--accent-dim); color: var(--text); background: transparent;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent-soft); color: var(--text); border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn.disabled { opacity: 0.6; pointer-events: none; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.tags li {
	font-size: 13px; color: var(--text-dim);
	border: 1px solid var(--border); background: var(--bg-alt);
	padding: 5px 12px; border-radius: 999px;
}

/* ---- Sections -------------------------------------------------------------- */

section { padding: 72px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 8px; }
h3 { font-size: 19px; margin: 0 0 8px; }
.section-intro { color: var(--text-dim); max-width: 640px; margin: 0 0 44px; }

/* ---- Cards ----------------------------------------------------------------- */

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 24px;
}
.card p { color: var(--text-body); margin: 0; font-size: 15px; }
.card .icon {
	width: 38px; height: 38px; border-radius: 10px; margin-bottom: 14px;
	display: grid; place-items: center; background: rgba(94, 234, 212, 0.12); color: var(--accent);
}
.card .icon svg { width: 20px; height: 20px; }

/* Product card on the studio page */
.product {
	display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.product .media { background: var(--bg-alt); border-right: 1px dashed var(--border); min-height: 280px; }
.product .body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.product .body p { color: var(--text-body); }
.status {
	align-self: flex-start; display: inline-block; background: rgba(94, 234, 212, 0.12); color: var(--accent);
	border: 1px solid var(--accent-dim); padding: 3px 12px; border-radius: 999px;
	font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 12px;
}

/* Video, or its placeholder until there is a trailer */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg-alt); border: 1px dashed var(--border); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.placeholder {
	position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
	color: var(--text-dim); font-size: 0.9rem; padding: 20px;
}
.placeholder strong { display: block; color: var(--text); margin-bottom: 6px; font-size: 1rem; }
.product .media .placeholder { position: relative; min-height: 280px; height: 100%; }

/* Two-column text + list */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 0 0 12px 28px; color: var(--text-body); }
.checks li::before {
	content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px;
	border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.checks li strong { color: var(--text); font-weight: 600; }

/* Contact */
.contact { text-align: center; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.contact p { color: var(--text-dim); max-width: 56ch; margin: 0 auto 24px; }
.contact .buttons { justify-content: center; }

/* ---- Docs ------------------------------------------------------------------ */

.docs { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 0 96px; }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.toc h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--text-dim); font-size: 14px; border-left: 3px solid transparent; }
.toc a:hover { background: var(--surface); color: var(--text); }

.doc-head { margin-bottom: 40px; }
.doc-head h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 10px; letter-spacing: -0.02em; }
.doc-head p { color: var(--text-dim); margin: 0; max-width: 66ch; }

.doc {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 28px 30px; margin-bottom: 22px; border-top: 4px solid var(--c, var(--accent));
}
.doc h2 { font-size: 26px; margin: 0 0 4px; }
.doc .summary { color: var(--accent); font-weight: 500; margin: 0 0 14px; }
.doc > p { color: var(--text-body); margin: 0 0 18px; }
.doc h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin: 22px 0 8px; }
.doc ul { margin: 0; padding-left: 20px; color: var(--text-body); }
.doc li { margin-bottom: 6px; }
.doc code, .docs code {
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em;
	background: var(--bg-alt); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--text);
}
.kbd {
	display: inline-block; font-size: 0.85em; font-weight: 600; line-height: 1.4;
	padding: 1px 7px; border-radius: 5px; border: 1px solid #3a3f48; border-bottom-width: 2px;
	background: var(--bg-alt); color: var(--text);
}
.back-top { font-size: 13px; color: var(--text-faint); display: inline-block; margin-top: 18px; }

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

footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--text-faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--text-dim); }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- Small screens --------------------------------------------------------- */

@media (max-width: 860px) {
	.product, .split { grid-template-columns: 1fr; }
	.split { gap: 28px; }
	.docs { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
	.toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
	.toc ol { columns: 2; column-gap: 12px; }
}
@media (max-width: 560px) {
	.wrap { padding: 0 16px; }
	.hero { padding: 64px 0 48px; }
	.hero h1 { font-size: 1.8rem; }
	section { padding: 52px 0; }
	.nav-links { gap: 14px; }
	.nav-links a { font-size: 14px; }
	.nav-links .hide-sm { display: none; }
	.nav-links .long { display: none; }
	.nav-links .short { display: inline; }
	.nav-links { flex-wrap: nowrap; }
	.doc { padding: 22px 18px; }
	.toc ol { columns: 1; }
}
