/* Contacts page of Apriori.Life (/<lang>/contacts/, pages/contacts.php): the founder of the magazine,
   then how to reach the editorial office. Built on the Pillar theme (css/deepred.css): Lora for reading
   text, Open Sans for labels, ink #232323, text #3f3f3f, deep red #bb4242 as the only accent.
   On desktop the theme's navigation is white on a transparent bar over the first section, so the first
   section is dark; at 991px and below the navigation is a light bar in the normal flow.
   Loaded only by this page (pages/.contacts.php). */

.apc {
	--apc-ink: #232323;
	--apc-text: #3f3f3f;
	--apc-muted: #696969;                 /* 5.2:1 on #f8f8f8, 5.6:1 on #fff */
	--apc-line: #e3dfd8;
	--apc-accent: #bb4242;
	--apc-accent-dark: #a13636;
	--apc-dark: #141513;
	--apc-paper: #f8f8f8;
	--apc-sans: 'Open Sans', 'Helvetica', 'Arial', sans-serif;
	--apc-serif: 'Lora', 'Times New Roman', 'Times', serif;
	display: block;
}
.apc-nw { white-space: nowrap; }       /* hyphenated words stay whole (pages/contacts.php apc_text) */

/* -------------------------------------------------- hero: name, role, portrait */

.apc-hero {
	position: relative;
	overflow: hidden;
	padding: 10.5em 0 7em;
	background: var(--apc-dark);
	color: #fff;
}
/* the green of the planted wall behind the portrait, and a darker top under the transparent navigation */
.apc-hero::before {
	content: "";
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background:
		radial-gradient(38% 60% at 74% 58%, rgba(72, 104, 64, .42), transparent 70%),
		linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%);
	pointer-events: none;
}
.apc-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	gap: 5em;
	align-items: center;
}

.apc-kicker {
	display: flex;
	align-items: center;
	gap: 1em;
	margin: 0 0 1.8em;
	font: 700 .72em/1.4 var(--apc-sans);
	letter-spacing: .3em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
}
.apc-kicker::before {
	content: "";
	flex: none;
	width: 2.6em;
	height: 2px;
	background: var(--apc-accent);
}
.apc .apc-name {
	margin: 0 0 .42em;
	font-family: var(--apc-serif);
	font-weight: 400;
	font-size: clamp(2.7em, 5.4vw, 4.75em);
	line-height: 1.04;
	letter-spacing: -.012em;
	color: #fff;
	text-wrap: balance;
}
.apc-role {
	margin: 0 0 1.3em;
	font: 700 .74em/1.6 var(--apc-sans);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .82);
}
.apc-intro {
	max-width: 29em;
	margin: 0 0 2.6em;
	font-family: var(--apc-serif);
	font-size: 1.18em;
	font-style: italic;
	line-height: 1.7;
	color: rgba(255, 255, 255, .76);
	text-wrap: pretty;
}
.apc-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .8em 2.2em;
}
/* the theme's buttons are pills (homepage slider): the same shape here */
.apc .apc-btn {
	display: inline-block;
	padding: 1.2em 2.4em;
	border-radius: 100px;
	background: var(--apc-accent);
	color: #fff;
	font: 700 .72em/1 var(--apc-sans);
	letter-spacing: .2em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease;
}
.apc .apc-btn:hover,
.apc .apc-btn:focus {
	background: var(--apc-accent-dark);
	color: #fff;
	text-decoration: none;
}
.apc .apc-textlink {
	display: inline-block;
	padding: 1.1em 0 .45em;
	border-bottom: 1px solid rgba(255, 255, 255, .45);
	color: #fff;
	font: 700 .72em/1 var(--apc-sans);
	letter-spacing: .2em;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color .2s ease;
}
.apc .apc-textlink:hover,
.apc .apc-textlink:focus {
	border-color: #fff;
	color: #fff;
	text-decoration: none;
}
/* deepred.css removes the outline of every link: a visible keyboard focus here (older Safari included) */
.apc a:focus {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}
.apc a:focus:not(:focus-visible) {
	outline: none;
}

.apc-portrait {
	position: relative;
	justify-self: end;
	width: calc(100% - 1.6em);
	max-width: 420px;
	margin: 0 1.6em 1.6em 0;
}
/* a thin frame set off behind the photo, like a print on a mat */
.apc-portrait::before {
	content: "";
	position: absolute;
	top: 1.6em; right: -1.6em; bottom: -1.6em; left: 1.6em;
	border: 1px solid rgba(255, 255, 255, .24);
	pointer-events: none;
}
.apc-portrait img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	background: #2a2f28;
	box-shadow: 0 40px 70px -35px rgba(0, 0, 0, .85);
}

/* -------------------------------------------------- biography; career and education */

/* deepred.css zeroes padding-top of a plain section that follows another one ("section:not(…) + section:not(…)",
   22 classes of specificity): the sections of this page set their own top padding with !important */
.apc-bio {
	padding: 6.5em 0;
	padding-top: 6.5em !important;
	background: var(--apc-paper);
}
/* one reading column: biography, then career, then education (owner's request) */
.apc-col {
	max-width: 46em;
	margin: 0 auto;
}

.apc .apc-h {
	display: flex;
	align-items: center;
	gap: 1.1em;
	margin: 0 0 1.9em;
	font: 700 .72em/1.4 var(--apc-sans);
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--apc-accent);
}
.apc .apc-h::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--apc-line);
}
.apc .apc-h--more {
	margin-top: 2.9em;
}

.apc .apc-lede {
	margin: 0 0 1.3em;
	font-size: 1.5em;
	line-height: 1.55;
	color: var(--apc-ink);
	text-wrap: pretty;
}
.apc .apc-p {
	margin: 0 0 1.15em;
	font-size: 1.1em;
	line-height: 1.8;
	color: var(--apc-text);
	text-wrap: pretty;
}
/* a drop cap opens the story, the magazine way */
.apc .apc-p--first::first-letter {
	float: left;
	margin: .1em .14em 0 0;
	font-family: var(--apc-serif);
	font-size: 3.55em;
	line-height: .82;
	color: var(--apc-accent);
}

.apc .apc-edu {
	margin: 0;
	line-height: 1.5;
}

.apc-tl {
	margin: 0;
	padding: 0;
	list-style: none;
}
.apc-tl__item {
	display: grid;
	grid-template-columns: 8em minmax(0, 1fr);
	gap: 1.5em;
	padding: 1.35em 0;
	border-top: 1px solid var(--apc-line);
}
.apc-tl__item:first-child {
	padding-top: .2em;
	border-top: 0;
}
.apc-tl__item:last-child {
	border-bottom: 1px solid var(--apc-line);
}
.apc-tl__when {
	padding-top: .32em;
	font: 700 .7em/1.6 var(--apc-sans);
	font-variant-numeric: lining-nums tabular-nums;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--apc-ink);
	white-space: nowrap;
}
.apc .apc-tl__what p {
	margin: 0;
	line-height: 1.5;
}
.apc .apc-tl__what p + p {
	margin-top: 1em;
}
.apc-tl__what strong,
.apc-edu strong {
	display: block;
	font-weight: 700;
	color: var(--apc-ink);
}
.apc-tl__what span,
.apc-edu span {
	display: block;
	margin-top: .2em;
	font-style: italic;
	line-height: 1.6;
	color: var(--apc-muted);
	text-wrap: pretty;
}
.apc-tl__what span .apc-nw,
.apc-edu span .apc-nw { display: inline; margin: 0; }

/* -------------------------------------------------- contacts of the editorial office */

.apc-contact {
	padding: 6em 0 4.5em;
	padding-top: 6em !important;
	border-top: 1px solid var(--apc-line);
	background: #fff;
}
.apc-contact__head {
	max-width: 38em;
	margin: 0 auto 3.4em;
	text-align: center;
}
.apc .apc-contact__title {
	margin: 0 0 .55em;
	font: 400 2.45em/1.2 var(--apc-serif);
	letter-spacing: 0;
	text-transform: none;
	color: var(--apc-ink);
}
.apc .apc-contact__intro {
	margin: 0;
	font-size: 1.05em;
	font-style: italic;
	line-height: 1.7;
	color: var(--apc-muted);
	text-wrap: balance;
}
.apc-contact__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--apc-line);
	border-bottom: 1px solid var(--apc-line);
}
.apc-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .9em;
	padding: 2.4em 1.5em;
	text-align: center;
}
.apc-card + .apc-card {
	border-left: 1px solid var(--apc-line);
}
.apc-card__label {
	font: 700 .66em/1.4 var(--apc-sans);
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--apc-muted);
}
.apc .apc-card__mail,
.apc .apc-card__link,
.apc .apc-card__social a {
	padding-bottom: .1em;
	border-bottom: 1px solid #cfc9bf;
	font-size: 1.06em;
	color: var(--apc-ink);
	text-decoration: none;
	transition: color .2s ease, border-color .2s ease;
}
.apc .apc-card__mail:hover,
.apc .apc-card__link:hover,
.apc .apc-card__social a:hover {
	color: var(--apc-accent);
	border-color: var(--apc-accent);
	text-decoration: none;
}
.apc-card__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6em 1.7em;
}

/* the theme footer follows this page directly: a hairline instead of a second big white gap */
.apc + footer {
	padding-top: 3.25em;
	border-top: 1px solid var(--apc-line);
}

/* -------------------------------------------------- tablet and phone */

@media (max-width: 1199px) {
	.apc-hero__grid { gap: 3.5em; }
}
@media (max-width: 991px) {
	.apc-hero { padding-top: 4.5em; }
	.apc-hero::before { background: radial-gradient(70% 55% at 50% 75%, rgba(72, 104, 64, .32), transparent 72%); }
}
@media (max-width: 767px) {
	.apc-hero { padding: 3.4em 0 4.6em; }
	.apc-hero__grid { grid-template-columns: 1fr; gap: 2.8em; }
	.apc-portrait {
		order: -1;
		justify-self: start;
		width: calc(100% - 1.1em);
		max-width: 340px;
		margin: 0 1.1em 1.1em 0;
	}
	.apc-portrait::before { top: 1.1em; right: -1.1em; bottom: -1.1em; left: 1.1em; }
	.apc .apc-name { font-size: 2.9em; }
	.apc-intro { font-size: 1.1em; margin-bottom: 2em; }
	.apc .apc-btn { padding: 1.55em 2.2em; }
	.apc-bio { padding: 4.8em 0; padding-top: 4.8em !important; }
	.apc .apc-lede { font-size: 1.28em; }
	.apc .apc-p { font-size: 1.05em; }
	.apc-tl__item { grid-template-columns: 1fr; gap: .4em; }
	.apc-tl__when { padding-top: 0; }
	.apc-contact { padding: 4.6em 0 3.5em; padding-top: 4.6em !important; }
	.apc .apc-contact__title { font-size: 2em; }
	.apc-contact__grid { grid-template-columns: 1fr; }
	.apc-card { padding: 2em 1em; }
	.apc-card + .apc-card { border-left: 0; border-top: 1px solid var(--apc-line); }
	.apc .apc-card__mail,
	.apc .apc-card__link,
	.apc .apc-card__social a { display: inline-block; padding: .55em 0 .15em; }
	.apc-card__social { gap: .2em 2em; }
	/* deepred.css sets html to 87.5% on phones: keep the small capitals readable */
	.apc-kicker, .apc .apc-h, .apc .apc-btn, .apc .apc-textlink, .apc-tl__when { font-size: 11px; }
	.apc-card__label { font-size: 10.5px; letter-spacing: .14em; }
}

/* ScrollReveal of the theme fades sections in on scroll: not for reduced motion, and never hidden in print */
@media (prefers-reduced-motion: reduce), print {
	.apc section[data-sr-id] {
		visibility: visible !important;
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	.apc .apc-btn,
	.apc .apc-textlink,
	.apc .apc-card__mail,
	.apc .apc-card__link,
	.apc .apc-card__social a { transition: none; }
}
