/*
Theme Name: Chronovast
Theme URI: https://chronovast.com
Description: Placeholder theme for Chronovast. One page, no plugins, self-hosted fonts. Edit the copy under Appearance > Customize > Chronovast.
Version: 1.2.1
Requires at least: 6.3
Requires PHP: 7.4
Author: Chronovast
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chronovast
*/

@font-face {
	font-family: "Gloock";
	src: url("assets/fonts/gloock-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Hanken Grotesk";
	src: url("assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Hanken Grotesk";
	src: url("assets/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

:root {
	--night: #14222e;
	--mist: #e4e9ec;
	--slate: #8fa1ae;
	--brass: #c8a15a;
	--brass-soft: #dcbd82;
	--gutter: clamp(1.25rem, 5vw, 4.5rem);
}

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

html, body { height: 100%; }

body {
	margin: 0;
	background: var(--night);
	color: var(--mist);
	font-family: "Hanken Grotesk", system-ui, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.cv-field {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	z-index: 0;
}

.cv-page {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	grid-template-rows: 1fr auto;
	padding: var(--gutter);
}

.cv-main {
	align-self: center;
	max-width: 40rem;
	padding-block: 4rem 2rem;
}

/* Mark sits beside the name, sized to its letters. */
.cv-brand {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 2vw, 1.75rem);
}

.cv-mark {
	display: block;
	flex: none;
	width: auto;
	height: clamp(2.9rem, 8.4vw, 6.4rem);
	margin: 0;
	transform: translateY(-0.04em);
}

.cv-wordmark {
	margin: 0;
	font-family: "Gloock", Georgia, serif;
	font-weight: 400;
	font-size: clamp(3.25rem, 11vw, 8.5rem);
	line-height: 0.95;
	letter-spacing: -0.025em;
	color: var(--mist);
}

.cv-slogan {
	margin: 1.1rem 0 0;
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	font-weight: 400;
	color: var(--brass-soft);
	letter-spacing: 0.005em;
}

/* The brass horizon is drawn on the canvas at this element's position. */
.cv-horizon {
	height: 1px;
	margin: 2.25rem 0 2rem;
}

.cv-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.75rem;
}

.cv-link {
	color: var(--mist);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid var(--brass);
	padding-bottom: 2px;
	transition: color 0.2s, border-color 0.2s;
}
.cv-link:hover { color: var(--brass-soft); border-color: var(--brass-soft); }
.cv-link:focus-visible {
	outline: 2px solid var(--brass-soft);
	outline-offset: 4px;
	border-radius: 2px;
}

.cv-footer {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.875rem;
	color: var(--slate);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Phones: name and slogan on top, the field gets open space below them. */
@media (max-width: 639px) {
	body { font-size: 1rem; }
	.cv-main { padding-block: 2rem; }
	.cv-horizon { margin: clamp(7.5rem, 19svh, 10rem) 0; }
}
