/* Mars Photos landing page. Basalt, rust and sand, matching the extension.
   The sol counters are the page's one loud element. */

@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
	--bg: #15100e;
	--panel: #201815;
	--line: #3d2f28;
	--ink: #f3e8de;
	--muted: #b7a294;
	--rust: #e2673a;
	--rust-ink: #1b0d07;
	--sand: #e9c9a1;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 "Space Grotesk", "Segoe UI", system-ui, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sand); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.wrap { max-width: 1100px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.top { display: flex; align-items: center; gap: 22px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; }
.brand img { width: 34px; height: 34px; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 84px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); }
.hero .lead { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 30em; }
.cta { display: inline-block; margin-top: 28px; padding: 14px 26px; border-radius: 10px; background: var(--rust); color: var(--rust-ink); text-decoration: none; font-weight: 600; }
.cta:hover { filter: brightness(1.1); }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* the two missions as timelines, from landing to today */
.missions { display: grid; gap: 14px; }
.mission { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px 18px; }
.mission h2 { font-size: 20px; }
.mission .sol { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.mission .sol b { font-size: clamp(54px, 7vw, 84px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--sand); }
.mission .sol span { color: var(--muted); font-size: 15px; }
.track { position: relative; height: 4px; margin-top: 18px; border-radius: 2px; background: var(--line); }
.track::before { content: ""; position: absolute; inset: 0; border-radius: 2px; background: var(--rust); }
.track::after { content: ""; position: absolute; right: -1px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--rust); }
.ends { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 13px; }

main section { padding-top: 78px; padding-bottom: 78px; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
section h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 18em; }
.sub { margin-top: 14px; color: var(--muted); max-width: 38em; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 36px; margin-top: 38px; counter-reset: step; }
.steps li { border-top: 2px solid var(--sand); padding-top: 16px; counter-increment: step; }
.steps li::before { content: counter(step); display: block; color: var(--rust); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.steps h3 { font-size: 21px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.cams { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 34px; }
.cams h3 { font-size: 22px; }
.cams p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
.cams ul { margin-top: 14px; }
.cams li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15.5px; }
.cams li span { color: var(--muted); text-align: right; }

.new ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 26px; }
.new li { padding: 12px 0; border-top: 1px solid var(--line); }

.privacy { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 34px 38px; }
.privacy p { margin-top: 10px; max-width: 40em; color: var(--muted); }
.privacy a { white-space: nowrap; font-weight: 600; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 30px; padding-bottom: 20px; color: var(--muted); font-size: 15px; }
.foot span { margin-right: auto; }
.credit { color: var(--muted); font-size: 13px; padding-bottom: 44px; }

.doc { max-width: 720px; padding-top: 40px; padding-bottom: 40px; }
.doc h1 { font-size: 38px; }
.doc .date { color: var(--muted); margin-top: 8px; }
.doc h2 { font-size: 22px; margin-top: 38px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc li { margin-top: 6px; }

@media (max-width: 860px) {
	body { font-size: 16px; }
	.hero, .privacy, .cams { grid-template-columns: minmax(0, 1fr); }
	.hero { gap: 40px; padding-bottom: 56px; }
	.steps { grid-template-columns: 1fr; gap: 26px; }
	.new ul { grid-template-columns: 1fr; }
	main section { padding-top: 54px; padding-bottom: 54px; }
	.top nav a:not(.keep) { display: none; }
	.privacy { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
