/* Keef's Kloud — the front door.
 *
 * This is the one page in the whole system a stranger can see, so it says what
 * the thing is and offers a way in, and shows nothing else: no photographs, no
 * names of children, no folder names. The numbers are aggregate and identify
 * nobody.
 *
 * Dark on purpose. It sits in front of an archive of photographs and a bright
 * page in front of dark thumbnails is a flashbang every time somebody signs in.
 */

:root {
	--ink:    #f2efe9;
	--dim:    #9a948a;
	--ground: #0f0f11;
	--raised: #17171a;
	--line:   #2a2a2f;
	/* one warm accent, borrowed from the da Vinci mark, and used sparingly */
	--gold:   #c9a227;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
	      Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

main { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem 4rem; }

/* ---- the hero ---------------------------------------------------------- */

.hero { text-align: center; padding: 4.5rem 0 3rem; }

/* INVERTED. The mark is drawn in dark ink for a white page, and this page is
   nearly black -- so unfiltered it was a dark logo on a dark ground, which is
   to say no logo at all. invert() rather than a second PNG: one file, and it
   cannot drift out of step with the one the app's header uses. */
.mark {
	width: 7rem; height: auto;
	filter: invert(1) drop-shadow(0 2px 14px rgba(0,0,0,.55));
}

.hero h1 {
	font-family: "Fraunces", Georgia, "Times New Roman", serif;
	font-weight: 600;
	font-size: clamp(2.4rem, 7vw, 3.6rem);
	letter-spacing: -.01em;
	margin: 1rem 0 .5rem;
	text-wrap: balance;
}

.lede {
	color: var(--dim);
	font-size: clamp(1rem, 2.5vw, 1.15rem);
	margin: 0 auto 2rem;
	max-width: 32rem;
	text-wrap: balance;
}
.lede strong { color: var(--ink); font-weight: 600; }

.cta {
	display: inline-block;
	padding: .8rem 2.2rem;
	border-radius: 2rem;
	background: var(--gold);
	color: #17130a;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: .02em;
	transition: transform .12s ease, filter .12s ease;
}
.cta:hover  { filter: brightness(1.08); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---- the numbers, which are the actual argument ------------------------ */

.figures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: .6rem;
	overflow: hidden;
	margin: 1rem 0 3.5rem;
}
.figures div {
	background: var(--raised);
	padding: 1.4rem .75rem;
	text-align: center;
}
.figures b {
	display: block;
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	font-size: clamp(1.5rem, 4.5vw, 2rem);
	font-variant-numeric: tabular-nums;
	letter-spacing: -.02em;
}
.figures span {
	display: block;
	margin-top: .25rem;
	color: var(--dim);
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .06em;
}

/* ---- what it does ------------------------------------------------------ */

h2 {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	font-size: 1.35rem;
	margin: 0 0 1rem;
}

.does ul { list-style: none; margin: 0 0 3rem; padding: 0; }
.does li {
	padding: .9rem 0 .9rem 1.4rem;
	border-top: 1px solid var(--line);
	color: var(--dim);
	position: relative;
}
.does li:last-child { border-bottom: 1px solid var(--line); }
.does li b { color: var(--ink); font-weight: 600; }
/* a small mark rather than a bullet: the list is four claims, not a sequence */
.does li::before {
	content: "";
	position: absolute; left: 0; top: 1.5rem;
	width: .4rem; height: .4rem;
	border-radius: 50%;
	background: var(--gold);
	opacity: .8;
}

/* ---- the app, which does not exist yet --------------------------------- */

.app { margin-bottom: 3rem; }
.app p { color: var(--dim); margin: 0 0 .9rem; }
.soon {
	display: inline-block;
	margin-left: .5rem;
	padding: .1rem .5rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	font-family: inherit;
	font-size: .68rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--dim);
	vertical-align: middle;
}

.small { font-size: .85rem; }

footer {
	border-top: 1px solid var(--line);
	padding-top: 1.5rem;
	color: var(--dim);
	text-align: center;
}
footer a { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
	.cta { transition: none; }
}

/* ---- the installer ------------------------------------------------------ */

.get { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 1rem; }

.getbtn {
	display: flex;
	flex-direction: column;
	gap: .1rem;
	padding: .7rem 1.2rem;
	border: 1px solid var(--line);
	border-radius: .5rem;
	text-decoration: none;
	color: var(--ink);
	background: var(--raised);
	transition: border-color .12s ease;
}
.getbtn:hover { border-color: var(--gold); }
.getbtn b { font-weight: 600; }
.getbtn span { font-size: .74rem; color: var(--dim); }

/* the build for the device you are holding comes first and is the loud one --
   but the others stay on the page, because people read this on a laptop to
   work out what to do with their phone */
.getbtn.primary {
	background: var(--gold);
	border-color: var(--gold);
	color: #17130a;
}
.getbtn.primary span { color: #4a3c11; }

.notyet { margin: 0; color: var(--dim); font-size: .9rem; }
.notyet b { color: var(--ink); }
