/* The apps' own palette and type (iching and tarot frontend/src/app.css) */
:root {
	--bg: #12101c;
	--bg-raised: #1c1930;
	--border: #38325c;
	--text: #e8e4f5;
	--text-dim: #a49dc4;
	--gold: #d4af6a;
	--gold-bright: #eccd8f;
	--accent: #8d7bd4;
	--radius: 12px;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

body {
	background-image: radial-gradient(ellipse 80% 50% at 50% -10%, #2b2450 0%, transparent 60%);
	background-repeat: no-repeat;
	min-height: 100dvh;
}

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

header {
	text-align: center;
	margin-bottom: 2.5rem;
}

h1 {
	margin: 0;
	font-weight: 500;
	font-size: clamp(2rem, 7vw, 2.8rem);
	letter-spacing: 0.04em;
	color: var(--gold-bright);
}

h1 span {
	color: var(--gold);
}

.tagline {
	margin: 0.6rem 0 0;
	font-size: 1.15rem;
	font-style: italic;
	color: var(--text-dim);
}

.apps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem;
}

.apps a {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	height: 100%;
	padding: 1.4rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-raised);
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.15s;
}

.apps a:hover,
.apps a:focus-visible {
	border-color: var(--gold);
}

.apps a:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.apps img {
	border-radius: 14px;
	margin-bottom: 0.5rem;
}

.name {
	font-size: 1.4rem;
	color: var(--gold-bright);
}

.kind {
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.what {
	margin-top: 0.4rem;
}

.feature {
	margin-top: 0.6rem;
	padding-left: 0.8rem;
	border-left: 2px solid var(--gold);
}

.feature strong {
	display: block;
	font-weight: 500;
	color: var(--gold-bright);
}

/* at the foot of the card, level across cards of different lengths */
.go {
	margin-top: auto;
	padding-top: 0.8rem;
	color: var(--gold);
}

footer {
	margin-top: 2.5rem;
	font-size: 0.88rem;
	color: var(--text-dim);
}

footer p {
	margin: 0 0 0.8rem;
}

footer a {
	color: var(--accent);
}
