/*
	Xequence Audio campaign site.

	Same spirit as the Xequence 2 site (hand-written, no framework, no build
	step), but dark throughout, because the product is dark and the screenshots
	are dark.

	Palette:
		#101010  header / deepest
		#1a1a1a  page background
		#222222  alternate section
		#00deff  accent (Xequence cyan)
		#ffcc44  secondary accent (funding / highlight)
*/

html {
	font-size: calc(0.28vw + 11px);
	font-family: "Trebuchet MS", Trebuchet, "Segoe UI", sans-serif;
	scroll-behavior: smooth;
	scroll-padding-top: 8rem;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	background: #1a1a1a;
	color: #e8e8e8;
}

/* ---------------------------------------------------------------- header */

header {
	display: flex;
	align-items: center;
	overflow: hidden;
	background: #0a0a0aee;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid #ffffff14;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10;
	width: 100%;
	height: 6rem;
	margin: 0;
	padding: 0 4vw 0 0;
	box-sizing: border-box;
}

header #logo {
	flex: 0 0 auto;
	background-image: url('/xequence-audio/assets/header-icon.png');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
	height: 3.6rem;
	box-sizing: border-box;
	margin: 0 3vw 0 calc(4vw - 0.5rem);
	padding: 0.6rem 0 0 4.8rem;
	letter-spacing: 0.1em;
	text-decoration: none;
	color: #fff;
	vertical-align: top;
}

header h1 {
	margin: 0;
	padding: 0;
	font-weight: normal;
	font-size: 1.15rem;
	text-transform: uppercase;
}

header h2 {
	margin: 0.25rem 0 0 0;
	padding: 0;
	font-weight: normal;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	color: #00deff;
}

header nav {
	flex: 0 1 auto;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	overflow: hidden;
}

header nav a {
	color: #ddd;
	text-decoration: none;
	padding: 0.7em 0.8em 0.7em 0.85em;  /* right side minus the trailing letter-spacing */
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	border-radius: 0.4em;
	white-space: nowrap;
}

header nav a:hover {
	color: #fff;
	background: #ffffff14;
}

header nav a.active {
	background: #ffffff1f;
	color: #fff;
}

header > a#donate-button {
	flex: 0 0 auto;
	margin: 0;
	padding: 0.7em 1.5em;
	background: #00deff;
	color: #06232a;
	font-weight: bold;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	border-radius: 0.4em;
}

header > a#donate-button:hover {
	background: #62eaff;
}

header > a#seven-systems {
	flex: 0 0 auto;
	height: 2.2rem;
	font-size: 0;
	margin: 0 2rem 0 auto;   /* auto left margin pushes this and the CTA right */
	width: 1.8rem;
	background-image: url('/xequence-audio/assets/header-seven.png');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center center;
	opacity: 0.25;
}

header > a#seven-systems:hover { opacity: 0.6; }

header > a#nav {
	display: none;
}

/* --------------------------------------------------------------- section */

main {
	margin: 0;
	padding: 0;
}

section {
	padding: 4.5vw 6vw;
	box-sizing: border-box;
	position: relative;
}

section:first-of-type {
	padding-top: calc(4.5vw + 6rem); /* clear the fixed header */
}

section.alt {
	background: #222;
}

section.deep {
	background: #101010;
}

section.accent {
	background: #06232a;
}

/* Constrain prose so lines stay readable on wide screens */
section:not(.hero) > *:not(figure):not(.wide) {
	max-width: 58rem;
	margin-left: auto;
	margin-right: auto;
}

section.narrow > *:not(.wide) {
	max-width: 44rem;
}

h3 {
	margin: 0 0 1.5rem 0;
	padding: 0;
	font-size: 2.3rem;
	font-weight: normal;
	line-height: 1.15;
	color: #fff;
}

h4 {
	margin: 2.5rem 0 1rem 0;
	padding: 0;
	font-size: 1.5rem;
	font-weight: normal;
	color: #00deff;
}

h5 {
	margin: 1.75rem 0 0.6rem 0;
	padding: 0;
	font-size: 1.1rem;
	font-weight: bold;
	color: #fff;
}

p {
	line-height: 1.55;
	font-size: 1.05rem;
	margin: 0 0 1em 0;
	color: #d6d6d6;
}

p.lead {
	font-size: 1.35rem;
	line-height: 1.45;
	color: #f0f0f0;
}

p.note {
	font-size: 0.92rem;
	color: #999;
}

a { color: #00deff; }
a:hover { color: #7febff; }

em {
	font-style: normal;
	color: #00deff;
}

b, strong { color: #fff; }

code {
	font-family: "DejaVu Sans Mono", Consolas, monospace;
	font-size: 0.9em;
	background: #ffffff10;
	padding: 0.1em 0.35em;
	border-radius: 0.25em;
	color: #ffcc44;
}

ul, ol {
	margin: 0 0 1em 0;
	padding: 0 0 0 1.3em;
}

li {
	margin: 0 0 0.55em 0;
	padding: 0;
	font-size: 1.05rem;
	line-height: 1.5;
	color: #d6d6d6;
}

li ul { margin: 0.5em 0 0.9em 0; }

hr {
	border: none;
	border-top: 1px solid #ffffff1a;
	margin: 3rem auto;
}

/* ------------------------------------------------------------------ hero */

section.hero {
	padding: 0;
	max-width: none;
	background: #000;
	position: relative;
	overflow: hidden;
}

section.hero img.shot {
	display: block;
	width: 100%;
	height: auto;
	max-height: 78vh;
	object-fit: cover;
	object-position: center 22%;
	opacity: 0.4;
}

section.hero .overlay {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	padding: 10rem 6vw 3.5vw 6vw;
	background: linear-gradient(to bottom, #00000000 0%, #000000b3 30%, #000000ee 60%, #000000f7 100%);
}

section.hero h3 {
	font-size: 3.4rem;
	margin-bottom: 0.6rem;
	max-width: none;
	text-shadow: 0 0.1em 0.4em #000;
}

section.hero p {
	font-size: 1.4rem;
	color: #eee;
	max-width: 42rem;
	margin-left: 0;
}

/* ---------------------------------------------------------------- button */

.button {
	display: inline-block;
	background: #00deff;
	color: #06232a;
	padding: 0.9em 1.9em;
	border: none;
	border-radius: 0.45em;
	font-size: 1.05rem;
	font-weight: bold;
	font-family: inherit;
	text-decoration: none;
	text-align: center;
	margin: 0.4em 0.7em 0.4em 0;
	cursor: pointer;
	box-shadow: 0 0.15rem 0.5rem 0 #0006;
}

.button:hover {
	background: #62eaff;
	color: #06232a;
}

.button.secondary {
	background: #ffffff1a;
	color: #fff;
	border: 1px solid #ffffff2e;
}

.button.secondary:hover {
	background: #ffffff2b;
	color: #fff;
}

.button.big {
	font-size: 1.3rem;
	padding: 1em 2.4em;
}

.buttons {
	margin: 2rem 0;
}

/* --------------------------------------------------------------- gallery */

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
	gap: 1.4rem;
	margin: 2rem auto;
	padding: 0;
	list-style: none;
	max-width: 84rem;
}

.gallery figure {
	margin: 0;
	padding: 0;
}

.gallery a {
	display: block;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 0.2rem 0.9rem 0 #0009;
	border: 1px solid #ffffff14;
	line-height: 0;
}

.gallery a:hover {
	border-color: #00deff88;
}

.gallery img {
	width: 100%;
	height: auto;
	display: block;
}

.gallery figcaption {
	font-size: 0.88rem;
	color: #9a9a9a;
	padding: 0.55rem 0.1rem 0 0.1rem;
	line-height: 1.3;
}

/* ---------------------------------------------------------------- videos */

.videos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
	gap: 1.6rem;
	margin: 2rem auto;
	max-width: 84rem;
}

.videos figure { margin: 0; }

.videos video {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 0.5rem;
	background: #000;
	box-shadow: 0 0.2rem 0.9rem 0 #0009;
}

.videos figcaption {
	font-size: 0.9rem;
	color: #9a9a9a;
	padding-top: 0.5rem;
}

/* ----------------------------------------------------------- audio demos */

.audio-demos {
	margin: 1.5rem auto;
	max-width: 44rem;
}

.audio-demos div {
	margin-bottom: 1.2rem;
}

.audio-demos h5 {
	margin: 0 0 0.4rem 0;
}

.audio-demos audio {
	width: 100%;
	display: block;
}

/* ------------------------------------------------------------ stat strip */

.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 1.5rem 1rem;
	margin: 2.5rem auto;
	max-width: 68rem;
	text-align: center;
}

.stats div b {
	display: block;
	font-size: 2.4rem;
	color: #00deff;
	font-weight: normal;
	line-height: 1.1;
}

.stats div span {
	display: block;
	font-size: 0.9rem;
	color: #a8a8a8;
	margin-top: 0.35rem;
	line-height: 1.3;
}

/* ------------------------------------------------------------ two-column */

.cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
	gap: 0 3rem;
	max-width: 72rem;
	margin: 0 auto;
}

.cols h4:first-child { margin-top: 0; }

/* ------------------------------------------------------------ thermometer */

.funding {
	max-width: 44rem;
	margin: 0 auto 2.5rem auto;
}

.funding .bar {
	position: relative;
	height: 2.6rem;
	background: #ffffff14;
	border-radius: 1.3rem;
	overflow: hidden;
	border: 1px solid #ffffff1f;
}

.funding .bar .fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: linear-gradient(to right, #00a8c4, #00deff);
	border-radius: 1.3rem 0 0 1.3rem;
	transition: width 0.8s ease-out;
}

/* Tick marks for the sub-goals. Light over the empty part of the bar, dark
   over the filled part, so they stay visible either way. */

.funding .bar .tick {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	margin-left: -1px;
	background: #ffffff2b;
}

.funding .bar .tick.release {
	width: 3px;
	margin-left: -1.5px;
	background: #00deff7a;
}

.funding .bar .tick.reached          { background: #00000047; }
.funding .bar .tick.release.reached  { background: #0000005c; }

.funding .ticklabels {
	position: relative;
	height: 1rem;
	margin-top: 0.35rem;
	font-size: 0.78rem;
	color: #8a8a8a;
}

.funding .ticklabels span {
	position: absolute;
	transform: translateX(-50%);
	white-space: nowrap;
}

.funding .ticklabels span.release  { color: #00deff; }
.funding .ticklabels span.reached  { color: #cfcfcf; }

.funding .next-goal {
	margin: 0.9rem 0 0 0;
	text-align: center;
	font-size: 1.05rem;
	color: #d6d6d6;
}

.funding .next-goal b {
	color: #00deff;
	font-weight: normal;
}

.funding .amounts {
	display: flex;
	justify-content: space-between;
	margin-top: 0.55rem;
	font-size: 1rem;
	color: #b8b8b8;
}

.funding .amounts b {
	font-size: 1.5rem;
	color: #00deff;
	font-weight: normal;
}

/* ----------------------------------------------------------------- tiers */

.tiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1.4rem;
	max-width: 80rem;
	margin: 2rem auto 2.5rem auto;
}

.tier {
	background: #ffffff0a;
	border: 1px solid #ffffff1a;
	border-radius: 0.6rem;
	padding: 1.5rem 1.5rem 1.6rem 1.5rem;
}

.tier.reached {
	border-color: #00deff66;
	background: #00deff12;
}

.tier h5 {
	margin: 0 0 0.15rem 0;
	font-size: 1.9rem;
	color: #00deff;
	font-weight: normal;
}

.tier .label {
	display: block;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #8a8a8a;
	margin-bottom: 0.9rem;
}

.tier p {
	font-size: 0.98rem;
	margin-bottom: 0;
	color: #cfcfcf;
}

/* Caveats inside a tile need to read as a caveat, not as more of the pitch.
   Needs the .tier prefix to outrank the generic .tier p rule above. */
.tier p.note {
	font-size: 0.88rem;
	color: #949494;
	margin-top: 0.8rem;
	padding-top: 0.8rem;
	border-top: 1px solid #ffffff14;
}

/* ---------------------------------------------------------- donate panel */

.donate {
	max-width: 44rem;
	margin: 0 auto;
	text-align: center;
}

.donate .presets {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.8rem;
	margin: 1.5rem 0;
}

.donate .presets a {
	flex: 1 1 6rem;
	background: #ffffff12;
	border: 1px solid #ffffff26;
	color: #fff;
	border-radius: 0.45em;
	padding: 1em 0.5em;
	font-size: 1.25rem;
	text-decoration: none;
	min-width: 5.5rem;
}

.donate .presets a:hover {
	background: #00deff;
	border-color: #00deff;
	color: #06232a;
}

/* --------------------------------------------------------------- callout */

.callout {
	background: #ffffff0a;
	border-left: 3px solid #00deff;
	border-radius: 0 0.4rem 0.4rem 0;
	padding: 1.3rem 1.6rem;
	margin: 2rem auto;
}

.callout p:last-child { margin-bottom: 0; }

.callout.warn {
	border-left-color: #ffcc44;
}

/* ------------------------------------------------------------------- faq */

.faq h5 {
	color: #fff;
	font-size: 1.15rem;
	margin-top: 2rem;
}

.faq h5:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- footer */

footer {
	margin: 0;
	padding: 2rem 6vw 2.5rem 6vw;
	background: #101010;
	border-top: 1px solid #ffffff14;
	font-size: 0.85rem;
	text-align: center;
	line-height: 1.6;
	color: #808080;
}

footer p { font-size: 0.85rem; color: #808080; margin: 0 0 0.5em 0; }

footer a {
	color: #aaa;
	text-decoration: none;
}

footer a:hover { color: #00deff; }

/* -------------------------------------------------------------- lightbox */

#lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100;
	background: #000000ee;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
	padding: 3vh 3vw;
	box-sizing: border-box;
}

#lightbox img {
	max-width: 100%;
	max-height: 88%;
	border-radius: 0.4rem;
	box-shadow: 0 0 3rem 0 #000;
}

#lightbox p {
	color: #ccc;
	font-size: 0.95rem;
	margin: 1rem 0 0 0;
	text-align: center;
}

/* ------------------------------------------------- two-line nav labels */

/* Nav labels carry a <br> ("Live<br>Demo"). On wide screens it is hidden and
   every label is a single line; the space before each <br> keeps the words
   apart there. In the mid range the break is shown, and all
   items become equal-height boxes with centred text, so one-line and
   two-line labels stay vertically aligned and their highlights match. */

header nav a br {
	display: none;
}

@media (min-width: 701px) and (max-width: 879px) {
	header nav {
		display: flex;
		align-items: center;
	}
	header nav a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		line-height: 1.15;
		min-height: 2.3em;
		padding: 0.35em 0.7em 0.35em 0.75em;
	}
	header nav a br {
		display: inline;
	}
}

/* A tick for a goal at or past the end of the bar. It has no position to
   occupy, but Site.js needs it in the DOM to find the next goal. */

.funding .bar .tick.offscale {
	display: none;
}

/* ------------------------------------------------------ keyboard shortcuts */

/* Ten small tables. A grid of independent groups, not CSS columns: columns
   balance badly around the long Editing table and make the page taller, and a
   table split across a column break looks broken. Groups align to the top of
   their row, so a short group does not stretch. */

.keys {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(23rem, 1fr));
	align-items: start;
	gap: 0.5rem 3.5rem;
	max-width: 78rem;
	margin: 0 auto;
}

.keys h4 {
	margin: 1.2rem 0 0.5rem 0;
	border-bottom: 1px solid #ffffff1a;
	padding-bottom: 0.4rem;
}

.keys table {
	width: 100%;
	border-collapse: collapse;
}

.keys td {
	vertical-align: top;
	padding: 0.42rem 0;
	border-top: 1px solid #ffffff0d;
	font-size: 1rem;
	line-height: 1.4;
	color: #d6d6d6;
}

.keys tr:first-child td {
	border-top: none;
}

/* The key column: hyphens and words like "Wheel" stay dim, so the keycaps
   themselves are what the eye lands on. */
.keys td.k {
	width: 1%;
	white-space: nowrap;
	padding-right: 1.4rem;
	color: #888;
	font-size: 0.95rem;
}

.keys kbd {
	display: inline-block;
	font-family: "Trebuchet MS", Trebuchet, "Segoe UI", sans-serif;
	font-size: 0.85rem;
	line-height: 1;
	min-width: 1.15em;
	text-align: center;
	padding: 0.32em 0.45em 0.3em 0.45em;
	background: #ffffff0f;
	border: 1px solid #ffffff26;
	border-bottom-width: 2px;
	border-radius: 0.3em;
	color: #fff;
}

/* "(Arranger)" / "(Pianoroll)": which editor the shortcut belongs to. */
.keys .where {
	display: inline-block;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #00deff;
	border: 1px solid #00deff44;
	border-radius: 0.25em;
	padding: 0.05em 0.4em;
	margin-left: 0.25em;
	white-space: nowrap;
}

/* Second line qualifying the key above it. */
.keys .sub {
	display: block;
	font-size: 0.88rem;
	color: #999;
	padding-left: 0.9rem;
	border-left: 2px solid #ffffff1a;
	margin: 0.3rem 0 0.1rem 0;
}
