/* Paradev Pilots, public site. Plain CSS, no build step.
   Colours are the dark "Ember" values of Paradev's app (globals.css of the desktop app),
   so the page and the screenshots read as one product. Why each choice was made: site/README.md. */

:root {
	--bg: #151110;
	--fg: #eae8e6;
	--card: #201e1c;
	--muted: #a8a5a3;
	--border: #2a2827;
	--frame: color-mix(in srgb, #eae8e6 15%, #151110);
	--sidebar: color-mix(in srgb, #eae8e6 5%, #151110);
	--hover: rgb(234 232 230 / 0.07);
	--accent: #e07850;
	--built: #5fb37f;
	--approved: #e5c07b;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 72rem;
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font: 400 1rem/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #000; }

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

a { color: inherit; text-decoration: underline; text-decoration-color: rgb(234 232 230 / 0.35); text-underline-offset: 3px; transition: text-decoration-color 150ms; }
a:hover { text-decoration-color: var(--fg); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

code, pre { font-family: var(--mono); font-size: 0.875em; }
code { background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
pre { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; overflow-x: auto; line-height: 1.7; margin: 1.25rem 0 0; }
pre code { background: none; border: 0; padding: 0; font-size: 0.8125rem; overflow-wrap: normal; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--fg); color: var(--bg); padding: 0.5rem 0.75rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* The maker line: one sentence on who made this site, at the top and the bottom of every page. */
.maker-line { background: var(--frame); color: var(--fg); font-size: 0.8125rem; text-align: center; padding: 0.5rem 1rem; margin: 0; }

/* Header: the product name as text (no logo), and the two pages. */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(21 17 16 / 0.92); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.wordmark { font-weight: 600; letter-spacing: -0.01em; text-decoration: none; font-size: 0.9375rem; padding: 0.5rem 0; }
.wordmark span { font-weight: 600; }
.site-nav { display: flex; gap: 0.25rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 0.875rem; padding: 0.6rem 0.75rem; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; transition: background-color 150ms, color 150ms; }
.site-nav a:hover { background: var(--hover); color: var(--fg); }
.site-nav a[aria-current="page"] { color: var(--fg); background: rgb(234 232 230 / 0.10); }

/* Type. Light, tight headlines as on Paradev's own site; everything else in the app's sizes. */
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.375rem; font-weight: 400; letter-spacing: -0.015em; line-height: 1.25; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--muted); max-width: 40rem; margin: 1.5rem 0 0; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
/* Section labels in the app's voice: 10-11 px, small capitals. */
.label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.075em; color: var(--muted); margin: 0 0 0.75rem; }

/* Buttons: the app's primary button is the foreground colour, not a brand colour. */
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.125rem; border-radius: 6px; background: var(--fg); color: var(--bg); font-weight: 500; font-size: 0.9375rem; text-decoration: none; transition: background-color 150ms; }
.button:hover { background: #ffffff; }
.button.ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.button.ghost:hover { background: var(--hover); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Screenshots sit in a frame like the app's content card: 10 px, 1 px border, no shadow. */
.shot { margin: 0; }
.shot img { border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.shot figcaption { color: var(--muted); font-size: 0.8125rem; margin-top: 0.625rem; }

/* Front page */
.hero { padding: 4.5rem 0 3rem; }
.hero .shot { margin-top: 3.5rem; }
.band { padding: 4.5rem 0; border-top: 1px solid var(--border); }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .split { grid-template-columns: 5fr 7fr; align-items: start; } .split.flip { grid-template-columns: 7fr 5fr; } }
.prose p { margin: 1rem 0 0; max-width: 38rem; }
.prose p:first-child { margin-top: 0; }

/* The map: the real screenshot with numbered places on it, and the same numbers in a list. */
.map { position: relative; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: #000; font: 600 0.8125rem/1.75rem var(--sans); text-align: center; pointer-events: none; }
@media (max-width: 40rem) { .pin { width: 1.375rem; height: 1.375rem; line-height: 1.375rem; font-size: 0.6875rem; } }
.places { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 48rem) { .places { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.places li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.places .n { display: inline-block; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-size: 0.75rem; line-height: 1.375rem; text-align: center; font-weight: 600; }
.places .n.none { border-color: var(--border); color: var(--muted); }
.places strong { font-weight: 500; }
.places p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9375rem; }

.layers { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: layer; }
.layers li { padding: 1.25rem 0; border-top: 1px solid var(--border); display: grid; gap: 0.5rem; }
@media (min-width: 48rem) { .layers li { grid-template-columns: 14rem 1fr; gap: 2rem; } }
.layers h3 { font-size: 1.125rem; }
.layers p { margin: 0; color: var(--muted); }

.columns { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 48rem) { .columns { grid-template-columns: 1fr 1fr; } }
.columns ul { margin: 0.75rem 0 0; padding-left: 1.125rem; }
.columns li { margin: 0.375rem 0; }

/* States: one small dot, in the app's own status colours, and a word. */
.state { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 500; color: var(--fg); white-space: nowrap; }
.state::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: none; }
.state.built::before { background: var(--built); }
.state.approved::before { background: var(--approved); }
.state.planned::before { border: 1px solid var(--muted); }

/* Product page */
.page-head { padding: 3.5rem 0 2rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.legend li { display: flex; gap: 0.5rem; align-items: baseline; font-size: 0.875rem; color: var(--muted); }
.legend .state { font-size: 0.875rem; }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.875rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.875rem; text-decoration: none; color: var(--muted); transition: background-color 150ms, color 150ms; }
.toc a:hover { background: var(--hover); color: var(--fg); }

.place { padding: 3rem 0 1rem; border-top: 1px solid var(--border); }
.place > header { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
@media (min-width: 60rem) { .place > header { grid-template-columns: 1fr 2fr; align-items: baseline; } }
.place > header p { margin: 0; color: var(--muted); max-width: 40rem; }

.feature { padding: 2rem 0; display: grid; gap: 1.5rem; }
/* Grid cells may shrink below their content, so a long command scrolls inside its block, not the page. */
.feature > *, .split > *, .places li > div, .layers li > * { min-width: 0; }
.feature + .feature { border-top: 1px dashed var(--border); }
@media (min-width: 60rem) { .feature.with-shot { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; } }
.feature .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.feature .body p, .feature .body ul { margin: 0.875rem 0 0; max-width: 40rem; }
.feature .body ul { padding-left: 1.125rem; }
.feature .body li { margin: 0.375rem 0; }
.feature .limits { color: var(--muted); font-size: 0.9375rem; }

.next-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.next-list li { padding: 1.25rem 0; border-top: 1px solid var(--border); display: grid; gap: 0.375rem; }
@media (min-width: 48rem) { .next-list li { grid-template-columns: 16rem 1fr 7rem; gap: 2rem; align-items: baseline; } }
.next-list h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.next-list p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: 0.875rem; color: var(--muted); }
.site-footer nav { display: flex; gap: 0.25rem 1rem; flex-wrap: wrap; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin: 0; }

@media (max-width: 30rem) {
	.wrap { padding: 0 1.125rem; }
	.hero { padding-top: 3rem; }
	.band { padding: 3.25rem 0; }
	.site-nav a { padding: 0.6rem 0.5rem; }
}
