/*
 * Beardy Dave landing page.
 * Brand styling lives here; layout.css contains the small native grid.
 */

@font-face
{
	font-family: 'Outfit';
	src: url('../fonts/Outfit-latin.woff2') format('woff2');
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

@font-face
{
	font-family: 'Manrope';
	src: url('../fonts/Manrope-latin.woff2') format('woff2');
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
}

:root
{
	--bd-ink: #000;
	--bd-paper: #f4f4f1;
	--bd-muted: #5b5b58;
	--bd-line: #deded8;
	--bd-heading-font: 'Outfit', Arial, sans-serif;
	--bd-body-font: 'Manrope', Arial, sans-serif;
}

/* A small baseline replaces the framework reset. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.dialog-open { overflow: hidden; padding-right: var(--dialog-scrollbar, 0px); }
body { margin: 0; color: var(--bd-ink); background: #fff; font-family: var(--bd-body-font); font-size: 1rem; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin-top: 0; }
p { margin-bottom: 1rem; }
button { margin: 0; font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
svg, img { vertical-align: middle; }
[hidden] { display: none !important; }
::selection { color: #fff; background: #000; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
button, a { -webkit-tap-highlight-color: transparent; }

/* A visible keyboard focus indication on both light and dark surfaces. */
:focus-visible
{
	outline: 2px solid currentColor;
	outline-offset: 5px;
}

.btn-brand:focus-visible, .btn-close:focus-visible
{
	outline: 2px solid #000;
	outline-offset: 5px;
	box-shadow: none;
}

.skip-link
{
	position: fixed;
	top: 0;
	left: 1rem;
	z-index: 1100;
	max-width: calc(100% - 2rem);
	transform: translateY(calc(-100% - 1rem));
	padding: .8rem 1.2rem;
	color: #fff;
	background: #000;
}

.skip-link:focus { top: 1rem; transform: translateY(0); color: #fff; }
h1, h2, h3 { font-family: var(--bd-heading-font); font-weight: 600; }
h1, h2 { letter-spacing: -.045em; }
h2 { margin: 0; font-size: clamp(2.35rem, 3.8vw, 3.5rem); line-height: 1.09; }
p { line-height: 1.8; }
.section-space { padding: 6rem 0; }

.eyebrow
{
	margin: 0 0 1.6rem;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .18em;
	line-height: 1.7;
	text-transform: uppercase;
}

.site-header { border-bottom: 1px solid var(--bd-line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.3rem; padding-bottom: 1.3rem; }
.brand-link { display: inline-flex; flex-shrink: 0; }
.brand-logo { width: 214px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2.2rem; }
.site-nav a { padding: .6rem 0; color: #000; font-size: .83rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

.hero { padding: 5.6rem 0 6.3rem; }
.hero h1 { margin: 0 0 1.65rem; font-size: clamp(2.8rem, 5.2vw, 4.8rem); line-height: 1.035; }
.hero h1 span { display: block; }
.hero-intro { max-width: 34rem; margin: 0; color: var(--bd-muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.9rem; margin-top: 2.2rem; }
.btn-brand { text-decoration: none; display: inline-flex; max-width: 100%; align-items: center; justify-content: center; gap: 1.2rem; padding: .95rem 1.3rem; border: 1px solid #000; border-radius: 3px; color: #fff; background: #000; font-size: .82rem; font-weight: 700; text-align: center; }
.btn-brand:hover, .btn-brand:active { color: #fff !important; border-color: #333 !important; background: #333 !important; }
.arrow-icon { width: 1rem; height: 1rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.text-link { display: inline-flex; align-items: center; gap: .65rem; color: #000; font-size: .82rem; font-weight: 700; text-decoration: none; }
.text-link:hover { color: #000; text-decoration: underline; }
.brand-panel { position: relative; display: flex; min-height: 386px; height: 100%; align-items: center; justify-content: center; border: 1px solid #e8e8e2; background: var(--bd-paper); }
.brand-panel img { width: 54%; max-width: 235px; }
.brand-panel-label, .brand-panel-caption { position: absolute; right: 1.4rem; left: 1.4rem; text-align: center; }
.brand-panel-label { top: 1.4rem; font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.brand-panel-caption { bottom: 1.4rem; color: var(--bd-muted); font-size: .72rem; }

.web-section { border-top: 1px solid var(--bd-line); }
.section-label { display: flex; align-items: center; gap: .8rem; }
.section-number { color: var(--bd-muted); font-size: .64rem; letter-spacing: 0; }
.web-section .section-label { margin-top: .45rem; }
.section-intro { max-width: 41rem; margin: 1.6rem 0 0; color: var(--bd-muted); font-size: 1rem; }
.service-list { margin-top: 3.5rem; }
.service { padding-top: 1.3rem; border-top: 1px solid var(--bd-line); }
.service h3 { margin: 0 0 .75rem; font-size: 1.2rem; line-height: 1.2; letter-spacing: -.02em; }
.service p { margin: 0; color: var(--bd-muted); font-size: .87rem; line-height: 1.85; }

.games-section { color: #fff; background: #080808; }
.games-section .section-number { color: #aaa; }
.games-section .section-label { margin-bottom: 1.7rem; }
.games-intro { max-width: 24rem; margin: 0 0 0 auto; color: #b8b8b8; font-size: .93rem; }
.project-card { display: flex; height: 100%; flex-direction: column; padding: 2.1rem; border: 1px solid #373737; background: #111; }
.project-topline { display: flex; min-height: 70px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.project-format { font-family: var(--bd-heading-font); font-size: 3.3rem; font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.project-status { display: inline-flex; align-items: center; gap: .45rem; padding-top: .35rem; color: #bcbcbc; font-size: .64rem; font-weight: 600; }
.project-status > span { width: 5px; height: 5px; border-radius: 50%; background: #bcbcbc; }
.project-format-browser { position: relative; display: flex; width: 65px; height: 49px; gap: 4px; padding: 9px 8px; border: 2px solid #fff; border-radius: 3px; }
.project-format-browser::after { position: absolute; top: 23px; right: 0; left: 0; height: 2px; background: #fff; content: ''; }
.project-format-browser > span { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.project-card h3 { margin: 0 0 1rem; font-size: clamp(1.6rem, 2.5vw, 2rem); letter-spacing: -.025em; line-height: 1.2; }
.project-intro { margin: 0; color: #bcbcbc; font-size: .94rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: .6rem 1.15rem; margin: 1.5rem 0 2.2rem; padding: 0; list-style: none; }
.project-tags li { color: #d0d0d0; font-size: .68rem; font-weight: 600; }
.project-tags li + li::before { display: inline-block; width: 3px; height: 3px; margin: 0 1.15rem .2em 0; border-radius: 50%; background: #707070; content: ''; }
.project-action { margin-top: auto; }
.project-button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0 0; border: 0; border-top: 1px solid #373737; color: #fff; background: transparent; font-family: inherit; font-size: .84rem; font-weight: 700; text-align: left; }
.project-button > .arrow-icon { width: 1.2rem; height: 1.2rem; }
.project-button:hover { color: #d7d7d7; }
.project-button:hover > .arrow-icon { transform: translate(2px, -2px); }
.game-details { margin-top: .4rem; border-top: 1px solid #373737; }
.game-details summary { padding-top: 1rem; font-size: .85rem; font-weight: 700; cursor: pointer; }
.game-details .game-detail-copy { padding-top: 1.4rem; color: #ccc; font-size: .9rem; }

.site-footer { padding: 3.5rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-logo { width: 185px; }
.site-footer p { margin: 1rem 0 0; color: var(--bd-muted); font-size: .72rem; }
.footer-meta { text-align: right; }
.footer-meta .text-link { font-size: .73rem; }

/* Native dialogs retain the approved modal design and stay scrollable on small screens. */
.project-dialog
{
	position: fixed;
	inset: 0;
	width: min(620px, calc(100% - 2rem));
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 8px;
	color: var(--bd-ink);
	background: #fff;
}

.project-dialog:not([open]) { display: none; }
.project-dialog[open] { display: flex; }
.project-dialog::backdrop { background: rgb(0 0 0 / .5); }
.modal-content { display: flex; width: 100%; max-height: inherit; min-height: 0; flex-direction: column; }
.modal-header { display: flex; flex-shrink: 0; align-items: flex-start; padding: 2rem 2rem 1.2rem; }
.modal-header > div { min-width: 0; padding-right: 1rem; }
.modal-header .eyebrow { margin-bottom: .8rem; color: var(--bd-muted); font-size: .6rem; }
.btn-close { display: grid; width: 1.8rem; height: 1.8rem; flex-shrink: 0; place-items: center; margin: 0 0 0 auto; padding: .4rem; border: 0; color: #000; background: transparent; opacity: .8; }
.btn-close svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.btn-close:hover { opacity: 1; }
.modal-title { margin: 0; font-size: 2.1rem; line-height: 1.12; }
.modal-body { min-height: 0; padding: 0 2rem .5rem; overflow-y: auto; overscroll-behavior: contain; color: var(--bd-muted); font-size: .95rem; }
.modal-body p { margin-bottom: 1.2rem; }
.development-note { margin: 1.7rem 0 0 !important; padding-top: 1rem; border-top: 1px solid var(--bd-line); font-size: .78rem; }
.modal-footer { display: flex; flex-shrink: 0; justify-content: flex-end; padding: 1rem 2rem 2rem; }

@media (max-width: 1199.98px)
{
	.brand-panel { min-height: 350px; }
	.hero h1 { font-size: 3.8rem; }
}

@media (max-width: 991.98px)
{
	.hero { padding: 4rem 0; }
	.hero h1 { font-size: clamp(3rem, 7.5vw, 4.8rem); }
	.hero-intro { max-width: 37rem; }
	.brand-panel { min-height: 300px; }
	.brand-panel img { width: 180px; }
	.section-space { padding: 4rem 0; }
	.web-section .section-label { margin: 0; }
	.games-intro { max-width: 35rem; margin: .6rem 0 0; }
	.project-card { padding: 1.6rem; }
	.project-topline { margin-bottom: 1.5rem; }
}

@media (max-width: 575.98px)
{
	.site-header-inner { flex-wrap: wrap; padding-top: 1.1rem; padding-bottom: 1.1rem; }
	.brand-logo { width: 160px; }
	.site-nav { gap: 1rem; }
	.site-nav a { font-size: .68rem; }
	.hero { padding: 3rem 0; }
	.hero h1 { font-size: clamp(2.35rem, 9.8vw, 3.5rem); }
	.hero .eyebrow { max-width: 19rem; font-size: .62rem; }
	.hero-intro { font-size: .95rem; }
	.hero-actions { gap: 1.4rem; margin-top: 1.7rem; }
	.btn-brand, .text-link { font-size: .76rem; }
	.brand-panel { min-height: 260px; }
	.brand-panel img { width: 150px; }
	.brand-panel-caption { font-size: .66rem; }
	.section-space { padding: 3.5rem 0; }
	h2 { font-size: 2.35rem; }
	.section-intro { font-size: .95rem; }
	.service-list { margin-top: 2.7rem; }
	.project-card { padding: 1.5rem; }
	.project-card h3 { font-size: 1.75rem; }
	.project-topline { min-height: 58px; margin-bottom: 1.2rem; }
	.footer-inner { align-items: flex-start; flex-direction: column; }
	.footer-meta { text-align: left; }
	.site-footer { padding: 2.5rem 0; }
	.project-dialog { width: calc(100% - 1.7rem); }
	.modal-header { padding: 1.5rem 1.35rem 1.2rem; }
	.modal-body { padding-inline: 1.35rem; }
	.modal-title { font-size: 1.7rem; }
	.modal-footer { padding: 1rem 1.35rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce)
{
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.project-button:hover > .arrow-icon { transform: none; }
}
