/* Raw concrete, hard shadows, one red. The concrete is img/concrete.jpg, made by
   tools/concrete_tile.py (board-formed, with tie holes). */
@font-face { font-family: "Fira Sans Condensed"; font-weight: 500; src: url("fonts/FiraSansCondensed-Medium.ttf"); font-display: swap; }
@font-face { font-family: "Fira Sans Compressed"; font-weight: 800; src: url("fonts/FiraSansCompressed-ExtraBold.ttf"); font-display: swap; }
@font-face { font-family: "DejaVu Sans Mono"; src: url("fonts/DejaVuSansMono.ttf"); font-display: swap; }

:root {
	--ink: #171614;
	--soot: #0f0e0d;
	--paper: #e4dfd5;
	--red: #b8231b;
	--dim: #5c5852;
	--light: rgba(226, 221, 211, 0.6);   /* over the concrete: a pale cast face */
	--dark: rgba(18, 17, 16, 0.86);      /* over the concrete: a sooted slab */
	--shadow: 14px 14px 0 rgba(0, 0, 0, 0.55);
	--display: "Fira Sans Compressed", "Arial Narrow", sans-serif;
	--mono: "DejaVu Sans Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--ink);
	background-color: #6f6c67;
	background-image: linear-gradient(rgba(70, 67, 63, 0.55), rgba(70, 67, 63, 0.55)), url("img/concrete.jpg");
	background-size: auto, 1000px;
	font: 500 18px/1.55 "Fira Sans Condensed", "Arial Narrow", sans-serif;
	overflow-x: hidden;
}
a { color: var(--red); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
main { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.small { color: var(--dim); font-size: 16px; }

/* a cast slab: pale concrete, a hard shadow, sharp corners */
.slab, .intro-text {
	background-image: linear-gradient(var(--light), var(--light)), url("img/concrete.jpg");
	box-shadow: var(--shadow);
}

/* the headline picture */
.hero { position: relative; height: min(78vh, 760px); min-height: 360px; overflow: hidden; background: var(--soot); }
.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,0.45)); }
/* the name, cast across the bottom of the picture */
.title-slab {
	position: relative; z-index: 2;
	max-width: 1180px; margin: -130px auto 0; padding: 34px 40px;
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center;
	border-top: 10px solid var(--red);
}
.logo-h { margin: 0; }
.logo { width: 100%; max-width: 520px; filter: drop-shadow(3px 3px 0 rgba(0,0,0,0.6)); }
.tag { margin: 0 0 18px; font-size: 22px; line-height: 1.3; }

.btn {
	display: inline-block; padding: 12px 26px;
	font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase;
	text-decoration: none; color: var(--paper); background: var(--ink);
	box-shadow: 6px 6px 0 rgba(0,0,0,0.6);
	transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 rgba(0,0,0,0.6); }
.btn.red { background: var(--red); }
.price { margin-left: 16px; font-family: var(--display); font-weight: 800; font-size: 26px; }

/* section headings */
.head { margin: 0 0 30px; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 58px); line-height: 0.95; text-transform: uppercase; color: var(--paper); text-shadow: 3px 3px 0 rgba(0,0,0,0.5); }

/* the jet's number, painted on the block like a building number */
.intro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; margin: 70px 0 90px; }
.number {
	font-family: var(--display); font-weight: 800; font-size: clamp(150px, 24vw, 300px); line-height: 0.8;
	color: var(--red); padding: 22px 26px 10px 8px; background: var(--ink);
	box-shadow: var(--shadow); letter-spacing: -0.02em;
}
.intro-text { padding: 30px 36px; font-size: 21px; }
.intro-text p { margin: 0 0 14px; }
.intro-text p:last-child { margin: 0; }

/* the features: a picture set in the wall beside a cast slab of text, alternating sides */
.features { margin: 0 0 100px; display: grid; gap: 44px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.feature.flip .shot { order: 2; }
.feature-text {
	padding: 28px 32px; font-size: 19px;
	background-image: linear-gradient(var(--light), var(--light)), url("img/concrete.jpg");
	box-shadow: var(--shadow); border-left: 8px solid var(--red);
}
.feature-text h2 {
	margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 34px);
	line-height: 1; text-transform: uppercase; letter-spacing: 0.02em;
}
.feature-text p { margin: 0 0 12px; }
.feature-text p:last-child { margin: 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.trio .feature-text { border-left-color: var(--ink); font-size: 18px; }

/* the screenshots: windows set deep in a wall */
.wall { margin: 0 0 100px; }
.windows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 26px; }
.windows figure { margin: 0; }
.windows figure.wide { grid-column: span 2; }
.windows a, .feature .shot {
	display: block; padding: 14px; background: var(--soot);
	box-shadow: inset 8px 8px 0 rgba(0,0,0,0.85), inset -3px -3px 0 rgba(255,255,255,0.08), var(--shadow);
}
.feature .shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.windows img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(0.92) contrast(1.04); transition: filter 0.2s; }
.windows a:hover img { filter: none; }
.windows figcaption {
	display: inline-block; margin-top: 12px; padding: 5px 10px;
	background: var(--ink); color: #c9c3b6; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em;
	box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

/* the data sheet */
.sheet { margin: 0 0 100px; }
.specs {
	width: 100%; border-collapse: collapse; font-size: 18px;
	background-image: linear-gradient(var(--light), var(--light)), url("img/concrete.jpg");
	box-shadow: var(--shadow); border-left: 8px solid var(--ink);
}
.specs th, .specs td { padding: 13px 22px; vertical-align: top; text-align: left; border-bottom: 1px solid rgba(0, 0, 0, 0.18); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: none; }
.specs th {
	width: 210px; font-family: var(--display); font-weight: 800; font-size: 20px;
	text-transform: uppercase; letter-spacing: 0.04em; color: var(--red);
}

/* buying: the dark block */
.buy {
	margin: 0 0 90px; padding: 36px 40px 40px; color: #d8d2c6;
	background-image: linear-gradient(var(--dark), var(--dark)), url("img/concrete.jpg");
	box-shadow: var(--shadow); border-top: 14px solid var(--red);
}
.buy-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.buy h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: 0.04em; }
.buy .small { color: #a29c90; }
.buy ul { padding-left: 20px; margin: 0; }
.price-big { margin: 0 0 18px; font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; color: var(--paper); }
.price-big:empty { display: none; }
.buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.soon { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; color: #8f897e; letter-spacing: 0.04em; }

footer.slab { padding: 28px 16px 36px; text-align: center; border-top: 10px solid var(--ink); box-shadow: none; }
footer p { margin: 4px 0; }
footer a { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: 0.05em; }

/* a screenshot opened large */
.lightbox { position: fixed; inset: 0; z-index: 10; background: rgba(8, 8, 7, 0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 80px); box-shadow: 0 0 0 10px var(--soot); }
.lightbox p { color: #c9c3b6; font-family: var(--mono); font-size: 14px; margin: 18px 0 0; text-align: center; }

/* credits and press kit pages */
.page { max-width: 900px; margin: 40px auto; padding: 32px 36px; }
.page h1, .page h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1; }
.page h1 { font-size: 46px; border-bottom: 8px solid var(--red); padding-bottom: 10px; }
.page table { border-collapse: collapse; font-size: 16px; }
.page td { padding: 6px 14px 6px 0; vertical-align: top; border-bottom: 1px solid rgba(0,0,0,0.15); }
.page code { font-family: var(--mono); font-size: 0.85em; }

@media (max-width: 820px) {
	:root { --shadow: 8px 8px 0 rgba(0, 0, 0, 0.55); }
	body { font-size: 17px; }
	.title-slab { grid-template-columns: 1fr; margin: -60px 12px 0; padding: 24px 20px; gap: 16px; }
	.intro { grid-template-columns: 1fr; margin: 50px 0 70px; }
	.number { padding: 14px 18px 4px; }
	.intro-text { padding: 22px 20px; font-size: 18px; }
	.windows { grid-template-columns: 1fr; gap: 24px; }
	.features { gap: 34px; margin-bottom: 70px; }
	.feature, .trio { grid-template-columns: 1fr; gap: 16px; }
	.feature.flip .shot { order: 0; }
	.feature .shot { padding: 8px; }
	.feature-text { padding: 20px 20px; font-size: 18px; }
	.windows figure.wide { grid-column: auto; }
	.windows a { padding: 8px; }
	.specs th { display: block; width: auto; padding: 12px 18px 0; border-bottom: none; }
	.specs td { display: block; padding: 2px 18px 12px; }
	.buy { padding: 26px 20px 28px; }
	.buy-row { grid-template-columns: 1fr; gap: 26px; }
	.hero { height: min(56vh, 460px); min-height: 260px; }
	.page { margin: 16px; padding: 22px 18px; }
}
