/* ==========================================================================
   Amanda Ahlgren — Splash Page
   ========================================================================== */

:root {
	--chocolate: #423631;
	--linen: #f8f2e7;

	--font-serif: "garamond-premier-pro", "Garamond Premier Pro", "Adobe Garamond Pro", "EB Garamond", Garamond, "Cormorant Garamond", "Sabon", "Palatino Linotype", Palatino, "Book Antiqua", Baskerville, Georgia, "Times New Roman", serif;

	/* Linen frame around the brown panel */
	--frame: clamp(8px, 1vw, 16px);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	padding: var(--frame);
	padding: max(var(--frame), env(safe-area-inset-top)) max(var(--frame), env(safe-area-inset-right)) max(var(--frame), env(safe-area-inset-bottom)) max(var(--frame), env(safe-area-inset-left));
	display: flex;
	background-color: var(--linen);
	color: var(--linen);
	font-family: var(--font-serif);
	font-weight: 400;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Brown panel: logo sits at center, contact details sit below it */
.splash {
	flex: 1;
	display: grid;
	grid-template-rows: 1fr auto 1fr;
	justify-items: center;
	padding: 2rem 1.5rem;
	background-color: var(--chocolate);
}

.splash__logo {
	grid-row: 2;
	margin: 0;
	width: min(80vw, 540px);
	max-width: 100%;
	line-height: 0;
}

.splash__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.splash__contact {
	grid-row: 3;
	align-self: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.1em;
	padding-top: clamp(4rem, 22vh, 15rem);
	font-style: normal;
	font-size: clamp(1rem, 0.9rem + 0.25vw, 1.125rem);
	line-height: 1.35;
	text-align: center;
	font-variant-numeric: oldstyle-nums;
}

.splash__contact a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.splash__contact a:hover,
.splash__contact a:focus-visible {
	opacity: 0.5;
}

.splash__contact small {
	font-size: 0.85em;
}

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

.splash__contact a:focus-visible {
	outline: 1px solid var(--linen);
	outline-offset: 4px;
}

/* Short landscape screens (phones turned sideways) */
@media (max-height: 500px) and (orientation: landscape) {
	.splash__logo {
		width: min(40vw, 420px);
	}

	.splash__contact {
		padding-top: 2.5rem;
	}
}
