/* After Lunch Studios.
   A quiet studio page: the game's poster across the top, the studio's name, one real picture from the
   game, a few words, "coming soon". The only motion is a slow drift on the poster and a light rain over
   the page. */

:root {
	--ink: #07080d;
	--text: #ece6d9;
	--soft: #d3cdc1;
	--muted: #9d9bab;
	--gold: #e8b26a;
	--gold-hi: #f6cf96;
	--line: rgba(232, 178, 106, .28);

	--display: "Marcellus", "Optima", "Palatino Linotype", Georgia, serif;
	--body: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--file: "Courier Prime", "Courier New", ui-monospace, monospace;

	--gl: max(22px, env(safe-area-inset-left, 0px));
	--gr: max(22px, env(safe-area-inset-right, 0px));
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
	margin: 0; background: var(--ink); color: var(--text);
	font: 400 1.125rem/1.65 var(--body); font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: #e0368f; color: #fff; }
:focus-visible { outline: 2px solid #ff8cc4; outline-offset: 3px; }

.file { margin: 0; font: 400 .76rem/1.5 var(--file); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

#rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; }

/* ---------- the poster ---------- */
/* The poster is not high resolution, so it is never stretched across the screen. It sits at about its own
   size with soft edges, and a blurred, darkened copy of it fills the width behind it. */
.top { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); }
.top::before { content: ""; position: absolute; inset: -8%; z-index: -2; background: url("../img/poster.webp") 50% 30% / cover; filter: blur(52px) saturate(1.15) brightness(.42); }
.top::after { content: ""; position: absolute; inset: auto 0 0 0; height: 14rem; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 8, 13, 0), var(--ink)); }

.bar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem var(--gr) 1.2rem var(--gl); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand svg { width: 1.7rem; height: 1.7rem; flex: none; }
.brand span { font: 400 .86rem/1 var(--display); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
.mail-link { font: 400 .76rem/1 var(--file); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: .5rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.mail-link:hover { color: var(--gold-hi); border-bottom-color: var(--gold); }

.stage { position: relative; max-width: 70rem; margin: clamp(.4rem, 2vw, 1.6rem) auto 0; }
.stage picture { display: block; }
.stage picture img { width: 100%; height: auto; }
.stage picture {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%), linear-gradient(180deg, transparent 0, #000 5%, #000 76%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%), linear-gradient(180deg, transparent 0, #000 5%, #000 76%, transparent 100%);
	mask-composite: intersect;
}
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }

/* ---------- the studio ---------- */
.intro { display: grid; justify-items: center; text-align: center; gap: 1.1rem; padding: clamp(3.5rem, 8vw, 7rem) var(--gr) clamp(5rem, 11vw, 10rem) var(--gl); animation: rise 1.4s ease .2s both; }
.intro::after { content: ""; width: 1px; height: clamp(3rem, 6vw, 5rem); margin-top: clamp(2rem, 4vw, 3.5rem); background: linear-gradient(var(--gold), transparent); opacity: .7; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.name { margin: 0; display: grid; gap: .9rem; justify-items: center; font: 400 1rem/1 var(--display); text-transform: uppercase; }
.name__a { font-size: clamp(2.4rem, 5.6vw, 4.8rem); letter-spacing: .08em; padding-left: .08em; line-height: 1; }
.name__b { font-size: clamp(.9rem, 1.5vw, 1.25rem); letter-spacing: .6em; padding-left: .6em; color: var(--gold); }
.line { margin: .8rem 0 0; font: 300 italic clamp(1.25rem, 2.2vw, 1.75rem)/1.3 var(--body); color: var(--gold-hi); }
.next { margin-top: 1.4rem; font: 400 .76rem/1 var(--file); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding-bottom: .55rem; border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.next:hover { color: var(--gold-hi); border-bottom-color: var(--gold); }

/* ---------- the game ---------- */
.game { padding: 0 var(--gr) clamp(6rem, 13vw, 11rem) var(--gl); }
.game__grid { max-width: 74rem; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.game__pic { margin: 0; display: grid; gap: .9rem; }
.game__pic figcaption { color: var(--muted); font-size: .7rem; }
.game__pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(236, 230, 217, .12); box-shadow: 0 2rem 4rem -1.5rem rgba(0, 0, 0, .8); }
.game__copy { display: grid; gap: 1.3rem; justify-items: start; }
.game__title { margin: 0; font: 400 clamp(2.4rem, 4.2vw, 3.4rem)/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.tag { margin: .2rem 0 0; font: 300 italic clamp(1.5rem, 2.4vw, 2rem)/1.22 var(--body); text-wrap: balance; color: var(--gold-hi); }
.pitch { margin: .2rem 0 0; color: var(--soft); max-width: 30rem; font-size: 1.15rem; line-height: 1.75; }
.game__copy p:last-child { margin: 1rem 0 0; }
.pill { display: inline-block; font: 700 .78rem/1 var(--file); letter-spacing: .18em; text-transform: uppercase; padding: .95rem 1.3rem; border: 1px solid var(--gold); color: var(--gold-hi); }

/* ---------- the foot ---------- */
footer { border-top: 1px solid var(--line); padding: clamp(3.5rem, 7vw, 5.5rem) var(--gr) calc(2rem + env(safe-area-inset-bottom, 0px)) var(--gl); }
.foot, .legal { max-width: 74rem; margin-inline: auto; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; }
.foot p { margin: 0; }
.foot__name { font: 400 1.4rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.foot__small { margin-top: .5rem !important; color: var(--muted); font-size: 1rem; }
.mail { font: 700 1.1rem/1.3 var(--file); color: var(--gold-hi); text-decoration: none; border-bottom: 1px solid var(--line); word-break: break-all; }
.mail:hover { border-bottom-color: var(--gold); }
.legal { margin-top: clamp(3rem, 6vw, 5rem); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; color: var(--muted); font: 400 .74rem/1.6 var(--file); letter-spacing: .08em; }

/* ---------- smaller screens ---------- */
@media (max-width: 52rem) {
	.stage picture { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 80%, transparent 100%); }
	.intro { padding-top: 2.5rem; }
	.brand span { font-size: .74rem; letter-spacing: .18em; }
	.game__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	#rain { display: none; }
}
