/* Glinster site: the instrument's own colors. The deep sky of the app
   as the page ground, the cool blue of the grid for chrome, and the warm
   gold of a sounding note as the accent, structured like uwyn.com. */

:root {
	--page-bg: #05080c;
	--surface: #0e141b;
	--band: #0b0f14;
	--text: #c8d0da;
	--text-soft: #8b97a6;
	--heading: #ffffff;
	--terracotta: #ffe8b4;
	--accent-ink: #1a1305;
	--cool: #7fb4ff;
	--card-border: rgba(127, 180, 255, 0.18);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--page-bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Links in the grid's cool blue, the way the in-app manual draws them */
a {
	color: var(--cool);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover {
	color: #ffffff;
}

a:focus-visible {
	outline: 3px solid var(--terracotta);
	outline-offset: 2px;
}

/* Masthead band */

.band {
	background: var(--band);
	border-bottom: 1px solid var(--card-border);
	text-align: center;
	padding: 40px 0 34px;
}

.band .logo-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.band .logo-title img {
	display: block;
	width: 72px;
	height: 72px;
}

/* Title block sits beside the icon; the product name and (on subpages) the
   section label stack together so the section reads as a pair with the
   product rather than a floating word */
.band .titles {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.band .product {
	color: var(--heading);
	font-size: 2rem;
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1.1;
	margin: 0;
}

.band .page {
	color: var(--text);
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.2;
	margin: 3px 0 0;
}

/* The tagline sits below the row on every page, so the masthead height
   stays the same when navigating between home and subpages */
.band .subtitle {
	color: var(--text-soft);
	font-style: italic;
	/* fluid size so the tagline stays on one line on narrow screens */
	font-size: min(3.9vw, 1rem);
	margin: 14px 0 0;
}

/* Section navigation chips */

.site-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 16px;
}

.site-nav a,
.site-nav .current {
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.88rem;
	text-decoration: none;
}

.site-nav a {
	color: var(--text);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
	background-color: var(--terracotta);
	color: var(--accent-ink);
}

.site-nav .current {
	background-color: var(--terracotta);
	color: var(--accent-ink);
	font-weight: 600;
}

/* Content card */

main.prose {
	background-color: var(--surface);
	border: 1px solid var(--card-border);
	border-radius: 12px;
	padding: 36px 40px;
	margin: 0 0 8px;
}

/* The docs float section screenshots to the side of their text, so headings,
   rules and back-links have to clear them or the image bleeds into the next
   section and its text wraps around it */
.prose h2,
.prose h3,
.prose h4,
.prose hr,
.prose p.toc-back {
	clear: both;
}

.prose h2 {
	color: var(--heading);
	font-size: 1.25rem;
	font-weight: 700;
	margin: 1.8em 0 0.5em;
}

.prose > h2:first-child {
	margin-top: 0;
}

.prose h2::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	border-radius: 2px;
	background-color: var(--terracotta);
	margin-top: 8px;
}

.prose h3 {
	color: var(--terracotta);
	font-size: 1.05rem;
	font-weight: 700;
	margin: 1.6em 0 0.4em;
}

.prose h4 {
	color: var(--heading);
	font-size: 1rem;
	font-weight: 700;
	margin: 1.4em 0 0.3em;
}

.prose p,
.prose li {
	font-size: 0.98rem;
}

.prose img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Every image in an image-only paragraph stacks the same way, so siblings
   line up instead of the first one centering and the rest sitting left */
.prose p > img {
	display: block;
	margin: 0 auto;
}

.prose img.inlined,
.prose img.inlinedialog {
	float: right;
	margin: 0 0 1em 1.5em;
}

.prose p.info {
	font-style: italic;
	color: var(--text-soft);
	text-align: center;
	font-size: 0.9rem;
}

.prose ul {
	padding-left: 24px;
}

.prose li {
	margin: 0.35em 0;
}

/* Responsive embedded video */

.video {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 1.5em 0;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
}

.video.video43 {
	aspect-ratio: 4 / 3;
}

.video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Store buttons and highlighted notes on the front page */

.store-buttons {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 1.2em 0;
}

.store-buttons a {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 999px;
	background-color: var(--terracotta);
	color: var(--accent-ink);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
	transition: background-color 0.15s ease;
}

.store-buttons a:hover {
	background-color: #fff3d6;
}

.availability {
	text-align: center;
	margin: 2.2em 0 0;
}

.availability .press-badges {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 14px;
}

.availability .press-badges img {
	border-radius: 0;
}

.availability h2::after {
	margin-left: auto;
	margin-right: auto;
}

.note {
	border: 1px solid var(--card-border);
	border-left: 4px solid var(--terracotta);
	border-radius: 8px;
	background: rgba(255, 232, 180, 0.07);
	padding: 12px 18px;
	font-size: 0.92rem;
	margin: 1.5em 0;
}

/* OSC path tables in the docs */

table.oscpaths {
	border-collapse: collapse;
}

table.oscpaths td {
	font-family: Menlo, Monaco, Consolas, monospace;
	font-size: 0.85rem;
	padding: 2px 2em 2px 0;
}

/* Footer */

.site-footer {
	color: var(--text-soft);
	text-align: center;
	font-size: 0.9rem;
	padding: 40px 0;
}

.site-footer a {
	color: var(--text-soft);
	text-decoration: underline;
}

.site-footer a:hover {
	color: var(--text);
}

/* Responsive */

@media (max-width: 640px) {
	.band {
		padding: 28px 0 24px;
	}

	.site-nav {
		gap: 6px;
		padding: 12px 10px;
	}

	.site-nav a,
	.site-nav .current {
		padding: 5px 10px;
		font-size: 0.8rem;
	}

	.band .logo-title img {
		width: 56px;
		height: 56px;
	}

	.band .product {
		/* fluid so the product name stays beside the logo on one line on narrow screens */
		font-size: min(1.5rem, 6.2vw);
	}

	.band .page {
		font-size: min(1.05rem, 4.3vw);
	}

	main.prose {
		padding: 24px 20px;
	}

	.prose img.inlined,
	.prose img.inlinedialog {
		float: none;
		display: block;
		margin: 1em auto;
	}
}

@media (max-width: 360px) {
	.site-nav {
		gap: 5px;
	}

	.site-nav a,
	.site-nav .current {
		padding: 4px 8px;
		font-size: 0.76rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-nav a,
	.store-buttons a {
		transition: none;
	}
}

/* Glinster content-specific elements */

.prose blockquote {
	font-style: italic;
	border-left: 3px solid var(--card-border);
	margin: 1.4em 0;
	padding: 2px 0 2px 16px;
	color: var(--text-soft);
}

.prose blockquote.home {
	font-style: normal;
	border-left: 3px solid var(--terracotta);
	color: var(--text);
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--card-border);
	margin: 2em 0;
}

/* Device shots: a row of phone or headset frames, scrolling sideways on
   narrow screens rather than shrinking to nothing */
.shots {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin: 1.6em 0;
}

.shots img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid var(--card-border);
	margin: 0;
}

.shots.wide {
	grid-template-columns: 1fr;
}

.shots figcaption {
	color: var(--text-soft);
	font-size: 0.85rem;
	text-align: center;
	margin-top: 6px;
}

/* Two columns for the platform pair on the front page */
.platforms {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin: 1.4em 0;
}

.platforms h3 {
	margin-top: 0.4em;
}

.prose table {
	border-collapse: collapse;
	margin: 0.6em 0 1em;
}

.prose td,
.prose th {
	text-align: left;
	padding: 0.3em 1.2em 0.3em 0;
	font-size: 0.95rem;
	vertical-align: top;
}

.prose th {
	color: var(--text-soft);
	font-weight: 500;
}

.prose p.hint {
	color: var(--text-soft);
	font-size: 0.92em;
}

.prose kbd {
	font-family: inherit;
	font-size: 0.9em;
	color: var(--heading);
}

/* Click a screenshot for the full capture, the page darkens behind it */

.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(2, 4, 7, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
	z-index: 10;
}

.lightbox[hidden] {
	display: none;
}

.lightbox img {
	max-width: 94vw;
	max-height: 92vh;
	border: 1px solid var(--card-border);
	border-radius: 8px;
}

/* The hero: the play scene wide under the navigation, the lead line
   set into its empty sky the way the press images do it */

.hero {
	position: relative;
	margin: 24px 0 8px;
	border: 1px solid var(--card-border);
	border-radius: 12px;
	overflow: hidden;
}

.hero img {
	display: block;
	width: 100%;
	height: auto;
	cursor: zoom-in;
}

.hero-copy {
	position: absolute;
	top: 7%;
	left: 5%;
	right: 5%;
}

.hero-copy h2 {
	margin: 0 0 6px;
	/* dimmed toward the reading gray so the line sits in the scene
	   instead of glowing over it */
	color: #c9d3e0;
	font-size: clamp(20px, 3.4vw, 34px);
	font-weight: 600;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero-copy p {
	margin: 0;
	color: var(--text-soft);
	font-size: clamp(13px, 1.8vw, 17px);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

@media (max-width: 560px) {
	.hero-copy {
		position: static;
		padding: 12px 14px;
	}
}

/* the hero heading stands in the sky, no section bar under it */
.hero-copy h2::after {
	display: none;
}

/* The store galleries scroll sideways like the store itself, one row
   with snap, instead of stacking the page tall */

.shots.gallery {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	scrollbar-width: thin;
	scrollbar-color: rgba(127, 180, 255, 0.4) rgba(127, 180, 255, 0.08);
}

.shots.gallery::-webkit-scrollbar {
	height: 8px;
}

.shots.gallery::-webkit-scrollbar-track {
	background: rgba(127, 180, 255, 0.08);
	border-radius: 4px;
}

.shots.gallery::-webkit-scrollbar-thumb {
	background: rgba(127, 180, 255, 0.4);
	border-radius: 4px;
}

.shots.gallery img {
	flex: 0 0 auto;
	width: min(70%, 420px);
	scroll-snap-align: start;
}


/* The lightbox's way through the set: arrows either side, a close in
   the corner, the same controls the keyboard's arrows and escape drive */

.lightbox-previous,
.lightbox-next,
.lightbox-close {
	position: fixed;
	width: 44px;
	height: 44px;
	line-height: 44px;
	text-align: center;
	font-size: 17px;
	color: var(--text);
	background: rgba(11, 15, 20, 0.85);
	border: 1px solid var(--card-border);
	border-radius: 10px;
	cursor: pointer;
	user-select: none;
}

.lightbox-previous:hover,
.lightbox-next:hover,
.lightbox-close:hover {
	color: #ffffff;
}

.lightbox-previous {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-close {
	right: 16px;
	top: 16px;
	font-size: 20px;
}
