/*
Theme Name: Happiest Dark Corner
Theme URI: https://acatsmanor.com
Author: Happiest Dark Corner
Description: A native WordPress block theme for the Happiest Dark Corner studio landing page.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hdc
*/

:root {
	color-scheme: only light;
	--hdc-rule: #ccc;
	--hdc-display-font: "Cormorant Garamond", Georgia, serif;
	--hdc-body-font: Manrope, Arial, sans-serif;
	--hdc-page-width: min(calc(100% - clamp(2rem, 7.6vw, 8rem)), 90rem);
}

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

html {
	background: #fff;
}

body {
	min-width: 320px;
	margin: 0;
	background: #fff;
	color: #000;
	font-family: var(--hdc-body-font);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: Amarante, Georgia, serif;
	font-weight: 400;
}

.hdc-studio-name,
.hdc-explore {
	font-family: var(--hdc-display-font);
}

.hdc-site {
	display: flex;
	min-height: 100svh;
	flex-direction: column;
}

.hdc-site-header {
	flex: 0 0 auto;
}

.hdc-header-inner {
	align-items: center;
	justify-content: flex-start;
	width: var(--hdc-page-width);
	min-height: clamp(5.75rem, 12.9svh, 8.25rem);
	margin-inline: auto;
	gap: clamp(0.75rem, 1vw, 0.95rem);
}

.hdc-header-mark {
	flex: 0 0 auto;
	width: clamp(3.5rem, 5vw, 4.75rem);
	margin: 0;
}

.hdc-header-mark a {
	display: block;
}

.hdc-header-mark img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
}

.hdc-studio-name {
	font-family: var(--hdc-display-font);
	width: clamp(10.25rem, 13.3vw, 12.8rem);
	max-width: calc(100% - 4.75rem);
	margin: 0;
	font-size: clamp(1rem, 1.3vw, 1.25rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

.hdc-studio-name a {
	color: #000;
	text-decoration: none;
}

.skip-link:focus {
	position: fixed;
	z-index: 100;
	top: 0.5rem;
	left: 0.5rem;
	padding: 0.65rem 0.9rem;
	background: #000;
	color: #fff;
	font-family: var(--hdc-body-font);
	font-weight: 600;
	text-decoration: none;
	outline: 3px solid #000;
	outline-offset: 3px;
}

.hdc-main {
	width: var(--hdc-page-width);
	flex: 1 1 auto;
	min-height: 0;
	margin-inline: auto;
	padding-block: clamp(1.2rem, 3.2svh, 2rem);
	border-top: 1px solid var(--hdc-rule);
}

.hdc-home-main {
	display: flex;
	align-items: center;
}

.hdc-main .wp-block-post-content {
	width: 100%;
	flex: 1 1 auto;
}

.hdc-page-main .wp-block-post-content {
	width: min(46rem, 100%);
	margin-inline: auto;
}

.hdc-landing {
	display: grid;
	width: 100%;
	grid-template-columns: minmax(0, 48.5fr) minmax(0, 51.5fr);
	align-items: center;
	gap: clamp(2.5rem, 4.17vw, 4rem);
}

.hdc-hero-visual {
	display: flex;
	min-width: 0;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.hdc-logo {
	width: min(34rem, 100%, max(15rem, calc(100svh - 14rem)));
	max-width: 100%;
	margin: 0;
}

.hdc-logo img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
}

.hdc-hero-copy {
	min-width: 0;
	margin: 0;
}

.hdc-headline {
	margin: 0;
	font-size: clamp(3rem, 5.5vw, 5.375rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0;
}

.hdc-intro {
	max-width: 31rem;
	margin: clamp(1.5rem, 4.4vh, 2.85rem) 0 0;
	font-family: var(--hdc-body-font);
	font-size: clamp(1.25rem, 1.7vw, 1.625rem);
	font-weight: 400;
	line-height: 1.25;
}

.hdc-game-feature {
	margin: clamp(2.25rem, 5.8vw, 5.75rem) 0 0;
}

.hdc-feature-label {
	margin: 0;
	text-align: center;
	font-family: var(--hdc-body-font);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.19em;
	text-transform: uppercase;
}

.hdc-game-offer {
	display: grid;
	grid-template-columns: clamp(11rem, 14vw, 13.5rem) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1rem, 3vw, 3rem);
	margin: clamp(0.8rem, 1.8vh, 1.1rem) 0 0;
}

.hdc-game-logo {
	width: 100%;
	max-width: 13.5rem;
	margin: 0;
}

.hdc-game-logo img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
}

.hdc-game-action {
	min-width: 0;
	margin: 0;
	padding-left: clamp(1rem, 3.1vw, 3.1rem);
	border-left: 1px solid #c9c9c9;
}

.hdc-explore {
	margin: 0;
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.2;
}

.hdc-explore a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 21.4rem);
	min-height: 5.125rem;
	padding: 0.8rem 1.5rem;
	background: #000;
	color: #fff;
	font-family: var(--hdc-display-font);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background-color 120ms ease;
}

.hdc-explore a:hover {
	background: #2a2a2a;
}

.hdc-explore a:focus-visible {
	outline: 3px solid #000;
	outline-offset: 0.35rem;
}

.hdc-game-caption {
	max-width: 21.4rem;
	text-align: center;
	margin: 0.7rem 0 0;
	font-family: var(--hdc-body-font);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.4;
}

.hdc-site-footer {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-start;
	min-height: clamp(4.75rem, 10.65svh, 6.8125rem);
}

.hdc-footer-inner {
	width: var(--hdc-page-width);
	margin-inline: auto;
	padding-block: clamp(1rem, 3.6svh, 2.3rem) 1rem;
	border-top: 1px solid var(--hdc-rule);
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.5;
}

.hdc-footer-bar {
	justify-content: space-between;
	align-items: baseline;
	gap: 0.4rem 1.5rem;
}

.hdc-footer-bar p,
.hdc-footer-bar .wp-block-shortcode,
.hdc-trademark {
	margin: 0;
}

.hdc-footer-bar a,
.hdc-trademark a {
	color: #000;
	text-underline-offset: 0.22em;
	text-decoration-thickness: 1px;
}

.hdc-trademark {
	margin-top: 0.55rem;
	color: #303030;
	font-size: 0.75rem;
	line-height: 1.45;
}

.hdc-page-main .wp-block-post-title {
	max-width: 46rem;
	margin: 0 auto 1.5rem;
	font-size: clamp(2.75rem, 5vw, 4rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
}

.hdc-page-main .wp-block-heading {
	margin: 1.9rem 0 0.55rem;
	font-size: clamp(1.6rem, 3vw, 2rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0;
}

.hdc-page-main .wp-block-paragraph {
	margin-block: 0.9rem;
	font-size: 0.95rem;
	line-height: 1.7;
}

.hdc-page-main a {
	text-underline-offset: 0.2em;
}

.hdc-page-main a:focus-visible,
.hdc-studio-name a:focus-visible,
.hdc-header-mark a:focus-visible,
.hdc-site-footer a:focus-visible {
	outline: 3px solid #000;
	outline-offset: 4px;
}

.hdc-main:focus {
	outline: none;
}

@media (max-width: 56.25rem) {
	.hdc-main {
		padding-block: clamp(1.5rem, 4vw, 2.5rem);
	}

	.hdc-landing {
		grid-template-columns: minmax(0, 1fr);
		gap: clamp(2rem, 5vw, 3.5rem);
	}

	.hdc-logo {
		width: min(30rem, 100%);
	}

	.hdc-headline {
		font-size: clamp(3.25rem, 7vw, 4rem);
	}

	.hdc-game-feature {
		margin-top: clamp(1.75rem, 5vw, 3rem);
	}
}

@media (max-width: 42rem) {
	.hdc-explore {
		font-size: 1.4rem;
	}

	.hdc-hero-copy {
		text-align: center;
	}

	.hdc-intro,
	.hdc-game-logo,
	.hdc-game-caption {
		margin-inline: auto;
	}

	.hdc-game-offer {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.2rem;
	}

	.hdc-game-logo {
		width: min(10.5rem, 55vw);
	}

	.hdc-game-action {
		padding: 1.2rem 0 0;
		border-top: 1px solid #c9c9c9;
		border-left: 0;
	}

	.hdc-explore a {
		width: min(100%, 18rem);
	}

	.hdc-game-caption {
		max-width: 18rem;
	}

	.hdc-footer-bar {
		align-items: center;
		flex-direction: column;
	}

	.hdc-footer-inner {
		text-align: center;
	}
}

@media (max-width: 26rem) {
	:root {
		--hdc-page-width: calc(100% - 2rem);
	}

	.hdc-header-inner {
		min-height: 5rem;
	}

	.hdc-header-mark {
		width: 3.25rem;
	}

	.hdc-studio-name {
		width: 7.5rem;
		max-width: calc(100% - 4rem);
		font-size: 0.82rem;
		letter-spacing: 0.14em;
	}

	.hdc-headline {
		font-size: clamp(2rem, 11vw, 3rem);
	}

	.hdc-intro {
		font-size: 1.05rem;
	}
}

@media (min-width: 56.25rem) {
	.hdc-game-logo img {
		transform: scale(1.2);
	}

	.hdc-logo {
		transform: translateY(clamp(-2.5rem, calc(5.5rem - 12.5svh), 0rem));
	}
}

@media (min-width: 56.25rem) and (max-height: 46rem) {
	.hdc-header-inner {
		min-height: 5.75rem;
	}

	.hdc-main {
		padding-block: 0.75rem;
	}

	.hdc-headline {
		font-size: clamp(3rem, 5.5vw, 5.375rem);
	}

	.hdc-intro {
		margin-top: 1.5rem;
		font-size: 1.25rem;
		line-height: 1.45;
	}

	.hdc-game-feature {
		margin-top: 2rem;
	}

	.hdc-game-offer {
		grid-template-columns: 10.5rem minmax(0, 1fr);
		gap: 1.8rem;
		margin-top: 0.75rem;
	}

	.hdc-game-action {
		padding-left: 1.8rem;
	}

	.hdc-explore {
		font-size: 1.15rem;
	}

	.hdc-explore a {
		width: min(100%, 17rem);
		min-height: 3.75rem;
	}

	.hdc-site-footer {
		min-height: 4.5rem;
	}
}

@media (min-width: 56.25rem) and (max-height: 35rem) {
	.hdc-logo {
		width: min(34rem, 100%, 15rem);
	}
}

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