/* Titanic: Adventure Out of Time — site styles
   Palette taken from the key art: the night sea, the porthole's brass, the iceberg. */

:root {
	--sea: #0a1a2e;			/* page: the North Atlantic at night */
	--hull: #13253d;		/* raised panels */
	--brass: #c99a45;		/* porthole brass: links, the time line */
	--ice: #cfe7ef;			/* headings */
	--paper: #e8edf1;		/* body text */
	--haze: #8ea2b6;		/* captions, small print */
	--measure: 34rem;
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--sea);
	color: var(--paper);
	font-family: "Libre Caslon Text", Georgia, "Times New Roman", serif;
	font-size: 1.125rem;
	line-height: 1.7;
	font-kerning: normal;
	font-variant-numeric: oldstyle-nums;
}

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

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ice); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
	font-family: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
	font-weight: 400;
	color: var(--ice);
	line-height: 1.15;
	margin: 0 0 0.6em;
}
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; }

.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }
.text { max-width: var(--measure); }

/* ---------- hero: the key art, with a few words and the store button ---------- */

.hero { position: relative; margin: 0; }
.hero img { width: 100%; }
.hero figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.lede {
	text-align: center;
	padding: 2.5rem 0 4rem;
}
.lede p {
	font-size: 1.375rem;
	line-height: 1.5;
	max-width: 30rem;
	margin: 0 auto 1.75rem;
}

.store {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--brass);
	border-radius: 0.5rem;
	color: var(--paper);
	font-size: 1rem;
	text-decoration: none;
}
a.store:hover { background: var(--brass); color: var(--sea); }
span.store { color: var(--haze); border-color: var(--haze); }

/* ---------- the story: two dates thirty years apart, joined by a brass line ---------- */

.story {
	display: grid;
	grid-template-columns: minmax(0, var(--measure)) minmax(0, 22rem);
	justify-content: space-between;
	gap: 3rem;
	padding: 1rem 0 5rem;
}
.story .leap { grid-column: 1; grid-row: 1; }
.watch { grid-column: 2; grid-row: 1; margin: 0; align-self: center; }
.watch img { border-radius: 0.25rem; }
.watch figcaption { color: var(--haze); font-size: 0.9375rem; font-style: italic; padding-top: 0.5rem; }
@media (max-width: 48rem) {
	.story { grid-template-columns: 1fr; }
	.watch { grid-column: 1; grid-row: 2; width: min(70vw, 22rem); }
}

.leap {
	position: relative;
	padding-left: 2rem;
	border-left: 1px solid var(--brass);
	max-width: var(--measure);
}
.leap section + section { margin-top: 3rem; }
.leap section::before {			/* a rivet where each date meets the line */
	content: "";
	position: absolute;
	left: -0.3125rem;
	width: 0.5625rem;
	height: 0.5625rem;
	margin-top: 1.6rem;
	border-radius: 50%;
	background: var(--brass);
}
.date {
	display: block;
	font-family: "Libre Caslon Display", Georgia, serif;
	font-size: clamp(2.75rem, 8vw, 4.5rem);
	line-height: 1;
	color: var(--ice);
	font-variant-numeric: lining-nums;
	margin-bottom: 0.15em;
}
.place {
	display: block;
	font-size: 1.375rem;
	font-style: italic;
	color: var(--haze);
	margin-bottom: 1rem;
}

/* ---------- pictures ---------- */

.gallery { padding: 0 0 5rem; }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--haze); font-size: 0.9375rem; font-style: italic; padding-top: 0.5rem; }
.gallery .first { margin-bottom: 1.5rem; }
.grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
@media (max-width: 40rem) { .grid { grid-template-columns: 1fr; } }

/* ---------- record and controls ---------- */

.two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	padding: 0 0 5rem;
}
@media (max-width: 48rem) { .two { grid-template-columns: 1fr; } }

.record ul { list-style: none; padding: 0; margin: 0; }
.record li { padding: 0.6rem 0; border-top: 1px solid var(--hull); }
.record li:last-child { border-bottom: 1px solid var(--hull); }

.controls dl { margin: 0; }
.controls dt { color: var(--ice); }
.controls dd { margin: 0 0 1rem; color: var(--paper); }

/* ---------- plain pages: support, privacy ---------- */

.page { padding: 3rem 0 5rem; }
.page h1 { font-size: 2.75rem; }
.page h2 { font-size: 1.625rem; margin-top: 2.5rem; }
.back { display: inline-block; margin-bottom: 2rem; font-size: 1rem; }

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

footer {
	border-top: 1px solid var(--hull);
	padding: 2rem 0 3rem;
	color: var(--haze);
	font-size: 0.9375rem;
}
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-bottom: 0.75rem; }
footer p { margin: 0; }

/* ---------- walkthrough ---------- */

.walk .text { max-width: 38rem; }
.walk h2 { scroll-margin-top: 1.5rem; }
.walk h2 .num { color: var(--brass); margin-right: 0.4em; font-variant-numeric: lining-nums; }
.walk h3 { font-size: 1.25rem; margin-top: 1.75rem; }

.toc ol { padding-left: 1.4rem; margin: 0 0 1rem; columns: 2 16rem; column-gap: 2rem; }
.toc li { break-inside: avoid; margin-bottom: 0.25rem; }

.walk ol.steps { padding-left: 1.4rem; margin: 0 0 1em; }
.walk ol.steps li { margin-bottom: 0.4em; }

ul.say {
	list-style: none;
	margin: 0.25rem 0 1.25rem;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 1px solid var(--brass);
}
ul.say li { margin: 0.2rem 0; font-style: italic; color: var(--ice); }
ul.say li span { font-style: normal; color: var(--haze); }

.note, .danger {
	margin: 1rem 0 1.5rem;
	padding: 0.75rem 1rem;
	border-radius: 0.375rem;
	background: var(--hull);
	font-size: 1rem;
}
.note strong { color: var(--brass); font-weight: 400; }
.danger { border-left: 3px solid #e0a39a; }
.danger strong { color: #e0a39a; font-weight: 400; }

.code { font-variant-numeric: lining-nums; letter-spacing: 0.12em; color: var(--ice); }

table.times { border-collapse: collapse; margin: 0.5rem 0 1.5rem; font-size: 1rem; }
table.times td { padding: 0.35rem 1.25rem 0.35rem 0; border-top: 1px solid var(--hull); vertical-align: top; }
table.times td:first-child { color: var(--ice); font-variant-numeric: lining-nums; white-space: nowrap; }
