/*
Theme Name:        MorphCV
Description:       A minimal theme for MorphCV. Includes the "MorphCV App" page template used at /app/, the MorphCV logo and icons.
Version:           0.4.0
Requires at least: 6.0
Requires PHP:      7.4
Author:            MorphCV
License:           GPL-2.0-or-later
Text Domain:       morphcv-theme
*/

:root {
	--ink: #16181d;
	--muted: #5f6672;
	--line: #e6e8eb;
	--bg: #fafaf8;
	--accent: #3b5bdb;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

img {
	max-width: 100%;
	height: auto;
}

.site {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.brand-mark {
	flex: none;
	display: block;
}

.brand-cv {
	color: var(--accent);
}

.site-brand:focus-visible {
	outline: 3px solid rgba(59, 91, 219, 0.4);
	outline-offset: 4px;
	border-radius: 8px;
}

.custom-logo {
	display: block;
	max-height: 40px;
	width: auto;
}

.home-mark {
	display: block;
	margin-bottom: 22px;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(59, 91, 219, 0.25);
}

.site-link {
	margin-left: auto;
	color: var(--muted);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.site-link:hover {
	color: var(--ink);
}

.site-link + .site-account {
	margin-left: 0;
}

.site-account {
	margin-left: auto;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.site-account:hover {
	border-color: var(--accent);
}

.site-nav ul {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: var(--muted);
	font-size: 16px;
	text-decoration: none;
}

.site-nav a:hover {
	color: var(--ink);
}

.site-main {
	flex: 1;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 32px 24px 64px;
}

.site-main h1 {
	margin: 0 0 16px;
	font-size: clamp(30px, 6vw, 42px);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.entry + .entry {
	margin-top: 48px;
	padding-top: 48px;
	border-top: 1px solid var(--line);
}

.site-footer {
	padding: 24px;
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}

/* "MorphCV App" template: one centred question per screen. */
.app-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 24px 15vh;
}

@media (max-width: 480px) {
	.app-main {
		align-items: flex-start;
		padding-top: 8vh;
	}
}

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

/* Homepage */
.home-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 24px 14vh;
}

.home-kicker {
	margin: 0 0 16px;
	color: var(--accent);
	font-size: 15px;
	font-weight: 600;
}

.home-title {
	margin: 0 0 20px;
	font-size: clamp(36px, 8vw, 64px);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.home-text {
	max-width: 34em;
	margin: 0 0 32px;
	color: var(--muted);
	font-size: clamp(18px, 3.8vw, 21px);
}

.home-button {
	align-self: flex-start;
	padding: 16px 30px;
	border-radius: 12px;
	background: var(--accent);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	transition: filter 0.15s;
}

.home-button:hover {
	filter: brightness(0.92);
}

.home-button:focus-visible {
	outline: 3px solid rgba(59, 91, 219, 0.4);
	outline-offset: 3px;
}

.home-note {
	margin: 14px 0 0;
	color: var(--muted);
	font-size: 15px;
}
