/* CLAUDE #581: the promotional page's own look (index.php): the app's colors (static_app/shared/shared.css: the navy blues, the yellow
   accent #facf05, the link blue #58a3ff) and its Barlow fonts, in a simple design of its own. Light by default, dark by the device's
   setting or the switch (html[data-theme], promo.js). In the light theme the link blue is a darker shade, for contrast on white, and the
   yellow is a fill with navy text on it, never text. Icons are the icon kit's "Font Awesome" family (fontawesome.min.css), Light weight. */

:root {
	color-scheme: light;
	--bg: #f4f6fb;
	--surface: #fff;
	--surface-alt: #e8eef8;
	--text: #122140;
	--muted: #4a5878;
	--border: #d5ddeb;
	--link: #0062d6;
	--accent: #facf05;
	--on-accent: #122140;
	--tile: #122140;
	--on-tile: #facf05;
	--shadow: 0 1px 2px rgb(18 33 64 / 8%), 0 12px 32px rgb(18 33 64 / 12%);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: #010d25;
		--surface: #02193f;
		--surface-alt: #0a1a3a;
		--text: #fff;
		--muted: #b4c1da;
		--border: #2c4167;
		--link: #58a3ff;
		--accent: #facf05;
		--on-accent: #010d25;
		--tile: #122140;
		--on-tile: #facf05;
		--shadow: 0 12px 32px rgb(0 0 0 / 45%);
	}
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #010d25;
	--surface: #02193f;
	--surface-alt: #0a1a3a;
	--text: #fff;
	--muted: #b4c1da;
	--border: #2c4167;
	--link: #58a3ff;
	--accent: #facf05;
	--on-accent: #010d25;
	--tile: #122140;
	--on-tile: #facf05;
	--shadow: 0 12px 32px rgb(0 0 0 / 45%);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--text);
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	margin: 0;
	font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
	font-weight: 700;
	line-height: 1.15;
	text-wrap: balance;
}

p {
	margin: 0;
}

a {
	color: var(--link);
}

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

figure {
	margin: 0;
}

:focus-visible {
	outline: 3px solid var(--link);
	outline-offset: 3px;
	border-radius: 4px;
}

.wrap {
	width: min(1120px, 100% - 32px);
	margin-inline: auto;
}

.icon {
	font-family: "Font Awesome";
	font-weight: 300;
	font-style: normal;
	line-height: 1;
}

.skip {
	position: absolute;
	left: 16px;
	top: -100px;
	padding: 8px 12px;
	background: var(--surface);
	border-radius: 8px;
	z-index: 1;
}

.skip:focus {
	top: 16px;
}

.eyebrow {
	margin-bottom: 0.75rem;
	color: var(--muted);
	font-family: "Barlow Condensed", "Barlow", sans-serif;
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	display: inline-block;
	width: 1.5rem;
	height: 3px;
	margin-right: 0.625rem;
	vertical-align: middle;
	background: var(--accent);
	border-radius: 2px;
}

.lead {
	color: var(--muted);
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

/* the top bar: the logo and name, the sections, the theme switch */

.top {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-block: 20px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
	font-weight: 700;
	font-size: 1.5rem;
	text-decoration: none;
}

.brand img {
	border-radius: 8px;
}

.top nav {
	display: flex;
	gap: 24px;
	margin-left: auto;
}

.top nav a {
	color: var(--text);
	font-weight: 500;
	text-decoration: none;
}

.top nav a:hover {
	color: var(--link);
}

.theme {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 50%;
	font-size: 1.125rem;
	cursor: pointer;
}

.theme:hover {
	border-color: var(--link);
	color: var(--link);
}

.theme .icon {
	font-weight: 400; /* the Regular icons, which read better this small */
}

/* the switch shows what it switches to: the sun in the dark theme, the moon in the light one */
.theme .sun,
:root[data-theme="dark"] .theme .moon {
	display: none;
}

:root[data-theme="dark"] .theme .sun {
	display: inline;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme .sun {
		display: inline;
	}

	:root:not([data-theme="light"]) .theme .moon {
		display: none;
	}
}

/* the opening: the headline and the two ways in, beside a computer's and a phone's screenshot */

.hero {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	align-items: center;
	gap: 56px;
	padding-block: 48px 88px;
}

.hero h1 {
	margin-bottom: 1.25rem;
	font-size: clamp(2.375rem, 5.2vw, 3.75rem);
	letter-spacing: -0.01em;
}

.hero mark {
	background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
	color: inherit;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 2rem;
}

.button {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 1.5rem;
	border: 2px solid var(--link);
	border-radius: 999px;
	color: var(--link);
	font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
	font-weight: 600;
	font-size: 1.125rem;
	text-decoration: none;
}

.button.primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-accent);
}

.button:hover {
	filter: brightness(1.06);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.shots {
	position: relative;
	padding-bottom: 40px;
}

/* a screenshot in a plain browser window */
.frame {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.frame .bar {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding-inline: 14px;
	border-bottom: 1px solid var(--border);
}

.frame .bar i {
	width: 10px;
	height: 10px;
	background: var(--border);
	border-radius: 50%;
}

.frame .bar span {
	margin-left: 10px;
	color: var(--muted);
	font-size: 0.8125rem;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* a screenshot on a phone, over the computer's */
.phone {
	position: absolute;
	right: -12px;
	bottom: 0;
	width: 31%;
	padding: 6px;
	background: #010d25;
	border: 1px solid var(--border);
	border-radius: 26px;
	box-shadow: var(--shadow);
}

.phone img {
	border-radius: 20px;
}

/* who it's for: three cards, each to its section */

.who {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	padding-bottom: 88px;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	color: var(--text);
	text-decoration: none;
}

.card h2 {
	margin-top: 0.5rem;
	font-size: 1.5rem;
}

.card p {
	color: var(--muted);
}

.card .more {
	margin-top: auto;
	padding-top: 0.5rem;
	color: var(--link);
	font-weight: 600;
}

.card .more .icon {
	margin-left: 0.25rem;
	font-size: 0.875em;
}

.card:hover {
	border-color: var(--link);
}

.card:hover .more {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* an icon on a square of its own: the app's yellow on navy, in both themes */
.tile {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	background: var(--tile);
	color: var(--on-tile);
	border-radius: 12px;
	font-size: 1.375rem;
}

/* the sections: a list of what each part does, beside its screenshot; every other one on a band of color */

.band {
	background: var(--surface-alt);
	border-block: 1px solid var(--border);
}

.feature {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	align-items: center;
	gap: 56px;
	padding-block: 88px;
	scroll-margin-top: 16px;
}

.feature.reverse > figure {
	order: -1;
}

/* a section without a screenshot: its heading, then its points in two columns */
.feature.wide {
	grid-template-columns: 1fr;
}

.feature.wide h2,
.feature.wide .lead {
	max-width: 40rem;
}

.feature.wide .features {
	grid-template-columns: repeat(2, 1fr);
	column-gap: 48px;
}

.feature h2 {
	margin-bottom: 0.75rem;
	font-size: clamp(1.875rem, 3.4vw, 2.5rem);
}

.features {
	display: grid;
	gap: 22px;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.features li {
	display: flex;
	gap: 16px;
}

.features .tile {
	width: 44px;
	height: 44px;
	font-size: 1.25rem;
}

.features h3 {
	font-size: 1.25rem;
}

.features p {
	color: var(--muted);
}

.features a {
	font-weight: 600;
	text-decoration: none;
}

.features a::after {
	content: "\f061";
	margin-left: 0.375rem;
	font-family: "Font Awesome";
	font-weight: 300;
	font-size: 0.875em;
}

.features a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* CLAUDE #643: a second link (How Do I?'s page), after the first */
.features a + a {
	margin-left: 1.25rem;
}

/* every part of Break Legs, each a link */

.sites {
	padding-block: 72px 88px;
}

.sites h2 {
	margin-bottom: 0.5rem;
	font-size: clamp(1.875rem, 3.4vw, 2.5rem);
}

.sites h3 {
	margin: 2rem 0 1rem;
	color: var(--muted);
	font-family: "Barlow Condensed", "Barlow", sans-serif;
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sites ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sites a {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 14px;
	row-gap: 2px;
	height: 100%;
	padding: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	color: var(--text);
	text-decoration: none;
}

.sites .tile {
	grid-row: span 3;
	width: 44px;
	height: 44px;
	font-size: 1.25rem;
}

.sites strong {
	font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
	font-size: 1.1875rem;
	line-height: 1.25;
}

.sites span:not(.tile) {
	color: var(--muted);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.sites small {
	color: var(--link);
	font-size: 0.8125rem;
}

.sites a:hover {
	border-color: var(--link);
}

.sites a:hover strong {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* CLAUDE #675: the release notes (release-notes/index.php): a narrower column, each release on a card like the list's above, its notes
   in Break Legs' markup (markup_html(): paragraphs, ### headings, lists) */

.notes {
	width: min(760px, 100% - 32px);
	padding-block: 48px 88px;
}

.notes h1 {
	margin-bottom: 1rem;
	font-size: clamp(2.375rem, 5.2vw, 3.75rem);
	letter-spacing: -0.01em;
}

.release {
	margin-top: 32px;
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
}

.release h2 {
	font-size: 1.625rem;
}

.release .draft {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 2px 10px;
	background: var(--accent);
	color: var(--on-accent);
	border-radius: 999px;
	font-size: 0.875rem;
	vertical-align: middle;
}

.release h3,
.release h4 {
	margin-top: 1.5rem;
	font-size: 1.25rem;
}

.release p,
.release ul,
.release ol {
	margin: 0.75rem 0 0;
}

.release ul,
.release ol {
	padding-left: 1.375rem;
}

.release li + li {
	margin-top: 0.5rem;
}

.release.none {
	color: var(--muted);
}

/* CLAUDE #643: How Do I? (how-do-i/index.php), in a column like the release notes' but wider for its videos: the contents as the list of
   every part of Break Legs (.sites), a group to a heading, and a page's video in a browser window like the screenshots' (.frame), with its
   steps after it on a card like a release's */

.howdoi {
	width: min(960px, 100% - 32px);
}

.howdoi .eyebrow a {
	color: inherit;
	text-decoration: none;
}

.howdoi .eyebrow a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.howdoi .sites {
	padding-block: 8px 0;
}

.howdoi .sites h2 {
	margin: 2.25rem 0 1rem;
	font-size: 1.5rem;
}

.howdoi .sites h2 .icon {
	margin-right: 0.25rem;
	color: var(--muted);
}

.howdoi .sites small .icon {
	margin-right: 0.25rem;
}

.video {
	margin-top: 32px;
}

.video video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	background: #000;
}

.howdoi .back {
	margin-top: 32px;
	font-weight: 600;
}

/* the footer */

footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	padding-block: 32px 48px;
	color: var(--muted);
	font-size: 0.9375rem;
}

footer p {
	display: flex;
	align-items: center;
	gap: 10px;
}

footer p:last-child {
	flex-wrap: wrap; /* CLAUDE #675: four links since Release Notes, more than a phone's width */
	gap: 8px 20px; /* CLAUDE #675: was 20px, with the wrapped line's gap now */
}

footer img {
	border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* tablets and phones: one column, the screenshot under its text */

@media (max-width: 900px) {
	.hero,
	.feature {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.feature.reverse > figure {
		order: 0;
	}

	.who,
	.feature.wide .features {
		grid-template-columns: 1fr;
	}

	.hero {
		padding-block: 24px 64px;
	}

	.feature {
		padding-block: 64px;
	}
}

@media (max-width: 640px) {
	.top nav {
		display: none;
	}

	.theme {
		margin-left: auto;
	}

	.phone {
		right: -4px;
		width: 34%;
		border-radius: 18px;
		padding: 4px;
	}

	.phone img {
		border-radius: 14px;
	}

	/* CLAUDE #675: and the release notes' cards */
	.card,
	.sites a,
	.release {
		padding: 20px;
	}
}
