/* Fezcode Studio kit — "Daylight".
   Source of truth: fezcode.studio repo, kit/. Copied verbatim into each site
   (see DESIGN.md). Do not edit the copies. */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("fonts/bricolage-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("fonts/inter-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	src: url("fonts/inter-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--paper: #faf9f6;
	--ink: #16130f;
	--soft: #6c655d;
	--line: rgba(22, 19, 15, 0.1);
	--wash: rgba(22, 19, 15, 0.055);

	/* Each app owns one colour: a strong tone and a tint of it. */
	--terra: #c96442;
	--terra-tint: #f7dfd3;
	--sage: #3f7a5c;
	--sage-tint: #dcebe1;
	--brass: #e3b65b;
	--brass-deep: #a87a24;
	--brass-tint: #f6e9cc;
	--danger: #b3261e;

	--display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--gutter: clamp(16px, 4vw, 48px);
	--page: 1180px;
	--r-tile: 32px;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	color-scheme: light;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.55 var(--text);
	-webkit-font-smoothing: antialiased;
}
a {
	color: inherit;
}
[hidden] {
	display: none !important;
}
:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
	border-radius: 8px;
}
::selection {
	background: var(--ink);
	color: var(--paper);
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.fz-page {
	max-width: var(--page);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* ---------- type ---------- */
.fz-display {
	font-family: var(--display);
	font-weight: 700;
	line-height: 0.96;
	letter-spacing: -0.042em;
	margin: 0;
	text-wrap: balance;
}
.fz-lede {
	font-size: clamp(17px, 0.6vw + 14px, 20px);
	color: var(--soft);
	max-width: 46ch;
	margin: 0;
	text-wrap: pretty;
}

/* ---------- top bar ---------- */
.fz-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
}
.fz-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 700 20px/1 var(--display);
	letter-spacing: -0.02em;
	text-decoration: none;
}
/* The mark: a block that keeps quietly changing shape. */
.fz-mark {
	width: 24px;
	height: 24px;
	background: var(--terra);
	border-radius: 8px;
	animation: fz-mark 9s var(--ease) infinite;
}
@keyframes fz-mark {
	0%,
	22% {
		border-radius: 8px;
		transform: rotate(0);
		background: var(--terra);
	}
	33%,
	55% {
		border-radius: 50%;
		transform: rotate(90deg);
		background: var(--sage);
	}
	66%,
	88% {
		border-radius: 50% 50% 8px 50%;
		transform: rotate(225deg);
		background: var(--brass);
	}
	100% {
		border-radius: 8px;
		transform: rotate(360deg);
		background: var(--terra);
	}
}
.fz-bar nav {
	display: flex;
	gap: 8px;
}
.fz-chip {
	font: 500 15px/1 var(--text);
	color: var(--ink);
	background: var(--wash);
	border: 0;
	border-radius: 99px;
	padding: 10px 16px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s;
}
.fz-chip:hover,
.fz-chip[aria-current] {
	background: rgba(22, 19, 15, 0.11);
}

/* ---------- buttons ---------- */
.fz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font: 600 16px/1 var(--text);
	color: #fff;
	background: var(--ink);
	border: 0;
	border-radius: 14px;
	padding: 15px 24px;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.25s var(--ease);
	-webkit-tap-highlight-color: transparent;
}
.fz-btn:hover {
	transform: translateY(-2px);
}
.fz-btn:active {
	transform: translateY(0) scale(0.98);
}
.fz-btn.is-quiet {
	background: var(--wash);
	color: var(--ink);
}
.fz-btn.is-light {
	background: #fff;
	color: var(--ink);
}
.fz-btn.is-small {
	font-size: 14px;
	padding: 9px 15px;
	border-radius: 12px;
}
.fz-btn:disabled {
	opacity: 0.5;
	cursor: default;
	transform: none;
}

/* ---------- flow: the animated abstract surface (painted by fz-art.js) ---------- */
.fz-flow {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	/* What you see before the script runs, and if WebGL is unavailable. */
	background: radial-gradient(120% 90% at 15% 10%, var(--flow-a, #f7dfd3), transparent 60%), radial-gradient(90% 80% at 90% 30%, var(--flow-b, #dcebe1), transparent 65%),
		radial-gradient(80% 90% at 55% 100%, var(--flow-c, #f3c9a4), transparent 60%), var(--flow-base, #fbf4e6);
}
.fz-flow > canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.fz-flow.is-live > canvas {
	opacity: 1;
}

/* ---------- tile: one app, one colour ---------- */
.fz-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-radius: var(--r-tile);
	padding: clamp(24px, 3.4vw, 40px);
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	background: var(--tint, var(--wash));
	transition: transform 0.5s var(--ease);
}
a.fz-tile:hover {
	transform: translateY(-4px);
}
.fz-tile.is-terra {
	--tint: var(--terra-tint);
	--tone: var(--terra);
}
.fz-tile.is-sage {
	--tint: var(--sage-tint);
	--tone: var(--sage);
}
.fz-tile.is-brass {
	--tint: var(--brass-tint);
	--tone: var(--brass-deep);
}
.fz-pill {
	align-self: flex-start;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.72);
}
.fz-tile h2,
.fz-tile h3 {
	font: 700 clamp(32px, 3.6vw, 50px) / 1 var(--display);
	letter-spacing: -0.035em;
	margin: 4px 0 0;
}
.fz-tile p {
	margin: 0;
	color: #3a342e;
	max-width: 36ch;
}

/* Abstract shapes drifting behind a tile's text. */
.fz-shapes {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
	color: var(--tone);
}
.fz-shapes .ring {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	opacity: 0.35;
	transform-box: fill-box;
	transform-origin: center;
}
.fz-shapes .spin {
	stroke-dasharray: 3 14;
	stroke-linecap: round;
	animation: fz-spin 40s linear infinite;
}
.fz-shapes .spin.back {
	animation-duration: 64s;
	animation-direction: reverse;
	stroke-dasharray: 60 22;
	opacity: 0.22;
}
.fz-shapes .blob {
	fill: currentColor;
	opacity: 0.16;
	transform-box: fill-box;
	transform-origin: center;
	animation: fz-float 11s ease-in-out infinite;
}
.fz-shapes .blob.b2 {
	animation-duration: 15s;
	animation-delay: -6s;
	opacity: 0.11;
}
.fz-shapes .fall {
	fill: currentColor;
	opacity: 0;
	animation: fz-fall 4.8s cubic-bezier(0.5, 0, 0.9, 0.6) infinite;
}
.fz-shapes .fall.f2 {
	animation-delay: -1.6s;
}
.fz-shapes .fall.f3 {
	animation-delay: -3.2s;
}
.fz-shapes .ripple {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
	animation: fz-ripple 4.8s ease-out infinite;
}
.fz-shapes .ripple.r2 {
	animation-delay: -1.6s;
}
.fz-shapes .ripple.r3 {
	animation-delay: -3.2s;
}
/* Branch: a main line, and a branch that leaves it and merges back (Daybranch).
   Drawn at rest; the loop briefly retracts it and draws it again. */
.fz-shapes .trunk,
.fz-shapes .fork {
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
}
.fz-shapes .trunk {
	opacity: 0.22;
}
.fz-shapes .fork {
	opacity: 0.45;
	stroke-dasharray: 520;
	animation: fz-fork 9s var(--ease) infinite both;
}
.fz-shapes .node {
	fill: currentColor;
	opacity: 0.55;
	transform-box: fill-box;
	transform-origin: center;
	animation: fz-node 9s var(--ease) infinite both;
}
.fz-shapes .node.n2 {
	animation-delay: 0.9s;
}
.fz-shapes .node.n3 {
	animation-delay: 1.8s;
}
.fz-shapes .node.n4 {
	animation-delay: 2.7s;
}
@keyframes fz-fork {
	0%,
	64% {
		stroke-dashoffset: 0;
	}
	74%,
	78% {
		stroke-dashoffset: 520;
	}
	100% {
		stroke-dashoffset: 0;
	}
}
@keyframes fz-node {
	0%,
	62% {
		opacity: 0.55;
		transform: scale(1);
	}
	70%,
	84% {
		opacity: 0;
		transform: scale(0.3);
	}
	92%,
	100% {
		opacity: 0.55;
		transform: scale(1);
	}
}
@keyframes fz-spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes fz-float {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}
	50% {
		transform: translate(-14px, 18px) scale(1.08);
	}
}
@keyframes fz-fall {
	0% {
		transform: translateY(-70px);
		opacity: 0;
	}
	12% {
		opacity: 0.45;
	}
	78% {
		opacity: 0.45;
	}
	88%,
	100% {
		transform: translateY(150px);
		opacity: 0;
	}
}
@keyframes fz-ripple {
	0%,
	80% {
		transform: scale(0.2);
		opacity: 0;
	}
	84% {
		opacity: 0.5;
	}
	100% {
		transform: scale(1);
		opacity: 0;
	}
}

/* ---------- window: a small live preview of an app ---------- */
.fz-win {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 44px -20px rgba(22, 19, 15, 0.28);
	font-size: 14.5px;
}
.fz-win .dots {
	display: flex;
	gap: 6px;
	padding: 12px 14px 4px;
}
.fz-win .dots i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(22, 19, 15, 0.16);
}
.fz-win .rows {
	padding: 4px 20px 16px;
}
.fz-win .row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid rgba(22, 19, 15, 0.07);
}
.fz-win .row:last-child {
	border: 0;
}
.fz-win .when {
	margin-left: auto;
	font-size: 12.5px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 99px;
	background: var(--wash);
	white-space: nowrap;
}

/* ---------- strip: the dark band that sends people elsewhere ---------- */
.fz-strip {
	border-radius: var(--r-tile);
	background: var(--ink);
	color: #fff;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: clamp(20px, 3vw, 34px);
	padding-left: 0;
}
.fz-strip .fz-btn {
	flex: none;
}
.fz-marquee {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 86%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 86%, transparent);
}
.fz-marquee > div {
	display: flex;
	width: max-content;
	animation: fz-marquee 36s linear infinite;
}
.fz-marquee span {
	font: 700 clamp(24px, 2.8vw, 38px) / 1.1 var(--display);
	letter-spacing: -0.03em;
	white-space: nowrap;
	padding-right: 0.5em;
}
.fz-marquee i {
	display: inline-block;
	width: 0.42em;
	height: 0.42em;
	border-radius: 50%;
	margin: 0 0.5em 0.12em 0;
	background: var(--brass);
}
.fz-marquee span:nth-child(3n + 2) i {
	background: var(--terra);
	border-radius: 0.1em;
}
.fz-marquee span:nth-child(3n) i {
	background: #9ec7b0;
	border-radius: 50% 50% 0 50%;
}
@keyframes fz-marquee {
	to {
		transform: translateX(-50%);
	}
}

.fz-foot {
	padding: 28px 0 40px;
	color: var(--soft);
	font-size: 14.5px;
	text-align: center;
}

/* ---------- arrive: things ease in as they enter the view (fz-art.js adds .is-in) ---------- */
.js .fz-arrive {
	opacity: 0;
	transform: translateY(26px) scale(0.985);
	transition:
		opacity 0.8s var(--ease),
		transform 0.9s var(--ease);
	transition-delay: var(--delay, 0s);
}
.js .fz-arrive.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
	.js .fz-arrive {
		opacity: 1;
		transform: none;
	}
}
