/*
  site.css: the look of greyfadestudio.com (fonts, colors, text sizes, spacing), from the stylesheet the
  site had on Cargo. Trimmed in November 2026 to what the site uses; the complete original is in
  cargo-export/cargo-site.json ("css"). Proven unchanged: screenshots of every page at three sizes,
  identical before and after.

  ".mobile" = a phone (the page script sets it below 768 px wide). The layout machinery underneath
  (sizes that follow the window, columns, grids, pinned bars) is in base.css.
*/

/* Marfa Light, the site's typeface: Joseph's trial file from Dinamo, kept here in fonts/ (it used to load
   from Cargo's server). With the web license, swap in the licensed file (README, "Fonts"). */
@font-face {
  font-family: "ABCMarfa-Light-Trial";
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  src: local("ABCMarfa-Light"), local("ABC Marfa Light"), url("/fonts/ABCMarfa-Light-Trial.woff2") format("woff2");
}

body {
	background-color: rgba(0, 0, 0, 0.19);
}

a:active,
.linked:active {
	opacity: 0.7;
}

.page a.active {
	color: rgba(190, 62, 62, 0.85);
}

/* Body text */
bodycopy {
	--font-size: 1.4rem;
	font-size: calc(var(--font-scale) * var(--font-size));
	font-weight: 200;
	color: rgba(0, 0, 0, 0.4);
	font-family: "ABCMarfa-Light-Trial", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0;
	display: block;
	font-feature-settings: "ss02";
}

.mobile bodycopy {
	color: rgba(0, 0, 0, 0.25);
	--font-size: 1.45rem;
	font-size: calc(var(--font-scale) * var(--font-size));
}

bodycopy a {
	color: rgba(0, 0, 0, 0.4);
	text-decoration: none;
	text-decoration-color: rgba(158, 58, 58, 0.85);
}

.mobile bodycopy a {
	color: rgba(0, 0, 0, 0.25);
}

/* Headings */
h2 {
	font-family: "ABCMarfa-Light-Trial", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-style: normal;
	font-weight: 200;
	padding: 0;
	margin: 0;
	color: rgba(0, 0, 0, 0.75);
	--font-size: 2rem;
	font-size: calc(var(--font-scale) * var(--font-size));
	line-height: 1.6;
	letter-spacing: 0;
}

h2 a {
	color: rgba(0, 0, 0, 0.75);
	text-decoration: none;
}

/* Captions: client lists, credits, form labels */
.caption {
	--font-size: 1.1rem;
	font-size: calc(var(--font-scale) * var(--font-size));
	font-weight: 400;
	color: rgba(0, 0, 0, 0.4);
	font-family: "Diatype Mono Variable";
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0em;
	display: block;
	font-variation-settings: 'slnt' 0, 'MONO' 1;
}

.caption a {
	color: rgba(0, 0, 0, 0.4);
	text-decoration: underline;
}

/* Work grids: titles centered on the thumbnails */
[thumbnail-index] .caption {
	text-align: center;
}

/* Pages */
.page {
	justify-content: flex-end;
	background-color: rgba(0, 0, 0, 0);
}

.page-content {
	padding: calc(3rem * var(--pad-scale));
	text-align: center;
	background-color: rgba(0, 0, 0, 0);
}

.mobile [id] .page-layout {
	max-width: 100%;
}

.page-layout {
	align-items: flex-start;
	max-width: 100%;
}

/* Click-to-enlarge: the white background behind a big picture */
.quick-view-background {
	background-color: #ffffff;
}
