/* faceysockstudios.com
 *
 * One stylesheet, no build step, no framework. If you are editing this in five years it
 * should still just be a file you can open.
 *
 * The palette is taken from the Paint The World wordmark, and the page is deliberately
 * light: the game is about color arriving on a white world, so the site starts white and
 * lets the art be the only loud thing on the page.
 */

:root {
	--ink: #16233a;
	--ink-soft: #4a5a72;
	--paper: #ffffff;
	--paper-2: #f4f6f9;
	--line: #dfe4ec;

	--red: #e8402a;
	--orange: #f5891f;
	--yellow: #f5c518;
	--green: #23a455;
	--teal: #16a8a0;
	--blue: #2b7fd4;
	--purple: #7a3fbf;

	--shadow: 0 1px 2px rgba(22, 35, 58, .06), 0 8px 24px rgba(22, 35, 58, .08);
	--radius: 14px;
	--wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--ink: #eef2f8;
		--ink-soft: #a3b0c4;
		--paper: #121826;
		--paper-2: #1a2233;
		--line: #2a3549;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
	}
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 18px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--purple); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.lede { font-size: 20px; color: var(--ink-soft); max-width: 62ch; }
.eyebrow {
	font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--ink-soft); margin: 0 0 14px;
}

/* --- site header ---------------------------------------------------------- */

.site-head {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; gap: 24px;
	padding: 14px 0;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; }

.studio {
	font-weight: 800; font-size: 18px; letter-spacing: -.01em;
	color: var(--ink); text-decoration: none; white-space: nowrap;
}
/* The row of dots under the wordmark, borrowed as the studio's own mark.
 * One element, three box-shadow copies of itself. The margin has to clear all four:
 * the last copy sits 45px out and is 11px wide, so anything under 56px overlaps the
 * word. 62px leaves a 6px gap. */
.studio::before {
	content: ""; display: inline-block; vertical-align: -1px;
	width: 11px; height: 11px; margin-right: 62px; border-radius: 50%;
	background: var(--red);
	box-shadow: 15px 0 0 var(--yellow), 30px 0 0 var(--green), 45px 0 0 var(--blue);
}
.site-nav { margin-left: auto; display: flex; gap: 22px; font-size: 16px; font-weight: 600; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* The header is the one part of this page that genuinely runs out of room: the studio
 * name and four nav items want about 550px between them, so on a phone they have to
 * stack. It also stops being sticky there - two stacked lines pinned to the top of an
 * 800px-tall screen is a real cost for a site with four links in it. */
@media (max-width: 700px) {
	.site-head { position: static; padding: 12px 0 14px; }
	.site-head .wrap { flex-direction: column; gap: 10px; text-align: center; }
	.studio { font-size: 17px; }
	.studio::before { margin-right: 58px; }
	.site-nav { margin-left: 0; gap: 18px; font-size: 15px; flex-wrap: wrap; justify-content: center; }
}

/* --- hero ----------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 7vw, 88px) 0 0; }
.hero::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 100%;
	background: url("splash.webp") center/cover no-repeat;
	opacity: .10; filter: saturate(1.1);
}
@media (prefers-color-scheme: dark) { .hero::before { opacity: .16; } }

.hero > * { position: relative; }
.hero-logo { width: min(420px, 74vw); margin: 0 auto 26px; }
.hero h1 {
	font-size: clamp(30px, 5vw, 52px); font-weight: 800;
	max-width: 18ch; margin-inline: auto;
}
.hero .lede { margin: 0 auto 30px; text-align: center; font-size: clamp(18px, 2.2vw, 22px); }

/* --- buttons -------------------------------------------------------------- */

.buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 13px 24px; border-radius: 999px;
	font-size: 16px; font-weight: 700; text-decoration: none;
	border: 2px solid var(--ink); color: var(--ink); background: transparent;
	transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-2px); color: var(--ink); }
.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--ghost:hover { background: var(--paper-2); }
.btn[aria-disabled="true"] {
	opacity: .45; pointer-events: none; border-style: dashed;
}
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }

/* --- the three beats ------------------------------------------------------ */

.beats { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.beat { padding-top: 20px; border-top: 4px solid var(--line); }
.beat:nth-child(1) { border-top-color: var(--red); }
.beat:nth-child(2) { border-top-color: var(--green); }
.beat:nth-child(3) { border-top-color: var(--blue); }
.beat h3 { margin-bottom: .35em; }
.beat p { color: var(--ink-soft); margin: 0; font-size: 17px; }

/* --- trailer -------------------------------------------------------------- */

.trailer {
	position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2);
	border: 1px solid var(--line);
}
.trailer img, .trailer iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.trailer button {
	position: absolute; inset: 0; width: 100%; height: 100%;
	border: 0; background: transparent; cursor: pointer; padding: 0;
	display: grid; place-items: center;
}
.trailer button::after {
	content: ""; width: 84px; height: 84px; border-radius: 50%;
	background: rgba(22, 35, 58, .82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/40px no-repeat;
	transition: transform .15s ease, background-color .15s ease;
}
.trailer button:hover::after { transform: scale(1.08); background-color: var(--red); }
.trailer-soon {
	position: absolute; inset: auto 0 0; padding: 14px 18px;
	background: color-mix(in srgb, var(--paper) 90%, transparent);
	border-top: 1px solid var(--line); font-size: 15px; font-weight: 600;
}

/* --- feature list --------------------------------------------------------- */

.features { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.swatch { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 16px; }

/* --- gallery -------------------------------------------------------------- */

.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { transition: transform .3s ease; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .gallery a:hover img { transform: none; } }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 21 / 9; }

/* --- footer --------------------------------------------------------------- */

.site-foot {
	background: var(--paper-2); border-top: 1px solid var(--line);
	padding: 56px 0 40px; font-size: 16px; color: var(--ink-soft);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-foot h3 { color: var(--ink); font-size: 16px; margin-bottom: .6em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .disabled { opacity: .45; cursor: default; }
.copyright { width: 100%; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }

/* --- press page ----------------------------------------------------------- */

.facts { border-collapse: collapse; width: 100%; font-size: 17px; }
.facts th, .facts td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 190px; font-weight: 700; color: var(--ink-soft); font-size: 15px; padding-right: 20px; }
.bullets { padding-left: 1.15em; color: var(--ink-soft); }
.bullets li { margin-bottom: .5em; }
.callout {
	border-left: 4px solid var(--green); background: var(--paper-2);
	padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.back { font-size: 16px; font-weight: 600; text-decoration: none; display: inline-block; margin-bottom: 28px; }
