/* Anchor Hosting Landing Page */

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("fonts/playfair-display-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Playfair Display";
	font-style: italic;
	font-weight: 500 700;
	font-display: swap;
	src: url("fonts/playfair-display-italic-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Josefin Sans";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("fonts/josefin-sans-latin.woff2") format("woff2");
}

:root {
	--ink: #17110c;
	--paper: #f6efe2;
	--paper-edge: #ece0c9;
	--gold: #a87b3e;          /* rules, ornaments, icons */
	--gold-text: #7d5420;     /* small gold text, 5.8:1 on paper */
	--brown: #4a2a12;
	--text: #3a2a1d;
	--muted: #6a5440;
	--rule: rgba(168, 123, 62, 0.55);
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Josefin Sans", Futura, "Century Gothic", "Trebuchet MS", sans-serif;
	color-scheme: light;
}

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

html,
body {
	margin: 0;
	background: var(--ink);
}

body {
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Layout ----------------------------------------------------------------- */

.landing {
	position: relative;
	display: grid;
	grid-template-columns: 1fr minmax(0, 500px);
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: clamp(24px, 4vw, 64px) clamp(24px, 6vw, 104px);
	overflow: hidden;
}

/* Photo ------------------------------------------------------------------ */

.landing__photo {
	position: absolute;
	inset: 0;
	margin: 0;
	overflow: hidden;
}

.landing__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 28% 50%;
	animation: settle 16s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.landing__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(23, 17, 12, 0) 30%, rgba(23, 17, 12, 0.5) 62%, rgba(23, 17, 12, 0.78) 100%),
		linear-gradient(0deg, rgba(23, 17, 12, 0.6) 0%, rgba(23, 17, 12, 0) 28%);
	pointer-events: none;
}

.landing__photo figcaption {
	position: absolute;
	z-index: 1;
	left: clamp(24px, 4vw, 56px);
	bottom: clamp(22px, 3.2vw, 44px);
	display: flex;
	align-items: center;
	gap: 14px;
	color: rgba(246, 239, 226, 0.88);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.26em;
	line-height: 1;
	text-transform: uppercase;
}

.landing__photo figcaption::before {
	content: "";
	width: 36px;
	height: 1px;
	background: var(--gold);
}

/* Card ------------------------------------------------------------------- */

.card {
	grid-column: 2;
	position: relative;
	z-index: 1;
	padding: clamp(30px, 3.4vw, 46px) clamp(26px, 3.2vw, 46px) 30px;
	text-align: center;
	background-color: var(--paper);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%23a87b3e' stroke-opacity='.07' stroke-width='.7'%3E%3Ccircle cx='14' cy='14' r='10'/%3E%3Ccircle cx='0' cy='0' r='10'/%3E%3Ccircle cx='28' cy='0' r='10'/%3E%3Ccircle cx='0' cy='28' r='10'/%3E%3Ccircle cx='28' cy='28' r='10'/%3E%3C/g%3E%3C/svg%3E"),
		radial-gradient(ellipse at 50% 40%, #faf5ec 0%, var(--paper) 55%, var(--paper-edge) 100%);
	border-radius: 2px;
	box-shadow:
		0 40px 90px -30px rgba(0, 0, 0, 0.75),
		0 12px 30px -12px rgba(0, 0, 0, 0.5);
	animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

/* Double rule, like the border of a banknote. */
.card::before,
.card::after {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid var(--rule);
	pointer-events: none;
}

.card::after {
	inset: 15px;
}

.card__corner {
	position: absolute;
	width: 9px;
	height: 9px;
	background: var(--gold);
	transform: rotate(45deg);
}

.card__corner--tl { top: 6px; left: 6px; }
.card__corner--tr { top: 6px; right: 6px; }
.card__corner--bl { bottom: 6px; left: 6px; }
.card__corner--br { bottom: 6px; right: 6px; }

.card__brand {
	width: clamp(150px, 14vw, 200px);
	margin: 0 auto;
}

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

.card__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 20px 0 14px;
	color: var(--gold-text);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.28em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}

.card__eyebrow::before,
.card__eyebrow::after {
	content: "";
	flex: 0 1 40px;
	height: 1px;
	background: var(--rule);
}

.card__headline {
	margin: 0 0 14px;
	color: var(--brown);
	font-family: var(--serif);
	font-size: clamp(2.1rem, 1.5rem + 1.7vw, 2.9rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.06;
	text-wrap: balance;
}

.card__headline em {
	color: var(--gold-text);
	font-style: italic;
	font-weight: 500;
}

.card__intro {
	max-width: 34ch;
	margin: 0 auto 26px;
	text-wrap: pretty;
}

/* Contact rows ----------------------------------------------------------- */

.ledger {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	text-align: left;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.ledger li + li {
	border-top: 1px dashed var(--rule);
}

.ledger a {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 6px 16px;
	padding: 15px 8px;
	color: var(--brown);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.ledger__label {
	grid-column: 1;
	color: var(--gold-text);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.24em;
	line-height: 1;
	text-transform: uppercase;
}

.ledger__value {
	grid-column: 1;
	font-family: var(--serif);
	font-size: 19px;
	font-weight: 500;
	font-variant-numeric: lining-nums;
	line-height: 1.25;
}

.ledger svg {
	grid-column: 2;
	grid-row: 1 / span 2;
	width: 22px;
	height: 22px;
	color: var(--gold);
	transition: transform 0.2s ease, color 0.2s ease;
}

.ledger a:hover {
	background-color: rgba(168, 123, 62, 0.09);
}

.ledger a:hover svg {
	color: var(--brown);
	transform: translateX(4px);
}

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

.card__foot {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	letter-spacing: 0.1em;
	line-height: 1.4;
}

/* Motion ----------------------------------------------------------------- */

@keyframes settle {
	from { transform: scale(1.07); }
	to { transform: scale(1); }
}

@keyframes rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

/* Short desktop screens -------------------------------------------------- */

@media (min-width: 861px) and (max-height: 760px) {
	.landing { padding-top: 24px; padding-bottom: 24px; }
	.card { padding-top: 30px; padding-bottom: 24px; }
	.card__brand { width: 120px; }
	.card__eyebrow { margin: 14px 0 10px; }
	.card__headline { font-size: 2.4rem; margin-bottom: 10px; }
	.card__intro { margin-bottom: 18px; }
	.ledger { margin-bottom: 16px; }
	.ledger a { padding: 11px 8px; }
}

/* Tablet and phone: photo on top, card below ----------------------------- */

@media (max-width: 860px) {
	.landing {
		display: block;
		min-height: 0;
		padding: 0 16px 40px;
		overflow: visible;
	}

	.landing__photo {
		position: relative;
		inset: auto;
		height: min(64vw, 56vh);
		margin: 0 -16px;
	}

	.landing__photo img {
		object-position: 40% 50%;
	}

	.landing__photo::after {
		background: linear-gradient(0deg, var(--ink) 0%, rgba(23, 17, 12, 0) 45%);
	}

	.landing__photo figcaption {
		display: none;
	}

	.card {
		max-width: 520px;
		margin: -64px auto 0;
	}
}

@media (max-width: 420px) {
	body { font-size: 16px; }
	.card { padding: 30px 22px 26px; }
	.card__brand { width: 140px; }
	.card__eyebrow { gap: 10px; font-size: 11px; letter-spacing: 0.2em; }
	.card__eyebrow::before,
	.card__eyebrow::after { flex-basis: 24px; }
	.ledger__value { font-size: 17px; }
}
